configure revision f29dbc25
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for xf86-video-geode 2.11.8.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# 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.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='xf86-video-geode'
704PACKAGE_TARNAME='xf86-video-geode'
705PACKAGE_VERSION='2.11.8'
706PACKAGE_STRING='xf86-video-geode 2.11.8'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode'
708PACKAGE_URL='http://www.x.org/wiki/GeodeDriver'
709
710ac_unique_file="Makefile.am"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747ac_subst_vars='am__EXEEXT_FALSE
748am__EXEEXT_TRUE
749LTLIBOBJS
750LIBOBJS
751DRIVER_NAME
752I386ARCH_FALSE
753I386ARCH_TRUE
754AMD_CFLAGS
755moduledir
756PCIACCESS_LIBS
757PCIACCESS_CFLAGS
758HAVE_XEXTPROTO_71_FALSE
759HAVE_XEXTPROTO_71_TRUE
760XEXT_LIBS
761XEXT_CFLAGS
762XORG_LIBS
763XORG_CFLAGS
764am__fastdepCCAS_FALSE
765am__fastdepCCAS_TRUE
766CCASDEPMODE
767CCASFLAGS
768CCAS
769OTOOL64
770OTOOL
771LIPO
772NMEDIT
773DSYMUTIL
774lt_ECHO
775RANLIB
776AR
777OBJDUMP
778LN_S
779NM
780ac_ct_DUMPBIN
781DUMPBIN
782LD
783FGREP
784SED
785LIBTOOL
786MAINT
787MAINTAINER_MODE_FALSE
788MAINTAINER_MODE_TRUE
789am__fastdepCC_FALSE
790am__fastdepCC_TRUE
791CCDEPMODE
792AMDEPBACKSLASH
793AMDEP_FALSE
794AMDEP_TRUE
795am__quote
796am__include
797DEPDIR
798am__untar
799am__tar
800AMTAR
801am__leading_dot
802SET_MAKE
803AWK
804mkdir_p
805MKDIR_P
806INSTALL_STRIP_PROGRAM
807STRIP
808install_sh
809MAKEINFO
810AUTOHEADER
811AUTOMAKE
812AUTOCONF
813ACLOCAL
814VERSION
815PACKAGE
816CYGPATH_W
817am__isrc
818INSTALL_DATA
819INSTALL_SCRIPT
820INSTALL_PROGRAM
821ADMIN_MAN_DIR
822DRIVER_MAN_DIR
823MISC_MAN_DIR
824FILE_MAN_DIR
825LIB_MAN_DIR
826APP_MAN_DIR
827ADMIN_MAN_SUFFIX
828DRIVER_MAN_SUFFIX
829MISC_MAN_SUFFIX
830FILE_MAN_SUFFIX
831LIB_MAN_SUFFIX
832APP_MAN_SUFFIX
833host_os
834host_vendor
835host_cpu
836host
837build_os
838build_vendor
839build_cpu
840build
841INSTALL_CMD
842PKG_CONFIG
843CHANGELOG_CMD
844AM_BACKSLASH
845AM_DEFAULT_VERBOSITY
846CWARNFLAGS
847EGREP
848GREP
849CPP
850OBJEXT
851EXEEXT
852ac_ct_CC
853CPPFLAGS
854LDFLAGS
855CFLAGS
856CC
857target_alias
858host_alias
859build_alias
860LIBS
861ECHO_T
862ECHO_N
863ECHO_C
864DEFS
865mandir
866localedir
867libdir
868psdir
869pdfdir
870dvidir
871htmldir
872infodir
873docdir
874oldincludedir
875includedir
876localstatedir
877sharedstatedir
878sysconfdir
879datadir
880datarootdir
881libexecdir
882sbindir
883bindir
884program_transform_name
885prefix
886exec_prefix
887PACKAGE_URL
888PACKAGE_BUGREPORT
889PACKAGE_STRING
890PACKAGE_VERSION
891PACKAGE_TARNAME
892PACKAGE_NAME
893PATH_SEPARATOR
894SHELL'
895ac_subst_files=''
896ac_user_opts='
897enable_option_checking
898enable_silent_rules
899enable_strict_compilation
900with_release_version
901enable_dependency_tracking
902enable_maintainer_mode
903enable_static
904enable_shared
905with_pic
906enable_fast_install
907with_gnu_ld
908enable_libtool_lock
909with_xorg_module_dir
910enable_geodegx_panel
911enable_werror
912enable_visibility
913'
914      ac_precious_vars='build_alias
915host_alias
916target_alias
917CC
918CFLAGS
919LDFLAGS
920LIBS
921CPPFLAGS
922CPP
923PKG_CONFIG
924CCAS
925CCASFLAGS
926XORG_CFLAGS
927XORG_LIBS
928XEXT_CFLAGS
929XEXT_LIBS
930PCIACCESS_CFLAGS
931PCIACCESS_LIBS'
932
933
934# Initialize some variables set by options.
935ac_init_help=
936ac_init_version=false
937ac_unrecognized_opts=
938ac_unrecognized_sep=
939# The variables have the same names as the options, with
940# dashes changed to underlines.
941cache_file=/dev/null
942exec_prefix=NONE
943no_create=
944no_recursion=
945prefix=NONE
946program_prefix=NONE
947program_suffix=NONE
948program_transform_name=s,x,x,
949silent=
950site=
951srcdir=
952verbose=
953x_includes=NONE
954x_libraries=NONE
955
956# Installation directory options.
957# These are left unexpanded so users can "make install exec_prefix=/foo"
958# and all the variables that are supposed to be based on exec_prefix
959# by default will actually change.
960# Use braces instead of parens because sh, perl, etc. also accept them.
961# (The list follows the same order as the GNU Coding Standards.)
962bindir='${exec_prefix}/bin'
963sbindir='${exec_prefix}/sbin'
964libexecdir='${exec_prefix}/libexec'
965datarootdir='${prefix}/share'
966datadir='${datarootdir}'
967sysconfdir='${prefix}/etc'
968sharedstatedir='${prefix}/com'
969localstatedir='${prefix}/var'
970includedir='${prefix}/include'
971oldincludedir='/usr/include'
972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973infodir='${datarootdir}/info'
974htmldir='${docdir}'
975dvidir='${docdir}'
976pdfdir='${docdir}'
977psdir='${docdir}'
978libdir='${exec_prefix}/lib'
979localedir='${datarootdir}/locale'
980mandir='${datarootdir}/man'
981
982ac_prev=
983ac_dashdash=
984for ac_option
985do
986  # If the previous option needs an argument, assign it.
987  if test -n "$ac_prev"; then
988    eval $ac_prev=\$ac_option
989    ac_prev=
990    continue
991  fi
992
993  case $ac_option in
994  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995  *)	ac_optarg=yes ;;
996  esac
997
998  # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000  case $ac_dashdash$ac_option in
1001  --)
1002    ac_dashdash=yes ;;
1003
1004  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005    ac_prev=bindir ;;
1006  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007    bindir=$ac_optarg ;;
1008
1009  -build | --build | --buil | --bui | --bu)
1010    ac_prev=build_alias ;;
1011  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012    build_alias=$ac_optarg ;;
1013
1014  -cache-file | --cache-file | --cache-fil | --cache-fi \
1015  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016    ac_prev=cache_file ;;
1017  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019    cache_file=$ac_optarg ;;
1020
1021  --config-cache | -C)
1022    cache_file=config.cache ;;
1023
1024  -datadir | --datadir | --datadi | --datad)
1025    ac_prev=datadir ;;
1026  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027    datadir=$ac_optarg ;;
1028
1029  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030  | --dataroo | --dataro | --datar)
1031    ac_prev=datarootdir ;;
1032  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034    datarootdir=$ac_optarg ;;
1035
1036  -disable-* | --disable-*)
1037    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040      as_fn_error "invalid feature name: $ac_useropt"
1041    ac_useropt_orig=$ac_useropt
1042    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043    case $ac_user_opts in
1044      *"
1045"enable_$ac_useropt"
1046"*) ;;
1047      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048	 ac_unrecognized_sep=', ';;
1049    esac
1050    eval enable_$ac_useropt=no ;;
1051
1052  -docdir | --docdir | --docdi | --doc | --do)
1053    ac_prev=docdir ;;
1054  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055    docdir=$ac_optarg ;;
1056
1057  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058    ac_prev=dvidir ;;
1059  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060    dvidir=$ac_optarg ;;
1061
1062  -enable-* | --enable-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error "invalid feature name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222    ac_prev=sbindir ;;
1223  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224  | --sbi=* | --sb=*)
1225    sbindir=$ac_optarg ;;
1226
1227  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229  | --sharedst | --shareds | --shared | --share | --shar \
1230  | --sha | --sh)
1231    ac_prev=sharedstatedir ;;
1232  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235  | --sha=* | --sh=*)
1236    sharedstatedir=$ac_optarg ;;
1237
1238  -site | --site | --sit)
1239    ac_prev=site ;;
1240  -site=* | --site=* | --sit=*)
1241    site=$ac_optarg ;;
1242
1243  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244    ac_prev=srcdir ;;
1245  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246    srcdir=$ac_optarg ;;
1247
1248  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249  | --syscon | --sysco | --sysc | --sys | --sy)
1250    ac_prev=sysconfdir ;;
1251  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253    sysconfdir=$ac_optarg ;;
1254
1255  -target | --target | --targe | --targ | --tar | --ta | --t)
1256    ac_prev=target_alias ;;
1257  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258    target_alias=$ac_optarg ;;
1259
1260  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261    verbose=yes ;;
1262
1263  -version | --version | --versio | --versi | --vers | -V)
1264    ac_init_version=: ;;
1265
1266  -with-* | --with-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error "invalid package name: $ac_useropt"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278	 ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=\$ac_optarg ;;
1281
1282  -without-* | --without-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error "invalid package name: $ac_useropt"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=no ;;
1297
1298  --x)
1299    # Obsolete; use --with-x.
1300    with_x=yes ;;
1301
1302  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303  | --x-incl | --x-inc | --x-in | --x-i)
1304    ac_prev=x_includes ;;
1305  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307    x_includes=$ac_optarg ;;
1308
1309  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311    ac_prev=x_libraries ;;
1312  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314    x_libraries=$ac_optarg ;;
1315
1316  -*) as_fn_error "unrecognized option: \`$ac_option'
1317Try \`$0 --help' for more information."
1318    ;;
1319
1320  *=*)
1321    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322    # Reject names that are not valid shell variable names.
1323    case $ac_envvar in #(
1324      '' | [0-9]* | *[!_$as_cr_alnum]* )
1325      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1326    esac
1327    eval $ac_envvar=\$ac_optarg
1328    export $ac_envvar ;;
1329
1330  *)
1331    # FIXME: should be removed in autoconf 3.0.
1332    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336    ;;
1337
1338  esac
1339done
1340
1341if test -n "$ac_prev"; then
1342  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343  as_fn_error "missing argument to $ac_option"
1344fi
1345
1346if test -n "$ac_unrecognized_opts"; then
1347  case $enable_option_checking in
1348    no) ;;
1349    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1350    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351  esac
1352fi
1353
1354# Check all directory arguments for consistency.
1355for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356		datadir sysconfdir sharedstatedir localstatedir includedir \
1357		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358		libdir localedir mandir
1359do
1360  eval ac_val=\$$ac_var
1361  # Remove trailing slashes.
1362  case $ac_val in
1363    */ )
1364      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365      eval $ac_var=\$ac_val;;
1366  esac
1367  # Be sure to have absolute directory names.
1368  case $ac_val in
1369    [\\/$]* | ?:[\\/]* )  continue;;
1370    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371  esac
1372  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384  if test "x$build_alias" = x; then
1385    cross_compiling=maybe
1386    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387    If a cross compiler is detected then cross compile mode will be used." >&2
1388  elif test "x$build_alias" != "x$host_alias"; then
1389    cross_compiling=yes
1390  fi
1391fi
1392
1393ac_tool_prefix=
1394test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396test "$silent" = yes && exec 6>/dev/null
1397
1398
1399ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400ac_ls_di=`ls -di .` &&
1401ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402  as_fn_error "working directory cannot be determined"
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404  as_fn_error "pwd does not report name of working directory"
1405
1406
1407# Find the source files, if location was not specified.
1408if test -z "$srcdir"; then
1409  ac_srcdir_defaulted=yes
1410  # Try the directory containing this script, then the parent directory.
1411  ac_confdir=`$as_dirname -- "$as_myself" ||
1412$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413	 X"$as_myself" : 'X\(//\)[^/]' \| \
1414	 X"$as_myself" : 'X\(//\)$' \| \
1415	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416$as_echo X"$as_myself" |
1417    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418	    s//\1/
1419	    q
1420	  }
1421	  /^X\(\/\/\)[^/].*/{
1422	    s//\1/
1423	    q
1424	  }
1425	  /^X\(\/\/\)$/{
1426	    s//\1/
1427	    q
1428	  }
1429	  /^X\(\/\).*/{
1430	    s//\1/
1431	    q
1432	  }
1433	  s/.*/./; q'`
1434  srcdir=$ac_confdir
1435  if test ! -r "$srcdir/$ac_unique_file"; then
1436    srcdir=..
1437  fi
1438else
1439  ac_srcdir_defaulted=no
1440fi
1441if test ! -r "$srcdir/$ac_unique_file"; then
1442  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1444fi
1445ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446ac_abs_confdir=`(
1447	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1448	pwd)`
1449# When building in place, set srcdir=.
1450if test "$ac_abs_confdir" = "$ac_pwd"; then
1451  srcdir=.
1452fi
1453# Remove unnecessary trailing slashes from srcdir.
1454# Double slashes in file names in object file debugging info
1455# mess up M-x gdb in Emacs.
1456case $srcdir in
1457*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458esac
1459for ac_var in $ac_precious_vars; do
1460  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461  eval ac_env_${ac_var}_value=\$${ac_var}
1462  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464done
1465
1466#
1467# Report the --help message.
1468#
1469if test "$ac_init_help" = "long"; then
1470  # Omit some internal or obsolete options to make the list less imposing.
1471  # This message is too long to be a string in the A/UX 3.1 sh.
1472  cat <<_ACEOF
1473\`configure' configures xf86-video-geode 2.11.8 to adapt to many kinds of systems.
1474
1475Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480Defaults for the options are specified in brackets.
1481
1482Configuration:
1483  -h, --help              display this help and exit
1484      --help=short        display options specific to this package
1485      --help=recursive    display the short help of all the included packages
1486  -V, --version           display version information and exit
1487  -q, --quiet, --silent   do not print \`checking...' messages
1488      --cache-file=FILE   cache test results in FILE [disabled]
1489  -C, --config-cache      alias for \`--cache-file=config.cache'
1490  -n, --no-create         do not create output files
1491      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493Installation directories:
1494  --prefix=PREFIX         install architecture-independent files in PREFIX
1495                          [$ac_default_prefix]
1496  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                          [PREFIX]
1498
1499By default, \`make install' will install all the files in
1500\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502for instance \`--prefix=\$HOME'.
1503
1504For better control, use the options below.
1505
1506Fine tuning of the installation directories:
1507  --bindir=DIR            user executables [EPREFIX/bin]
1508  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1509  --libexecdir=DIR        program executables [EPREFIX/libexec]
1510  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1511  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1512  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1513  --libdir=DIR            object code libraries [EPREFIX/lib]
1514  --includedir=DIR        C header files [PREFIX/include]
1515  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1516  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1517  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1518  --infodir=DIR           info documentation [DATAROOTDIR/info]
1519  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1520  --mandir=DIR            man documentation [DATAROOTDIR/man]
1521  --docdir=DIR            documentation root
1522                          [DATAROOTDIR/doc/xf86-video-geode]
1523  --htmldir=DIR           html documentation [DOCDIR]
1524  --dvidir=DIR            dvi documentation [DOCDIR]
1525  --pdfdir=DIR            pdf documentation [DOCDIR]
1526  --psdir=DIR             ps documentation [DOCDIR]
1527_ACEOF
1528
1529  cat <<\_ACEOF
1530
1531Program names:
1532  --program-prefix=PREFIX            prepend PREFIX to installed program names
1533  --program-suffix=SUFFIX            append SUFFIX to installed program names
1534  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1535
1536System types:
1537  --build=BUILD     configure for building on BUILD [guessed]
1538  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539_ACEOF
1540fi
1541
1542if test -n "$ac_init_help"; then
1543  case $ac_init_help in
1544     short | recursive ) echo "Configuration of xf86-video-geode 2.11.8:";;
1545   esac
1546  cat <<\_ACEOF
1547
1548Optional Features:
1549  --disable-option-checking  ignore unrecognized --enable/--with options
1550  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1551  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1552  --enable-silent-rules          less verbose build output (undo: `make V=1')
1553  --disable-silent-rules         verbose build output (undo: `make V=0')
1554  --enable-strict-compilation
1555                          Enable all warnings from compiler and make them
1556                          errors (default: disabled)
1557  --disable-dependency-tracking  speeds up one-time build
1558  --enable-dependency-tracking   do not reject slow dependency extractors
1559  --enable-maintainer-mode  enable make rules and dependencies not useful
1560			  (and sometimes confusing) to the casual installer
1561  --enable-static[=PKGS]  build static libraries [default=no]
1562  --enable-shared[=PKGS]  build shared libraries [default=yes]
1563  --enable-fast-install[=PKGS]
1564                          optimize for fast installation [default=yes]
1565  --disable-libtool-lock  avoid locking (might break parallel builds)
1566  --disable-geodegx-panel Disable support for flatpanels with the Geode GX
1567  --enable-werror         Treat warnings as errors (default: disabled)
1568  --enable-visibility     Enable GCC visibility optimizations
1569
1570Optional Packages:
1571  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1572  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1573  --with-release-version=STRING
1574                          Use release version string in package name
1575  --with-pic              try to use only PIC/non-PIC objects [default=use
1576                          both]
1577  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578  --with-xorg-module-dir=DIR
1579                          Default xorg module directory
1580                          [[default=$libdir/xorg/modules]]
1581
1582Some influential environment variables:
1583  CC          C compiler command
1584  CFLAGS      C compiler flags
1585  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1586              nonstandard directory <lib dir>
1587  LIBS        libraries to pass to the linker, e.g. -l<library>
1588  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1589              you have headers in a nonstandard directory <include dir>
1590  CPP         C preprocessor
1591  PKG_CONFIG  path to pkg-config utility
1592  CCAS        assembler compiler command (defaults to CC)
1593  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1594  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1595  XORG_LIBS   linker flags for XORG, overriding pkg-config
1596  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1597  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1598  PCIACCESS_CFLAGS
1599              C compiler flags for PCIACCESS, overriding pkg-config
1600  PCIACCESS_LIBS
1601              linker flags for PCIACCESS, overriding pkg-config
1602
1603Use these variables to override the choices made by `configure' or to help
1604it to find libraries and programs with nonstandard names/locations.
1605
1606Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
1607xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>.
1608_ACEOF
1609ac_status=$?
1610fi
1611
1612if test "$ac_init_help" = "recursive"; then
1613  # If there are subdirs, report their specific --help.
1614  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615    test -d "$ac_dir" ||
1616      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617      continue
1618    ac_builddir=.
1619
1620case "$ac_dir" in
1621.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622*)
1623  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1624  # A ".." for each directory in $ac_dir_suffix.
1625  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1626  case $ac_top_builddir_sub in
1627  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629  esac ;;
1630esac
1631ac_abs_top_builddir=$ac_pwd
1632ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633# for backward compatibility:
1634ac_top_builddir=$ac_top_build_prefix
1635
1636case $srcdir in
1637  .)  # We are building in place.
1638    ac_srcdir=.
1639    ac_top_srcdir=$ac_top_builddir_sub
1640    ac_abs_top_srcdir=$ac_pwd ;;
1641  [\\/]* | ?:[\\/]* )  # Absolute name.
1642    ac_srcdir=$srcdir$ac_dir_suffix;
1643    ac_top_srcdir=$srcdir
1644    ac_abs_top_srcdir=$srcdir ;;
1645  *) # Relative name.
1646    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647    ac_top_srcdir=$ac_top_build_prefix$srcdir
1648    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649esac
1650ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651
1652    cd "$ac_dir" || { ac_status=$?; continue; }
1653    # Check for guested configure.
1654    if test -f "$ac_srcdir/configure.gnu"; then
1655      echo &&
1656      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657    elif test -f "$ac_srcdir/configure"; then
1658      echo &&
1659      $SHELL "$ac_srcdir/configure" --help=recursive
1660    else
1661      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662    fi || ac_status=$?
1663    cd "$ac_pwd" || { ac_status=$?; break; }
1664  done
1665fi
1666
1667test -n "$ac_init_help" && exit $ac_status
1668if $ac_init_version; then
1669  cat <<\_ACEOF
1670xf86-video-geode configure 2.11.8
1671generated by GNU Autoconf 2.65
1672
1673Copyright (C) 2009 Free Software Foundation, Inc.
1674This configure script is free software; the Free Software Foundation
1675gives unlimited permission to copy, distribute and modify it.
1676_ACEOF
1677  exit
1678fi
1679
1680## ------------------------ ##
1681## Autoconf initialization. ##
1682## ------------------------ ##
1683
1684# ac_fn_c_try_compile LINENO
1685# --------------------------
1686# Try to compile conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  rm -f conftest.$ac_objext
1691  if { { ac_try="$ac_compile"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_compile") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && {
1707	 test -z "$ac_c_werror_flag" ||
1708	 test ! -s conftest.err
1709       } && test -s conftest.$ac_objext; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715	ac_retval=1
1716fi
1717  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_compile
1721
1722# ac_fn_c_check_decl LINENO SYMBOL VAR
1723# ------------------------------------
1724# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1725ac_fn_c_check_decl ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1729$as_echo_n "checking whether $2 is declared... " >&6; }
1730if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731  $as_echo_n "(cached) " >&6
1732else
1733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h.  */
1735$4
1736int
1737main ()
1738{
1739#ifndef $2
1740  (void) $2;
1741#endif
1742
1743  ;
1744  return 0;
1745}
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748  eval "$3=yes"
1749else
1750  eval "$3=no"
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753fi
1754eval ac_res=\$$3
1755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756$as_echo "$ac_res" >&6; }
1757  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758
1759} # ac_fn_c_check_decl
1760
1761# ac_fn_c_try_cpp LINENO
1762# ----------------------
1763# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764ac_fn_c_try_cpp ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  if { { ac_try="$ac_cpp conftest.$ac_ext"
1768case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775  ac_status=$?
1776  if test -s conftest.err; then
1777    grep -v '^ *+' conftest.err >conftest.er1
1778    cat conftest.er1 >&5
1779    mv -f conftest.er1 conftest.err
1780  fi
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } >/dev/null && {
1783	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784	 test ! -s conftest.err
1785       }; then :
1786  ac_retval=0
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791    ac_retval=1
1792fi
1793  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794  as_fn_set_status $ac_retval
1795
1796} # ac_fn_c_try_cpp
1797
1798# ac_fn_c_try_run LINENO
1799# ----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801# that executables *can* be run.
1802ac_fn_c_try_run ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_link") 2>&5
1813  ac_status=$?
1814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816  { { case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_try") 2>&5
1823  ac_status=$?
1824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825  test $ac_status = 0; }; }; then :
1826  ac_retval=0
1827else
1828  $as_echo "$as_me: program exited with status $ac_status" >&5
1829       $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832       ac_retval=$ac_status
1833fi
1834  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836  as_fn_set_status $ac_retval
1837
1838} # ac_fn_c_try_run
1839
1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists and can be compiled using the include files in
1843# INCLUDES, setting the cache variable VAR accordingly.
1844ac_fn_c_check_header_compile ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850  $as_echo_n "(cached) " >&6
1851else
1852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858  eval "$3=yes"
1859else
1860  eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869} # ac_fn_c_check_header_compile
1870
1871# ac_fn_c_try_link LINENO
1872# -----------------------
1873# Try to link conftest.$ac_ext, and return whether this succeeded.
1874ac_fn_c_try_link ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  rm -f conftest.$ac_objext conftest$ac_exeext
1878  if { { ac_try="$ac_link"
1879case "(($ac_try" in
1880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881  *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885  (eval "$ac_link") 2>conftest.err
1886  ac_status=$?
1887  if test -s conftest.err; then
1888    grep -v '^ *+' conftest.err >conftest.er1
1889    cat conftest.er1 >&5
1890    mv -f conftest.er1 conftest.err
1891  fi
1892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893  test $ac_status = 0; } && {
1894	 test -z "$ac_c_werror_flag" ||
1895	 test ! -s conftest.err
1896       } && test -s conftest$ac_exeext && {
1897	 test "$cross_compiling" = yes ||
1898	 $as_test_x conftest$ac_exeext
1899       }; then :
1900  ac_retval=0
1901else
1902  $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905	ac_retval=1
1906fi
1907  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909  # interfere with the next link command; also delete a directory that is
1910  # left behind by Apple's compiler.  We do this before executing the actions.
1911  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913  as_fn_set_status $ac_retval
1914
1915} # ac_fn_c_try_link
1916
1917# ac_fn_c_check_func LINENO FUNC VAR
1918# ----------------------------------
1919# Tests whether FUNC exists, setting the cache variable VAR accordingly
1920ac_fn_c_check_func ()
1921{
1922  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926  $as_echo_n "(cached) " >&6
1927else
1928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h.  */
1930/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1932#define $2 innocuous_$2
1933
1934/* System header to define __stub macros and hopefully few prototypes,
1935    which can conflict with char $2 (); below.
1936    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937    <limits.h> exists even on freestanding compilers.  */
1938
1939#ifdef __STDC__
1940# include <limits.h>
1941#else
1942# include <assert.h>
1943#endif
1944
1945#undef $2
1946
1947/* Override any GCC internal prototype to avoid an error.
1948   Use char because int might match the return type of a GCC
1949   builtin and then its argument prototype would still apply.  */
1950#ifdef __cplusplus
1951extern "C"
1952#endif
1953char $2 ();
1954/* The GNU C library defines this for functions which it implements
1955    to always fail with ENOSYS.  Some functions are actually named
1956    something starting with __ and the normal name is an alias.  */
1957#if defined __stub_$2 || defined __stub___$2
1958choke me
1959#endif
1960
1961int
1962main ()
1963{
1964return $2 ();
1965  ;
1966  return 0;
1967}
1968_ACEOF
1969if ac_fn_c_try_link "$LINENO"; then :
1970  eval "$3=yes"
1971else
1972  eval "$3=no"
1973fi
1974rm -f core conftest.err conftest.$ac_objext \
1975    conftest$ac_exeext conftest.$ac_ext
1976fi
1977eval ac_res=\$$3
1978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
1982} # ac_fn_c_check_func
1983cat >config.log <<_ACEOF
1984This file contains any messages produced by compilers while
1985running configure, to aid debugging if configure makes a mistake.
1986
1987It was created by xf86-video-geode $as_me 2.11.8, which was
1988generated by GNU Autoconf 2.65.  Invocation command line was
1989
1990  $ $0 $@
1991
1992_ACEOF
1993exec 5>>config.log
1994{
1995cat <<_ASUNAME
1996## --------- ##
1997## Platform. ##
1998## --------- ##
1999
2000hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2008
2009/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2010/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2011/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2013/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2014/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2015/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2016
2017_ASUNAME
2018
2019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020for as_dir in $PATH
2021do
2022  IFS=$as_save_IFS
2023  test -z "$as_dir" && as_dir=.
2024    $as_echo "PATH: $as_dir"
2025  done
2026IFS=$as_save_IFS
2027
2028} >&5
2029
2030cat >&5 <<_ACEOF
2031
2032
2033## ----------- ##
2034## Core tests. ##
2035## ----------- ##
2036
2037_ACEOF
2038
2039
2040# Keep a trace of the command line.
2041# Strip out --no-create and --no-recursion so they do not pile up.
2042# Strip out --silent because we don't want to record it for future runs.
2043# Also quote any args containing shell meta-characters.
2044# Make two passes to allow for proper duplicate-argument suppression.
2045ac_configure_args=
2046ac_configure_args0=
2047ac_configure_args1=
2048ac_must_keep_next=false
2049for ac_pass in 1 2
2050do
2051  for ac_arg
2052  do
2053    case $ac_arg in
2054    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056    | -silent | --silent | --silen | --sile | --sil)
2057      continue ;;
2058    *\'*)
2059      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060    esac
2061    case $ac_pass in
2062    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063    2)
2064      as_fn_append ac_configure_args1 " '$ac_arg'"
2065      if test $ac_must_keep_next = true; then
2066	ac_must_keep_next=false # Got value, back to normal.
2067      else
2068	case $ac_arg in
2069	  *=* | --config-cache | -C | -disable-* | --disable-* \
2070	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072	  | -with-* | --with-* | -without-* | --without-* | --x)
2073	    case "$ac_configure_args0 " in
2074	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075	    esac
2076	    ;;
2077	  -* ) ac_must_keep_next=true ;;
2078	esac
2079      fi
2080      as_fn_append ac_configure_args " '$ac_arg'"
2081      ;;
2082    esac
2083  done
2084done
2085{ ac_configure_args0=; unset ac_configure_args0;}
2086{ ac_configure_args1=; unset ac_configure_args1;}
2087
2088# When interrupted or exit'd, cleanup temporary files, and complete
2089# config.log.  We remove comments because anyway the quotes in there
2090# would cause problems or look ugly.
2091# WARNING: Use '\'' to represent an apostrophe within the trap.
2092# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093trap 'exit_status=$?
2094  # Save into config.log some information that might help in debugging.
2095  {
2096    echo
2097
2098    cat <<\_ASBOX
2099## ---------------- ##
2100## Cache variables. ##
2101## ---------------- ##
2102_ASBOX
2103    echo
2104    # The following way of writing the cache mishandles newlines in values,
2105(
2106  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107    eval ac_val=\$$ac_var
2108    case $ac_val in #(
2109    *${as_nl}*)
2110      case $ac_var in #(
2111      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113      esac
2114      case $ac_var in #(
2115      _ | IFS | as_nl) ;; #(
2116      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117      *) { eval $ac_var=; unset $ac_var;} ;;
2118      esac ;;
2119    esac
2120  done
2121  (set) 2>&1 |
2122    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123    *${as_nl}ac_space=\ *)
2124      sed -n \
2125	"s/'\''/'\''\\\\'\'''\''/g;
2126	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127      ;; #(
2128    *)
2129      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2130      ;;
2131    esac |
2132    sort
2133)
2134    echo
2135
2136    cat <<\_ASBOX
2137## ----------------- ##
2138## Output variables. ##
2139## ----------------- ##
2140_ASBOX
2141    echo
2142    for ac_var in $ac_subst_vars
2143    do
2144      eval ac_val=\$$ac_var
2145      case $ac_val in
2146      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147      esac
2148      $as_echo "$ac_var='\''$ac_val'\''"
2149    done | sort
2150    echo
2151
2152    if test -n "$ac_subst_files"; then
2153      cat <<\_ASBOX
2154## ------------------- ##
2155## File substitutions. ##
2156## ------------------- ##
2157_ASBOX
2158      echo
2159      for ac_var in $ac_subst_files
2160      do
2161	eval ac_val=\$$ac_var
2162	case $ac_val in
2163	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164	esac
2165	$as_echo "$ac_var='\''$ac_val'\''"
2166      done | sort
2167      echo
2168    fi
2169
2170    if test -s confdefs.h; then
2171      cat <<\_ASBOX
2172## ----------- ##
2173## confdefs.h. ##
2174## ----------- ##
2175_ASBOX
2176      echo
2177      cat confdefs.h
2178      echo
2179    fi
2180    test "$ac_signal" != 0 &&
2181      $as_echo "$as_me: caught signal $ac_signal"
2182    $as_echo "$as_me: exit $exit_status"
2183  } >&5
2184  rm -f core *.core core.conftest.* &&
2185    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186    exit $exit_status
2187' 0
2188for ac_signal in 1 2 13 15; do
2189  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190done
2191ac_signal=0
2192
2193# confdefs.h avoids OS command line length limits that DEFS can exceed.
2194rm -f -r conftest* confdefs.h
2195
2196$as_echo "/* confdefs.h */" > confdefs.h
2197
2198# Predefined preprocessor variables.
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_NAME "$PACKAGE_NAME"
2202_ACEOF
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206_ACEOF
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_VERSION "$PACKAGE_VERSION"
2210_ACEOF
2211
2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_STRING "$PACKAGE_STRING"
2214_ACEOF
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_URL "$PACKAGE_URL"
2222_ACEOF
2223
2224
2225# Let the site file select an alternate cache file if it wants to.
2226# Prefer an explicitly selected file to automatically selected ones.
2227ac_site_file1=NONE
2228ac_site_file2=NONE
2229if test -n "$CONFIG_SITE"; then
2230  ac_site_file1=$CONFIG_SITE
2231elif test "x$prefix" != xNONE; then
2232  ac_site_file1=$prefix/share/config.site
2233  ac_site_file2=$prefix/etc/config.site
2234else
2235  ac_site_file1=$ac_default_prefix/share/config.site
2236  ac_site_file2=$ac_default_prefix/etc/config.site
2237fi
2238for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239do
2240  test "x$ac_site_file" = xNONE && continue
2241  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244    sed 's/^/| /' "$ac_site_file" >&5
2245    . "$ac_site_file"
2246  fi
2247done
2248
2249if test -r "$cache_file"; then
2250  # Some versions of bash will fail to source /dev/null (special files
2251  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2252  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2253    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254$as_echo "$as_me: loading cache $cache_file" >&6;}
2255    case $cache_file in
2256      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257      *)                      . "./$cache_file";;
2258    esac
2259  fi
2260else
2261  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262$as_echo "$as_me: creating cache $cache_file" >&6;}
2263  >$cache_file
2264fi
2265
2266# Check that the precious variables saved in the cache have kept the same
2267# value.
2268ac_cache_corrupted=false
2269for ac_var in $ac_precious_vars; do
2270  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2271  eval ac_new_set=\$ac_env_${ac_var}_set
2272  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2273  eval ac_new_val=\$ac_env_${ac_var}_value
2274  case $ac_old_set,$ac_new_set in
2275    set,)
2276      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2277$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2278      ac_cache_corrupted=: ;;
2279    ,set)
2280      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2281$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2282      ac_cache_corrupted=: ;;
2283    ,);;
2284    *)
2285      if test "x$ac_old_val" != "x$ac_new_val"; then
2286	# differences in whitespace do not lead to failure.
2287	ac_old_val_w=`echo x $ac_old_val`
2288	ac_new_val_w=`echo x $ac_new_val`
2289	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2290	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2291$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2292	  ac_cache_corrupted=:
2293	else
2294	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2295$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2296	  eval $ac_var=\$ac_old_val
2297	fi
2298	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2299$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2300	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2301$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2302      fi;;
2303  esac
2304  # Pass precious variables to config.status.
2305  if test "$ac_new_set" = set; then
2306    case $ac_new_val in
2307    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2308    *) ac_arg=$ac_var=$ac_new_val ;;
2309    esac
2310    case " $ac_configure_args " in
2311      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2312      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2313    esac
2314  fi
2315done
2316if $ac_cache_corrupted; then
2317  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2320$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2321  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2322fi
2323## -------------------- ##
2324## Main body of script. ##
2325## -------------------- ##
2326
2327ac_ext=c
2328ac_cpp='$CPP $CPPFLAGS'
2329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333
2334
2335
2336ac_config_headers="$ac_config_headers config.h"
2337
2338ac_aux_dir=
2339for ac_dir in . "$srcdir"/.; do
2340  for ac_t in install-sh install.sh shtool; do
2341    if test -f "$ac_dir/$ac_t"; then
2342      ac_aux_dir=$ac_dir
2343      ac_install_sh="$ac_aux_dir/$ac_t -c"
2344      break 2
2345    fi
2346  done
2347done
2348if test -z "$ac_aux_dir"; then
2349  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2350fi
2351
2352# These three variables are undocumented and unsupported,
2353# and are intended to be withdrawn in a future Autoconf release.
2354# They can cause serious problems if a builder's source tree is in a directory
2355# whose full name contains unusual characters.
2356ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2357ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2358ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2359
2360
2361
2362# Require xorg-macros: XORG_DEFAULT_OPTIONS
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374ac_ext=c
2375ac_cpp='$CPP $CPPFLAGS'
2376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379if test -n "$ac_tool_prefix"; then
2380  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2381set dummy ${ac_tool_prefix}gcc; ac_word=$2
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383$as_echo_n "checking for $ac_word... " >&6; }
2384if test "${ac_cv_prog_CC+set}" = set; then :
2385  $as_echo_n "(cached) " >&6
2386else
2387  if test -n "$CC"; then
2388  ac_cv_prog_CC="$CC" # Let the user override the test.
2389else
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393  IFS=$as_save_IFS
2394  test -z "$as_dir" && as_dir=.
2395    for ac_exec_ext in '' $ac_executable_extensions; do
2396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399    break 2
2400  fi
2401done
2402  done
2403IFS=$as_save_IFS
2404
2405fi
2406fi
2407CC=$ac_cv_prog_CC
2408if test -n "$CC"; then
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2410$as_echo "$CC" >&6; }
2411else
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413$as_echo "no" >&6; }
2414fi
2415
2416
2417fi
2418if test -z "$ac_cv_prog_CC"; then
2419  ac_ct_CC=$CC
2420  # Extract the first word of "gcc", so it can be a program name with args.
2421set dummy gcc; ac_word=$2
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423$as_echo_n "checking for $ac_word... " >&6; }
2424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2425  $as_echo_n "(cached) " >&6
2426else
2427  if test -n "$ac_ct_CC"; then
2428  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433  IFS=$as_save_IFS
2434  test -z "$as_dir" && as_dir=.
2435    for ac_exec_ext in '' $ac_executable_extensions; do
2436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437    ac_cv_prog_ac_ct_CC="gcc"
2438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439    break 2
2440  fi
2441done
2442  done
2443IFS=$as_save_IFS
2444
2445fi
2446fi
2447ac_ct_CC=$ac_cv_prog_ac_ct_CC
2448if test -n "$ac_ct_CC"; then
2449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2450$as_echo "$ac_ct_CC" >&6; }
2451else
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453$as_echo "no" >&6; }
2454fi
2455
2456  if test "x$ac_ct_CC" = x; then
2457    CC=""
2458  else
2459    case $cross_compiling:$ac_tool_warned in
2460yes:)
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2463ac_tool_warned=yes ;;
2464esac
2465    CC=$ac_ct_CC
2466  fi
2467else
2468  CC="$ac_cv_prog_CC"
2469fi
2470
2471if test -z "$CC"; then
2472          if test -n "$ac_tool_prefix"; then
2473    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2474set dummy ${ac_tool_prefix}cc; ac_word=$2
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476$as_echo_n "checking for $ac_word... " >&6; }
2477if test "${ac_cv_prog_CC+set}" = set; then :
2478  $as_echo_n "(cached) " >&6
2479else
2480  if test -n "$CC"; then
2481  ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486  IFS=$as_save_IFS
2487  test -z "$as_dir" && as_dir=.
2488    for ac_exec_ext in '' $ac_executable_extensions; do
2489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490    ac_cv_prog_CC="${ac_tool_prefix}cc"
2491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492    break 2
2493  fi
2494done
2495  done
2496IFS=$as_save_IFS
2497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2503$as_echo "$CC" >&6; }
2504else
2505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506$as_echo "no" >&6; }
2507fi
2508
2509
2510  fi
2511fi
2512if test -z "$CC"; then
2513  # Extract the first word of "cc", so it can be a program name with args.
2514set dummy cc; ac_word=$2
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if test "${ac_cv_prog_CC+set}" = set; then :
2518  $as_echo_n "(cached) " >&6
2519else
2520  if test -n "$CC"; then
2521  ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523  ac_prog_rejected=no
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529    for ac_exec_ext in '' $ac_executable_extensions; do
2530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2532       ac_prog_rejected=yes
2533       continue
2534     fi
2535    ac_cv_prog_CC="cc"
2536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537    break 2
2538  fi
2539done
2540  done
2541IFS=$as_save_IFS
2542
2543if test $ac_prog_rejected = yes; then
2544  # We found a bogon in the path, so make sure we never use it.
2545  set dummy $ac_cv_prog_CC
2546  shift
2547  if test $# != 0; then
2548    # We chose a different compiler from the bogus one.
2549    # However, it has the same basename, so the bogon will be chosen
2550    # first if we set CC to just the basename; use the full file name.
2551    shift
2552    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2553  fi
2554fi
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2560$as_echo "$CC" >&6; }
2561else
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563$as_echo "no" >&6; }
2564fi
2565
2566
2567fi
2568if test -z "$CC"; then
2569  if test -n "$ac_tool_prefix"; then
2570  for ac_prog in cl.exe
2571  do
2572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
2576if test "${ac_cv_prog_CC+set}" = set; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  if test -n "$CC"; then
2580  ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    for ac_exec_ext in '' $ac_executable_extensions; do
2588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591    break 2
2592  fi
2593done
2594  done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602$as_echo "$CC" >&6; }
2603else
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608
2609    test -n "$CC" && break
2610  done
2611fi
2612if test -z "$CC"; then
2613  ac_ct_CC=$CC
2614  for ac_prog in cl.exe
2615do
2616  # Extract the first word of "$ac_prog", so it can be a program name with args.
2617set dummy $ac_prog; ac_word=$2
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619$as_echo_n "checking for $ac_word... " >&6; }
2620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2621  $as_echo_n "(cached) " >&6
2622else
2623  if test -n "$ac_ct_CC"; then
2624  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    for ac_exec_ext in '' $ac_executable_extensions; do
2632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633    ac_cv_prog_ac_ct_CC="$ac_prog"
2634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635    break 2
2636  fi
2637done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642fi
2643ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644if test -n "$ac_ct_CC"; then
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2646$as_echo "$ac_ct_CC" >&6; }
2647else
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650fi
2651
2652
2653  test -n "$ac_ct_CC" && break
2654done
2655
2656  if test "x$ac_ct_CC" = x; then
2657    CC=""
2658  else
2659    case $cross_compiling:$ac_tool_warned in
2660yes:)
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2663ac_tool_warned=yes ;;
2664esac
2665    CC=$ac_ct_CC
2666  fi
2667fi
2668
2669fi
2670
2671
2672test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674as_fn_error "no acceptable C compiler found in \$PATH
2675See \`config.log' for more details." "$LINENO" 5; }
2676
2677# Provide some information about the compiler.
2678$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2679set X $ac_compile
2680ac_compiler=$2
2681for ac_option in --version -v -V -qversion; do
2682  { { ac_try="$ac_compiler $ac_option >&5"
2683case "(($ac_try" in
2684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685  *) ac_try_echo=$ac_try;;
2686esac
2687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688$as_echo "$ac_try_echo"; } >&5
2689  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2690  ac_status=$?
2691  if test -s conftest.err; then
2692    sed '10a\
2693... rest of stderr output deleted ...
2694         10q' conftest.err >conftest.er1
2695    cat conftest.er1 >&5
2696  fi
2697  rm -f conftest.er1 conftest.err
2698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699  test $ac_status = 0; }
2700done
2701
2702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703/* end confdefs.h.  */
2704
2705int
2706main ()
2707{
2708
2709  ;
2710  return 0;
2711}
2712_ACEOF
2713ac_clean_files_save=$ac_clean_files
2714ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2715# Try to create an executable without -o first, disregard a.out.
2716# It will help us diagnose broken compilers, and finding out an intuition
2717# of exeext.
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2719$as_echo_n "checking whether the C compiler works... " >&6; }
2720ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2721
2722# The possible output files:
2723ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2724
2725ac_rmfiles=
2726for ac_file in $ac_files
2727do
2728  case $ac_file in
2729    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2730    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2731  esac
2732done
2733rm -f $ac_rmfiles
2734
2735if { { ac_try="$ac_link_default"
2736case "(($ac_try" in
2737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738  *) ac_try_echo=$ac_try;;
2739esac
2740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741$as_echo "$ac_try_echo"; } >&5
2742  (eval "$ac_link_default") 2>&5
2743  ac_status=$?
2744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745  test $ac_status = 0; }; then :
2746  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2747# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2748# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2749# so that the user can short-circuit this test for compilers unknown to
2750# Autoconf.
2751for ac_file in $ac_files ''
2752do
2753  test -f "$ac_file" || continue
2754  case $ac_file in
2755    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2756	;;
2757    [ab].out )
2758	# We found the default executable, but exeext='' is most
2759	# certainly right.
2760	break;;
2761    *.* )
2762	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763	then :; else
2764	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765	fi
2766	# We set ac_cv_exeext here because the later test for it is not
2767	# safe: cross compilers may not add the suffix if given an `-o'
2768	# argument, so we may need to know it at that point already.
2769	# Even if this section looks crufty: it has the advantage of
2770	# actually working.
2771	break;;
2772    * )
2773	break;;
2774  esac
2775done
2776test "$ac_cv_exeext" = no && ac_cv_exeext=
2777
2778else
2779  ac_file=''
2780fi
2781if test -z "$ac_file"; then :
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783$as_echo "no" >&6; }
2784$as_echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789{ as_fn_set_status 77
2790as_fn_error "C compiler cannot create executables
2791See \`config.log' for more details." "$LINENO" 5; }; }
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2794$as_echo "yes" >&6; }
2795fi
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2797$as_echo_n "checking for C compiler default output file name... " >&6; }
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2799$as_echo "$ac_file" >&6; }
2800ac_exeext=$ac_cv_exeext
2801
2802rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2803ac_clean_files=$ac_clean_files_save
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2805$as_echo_n "checking for suffix of executables... " >&6; }
2806if { { ac_try="$ac_link"
2807case "(($ac_try" in
2808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809  *) ac_try_echo=$ac_try;;
2810esac
2811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812$as_echo "$ac_try_echo"; } >&5
2813  (eval "$ac_link") 2>&5
2814  ac_status=$?
2815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816  test $ac_status = 0; }; then :
2817  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2818# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2819# work properly (i.e., refer to `conftest.exe'), while it won't with
2820# `rm'.
2821for ac_file in conftest.exe conftest conftest.*; do
2822  test -f "$ac_file" || continue
2823  case $ac_file in
2824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2825    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826	  break;;
2827    * ) break;;
2828  esac
2829done
2830else
2831  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error "cannot compute suffix of executables: cannot compile and link
2834See \`config.log' for more details." "$LINENO" 5; }
2835fi
2836rm -f conftest conftest$ac_cv_exeext
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2838$as_echo "$ac_cv_exeext" >&6; }
2839
2840rm -f conftest.$ac_ext
2841EXEEXT=$ac_cv_exeext
2842ac_exeext=$EXEEXT
2843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h.  */
2845#include <stdio.h>
2846int
2847main ()
2848{
2849FILE *f = fopen ("conftest.out", "w");
2850 return ferror (f) || fclose (f) != 0;
2851
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856ac_clean_files="$ac_clean_files conftest.out"
2857# Check that the compiler produces executables we can run.  If not, either
2858# the compiler is broken, or we cross compile.
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2860$as_echo_n "checking whether we are cross compiling... " >&6; }
2861if test "$cross_compiling" != yes; then
2862  { { ac_try="$ac_link"
2863case "(($ac_try" in
2864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865  *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868$as_echo "$ac_try_echo"; } >&5
2869  (eval "$ac_link") 2>&5
2870  ac_status=$?
2871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872  test $ac_status = 0; }
2873  if { ac_try='./conftest$ac_cv_exeext'
2874  { { case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879$as_echo "$ac_try_echo"; } >&5
2880  (eval "$ac_try") 2>&5
2881  ac_status=$?
2882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883  test $ac_status = 0; }; }; then
2884    cross_compiling=no
2885  else
2886    if test "$cross_compiling" = maybe; then
2887	cross_compiling=yes
2888    else
2889	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891as_fn_error "cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details." "$LINENO" 5; }
2894    fi
2895  fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2898$as_echo "$cross_compiling" >&6; }
2899
2900rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2901ac_clean_files=$ac_clean_files_save
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2903$as_echo_n "checking for suffix of object files... " >&6; }
2904if test "${ac_cv_objext+set}" = set; then :
2905  $as_echo_n "(cached) " >&6
2906else
2907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.o conftest.obj
2919if { { ac_try="$ac_compile"
2920case "(($ac_try" in
2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922  *) ac_try_echo=$ac_try;;
2923esac
2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925$as_echo "$ac_try_echo"; } >&5
2926  (eval "$ac_compile") 2>&5
2927  ac_status=$?
2928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929  test $ac_status = 0; }; then :
2930  for ac_file in conftest.o conftest.obj conftest.*; do
2931  test -f "$ac_file" || continue;
2932  case $ac_file in
2933    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2934    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935       break;;
2936  esac
2937done
2938else
2939  $as_echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944as_fn_error "cannot compute suffix of object files: cannot compile
2945See \`config.log' for more details." "$LINENO" 5; }
2946fi
2947rm -f conftest.$ac_cv_objext conftest.$ac_ext
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2950$as_echo "$ac_cv_objext" >&6; }
2951OBJEXT=$ac_cv_objext
2952ac_objext=$OBJEXT
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2954$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2955if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964#ifndef __GNUC__
2965       choke me
2966#endif
2967
2968  ;
2969  return 0;
2970}
2971_ACEOF
2972if ac_fn_c_try_compile "$LINENO"; then :
2973  ac_compiler_gnu=yes
2974else
2975  ac_compiler_gnu=no
2976fi
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979
2980fi
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2982$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2983if test $ac_compiler_gnu = yes; then
2984  GCC=yes
2985else
2986  GCC=
2987fi
2988ac_test_CFLAGS=${CFLAGS+set}
2989ac_save_CFLAGS=$CFLAGS
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2991$as_echo_n "checking whether $CC accepts -g... " >&6; }
2992if test "${ac_cv_prog_cc_g+set}" = set; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  ac_save_c_werror_flag=$ac_c_werror_flag
2996   ac_c_werror_flag=yes
2997   ac_cv_prog_cc_g=no
2998   CFLAGS="-g"
2999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010if ac_fn_c_try_compile "$LINENO"; then :
3011  ac_cv_prog_cc_g=yes
3012else
3013  CFLAGS=""
3014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016
3017int
3018main ()
3019{
3020
3021  ;
3022  return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_compile "$LINENO"; then :
3026
3027else
3028  ac_c_werror_flag=$ac_save_c_werror_flag
3029	 CFLAGS="-g"
3030	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041if ac_fn_c_try_compile "$LINENO"; then :
3042  ac_cv_prog_cc_g=yes
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045fi
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049   ac_c_werror_flag=$ac_save_c_werror_flag
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3052$as_echo "$ac_cv_prog_cc_g" >&6; }
3053if test "$ac_test_CFLAGS" = set; then
3054  CFLAGS=$ac_save_CFLAGS
3055elif test $ac_cv_prog_cc_g = yes; then
3056  if test "$GCC" = yes; then
3057    CFLAGS="-g -O2"
3058  else
3059    CFLAGS="-g"
3060  fi
3061else
3062  if test "$GCC" = yes; then
3063    CFLAGS="-O2"
3064  else
3065    CFLAGS=
3066  fi
3067fi
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3069$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3070if test "${ac_cv_prog_cc_c89+set}" = set; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  ac_cv_prog_cc_c89=no
3074ac_save_CC=$CC
3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h.  */
3077#include <stdarg.h>
3078#include <stdio.h>
3079#include <sys/types.h>
3080#include <sys/stat.h>
3081/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3082struct buf { int x; };
3083FILE * (*rcsopen) (struct buf *, struct stat *, int);
3084static char *e (p, i)
3085     char **p;
3086     int i;
3087{
3088  return p[i];
3089}
3090static char *f (char * (*g) (char **, int), char **p, ...)
3091{
3092  char *s;
3093  va_list v;
3094  va_start (v,p);
3095  s = g (p, va_arg (v,int));
3096  va_end (v);
3097  return s;
3098}
3099
3100/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3101   function prototypes and stuff, but not '\xHH' hex character constants.
3102   These don't provoke an error unfortunately, instead are silently treated
3103   as 'x'.  The following induces an error, until -std is added to get
3104   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3105   array size at least.  It's necessary to write '\x00'==0 to get something
3106   that's true only with -std.  */
3107int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3108
3109/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3110   inside strings and character constants.  */
3111#define FOO(x) 'x'
3112int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3113
3114int test (int i, double x);
3115struct s1 {int (*f) (int a);};
3116struct s2 {int (*f) (double a);};
3117int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3118int argc;
3119char **argv;
3120int
3121main ()
3122{
3123return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3129	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3130do
3131  CC="$ac_save_CC $ac_arg"
3132  if ac_fn_c_try_compile "$LINENO"; then :
3133  ac_cv_prog_cc_c89=$ac_arg
3134fi
3135rm -f core conftest.err conftest.$ac_objext
3136  test "x$ac_cv_prog_cc_c89" != "xno" && break
3137done
3138rm -f conftest.$ac_ext
3139CC=$ac_save_CC
3140
3141fi
3142# AC_CACHE_VAL
3143case "x$ac_cv_prog_cc_c89" in
3144  x)
3145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3146$as_echo "none needed" >&6; } ;;
3147  xno)
3148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3149$as_echo "unsupported" >&6; } ;;
3150  *)
3151    CC="$CC $ac_cv_prog_cc_c89"
3152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3153$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3154esac
3155if test "x$ac_cv_prog_cc_c89" != xno; then :
3156
3157fi
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3172$as_echo_n "checking how to run the C preprocessor... " >&6; }
3173# On Suns, sometimes $CPP names a directory.
3174if test -n "$CPP" && test -d "$CPP"; then
3175  CPP=
3176fi
3177if test -z "$CPP"; then
3178  if test "${ac_cv_prog_CPP+set}" = set; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181      # Double quotes because CPP needs to be expanded
3182    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3183    do
3184      ac_preproc_ok=false
3185for ac_c_preproc_warn_flag in '' yes
3186do
3187  # Use a header file that comes with gcc, so configuring glibc
3188  # with a fresh cross-compiler works.
3189  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190  # <limits.h> exists even on freestanding compilers.
3191  # On the NeXT, cc -E runs the code through the compiler's parser,
3192  # not just through cpp. "Syntax error" is here to catch this case.
3193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h.  */
3195#ifdef __STDC__
3196# include <limits.h>
3197#else
3198# include <assert.h>
3199#endif
3200		     Syntax error
3201_ACEOF
3202if ac_fn_c_try_cpp "$LINENO"; then :
3203
3204else
3205  # Broken: fails on valid input.
3206continue
3207fi
3208rm -f conftest.err conftest.$ac_ext
3209
3210  # OK, works on sane cases.  Now check whether nonexistent headers
3211  # can be detected and how.
3212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214#include <ac_nonexistent.h>
3215_ACEOF
3216if ac_fn_c_try_cpp "$LINENO"; then :
3217  # Broken: success on invalid input.
3218continue
3219else
3220  # Passes both tests.
3221ac_preproc_ok=:
3222break
3223fi
3224rm -f conftest.err conftest.$ac_ext
3225
3226done
3227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228rm -f conftest.err conftest.$ac_ext
3229if $ac_preproc_ok; then :
3230  break
3231fi
3232
3233    done
3234    ac_cv_prog_CPP=$CPP
3235
3236fi
3237  CPP=$ac_cv_prog_CPP
3238else
3239  ac_cv_prog_CPP=$CPP
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3242$as_echo "$CPP" >&6; }
3243ac_preproc_ok=false
3244for ac_c_preproc_warn_flag in '' yes
3245do
3246  # Use a header file that comes with gcc, so configuring glibc
3247  # with a fresh cross-compiler works.
3248  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3249  # <limits.h> exists even on freestanding compilers.
3250  # On the NeXT, cc -E runs the code through the compiler's parser,
3251  # not just through cpp. "Syntax error" is here to catch this case.
3252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254#ifdef __STDC__
3255# include <limits.h>
3256#else
3257# include <assert.h>
3258#endif
3259		     Syntax error
3260_ACEOF
3261if ac_fn_c_try_cpp "$LINENO"; then :
3262
3263else
3264  # Broken: fails on valid input.
3265continue
3266fi
3267rm -f conftest.err conftest.$ac_ext
3268
3269  # OK, works on sane cases.  Now check whether nonexistent headers
3270  # can be detected and how.
3271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272/* end confdefs.h.  */
3273#include <ac_nonexistent.h>
3274_ACEOF
3275if ac_fn_c_try_cpp "$LINENO"; then :
3276  # Broken: success on invalid input.
3277continue
3278else
3279  # Passes both tests.
3280ac_preproc_ok=:
3281break
3282fi
3283rm -f conftest.err conftest.$ac_ext
3284
3285done
3286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287rm -f conftest.err conftest.$ac_ext
3288if $ac_preproc_ok; then :
3289
3290else
3291  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293as_fn_error "C preprocessor \"$CPP\" fails sanity check
3294See \`config.log' for more details." "$LINENO" 5; }
3295fi
3296
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302
3303
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3305$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3306if test "${ac_cv_path_GREP+set}" = set; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  if test -z "$GREP"; then
3310  ac_path_GREP_found=false
3311  # Loop through the user's path and test for each of PROGNAME-LIST
3312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3314do
3315  IFS=$as_save_IFS
3316  test -z "$as_dir" && as_dir=.
3317    for ac_prog in grep ggrep; do
3318    for ac_exec_ext in '' $ac_executable_extensions; do
3319      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3320      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3321# Check for GNU ac_path_GREP and select it if it is found.
3322  # Check for GNU $ac_path_GREP
3323case `"$ac_path_GREP" --version 2>&1` in
3324*GNU*)
3325  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3326*)
3327  ac_count=0
3328  $as_echo_n 0123456789 >"conftest.in"
3329  while :
3330  do
3331    cat "conftest.in" "conftest.in" >"conftest.tmp"
3332    mv "conftest.tmp" "conftest.in"
3333    cp "conftest.in" "conftest.nl"
3334    $as_echo 'GREP' >> "conftest.nl"
3335    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3336    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3337    as_fn_arith $ac_count + 1 && ac_count=$as_val
3338    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3339      # Best one so far, save it but keep looking for a better one
3340      ac_cv_path_GREP="$ac_path_GREP"
3341      ac_path_GREP_max=$ac_count
3342    fi
3343    # 10*(2^10) chars as input seems more than enough
3344    test $ac_count -gt 10 && break
3345  done
3346  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3347esac
3348
3349      $ac_path_GREP_found && break 3
3350    done
3351  done
3352  done
3353IFS=$as_save_IFS
3354  if test -z "$ac_cv_path_GREP"; then
3355    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3356  fi
3357else
3358  ac_cv_path_GREP=$GREP
3359fi
3360
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3363$as_echo "$ac_cv_path_GREP" >&6; }
3364 GREP="$ac_cv_path_GREP"
3365
3366
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3368$as_echo_n "checking for egrep... " >&6; }
3369if test "${ac_cv_path_EGREP+set}" = set; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3373   then ac_cv_path_EGREP="$GREP -E"
3374   else
3375     if test -z "$EGREP"; then
3376  ac_path_EGREP_found=false
3377  # Loop through the user's path and test for each of PROGNAME-LIST
3378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3380do
3381  IFS=$as_save_IFS
3382  test -z "$as_dir" && as_dir=.
3383    for ac_prog in egrep; do
3384    for ac_exec_ext in '' $ac_executable_extensions; do
3385      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3386      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3387# Check for GNU ac_path_EGREP and select it if it is found.
3388  # Check for GNU $ac_path_EGREP
3389case `"$ac_path_EGREP" --version 2>&1` in
3390*GNU*)
3391  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3392*)
3393  ac_count=0
3394  $as_echo_n 0123456789 >"conftest.in"
3395  while :
3396  do
3397    cat "conftest.in" "conftest.in" >"conftest.tmp"
3398    mv "conftest.tmp" "conftest.in"
3399    cp "conftest.in" "conftest.nl"
3400    $as_echo 'EGREP' >> "conftest.nl"
3401    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3402    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3403    as_fn_arith $ac_count + 1 && ac_count=$as_val
3404    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3405      # Best one so far, save it but keep looking for a better one
3406      ac_cv_path_EGREP="$ac_path_EGREP"
3407      ac_path_EGREP_max=$ac_count
3408    fi
3409    # 10*(2^10) chars as input seems more than enough
3410    test $ac_count -gt 10 && break
3411  done
3412  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3413esac
3414
3415      $ac_path_EGREP_found && break 3
3416    done
3417  done
3418  done
3419IFS=$as_save_IFS
3420  if test -z "$ac_cv_path_EGREP"; then
3421    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3422  fi
3423else
3424  ac_cv_path_EGREP=$EGREP
3425fi
3426
3427   fi
3428fi
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3430$as_echo "$ac_cv_path_EGREP" >&6; }
3431 EGREP="$ac_cv_path_EGREP"
3432
3433
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3435$as_echo_n "checking for ANSI C header files... " >&6; }
3436if test "${ac_cv_header_stdc+set}" = set; then :
3437  $as_echo_n "(cached) " >&6
3438else
3439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h.  */
3441#include <stdlib.h>
3442#include <stdarg.h>
3443#include <string.h>
3444#include <float.h>
3445
3446int
3447main ()
3448{
3449
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454if ac_fn_c_try_compile "$LINENO"; then :
3455  ac_cv_header_stdc=yes
3456else
3457  ac_cv_header_stdc=no
3458fi
3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460
3461if test $ac_cv_header_stdc = yes; then
3462  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465#include <string.h>
3466
3467_ACEOF
3468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469  $EGREP "memchr" >/dev/null 2>&1; then :
3470
3471else
3472  ac_cv_header_stdc=no
3473fi
3474rm -f conftest*
3475
3476fi
3477
3478if test $ac_cv_header_stdc = yes; then
3479  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482#include <stdlib.h>
3483
3484_ACEOF
3485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486  $EGREP "free" >/dev/null 2>&1; then :
3487
3488else
3489  ac_cv_header_stdc=no
3490fi
3491rm -f conftest*
3492
3493fi
3494
3495if test $ac_cv_header_stdc = yes; then
3496  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3497  if test "$cross_compiling" = yes; then :
3498  :
3499else
3500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502#include <ctype.h>
3503#include <stdlib.h>
3504#if ((' ' & 0x0FF) == 0x020)
3505# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3506# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3507#else
3508# define ISLOWER(c) \
3509		   (('a' <= (c) && (c) <= 'i') \
3510		     || ('j' <= (c) && (c) <= 'r') \
3511		     || ('s' <= (c) && (c) <= 'z'))
3512# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3513#endif
3514
3515#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3516int
3517main ()
3518{
3519  int i;
3520  for (i = 0; i < 256; i++)
3521    if (XOR (islower (i), ISLOWER (i))
3522	|| toupper (i) != TOUPPER (i))
3523      return 2;
3524  return 0;
3525}
3526_ACEOF
3527if ac_fn_c_try_run "$LINENO"; then :
3528
3529else
3530  ac_cv_header_stdc=no
3531fi
3532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3533  conftest.$ac_objext conftest.beam conftest.$ac_ext
3534fi
3535
3536fi
3537fi
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3539$as_echo "$ac_cv_header_stdc" >&6; }
3540if test $ac_cv_header_stdc = yes; then
3541
3542$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3543
3544fi
3545
3546# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3547for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3548		  inttypes.h stdint.h unistd.h
3549do :
3550  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3551ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3552"
3553eval as_val=\$$as_ac_Header
3554   if test "x$as_val" = x""yes; then :
3555  cat >>confdefs.h <<_ACEOF
3556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3557_ACEOF
3558
3559fi
3560
3561done
3562
3563
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3565$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3566if test "${ac_cv_prog_cc_c99+set}" = set; then :
3567  $as_echo_n "(cached) " >&6
3568else
3569  ac_cv_prog_cc_c99=no
3570ac_save_CC=$CC
3571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573#include <stdarg.h>
3574#include <stdbool.h>
3575#include <stdlib.h>
3576#include <wchar.h>
3577#include <stdio.h>
3578
3579// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3580#define debug(...) fprintf (stderr, __VA_ARGS__)
3581#define showlist(...) puts (#__VA_ARGS__)
3582#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3583static void
3584test_varargs_macros (void)
3585{
3586  int x = 1234;
3587  int y = 5678;
3588  debug ("Flag");
3589  debug ("X = %d\n", x);
3590  showlist (The first, second, and third items.);
3591  report (x>y, "x is %d but y is %d", x, y);
3592}
3593
3594// Check long long types.
3595#define BIG64 18446744073709551615ull
3596#define BIG32 4294967295ul
3597#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3598#if !BIG_OK
3599  your preprocessor is broken;
3600#endif
3601#if BIG_OK
3602#else
3603  your preprocessor is broken;
3604#endif
3605static long long int bignum = -9223372036854775807LL;
3606static unsigned long long int ubignum = BIG64;
3607
3608struct incomplete_array
3609{
3610  int datasize;
3611  double data[];
3612};
3613
3614struct named_init {
3615  int number;
3616  const wchar_t *name;
3617  double average;
3618};
3619
3620typedef const char *ccp;
3621
3622static inline int
3623test_restrict (ccp restrict text)
3624{
3625  // See if C++-style comments work.
3626  // Iterate through items via the restricted pointer.
3627  // Also check for declarations in for loops.
3628  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3629    continue;
3630  return 0;
3631}
3632
3633// Check varargs and va_copy.
3634static void
3635test_varargs (const char *format, ...)
3636{
3637  va_list args;
3638  va_start (args, format);
3639  va_list args_copy;
3640  va_copy (args_copy, args);
3641
3642  const char *str;
3643  int number;
3644  float fnumber;
3645
3646  while (*format)
3647    {
3648      switch (*format++)
3649	{
3650	case 's': // string
3651	  str = va_arg (args_copy, const char *);
3652	  break;
3653	case 'd': // int
3654	  number = va_arg (args_copy, int);
3655	  break;
3656	case 'f': // float
3657	  fnumber = va_arg (args_copy, double);
3658	  break;
3659	default:
3660	  break;
3661	}
3662    }
3663  va_end (args_copy);
3664  va_end (args);
3665}
3666
3667int
3668main ()
3669{
3670
3671  // Check bool.
3672  _Bool success = false;
3673
3674  // Check restrict.
3675  if (test_restrict ("String literal") == 0)
3676    success = true;
3677  char *restrict newvar = "Another string";
3678
3679  // Check varargs.
3680  test_varargs ("s, d' f .", "string", 65, 34.234);
3681  test_varargs_macros ();
3682
3683  // Check flexible array members.
3684  struct incomplete_array *ia =
3685    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3686  ia->datasize = 10;
3687  for (int i = 0; i < ia->datasize; ++i)
3688    ia->data[i] = i * 1.234;
3689
3690  // Check named initializers.
3691  struct named_init ni = {
3692    .number = 34,
3693    .name = L"Test wide string",
3694    .average = 543.34343,
3695  };
3696
3697  ni.number = 58;
3698
3699  int dynamic_array[ni.number];
3700  dynamic_array[ni.number - 1] = 543;
3701
3702  // work around unused variable warnings
3703  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3704	  || dynamic_array[ni.number - 1] != 543);
3705
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3711do
3712  CC="$ac_save_CC $ac_arg"
3713  if ac_fn_c_try_compile "$LINENO"; then :
3714  ac_cv_prog_cc_c99=$ac_arg
3715fi
3716rm -f core conftest.err conftest.$ac_objext
3717  test "x$ac_cv_prog_cc_c99" != "xno" && break
3718done
3719rm -f conftest.$ac_ext
3720CC=$ac_save_CC
3721
3722fi
3723# AC_CACHE_VAL
3724case "x$ac_cv_prog_cc_c99" in
3725  x)
3726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727$as_echo "none needed" >&6; } ;;
3728  xno)
3729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730$as_echo "unsupported" >&6; } ;;
3731  *)
3732    CC="$CC $ac_cv_prog_cc_c99"
3733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3734$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3735esac
3736if test "x$ac_cv_prog_cc_c99" != xno; then :
3737
3738fi
3739
3740
3741
3742
3743if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3744	if test -n "$ac_tool_prefix"; then
3745  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3746set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748$as_echo_n "checking for $ac_word... " >&6; }
3749if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  case $PKG_CONFIG in
3753  [\\/]* | ?:[\\/]*)
3754  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3755  ;;
3756  *)
3757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760  IFS=$as_save_IFS
3761  test -z "$as_dir" && as_dir=.
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769  done
3770IFS=$as_save_IFS
3771
3772  ;;
3773esac
3774fi
3775PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3776if test -n "$PKG_CONFIG"; then
3777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3778$as_echo "$PKG_CONFIG" >&6; }
3779else
3780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781$as_echo "no" >&6; }
3782fi
3783
3784
3785fi
3786if test -z "$ac_cv_path_PKG_CONFIG"; then
3787  ac_pt_PKG_CONFIG=$PKG_CONFIG
3788  # Extract the first word of "pkg-config", so it can be a program name with args.
3789set dummy pkg-config; ac_word=$2
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791$as_echo_n "checking for $ac_word... " >&6; }
3792if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
3793  $as_echo_n "(cached) " >&6
3794else
3795  case $ac_pt_PKG_CONFIG in
3796  [\\/]* | ?:[\\/]*)
3797  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3798  ;;
3799  *)
3800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803  IFS=$as_save_IFS
3804  test -z "$as_dir" && as_dir=.
3805    for ac_exec_ext in '' $ac_executable_extensions; do
3806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809    break 2
3810  fi
3811done
3812  done
3813IFS=$as_save_IFS
3814
3815  ;;
3816esac
3817fi
3818ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3819if test -n "$ac_pt_PKG_CONFIG"; then
3820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3821$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3822else
3823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827  if test "x$ac_pt_PKG_CONFIG" = x; then
3828    PKG_CONFIG=""
3829  else
3830    case $cross_compiling:$ac_tool_warned in
3831yes:)
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834ac_tool_warned=yes ;;
3835esac
3836    PKG_CONFIG=$ac_pt_PKG_CONFIG
3837  fi
3838else
3839  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3840fi
3841
3842fi
3843if test -n "$PKG_CONFIG"; then
3844	_pkg_min_version=0.9.0
3845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3846$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3847	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849$as_echo "yes" >&6; }
3850	else
3851		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
3853		PKG_CONFIG=""
3854	fi
3855
3856fi
3857# Make sure we can run config.sub.
3858$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3859  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3860
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3862$as_echo_n "checking build system type... " >&6; }
3863if test "${ac_cv_build+set}" = set; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  ac_build_alias=$build_alias
3867test "x$ac_build_alias" = x &&
3868  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3869test "x$ac_build_alias" = x &&
3870  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3871ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3872  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3873
3874fi
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3876$as_echo "$ac_cv_build" >&6; }
3877case $ac_cv_build in
3878*-*-*) ;;
3879*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3880esac
3881build=$ac_cv_build
3882ac_save_IFS=$IFS; IFS='-'
3883set x $ac_cv_build
3884shift
3885build_cpu=$1
3886build_vendor=$2
3887shift; shift
3888# Remember, the first character of IFS is used to create $*,
3889# except with old shells:
3890build_os=$*
3891IFS=$ac_save_IFS
3892case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3893
3894
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3896$as_echo_n "checking host system type... " >&6; }
3897if test "${ac_cv_host+set}" = set; then :
3898  $as_echo_n "(cached) " >&6
3899else
3900  if test "x$host_alias" = x; then
3901  ac_cv_host=$ac_cv_build
3902else
3903  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3904    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3905fi
3906
3907fi
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3909$as_echo "$ac_cv_host" >&6; }
3910case $ac_cv_host in
3911*-*-*) ;;
3912*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3913esac
3914host=$ac_cv_host
3915ac_save_IFS=$IFS; IFS='-'
3916set x $ac_cv_host
3917shift
3918host_cpu=$1
3919host_vendor=$2
3920shift; shift
3921# Remember, the first character of IFS is used to create $*,
3922# except with old shells:
3923host_os=$*
3924IFS=$ac_save_IFS
3925case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3926
3927
3928
3929
3930
3931if  test "x$GCC" = xyes ; then
3932    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
3933-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
3934-Wbad-function-cast"
3935    case `$CC -dumpversion` in
3936    3.4.* | 4.*)
3937	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
3938	;;
3939    esac
3940else
3941    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3942if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
3943  SUNCC="yes"
3944else
3945  SUNCC="no"
3946fi
3947
3948    if test "x$SUNCC" = "xyes"; then
3949	CWARNFLAGS="-v"
3950    fi
3951fi
3952
3953# Check whether --enable-silent-rules was given.
3954if test "${enable_silent_rules+set}" = set; then :
3955  enableval=$enable_silent_rules;
3956fi
3957
3958case $enable_silent_rules in
3959yes) AM_DEFAULT_VERBOSITY=0;;
3960no)  AM_DEFAULT_VERBOSITY=1;;
3961*)   AM_DEFAULT_VERBOSITY=0;;
3962esac
3963AM_BACKSLASH='\'
3964
3965
3966
3967
3968
3969
3970
3971# Check whether --enable-strict-compilation was given.
3972if test "${enable_strict_compilation+set}" = set; then :
3973  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
3974else
3975  STRICT_COMPILE=no
3976fi
3977
3978if test "x$STRICT_COMPILE" = "xyes"; then
3979	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3980if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
3981  SUNCC="yes"
3982else
3983  SUNCC="no"
3984fi
3985
3986	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3987if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
3988  INTELCC="yes"
3989else
3990  INTELCC="no"
3991fi
3992
3993	if test "x$GCC" = xyes ; then
3994		STRICT_CFLAGS="-pedantic -Werror"
3995	elif test "x$SUNCC" = "xyes"; then
3996		STRICT_CFLAGS="-errwarn"
3997    elif test "x$INTELCC" = "xyes"; then
3998		STRICT_CFLAGS="-Werror"
3999	fi
4000fi
4001CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4002
4003
4004
4005
4006# Check whether --with-release-version was given.
4007if test "${with_release_version+set}" = set; then :
4008  withval=$with_release_version; RELEASE_VERSION="$withval"
4009else
4010  RELEASE_VERSION=""
4011fi
4012
4013	if test "x$RELEASE_VERSION" != "x"; then
4014		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4015		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4016		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
4017$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4018	fi
4019
4020cat >>confdefs.h <<_ACEOF
4021#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4022_ACEOF
4023
4024	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4025	if test "x$PVM" = "x"; then
4026		PVM="0"
4027	fi
4028
4029cat >>confdefs.h <<_ACEOF
4030#define PACKAGE_VERSION_MINOR $PVM
4031_ACEOF
4032
4033	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4034	if test "x$PVP" = "x"; then
4035		PVP="0"
4036	fi
4037
4038cat >>confdefs.h <<_ACEOF
4039#define PACKAGE_VERSION_PATCHLEVEL $PVP
4040_ACEOF
4041
4042
4043
4044CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4045mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4046|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4047echo 'git directory not found: installing possibly empty changelog.' >&2)"
4048
4049
4050
4051
4052macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4053INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4054mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4055|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4056echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4057
4058
4059
4060
4061
4062if test x$APP_MAN_SUFFIX = x    ; then
4063    APP_MAN_SUFFIX=1
4064fi
4065if test x$APP_MAN_DIR = x    ; then
4066    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4067fi
4068
4069if test x$LIB_MAN_SUFFIX = x    ; then
4070    LIB_MAN_SUFFIX=3
4071fi
4072if test x$LIB_MAN_DIR = x    ; then
4073    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4074fi
4075
4076if test x$FILE_MAN_SUFFIX = x    ; then
4077    case $host_os in
4078	solaris*)	FILE_MAN_SUFFIX=4  ;;
4079	*)		FILE_MAN_SUFFIX=5  ;;
4080    esac
4081fi
4082if test x$FILE_MAN_DIR = x    ; then
4083    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4084fi
4085
4086if test x$MISC_MAN_SUFFIX = x    ; then
4087    case $host_os in
4088	solaris*)	MISC_MAN_SUFFIX=5  ;;
4089	*)		MISC_MAN_SUFFIX=7  ;;
4090    esac
4091fi
4092if test x$MISC_MAN_DIR = x    ; then
4093    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4094fi
4095
4096if test x$DRIVER_MAN_SUFFIX = x    ; then
4097    case $host_os in
4098	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4099	*)		DRIVER_MAN_SUFFIX=4  ;;
4100    esac
4101fi
4102if test x$DRIVER_MAN_DIR = x    ; then
4103    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4104fi
4105
4106if test x$ADMIN_MAN_SUFFIX = x    ; then
4107    case $host_os in
4108	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4109	*)		ADMIN_MAN_SUFFIX=8  ;;
4110    esac
4111fi
4112if test x$ADMIN_MAN_DIR = x    ; then
4113    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4114fi
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132am__api_version='1.11'
4133
4134# Find a good install program.  We prefer a C program (faster),
4135# so one script is as good as another.  But avoid the broken or
4136# incompatible versions:
4137# SysV /etc/install, /usr/sbin/install
4138# SunOS /usr/etc/install
4139# IRIX /sbin/install
4140# AIX /bin/install
4141# AmigaOS /C/install, which installs bootblocks on floppy discs
4142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4143# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4145# OS/2's system install, which has a completely different semantic
4146# ./install, which can be erroneously created by make from ./install.sh.
4147# Reject install programs that cannot install multiple files.
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4149$as_echo_n "checking for a BSD-compatible install... " >&6; }
4150if test -z "$INSTALL"; then
4151if test "${ac_cv_path_install+set}" = set; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155for as_dir in $PATH
4156do
4157  IFS=$as_save_IFS
4158  test -z "$as_dir" && as_dir=.
4159    # Account for people who put trailing slashes in PATH elements.
4160case $as_dir/ in #((
4161  ./ | .// | /[cC]/* | \
4162  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4163  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4164  /usr/ucb/* ) ;;
4165  *)
4166    # OSF1 and SCO ODT 3.0 have their own names for install.
4167    # Don't use installbsd from OSF since it installs stuff as root
4168    # by default.
4169    for ac_prog in ginstall scoinst install; do
4170      for ac_exec_ext in '' $ac_executable_extensions; do
4171	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4172	  if test $ac_prog = install &&
4173	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4174	    # AIX install.  It has an incompatible calling convention.
4175	    :
4176	  elif test $ac_prog = install &&
4177	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4178	    # program-specific install script used by HP pwplus--don't use.
4179	    :
4180	  else
4181	    rm -rf conftest.one conftest.two conftest.dir
4182	    echo one > conftest.one
4183	    echo two > conftest.two
4184	    mkdir conftest.dir
4185	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4186	      test -s conftest.one && test -s conftest.two &&
4187	      test -s conftest.dir/conftest.one &&
4188	      test -s conftest.dir/conftest.two
4189	    then
4190	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4191	      break 3
4192	    fi
4193	  fi
4194	fi
4195      done
4196    done
4197    ;;
4198esac
4199
4200  done
4201IFS=$as_save_IFS
4202
4203rm -rf conftest.one conftest.two conftest.dir
4204
4205fi
4206  if test "${ac_cv_path_install+set}" = set; then
4207    INSTALL=$ac_cv_path_install
4208  else
4209    # As a last resort, use the slow shell script.  Don't cache a
4210    # value for INSTALL within a source directory, because that will
4211    # break other packages using the cache if that directory is
4212    # removed, or if the value is a relative name.
4213    INSTALL=$ac_install_sh
4214  fi
4215fi
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4217$as_echo "$INSTALL" >&6; }
4218
4219# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4220# It thinks the first close brace ends the variable substitution.
4221test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4222
4223test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4224
4225test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4228$as_echo_n "checking whether build environment is sane... " >&6; }
4229# Just in case
4230sleep 1
4231echo timestamp > conftest.file
4232# Reject unsafe characters in $srcdir or the absolute working directory
4233# name.  Accept space and tab only in the latter.
4234am_lf='
4235'
4236case `pwd` in
4237  *[\\\"\#\$\&\'\`$am_lf]*)
4238    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4239esac
4240case $srcdir in
4241  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4242    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4243esac
4244
4245# Do `set' in a subshell so we don't clobber the current shell's
4246# arguments.  Must try -L first in case configure is actually a
4247# symlink; some systems play weird games with the mod time of symlinks
4248# (eg FreeBSD returns the mod time of the symlink's containing
4249# directory).
4250if (
4251   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4252   if test "$*" = "X"; then
4253      # -L didn't work.
4254      set X `ls -t "$srcdir/configure" conftest.file`
4255   fi
4256   rm -f conftest.file
4257   if test "$*" != "X $srcdir/configure conftest.file" \
4258      && test "$*" != "X conftest.file $srcdir/configure"; then
4259
4260      # If neither matched, then we have a broken ls.  This can happen
4261      # if, for instance, CONFIG_SHELL is bash and it inherits a
4262      # broken ls alias from the environment.  This has actually
4263      # happened.  Such a system could not be considered "sane".
4264      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4265alias in your environment" "$LINENO" 5
4266   fi
4267
4268   test "$2" = conftest.file
4269   )
4270then
4271   # Ok.
4272   :
4273else
4274   as_fn_error "newly created file is older than distributed files!
4275Check your system clock" "$LINENO" 5
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4278$as_echo "yes" >&6; }
4279test "$program_prefix" != NONE &&
4280  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4281# Use a double $ so make ignores it.
4282test "$program_suffix" != NONE &&
4283  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4284# Double any \ or $.
4285# By default was `s,x,x', remove it if useless.
4286ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4287program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4288
4289# expand $ac_aux_dir to an absolute path
4290am_aux_dir=`cd $ac_aux_dir && pwd`
4291
4292if test x"${MISSING+set}" != xset; then
4293  case $am_aux_dir in
4294  *\ * | *\	*)
4295    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4296  *)
4297    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4298  esac
4299fi
4300# Use eval to expand $SHELL
4301if eval "$MISSING --run true"; then
4302  am_missing_run="$MISSING --run "
4303else
4304  am_missing_run=
4305  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4306$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4307fi
4308
4309if test x"${install_sh}" != xset; then
4310  case $am_aux_dir in
4311  *\ * | *\	*)
4312    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4313  *)
4314    install_sh="\${SHELL} $am_aux_dir/install-sh"
4315  esac
4316fi
4317
4318# Installed binaries are usually stripped using `strip' when the user
4319# run `make install-strip'.  However `strip' might not be the right
4320# tool to use in cross-compilation environments, therefore Automake
4321# will honor the `STRIP' environment variable to overrule this program.
4322if test "$cross_compiling" != no; then
4323  if test -n "$ac_tool_prefix"; then
4324  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4325set dummy ${ac_tool_prefix}strip; ac_word=$2
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327$as_echo_n "checking for $ac_word... " >&6; }
4328if test "${ac_cv_prog_STRIP+set}" = set; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if test -n "$STRIP"; then
4332  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4333else
4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337  IFS=$as_save_IFS
4338  test -z "$as_dir" && as_dir=.
4339    for ac_exec_ext in '' $ac_executable_extensions; do
4340  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343    break 2
4344  fi
4345done
4346  done
4347IFS=$as_save_IFS
4348
4349fi
4350fi
4351STRIP=$ac_cv_prog_STRIP
4352if test -n "$STRIP"; then
4353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4354$as_echo "$STRIP" >&6; }
4355else
4356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357$as_echo "no" >&6; }
4358fi
4359
4360
4361fi
4362if test -z "$ac_cv_prog_STRIP"; then
4363  ac_ct_STRIP=$STRIP
4364  # Extract the first word of "strip", so it can be a program name with args.
4365set dummy strip; ac_word=$2
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367$as_echo_n "checking for $ac_word... " >&6; }
4368if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  if test -n "$ac_ct_STRIP"; then
4372  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377  IFS=$as_save_IFS
4378  test -z "$as_dir" && as_dir=.
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381    ac_cv_prog_ac_ct_STRIP="strip"
4382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389fi
4390fi
4391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4392if test -n "$ac_ct_STRIP"; then
4393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4394$as_echo "$ac_ct_STRIP" >&6; }
4395else
4396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397$as_echo "no" >&6; }
4398fi
4399
4400  if test "x$ac_ct_STRIP" = x; then
4401    STRIP=":"
4402  else
4403    case $cross_compiling:$ac_tool_warned in
4404yes:)
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4407ac_tool_warned=yes ;;
4408esac
4409    STRIP=$ac_ct_STRIP
4410  fi
4411else
4412  STRIP="$ac_cv_prog_STRIP"
4413fi
4414
4415fi
4416INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4417
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4419$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4420if test -z "$MKDIR_P"; then
4421  if test "${ac_cv_path_mkdir+set}" = set; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4426do
4427  IFS=$as_save_IFS
4428  test -z "$as_dir" && as_dir=.
4429    for ac_prog in mkdir gmkdir; do
4430	 for ac_exec_ext in '' $ac_executable_extensions; do
4431	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4432	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4433	     'mkdir (GNU coreutils) '* | \
4434	     'mkdir (coreutils) '* | \
4435	     'mkdir (fileutils) '4.1*)
4436	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4437	       break 3;;
4438	   esac
4439	 done
4440       done
4441  done
4442IFS=$as_save_IFS
4443
4444fi
4445
4446  test -d ./--version && rmdir ./--version
4447  if test "${ac_cv_path_mkdir+set}" = set; then
4448    MKDIR_P="$ac_cv_path_mkdir -p"
4449  else
4450    # As a last resort, use the slow shell script.  Don't cache a
4451    # value for MKDIR_P within a source directory, because that will
4452    # break other packages using the cache if that directory is
4453    # removed, or if the value is a relative name.
4454    MKDIR_P="$ac_install_sh -d"
4455  fi
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4458$as_echo "$MKDIR_P" >&6; }
4459
4460mkdir_p="$MKDIR_P"
4461case $mkdir_p in
4462  [\\/$]* | ?:[\\/]*) ;;
4463  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4464esac
4465
4466for ac_prog in gawk mawk nawk awk
4467do
4468  # Extract the first word of "$ac_prog", so it can be a program name with args.
4469set dummy $ac_prog; ac_word=$2
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471$as_echo_n "checking for $ac_word... " >&6; }
4472if test "${ac_cv_prog_AWK+set}" = set; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  if test -n "$AWK"; then
4476  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481  IFS=$as_save_IFS
4482  test -z "$as_dir" && as_dir=.
4483    for ac_exec_ext in '' $ac_executable_extensions; do
4484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485    ac_cv_prog_AWK="$ac_prog"
4486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487    break 2
4488  fi
4489done
4490  done
4491IFS=$as_save_IFS
4492
4493fi
4494fi
4495AWK=$ac_cv_prog_AWK
4496if test -n "$AWK"; then
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4498$as_echo "$AWK" >&6; }
4499else
4500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501$as_echo "no" >&6; }
4502fi
4503
4504
4505  test -n "$AWK" && break
4506done
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4509$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4510set x ${MAKE-make}
4511ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4512if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  cat >conftest.make <<\_ACEOF
4516SHELL = /bin/sh
4517all:
4518	@echo '@@@%%%=$(MAKE)=@@@%%%'
4519_ACEOF
4520# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4521case `${MAKE-make} -f conftest.make 2>/dev/null` in
4522  *@@@%%%=?*=@@@%%%*)
4523    eval ac_cv_prog_make_${ac_make}_set=yes;;
4524  *)
4525    eval ac_cv_prog_make_${ac_make}_set=no;;
4526esac
4527rm -f conftest.make
4528fi
4529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531$as_echo "yes" >&6; }
4532  SET_MAKE=
4533else
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536  SET_MAKE="MAKE=${MAKE-make}"
4537fi
4538
4539rm -rf .tst 2>/dev/null
4540mkdir .tst 2>/dev/null
4541if test -d .tst; then
4542  am__leading_dot=.
4543else
4544  am__leading_dot=_
4545fi
4546rmdir .tst 2>/dev/null
4547
4548DEPDIR="${am__leading_dot}deps"
4549
4550ac_config_commands="$ac_config_commands depfiles"
4551
4552
4553am_make=${MAKE-make}
4554cat > confinc << 'END'
4555am__doit:
4556	@echo this is the am__doit target
4557.PHONY: am__doit
4558END
4559# If we don't find an include directive, just comment out the code.
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4561$as_echo_n "checking for style of include used by $am_make... " >&6; }
4562am__include="#"
4563am__quote=
4564_am_result=none
4565# First try GNU make style include.
4566echo "include confinc" > confmf
4567# Ignore all kinds of additional output from `make'.
4568case `$am_make -s -f confmf 2> /dev/null` in #(
4569*the\ am__doit\ target*)
4570  am__include=include
4571  am__quote=
4572  _am_result=GNU
4573  ;;
4574esac
4575# Now try BSD make style include.
4576if test "$am__include" = "#"; then
4577   echo '.include "confinc"' > confmf
4578   case `$am_make -s -f confmf 2> /dev/null` in #(
4579   *the\ am__doit\ target*)
4580     am__include=.include
4581     am__quote="\""
4582     _am_result=BSD
4583     ;;
4584   esac
4585fi
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4589$as_echo "$_am_result" >&6; }
4590rm -f confinc confmf
4591
4592# Check whether --enable-dependency-tracking was given.
4593if test "${enable_dependency_tracking+set}" = set; then :
4594  enableval=$enable_dependency_tracking;
4595fi
4596
4597if test "x$enable_dependency_tracking" != xno; then
4598  am_depcomp="$ac_aux_dir/depcomp"
4599  AMDEPBACKSLASH='\'
4600fi
4601 if test "x$enable_dependency_tracking" != xno; then
4602  AMDEP_TRUE=
4603  AMDEP_FALSE='#'
4604else
4605  AMDEP_TRUE='#'
4606  AMDEP_FALSE=
4607fi
4608
4609
4610if test "`cd $srcdir && pwd`" != "`pwd`"; then
4611  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4612  # is not polluted with repeated "-I."
4613  am__isrc=' -I$(srcdir)'
4614  # test to see if srcdir already configured
4615  if test -f $srcdir/config.status; then
4616    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4617  fi
4618fi
4619
4620# test whether we have cygpath
4621if test -z "$CYGPATH_W"; then
4622  if (cygpath --version) >/dev/null 2>/dev/null; then
4623    CYGPATH_W='cygpath -w'
4624  else
4625    CYGPATH_W=echo
4626  fi
4627fi
4628
4629
4630# Define the identity of the package.
4631 PACKAGE='xf86-video-geode'
4632 VERSION='2.11.8'
4633
4634
4635cat >>confdefs.h <<_ACEOF
4636#define PACKAGE "$PACKAGE"
4637_ACEOF
4638
4639
4640cat >>confdefs.h <<_ACEOF
4641#define VERSION "$VERSION"
4642_ACEOF
4643
4644# Some tools Automake needs.
4645
4646ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4647
4648
4649AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4650
4651
4652AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4653
4654
4655AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4656
4657
4658MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4659
4660# We need awk for the "check" target.  The system "awk" is bad on
4661# some platforms.
4662# Always define AMTAR for backward compatibility.
4663
4664AMTAR=${AMTAR-"${am_missing_run}tar"}
4665
4666am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4667
4668
4669
4670
4671depcc="$CC"   am_compiler_list=
4672
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4674$as_echo_n "checking dependency style of $depcc... " >&6; }
4675if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4679  # We make a subdir and do the tests there.  Otherwise we can end up
4680  # making bogus files that we don't know about and never remove.  For
4681  # instance it was reported that on HP-UX the gcc test will end up
4682  # making a dummy file named `D' -- because `-MD' means `put the output
4683  # in D'.
4684  mkdir conftest.dir
4685  # Copy depcomp to subdir because otherwise we won't find it if we're
4686  # using a relative directory.
4687  cp "$am_depcomp" conftest.dir
4688  cd conftest.dir
4689  # We will build objects and dependencies in a subdirectory because
4690  # it helps to detect inapplicable dependency modes.  For instance
4691  # both Tru64's cc and ICC support -MD to output dependencies as a
4692  # side effect of compilation, but ICC will put the dependencies in
4693  # the current directory while Tru64 will put them in the object
4694  # directory.
4695  mkdir sub
4696
4697  am_cv_CC_dependencies_compiler_type=none
4698  if test "$am_compiler_list" = ""; then
4699     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4700  fi
4701  am__universal=false
4702  case " $depcc " in #(
4703     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4704     esac
4705
4706  for depmode in $am_compiler_list; do
4707    # Setup a source with many dependencies, because some compilers
4708    # like to wrap large dependency lists on column 80 (with \), and
4709    # we should not choose a depcomp mode which is confused by this.
4710    #
4711    # We need to recreate these files for each test, as the compiler may
4712    # overwrite some of them when testing with obscure command lines.
4713    # This happens at least with the AIX C compiler.
4714    : > sub/conftest.c
4715    for i in 1 2 3 4 5 6; do
4716      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4717      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4718      # Solaris 8's {/usr,}/bin/sh.
4719      touch sub/conftst$i.h
4720    done
4721    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4722
4723    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4724    # mode.  It turns out that the SunPro C++ compiler does not properly
4725    # handle `-M -o', and we need to detect this.  Also, some Intel
4726    # versions had trouble with output in subdirs
4727    am__obj=sub/conftest.${OBJEXT-o}
4728    am__minus_obj="-o $am__obj"
4729    case $depmode in
4730    gcc)
4731      # This depmode causes a compiler race in universal mode.
4732      test "$am__universal" = false || continue
4733      ;;
4734    nosideeffect)
4735      # after this tag, mechanisms are not by side-effect, so they'll
4736      # only be used when explicitly requested
4737      if test "x$enable_dependency_tracking" = xyes; then
4738	continue
4739      else
4740	break
4741      fi
4742      ;;
4743    msvisualcpp | msvcmsys)
4744      # This compiler won't grok `-c -o', but also, the minuso test has
4745      # not run yet.  These depmodes are late enough in the game, and
4746      # so weak that their functioning should not be impacted.
4747      am__obj=conftest.${OBJEXT-o}
4748      am__minus_obj=
4749      ;;
4750    none) break ;;
4751    esac
4752    if depmode=$depmode \
4753       source=sub/conftest.c object=$am__obj \
4754       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4755       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4756         >/dev/null 2>conftest.err &&
4757       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4758       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4759       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4760       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4761      # icc doesn't choke on unknown options, it will just issue warnings
4762      # or remarks (even with -Werror).  So we grep stderr for any message
4763      # that says an option was ignored or not supported.
4764      # When given -MP, icc 7.0 and 7.1 complain thusly:
4765      #   icc: Command line warning: ignoring option '-M'; no argument required
4766      # The diagnosis changed in icc 8.0:
4767      #   icc: Command line remark: option '-MP' not supported
4768      if (grep 'ignoring option' conftest.err ||
4769          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4770        am_cv_CC_dependencies_compiler_type=$depmode
4771        break
4772      fi
4773    fi
4774  done
4775
4776  cd ..
4777  rm -rf conftest.dir
4778else
4779  am_cv_CC_dependencies_compiler_type=none
4780fi
4781
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4784$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4785CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4786
4787 if
4788  test "x$enable_dependency_tracking" != xno \
4789  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4790  am__fastdepCC_TRUE=
4791  am__fastdepCC_FALSE='#'
4792else
4793  am__fastdepCC_TRUE='#'
4794  am__fastdepCC_FALSE=
4795fi
4796
4797
4798
4799
4800
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4802$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4803    # Check whether --enable-maintainer-mode was given.
4804if test "${enable_maintainer_mode+set}" = set; then :
4805  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4806else
4807  USE_MAINTAINER_MODE=no
4808fi
4809
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4811$as_echo "$USE_MAINTAINER_MODE" >&6; }
4812   if test $USE_MAINTAINER_MODE = yes; then
4813  MAINTAINER_MODE_TRUE=
4814  MAINTAINER_MODE_FALSE='#'
4815else
4816  MAINTAINER_MODE_TRUE='#'
4817  MAINTAINER_MODE_FALSE=
4818fi
4819
4820  MAINT=$MAINTAINER_MODE_TRUE
4821
4822
4823
4824# Checks for programs.
4825# Check whether --enable-static was given.
4826if test "${enable_static+set}" = set; then :
4827  enableval=$enable_static; p=${PACKAGE-default}
4828    case $enableval in
4829    yes) enable_static=yes ;;
4830    no) enable_static=no ;;
4831    *)
4832     enable_static=no
4833      # Look at the argument we got.  We use all the common list separators.
4834      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4835      for pkg in $enableval; do
4836	IFS="$lt_save_ifs"
4837	if test "X$pkg" = "X$p"; then
4838	  enable_static=yes
4839	fi
4840      done
4841      IFS="$lt_save_ifs"
4842      ;;
4843    esac
4844else
4845  enable_static=no
4846fi
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856case `pwd` in
4857  *\ * | *\	*)
4858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4859$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4860esac
4861
4862
4863
4864macro_version='2.2.6b'
4865macro_revision='1.3017'
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879ltmain="$ac_aux_dir/ltmain.sh"
4880
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4882$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4883if test "${ac_cv_path_SED+set}" = set; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4887     for ac_i in 1 2 3 4 5 6 7; do
4888       ac_script="$ac_script$as_nl$ac_script"
4889     done
4890     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4891     { ac_script=; unset ac_script;}
4892     if test -z "$SED"; then
4893  ac_path_SED_found=false
4894  # Loop through the user's path and test for each of PROGNAME-LIST
4895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900    for ac_prog in sed gsed; do
4901    for ac_exec_ext in '' $ac_executable_extensions; do
4902      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4903      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4904# Check for GNU ac_path_SED and select it if it is found.
4905  # Check for GNU $ac_path_SED
4906case `"$ac_path_SED" --version 2>&1` in
4907*GNU*)
4908  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4909*)
4910  ac_count=0
4911  $as_echo_n 0123456789 >"conftest.in"
4912  while :
4913  do
4914    cat "conftest.in" "conftest.in" >"conftest.tmp"
4915    mv "conftest.tmp" "conftest.in"
4916    cp "conftest.in" "conftest.nl"
4917    $as_echo '' >> "conftest.nl"
4918    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4919    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4920    as_fn_arith $ac_count + 1 && ac_count=$as_val
4921    if test $ac_count -gt ${ac_path_SED_max-0}; then
4922      # Best one so far, save it but keep looking for a better one
4923      ac_cv_path_SED="$ac_path_SED"
4924      ac_path_SED_max=$ac_count
4925    fi
4926    # 10*(2^10) chars as input seems more than enough
4927    test $ac_count -gt 10 && break
4928  done
4929  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4930esac
4931
4932      $ac_path_SED_found && break 3
4933    done
4934  done
4935  done
4936IFS=$as_save_IFS
4937  if test -z "$ac_cv_path_SED"; then
4938    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4939  fi
4940else
4941  ac_cv_path_SED=$SED
4942fi
4943
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4946$as_echo "$ac_cv_path_SED" >&6; }
4947 SED="$ac_cv_path_SED"
4948  rm -f conftest.sed
4949
4950test -z "$SED" && SED=sed
4951Xsed="$SED -e 1s/^X//"
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4964$as_echo_n "checking for fgrep... " >&6; }
4965if test "${ac_cv_path_FGREP+set}" = set; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4969   then ac_cv_path_FGREP="$GREP -F"
4970   else
4971     if test -z "$FGREP"; then
4972  ac_path_FGREP_found=false
4973  # Loop through the user's path and test for each of PROGNAME-LIST
4974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4976do
4977  IFS=$as_save_IFS
4978  test -z "$as_dir" && as_dir=.
4979    for ac_prog in fgrep; do
4980    for ac_exec_ext in '' $ac_executable_extensions; do
4981      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4982      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4983# Check for GNU ac_path_FGREP and select it if it is found.
4984  # Check for GNU $ac_path_FGREP
4985case `"$ac_path_FGREP" --version 2>&1` in
4986*GNU*)
4987  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4988*)
4989  ac_count=0
4990  $as_echo_n 0123456789 >"conftest.in"
4991  while :
4992  do
4993    cat "conftest.in" "conftest.in" >"conftest.tmp"
4994    mv "conftest.tmp" "conftest.in"
4995    cp "conftest.in" "conftest.nl"
4996    $as_echo 'FGREP' >> "conftest.nl"
4997    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4998    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4999    as_fn_arith $ac_count + 1 && ac_count=$as_val
5000    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5001      # Best one so far, save it but keep looking for a better one
5002      ac_cv_path_FGREP="$ac_path_FGREP"
5003      ac_path_FGREP_max=$ac_count
5004    fi
5005    # 10*(2^10) chars as input seems more than enough
5006    test $ac_count -gt 10 && break
5007  done
5008  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5009esac
5010
5011      $ac_path_FGREP_found && break 3
5012    done
5013  done
5014  done
5015IFS=$as_save_IFS
5016  if test -z "$ac_cv_path_FGREP"; then
5017    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5018  fi
5019else
5020  ac_cv_path_FGREP=$FGREP
5021fi
5022
5023   fi
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5026$as_echo "$ac_cv_path_FGREP" >&6; }
5027 FGREP="$ac_cv_path_FGREP"
5028
5029
5030test -z "$GREP" && GREP=grep
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050# Check whether --with-gnu-ld was given.
5051if test "${with_gnu_ld+set}" = set; then :
5052  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5053else
5054  with_gnu_ld=no
5055fi
5056
5057ac_prog=ld
5058if test "$GCC" = yes; then
5059  # Check if gcc -print-prog-name=ld gives a path.
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5061$as_echo_n "checking for ld used by $CC... " >&6; }
5062  case $host in
5063  *-*-mingw*)
5064    # gcc leaves a trailing carriage return which upsets mingw
5065    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5066  *)
5067    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5068  esac
5069  case $ac_prog in
5070    # Accept absolute paths.
5071    [\\/]* | ?:[\\/]*)
5072      re_direlt='/[^/][^/]*/\.\./'
5073      # Canonicalize the pathname of ld
5074      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5075      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5076	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5077      done
5078      test -z "$LD" && LD="$ac_prog"
5079      ;;
5080  "")
5081    # If it fails, then pretend we aren't using GCC.
5082    ac_prog=ld
5083    ;;
5084  *)
5085    # If it is relative, then search for the first ld in PATH.
5086    with_gnu_ld=unknown
5087    ;;
5088  esac
5089elif test "$with_gnu_ld" = yes; then
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5091$as_echo_n "checking for GNU ld... " >&6; }
5092else
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5094$as_echo_n "checking for non-GNU ld... " >&6; }
5095fi
5096if test "${lt_cv_path_LD+set}" = set; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  if test -z "$LD"; then
5100  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5101  for ac_dir in $PATH; do
5102    IFS="$lt_save_ifs"
5103    test -z "$ac_dir" && ac_dir=.
5104    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5105      lt_cv_path_LD="$ac_dir/$ac_prog"
5106      # Check to see if the program is GNU ld.  I'd rather use --version,
5107      # but apparently some variants of GNU ld only accept -v.
5108      # Break only if it was the GNU/non-GNU ld that we prefer.
5109      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5110      *GNU* | *'with BFD'*)
5111	test "$with_gnu_ld" != no && break
5112	;;
5113      *)
5114	test "$with_gnu_ld" != yes && break
5115	;;
5116      esac
5117    fi
5118  done
5119  IFS="$lt_save_ifs"
5120else
5121  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5122fi
5123fi
5124
5125LD="$lt_cv_path_LD"
5126if test -n "$LD"; then
5127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5128$as_echo "$LD" >&6; }
5129else
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
5132fi
5133test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5135$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5136if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5140case `$LD -v 2>&1 </dev/null` in
5141*GNU* | *'with BFD'*)
5142  lt_cv_prog_gnu_ld=yes
5143  ;;
5144*)
5145  lt_cv_prog_gnu_ld=no
5146  ;;
5147esac
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5150$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5151with_gnu_ld=$lt_cv_prog_gnu_ld
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5162$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5163if test "${lt_cv_path_NM+set}" = set; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  if test -n "$NM"; then
5167  # Let the user override the test.
5168  lt_cv_path_NM="$NM"
5169else
5170  lt_nm_to_check="${ac_tool_prefix}nm"
5171  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5172    lt_nm_to_check="$lt_nm_to_check nm"
5173  fi
5174  for lt_tmp_nm in $lt_nm_to_check; do
5175    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5176    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5177      IFS="$lt_save_ifs"
5178      test -z "$ac_dir" && ac_dir=.
5179      tmp_nm="$ac_dir/$lt_tmp_nm"
5180      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5181	# Check to see if the nm accepts a BSD-compat flag.
5182	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5183	#   nm: unknown option "B" ignored
5184	# Tru64's nm complains that /dev/null is an invalid object file
5185	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5186	*/dev/null* | *'Invalid file or object type'*)
5187	  lt_cv_path_NM="$tmp_nm -B"
5188	  break
5189	  ;;
5190	*)
5191	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5192	  */dev/null*)
5193	    lt_cv_path_NM="$tmp_nm -p"
5194	    break
5195	    ;;
5196	  *)
5197	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5198	    continue # so that we can try to find one that supports BSD flags
5199	    ;;
5200	  esac
5201	  ;;
5202	esac
5203      fi
5204    done
5205    IFS="$lt_save_ifs"
5206  done
5207  : ${lt_cv_path_NM=no}
5208fi
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5211$as_echo "$lt_cv_path_NM" >&6; }
5212if test "$lt_cv_path_NM" != "no"; then
5213  NM="$lt_cv_path_NM"
5214else
5215  # Didn't find any BSD compatible name lister, look for dumpbin.
5216  if test -n "$ac_tool_prefix"; then
5217  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5218  do
5219    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222$as_echo_n "checking for $ac_word... " >&6; }
5223if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226  if test -n "$DUMPBIN"; then
5227  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5228else
5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH
5231do
5232  IFS=$as_save_IFS
5233  test -z "$as_dir" && as_dir=.
5234    for ac_exec_ext in '' $ac_executable_extensions; do
5235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238    break 2
5239  fi
5240done
5241  done
5242IFS=$as_save_IFS
5243
5244fi
5245fi
5246DUMPBIN=$ac_cv_prog_DUMPBIN
5247if test -n "$DUMPBIN"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5249$as_echo "$DUMPBIN" >&6; }
5250else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }
5253fi
5254
5255
5256    test -n "$DUMPBIN" && break
5257  done
5258fi
5259if test -z "$DUMPBIN"; then
5260  ac_ct_DUMPBIN=$DUMPBIN
5261  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5262do
5263  # Extract the first word of "$ac_prog", so it can be a program name with args.
5264set dummy $ac_prog; ac_word=$2
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266$as_echo_n "checking for $ac_word... " >&6; }
5267if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  if test -n "$ac_ct_DUMPBIN"; then
5271  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276  IFS=$as_save_IFS
5277  test -z "$as_dir" && as_dir=.
5278    for ac_exec_ext in '' $ac_executable_extensions; do
5279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282    break 2
5283  fi
5284done
5285  done
5286IFS=$as_save_IFS
5287
5288fi
5289fi
5290ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5291if test -n "$ac_ct_DUMPBIN"; then
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5293$as_echo "$ac_ct_DUMPBIN" >&6; }
5294else
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
5297fi
5298
5299
5300  test -n "$ac_ct_DUMPBIN" && break
5301done
5302
5303  if test "x$ac_ct_DUMPBIN" = x; then
5304    DUMPBIN=":"
5305  else
5306    case $cross_compiling:$ac_tool_warned in
5307yes:)
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310ac_tool_warned=yes ;;
5311esac
5312    DUMPBIN=$ac_ct_DUMPBIN
5313  fi
5314fi
5315
5316
5317  if test "$DUMPBIN" != ":"; then
5318    NM="$DUMPBIN"
5319  fi
5320fi
5321test -z "$NM" && NM=nm
5322
5323
5324
5325
5326
5327
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5329$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5330if test "${lt_cv_nm_interface+set}" = set; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  lt_cv_nm_interface="BSD nm"
5334  echo "int some_variable = 0;" > conftest.$ac_ext
5335  (eval echo "\"\$as_me:5335: $ac_compile\"" >&5)
5336  (eval "$ac_compile" 2>conftest.err)
5337  cat conftest.err >&5
5338  (eval echo "\"\$as_me:5338: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5339  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5340  cat conftest.err >&5
5341  (eval echo "\"\$as_me:5341: output\"" >&5)
5342  cat conftest.out >&5
5343  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5344    lt_cv_nm_interface="MS dumpbin"
5345  fi
5346  rm -f conftest*
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5349$as_echo "$lt_cv_nm_interface" >&6; }
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5352$as_echo_n "checking whether ln -s works... " >&6; }
5353LN_S=$as_ln_s
5354if test "$LN_S" = "ln -s"; then
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356$as_echo "yes" >&6; }
5357else
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5359$as_echo "no, using $LN_S" >&6; }
5360fi
5361
5362# find the maximum length of command line arguments
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5364$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5365if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368    i=0
5369  teststring="ABCD"
5370
5371  case $build_os in
5372  msdosdjgpp*)
5373    # On DJGPP, this test can blow up pretty badly due to problems in libc
5374    # (any single argument exceeding 2000 bytes causes a buffer overrun
5375    # during glob expansion).  Even if it were fixed, the result of this
5376    # check would be larger than it should be.
5377    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5378    ;;
5379
5380  gnu*)
5381    # Under GNU Hurd, this test is not required because there is
5382    # no limit to the length of command line arguments.
5383    # Libtool will interpret -1 as no limit whatsoever
5384    lt_cv_sys_max_cmd_len=-1;
5385    ;;
5386
5387  cygwin* | mingw* | cegcc*)
5388    # On Win9x/ME, this test blows up -- it succeeds, but takes
5389    # about 5 minutes as the teststring grows exponentially.
5390    # Worse, since 9x/ME are not pre-emptively multitasking,
5391    # you end up with a "frozen" computer, even though with patience
5392    # the test eventually succeeds (with a max line length of 256k).
5393    # Instead, let's just punt: use the minimum linelength reported by
5394    # all of the supported platforms: 8192 (on NT/2K/XP).
5395    lt_cv_sys_max_cmd_len=8192;
5396    ;;
5397
5398  amigaos*)
5399    # On AmigaOS with pdksh, this test takes hours, literally.
5400    # So we just punt and use a minimum line length of 8192.
5401    lt_cv_sys_max_cmd_len=8192;
5402    ;;
5403
5404  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5405    # This has been around since 386BSD, at least.  Likely further.
5406    if test -x /sbin/sysctl; then
5407      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5408    elif test -x /usr/sbin/sysctl; then
5409      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5410    else
5411      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5412    fi
5413    # And add a safety zone
5414    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5415    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5416    ;;
5417
5418  interix*)
5419    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5420    lt_cv_sys_max_cmd_len=196608
5421    ;;
5422
5423  osf*)
5424    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5425    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5426    # nice to cause kernel panics so lets avoid the loop below.
5427    # First set a reasonable default.
5428    lt_cv_sys_max_cmd_len=16384
5429    #
5430    if test -x /sbin/sysconfig; then
5431      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5432        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5433      esac
5434    fi
5435    ;;
5436  sco3.2v5*)
5437    lt_cv_sys_max_cmd_len=102400
5438    ;;
5439  sysv5* | sco5v6* | sysv4.2uw2*)
5440    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5441    if test -n "$kargmax"; then
5442      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5443    else
5444      lt_cv_sys_max_cmd_len=32768
5445    fi
5446    ;;
5447  *)
5448    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5449    if test -n "$lt_cv_sys_max_cmd_len"; then
5450      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5451      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5452    else
5453      # Make teststring a little bigger before we do anything with it.
5454      # a 1K string should be a reasonable start.
5455      for i in 1 2 3 4 5 6 7 8 ; do
5456        teststring=$teststring$teststring
5457      done
5458      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5459      # If test is not a shell built-in, we'll probably end up computing a
5460      # maximum length that is only half of the actual maximum length, but
5461      # we can't tell.
5462      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5463	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5464	      test $i != 17 # 1/2 MB should be enough
5465      do
5466        i=`expr $i + 1`
5467        teststring=$teststring$teststring
5468      done
5469      # Only check the string length outside the loop.
5470      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5471      teststring=
5472      # Add a significant safety factor because C++ compilers can tack on
5473      # massive amounts of additional arguments before passing them to the
5474      # linker.  It appears as though 1/2 is a usable value.
5475      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5476    fi
5477    ;;
5478  esac
5479
5480fi
5481
5482if test -n $lt_cv_sys_max_cmd_len ; then
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5484$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5485else
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5487$as_echo "none" >&6; }
5488fi
5489max_cmd_len=$lt_cv_sys_max_cmd_len
5490
5491
5492
5493
5494
5495
5496: ${CP="cp -f"}
5497: ${MV="mv -f"}
5498: ${RM="rm -f"}
5499
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5501$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5502# Try some XSI features
5503xsi_shell=no
5504( _lt_dummy="a/b/c"
5505  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5506      = c,a/b,, \
5507    && eval 'test $(( 1 + 1 )) -eq 2 \
5508    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5509  && xsi_shell=yes
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5511$as_echo "$xsi_shell" >&6; }
5512
5513
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5515$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5516lt_shell_append=no
5517( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5518    >/dev/null 2>&1 \
5519  && lt_shell_append=yes
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5521$as_echo "$lt_shell_append" >&6; }
5522
5523
5524if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5525  lt_unset=unset
5526else
5527  lt_unset=false
5528fi
5529
5530
5531
5532
5533
5534# test EBCDIC or ASCII
5535case `echo X|tr X '\101'` in
5536 A) # ASCII based system
5537    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5538  lt_SP2NL='tr \040 \012'
5539  lt_NL2SP='tr \015\012 \040\040'
5540  ;;
5541 *) # EBCDIC based system
5542  lt_SP2NL='tr \100 \n'
5543  lt_NL2SP='tr \r\n \100\100'
5544  ;;
5545esac
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5556$as_echo_n "checking for $LD option to reload object files... " >&6; }
5557if test "${lt_cv_ld_reload_flag+set}" = set; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  lt_cv_ld_reload_flag='-r'
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5563$as_echo "$lt_cv_ld_reload_flag" >&6; }
5564reload_flag=$lt_cv_ld_reload_flag
5565case $reload_flag in
5566"" | " "*) ;;
5567*) reload_flag=" $reload_flag" ;;
5568esac
5569reload_cmds='$LD$reload_flag -o $output$reload_objs'
5570case $host_os in
5571  darwin*)
5572    if test "$GCC" = yes; then
5573      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5574    else
5575      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5576    fi
5577    ;;
5578esac
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588if test -n "$ac_tool_prefix"; then
5589  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5590set dummy ${ac_tool_prefix}objdump; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  if test -n "$OBJDUMP"; then
5597  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602  IFS=$as_save_IFS
5603  test -z "$as_dir" && as_dir=.
5604    for ac_exec_ext in '' $ac_executable_extensions; do
5605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608    break 2
5609  fi
5610done
5611  done
5612IFS=$as_save_IFS
5613
5614fi
5615fi
5616OBJDUMP=$ac_cv_prog_OBJDUMP
5617if test -n "$OBJDUMP"; then
5618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5619$as_echo "$OBJDUMP" >&6; }
5620else
5621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622$as_echo "no" >&6; }
5623fi
5624
5625
5626fi
5627if test -z "$ac_cv_prog_OBJDUMP"; then
5628  ac_ct_OBJDUMP=$OBJDUMP
5629  # Extract the first word of "objdump", so it can be a program name with args.
5630set dummy objdump; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  if test -n "$ac_ct_OBJDUMP"; then
5637  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651  done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5657if test -n "$ac_ct_OBJDUMP"; then
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5659$as_echo "$ac_ct_OBJDUMP" >&6; }
5660else
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665  if test "x$ac_ct_OBJDUMP" = x; then
5666    OBJDUMP="false"
5667  else
5668    case $cross_compiling:$ac_tool_warned in
5669yes:)
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672ac_tool_warned=yes ;;
5673esac
5674    OBJDUMP=$ac_ct_OBJDUMP
5675  fi
5676else
5677  OBJDUMP="$ac_cv_prog_OBJDUMP"
5678fi
5679
5680test -z "$OBJDUMP" && OBJDUMP=objdump
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5691$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5692if test "${lt_cv_deplibs_check_method+set}" = set; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  lt_cv_file_magic_cmd='$MAGIC_CMD'
5696lt_cv_file_magic_test_file=
5697lt_cv_deplibs_check_method='unknown'
5698# Need to set the preceding variable on all platforms that support
5699# interlibrary dependencies.
5700# 'none' -- dependencies not supported.
5701# `unknown' -- same as none, but documents that we really don't know.
5702# 'pass_all' -- all dependencies passed with no checks.
5703# 'test_compile' -- check by making test program.
5704# 'file_magic [[regex]]' -- check by looking for files in library path
5705# which responds to the $file_magic_cmd with a given extended regex.
5706# If you have `file' or equivalent on your system and you're not sure
5707# whether `pass_all' will *always* work, you probably want this one.
5708
5709case $host_os in
5710aix[4-9]*)
5711  lt_cv_deplibs_check_method=pass_all
5712  ;;
5713
5714beos*)
5715  lt_cv_deplibs_check_method=pass_all
5716  ;;
5717
5718bsdi[45]*)
5719  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5720  lt_cv_file_magic_cmd='/usr/bin/file -L'
5721  lt_cv_file_magic_test_file=/shlib/libc.so
5722  ;;
5723
5724cygwin*)
5725  # func_win32_libid is a shell function defined in ltmain.sh
5726  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727  lt_cv_file_magic_cmd='func_win32_libid'
5728  ;;
5729
5730mingw* | pw32*)
5731  # Base MSYS/MinGW do not provide the 'file' command needed by
5732  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5733  # unless we find 'file', for example because we are cross-compiling.
5734  if ( file / ) >/dev/null 2>&1; then
5735    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5736    lt_cv_file_magic_cmd='func_win32_libid'
5737  else
5738    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5739    lt_cv_file_magic_cmd='$OBJDUMP -f'
5740  fi
5741  ;;
5742
5743cegcc)
5744  # use the weaker test based on 'objdump'. See mingw*.
5745  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5746  lt_cv_file_magic_cmd='$OBJDUMP -f'
5747  ;;
5748
5749darwin* | rhapsody*)
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753freebsd* | dragonfly*)
5754  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5755    case $host_cpu in
5756    i*86 )
5757      # Not sure whether the presence of OpenBSD here was a mistake.
5758      # Let's accept both of them until this is cleared up.
5759      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5760      lt_cv_file_magic_cmd=/usr/bin/file
5761      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5762      ;;
5763    esac
5764  else
5765    lt_cv_deplibs_check_method=pass_all
5766  fi
5767  ;;
5768
5769gnu*)
5770  lt_cv_deplibs_check_method=pass_all
5771  ;;
5772
5773hpux10.20* | hpux11*)
5774  lt_cv_file_magic_cmd=/usr/bin/file
5775  case $host_cpu in
5776  ia64*)
5777    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5778    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5779    ;;
5780  hppa*64*)
5781    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5782    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5783    ;;
5784  *)
5785    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5786    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5787    ;;
5788  esac
5789  ;;
5790
5791interix[3-9]*)
5792  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5793  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5794  ;;
5795
5796irix5* | irix6* | nonstopux*)
5797  case $LD in
5798  *-32|*"-32 ") libmagic=32-bit;;
5799  *-n32|*"-n32 ") libmagic=N32;;
5800  *-64|*"-64 ") libmagic=64-bit;;
5801  *) libmagic=never-match;;
5802  esac
5803  lt_cv_deplibs_check_method=pass_all
5804  ;;
5805
5806# This must be Linux ELF.
5807linux* | k*bsd*-gnu | kopensolaris*-gnu)
5808  lt_cv_deplibs_check_method=pass_all
5809  ;;
5810
5811netbsd* | netbsdelf*-gnu)
5812  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5814  else
5815    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5816  fi
5817  ;;
5818
5819newos6*)
5820  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5821  lt_cv_file_magic_cmd=/usr/bin/file
5822  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5823  ;;
5824
5825*nto* | *qnx*)
5826  lt_cv_deplibs_check_method=pass_all
5827  ;;
5828
5829openbsd*)
5830  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5831    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5832  else
5833    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5834  fi
5835  ;;
5836
5837osf3* | osf4* | osf5*)
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841rdos*)
5842  lt_cv_deplibs_check_method=pass_all
5843  ;;
5844
5845solaris*)
5846  lt_cv_deplibs_check_method=pass_all
5847  ;;
5848
5849sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5850  lt_cv_deplibs_check_method=pass_all
5851  ;;
5852
5853sysv4 | sysv4.3*)
5854  case $host_vendor in
5855  motorola)
5856    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]'
5857    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5858    ;;
5859  ncr)
5860    lt_cv_deplibs_check_method=pass_all
5861    ;;
5862  sequent)
5863    lt_cv_file_magic_cmd='/bin/file'
5864    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5865    ;;
5866  sni)
5867    lt_cv_file_magic_cmd='/bin/file'
5868    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5869    lt_cv_file_magic_test_file=/lib/libc.so
5870    ;;
5871  siemens)
5872    lt_cv_deplibs_check_method=pass_all
5873    ;;
5874  pc)
5875    lt_cv_deplibs_check_method=pass_all
5876    ;;
5877  esac
5878  ;;
5879
5880tpf*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883esac
5884
5885fi
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5887$as_echo "$lt_cv_deplibs_check_method" >&6; }
5888file_magic_cmd=$lt_cv_file_magic_cmd
5889deplibs_check_method=$lt_cv_deplibs_check_method
5890test -z "$deplibs_check_method" && deplibs_check_method=unknown
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903if test -n "$ac_tool_prefix"; then
5904  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5905set dummy ${ac_tool_prefix}ar; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
5908if test "${ac_cv_prog_AR+set}" = set; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911  if test -n "$AR"; then
5912  ac_cv_prog_AR="$AR" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917  IFS=$as_save_IFS
5918  test -z "$as_dir" && as_dir=.
5919    for ac_exec_ext in '' $ac_executable_extensions; do
5920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921    ac_cv_prog_AR="${ac_tool_prefix}ar"
5922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923    break 2
5924  fi
5925done
5926  done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931AR=$ac_cv_prog_AR
5932if test -n "$AR"; then
5933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5934$as_echo "$AR" >&6; }
5935else
5936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940
5941fi
5942if test -z "$ac_cv_prog_AR"; then
5943  ac_ct_AR=$AR
5944  # Extract the first word of "ar", so it can be a program name with args.
5945set dummy ar; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$ac_ct_AR"; then
5952  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  test -z "$as_dir" && as_dir=.
5959    for ac_exec_ext in '' $ac_executable_extensions; do
5960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961    ac_cv_prog_ac_ct_AR="ar"
5962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963    break 2
5964  fi
5965done
5966  done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971ac_ct_AR=$ac_cv_prog_ac_ct_AR
5972if test -n "$ac_ct_AR"; then
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5974$as_echo "$ac_ct_AR" >&6; }
5975else
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980  if test "x$ac_ct_AR" = x; then
5981    AR="false"
5982  else
5983    case $cross_compiling:$ac_tool_warned in
5984yes:)
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987ac_tool_warned=yes ;;
5988esac
5989    AR=$ac_ct_AR
5990  fi
5991else
5992  AR="$ac_cv_prog_AR"
5993fi
5994
5995test -z "$AR" && AR=ar
5996test -z "$AR_FLAGS" && AR_FLAGS=cru
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008if test -n "$ac_tool_prefix"; then
6009  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6010set dummy ${ac_tool_prefix}strip; ac_word=$2
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
6013if test "${ac_cv_prog_STRIP+set}" = set; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  if test -n "$STRIP"; then
6017  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022  IFS=$as_save_IFS
6023  test -z "$as_dir" && as_dir=.
6024    for ac_exec_ext in '' $ac_executable_extensions; do
6025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031  done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036STRIP=$ac_cv_prog_STRIP
6037if test -n "$STRIP"; then
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6039$as_echo "$STRIP" >&6; }
6040else
6041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045
6046fi
6047if test -z "$ac_cv_prog_STRIP"; then
6048  ac_ct_STRIP=$STRIP
6049  # Extract the first word of "strip", so it can be a program name with args.
6050set dummy strip; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$ac_ct_STRIP"; then
6057  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066    ac_cv_prog_ac_ct_STRIP="strip"
6067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071  done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6077if test -n "$ac_ct_STRIP"; then
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6079$as_echo "$ac_ct_STRIP" >&6; }
6080else
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085  if test "x$ac_ct_STRIP" = x; then
6086    STRIP=":"
6087  else
6088    case $cross_compiling:$ac_tool_warned in
6089yes:)
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092ac_tool_warned=yes ;;
6093esac
6094    STRIP=$ac_ct_STRIP
6095  fi
6096else
6097  STRIP="$ac_cv_prog_STRIP"
6098fi
6099
6100test -z "$STRIP" && STRIP=:
6101
6102
6103
6104
6105
6106
6107if test -n "$ac_tool_prefix"; then
6108  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if test "${ac_cv_prog_RANLIB+set}" = set; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  if test -n "$RANLIB"; then
6116  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121  IFS=$as_save_IFS
6122  test -z "$as_dir" && as_dir=.
6123    for ac_exec_ext in '' $ac_executable_extensions; do
6124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127    break 2
6128  fi
6129done
6130  done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135RANLIB=$ac_cv_prog_RANLIB
6136if test -n "$RANLIB"; then
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6138$as_echo "$RANLIB" >&6; }
6139else
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142fi
6143
6144
6145fi
6146if test -z "$ac_cv_prog_RANLIB"; then
6147  ac_ct_RANLIB=$RANLIB
6148  # Extract the first word of "ranlib", so it can be a program name with args.
6149set dummy ranlib; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  if test -n "$ac_ct_RANLIB"; then
6156  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165    ac_cv_prog_ac_ct_RANLIB="ranlib"
6166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167    break 2
6168  fi
6169done
6170  done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176if test -n "$ac_ct_RANLIB"; then
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6178$as_echo "$ac_ct_RANLIB" >&6; }
6179else
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184  if test "x$ac_ct_RANLIB" = x; then
6185    RANLIB=":"
6186  else
6187    case $cross_compiling:$ac_tool_warned in
6188yes:)
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191ac_tool_warned=yes ;;
6192esac
6193    RANLIB=$ac_ct_RANLIB
6194  fi
6195else
6196  RANLIB="$ac_cv_prog_RANLIB"
6197fi
6198
6199test -z "$RANLIB" && RANLIB=:
6200
6201
6202
6203
6204
6205
6206# Determine commands to create old-style static archives.
6207old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6208old_postinstall_cmds='chmod 644 $oldlib'
6209old_postuninstall_cmds=
6210
6211if test -n "$RANLIB"; then
6212  case $host_os in
6213  openbsd*)
6214    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6215    ;;
6216  *)
6217    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6218    ;;
6219  esac
6220  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6221fi
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256# If no C compiler was specified, use CC.
6257LTCC=${LTCC-"$CC"}
6258
6259# If no C compiler flags were specified, use CFLAGS.
6260LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6261
6262# Allow CC to be a program name with arguments.
6263compiler=$CC
6264
6265
6266# Check for command to grab the raw symbol name followed by C symbol from nm.
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6268$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6269if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272
6273# These are sane defaults that work on at least a few old systems.
6274# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6275
6276# Character class describing NM global symbol codes.
6277symcode='[BCDEGRST]'
6278
6279# Regexp to match symbols that can be accessed directly from C.
6280sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6281
6282# Define system-specific variables.
6283case $host_os in
6284aix*)
6285  symcode='[BCDT]'
6286  ;;
6287cygwin* | mingw* | pw32* | cegcc*)
6288  symcode='[ABCDGISTW]'
6289  ;;
6290hpux*)
6291  if test "$host_cpu" = ia64; then
6292    symcode='[ABCDEGRST]'
6293  fi
6294  ;;
6295irix* | nonstopux*)
6296  symcode='[BCDEGRST]'
6297  ;;
6298osf*)
6299  symcode='[BCDEGQRST]'
6300  ;;
6301solaris*)
6302  symcode='[BDRT]'
6303  ;;
6304sco3.2v5*)
6305  symcode='[DT]'
6306  ;;
6307sysv4.2uw2*)
6308  symcode='[DT]'
6309  ;;
6310sysv5* | sco5v6* | unixware* | OpenUNIX*)
6311  symcode='[ABDT]'
6312  ;;
6313sysv4)
6314  symcode='[DFNSTU]'
6315  ;;
6316esac
6317
6318# If we're using GNU nm, then use its standard symbol codes.
6319case `$NM -V 2>&1` in
6320*GNU* | *'with BFD'*)
6321  symcode='[ABCDGIRSTW]' ;;
6322esac
6323
6324# Transform an extracted symbol line into a proper C declaration.
6325# Some systems (esp. on ia64) link data and code symbols differently,
6326# so use this general approach.
6327lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6328
6329# Transform an extracted symbol line into symbol name and symbol address
6330lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6331lt_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'"
6332
6333# Handle CRLF in mingw tool chain
6334opt_cr=
6335case $build_os in
6336mingw*)
6337  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6338  ;;
6339esac
6340
6341# Try without a prefix underscore, then with it.
6342for ac_symprfx in "" "_"; do
6343
6344  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6345  symxfrm="\\1 $ac_symprfx\\2 \\2"
6346
6347  # Write the raw and C identifiers.
6348  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6349    # Fake it for dumpbin and say T for any non-static function
6350    # and D for any global variable.
6351    # Also find C++ and __fastcall symbols from MSVC++,
6352    # which start with @ or ?.
6353    lt_cv_sys_global_symbol_pipe="$AWK '"\
6354"     {last_section=section; section=\$ 3};"\
6355"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6356"     \$ 0!~/External *\|/{next};"\
6357"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6358"     {if(hide[section]) next};"\
6359"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6360"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6361"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6362"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6363"     ' prfx=^$ac_symprfx"
6364  else
6365    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6366  fi
6367
6368  # Check to see that the pipe works correctly.
6369  pipe_works=no
6370
6371  rm -f conftest*
6372  cat > conftest.$ac_ext <<_LT_EOF
6373#ifdef __cplusplus
6374extern "C" {
6375#endif
6376char nm_test_var;
6377void nm_test_func(void);
6378void nm_test_func(void){}
6379#ifdef __cplusplus
6380}
6381#endif
6382int main(){nm_test_var='a';nm_test_func();return(0);}
6383_LT_EOF
6384
6385  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6386  (eval $ac_compile) 2>&5
6387  ac_status=$?
6388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389  test $ac_status = 0; }; then
6390    # Now try to grab the symbols.
6391    nlist=conftest.nm
6392    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6393  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6394  ac_status=$?
6395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396  test $ac_status = 0; } && test -s "$nlist"; then
6397      # Try sorting and uniquifying the output.
6398      if sort "$nlist" | uniq > "$nlist"T; then
6399	mv -f "$nlist"T "$nlist"
6400      else
6401	rm -f "$nlist"T
6402      fi
6403
6404      # Make sure that we snagged all the symbols we need.
6405      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6406	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6407	  cat <<_LT_EOF > conftest.$ac_ext
6408#ifdef __cplusplus
6409extern "C" {
6410#endif
6411
6412_LT_EOF
6413	  # Now generate the symbol file.
6414	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6415
6416	  cat <<_LT_EOF >> conftest.$ac_ext
6417
6418/* The mapping between symbol names and symbols.  */
6419const struct {
6420  const char *name;
6421  void       *address;
6422}
6423lt__PROGRAM__LTX_preloaded_symbols[] =
6424{
6425  { "@PROGRAM@", (void *) 0 },
6426_LT_EOF
6427	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6428	  cat <<\_LT_EOF >> conftest.$ac_ext
6429  {0, (void *) 0}
6430};
6431
6432/* This works around a problem in FreeBSD linker */
6433#ifdef FREEBSD_WORKAROUND
6434static const void *lt_preloaded_setup() {
6435  return lt__PROGRAM__LTX_preloaded_symbols;
6436}
6437#endif
6438
6439#ifdef __cplusplus
6440}
6441#endif
6442_LT_EOF
6443	  # Now try linking the two files.
6444	  mv conftest.$ac_objext conftstm.$ac_objext
6445	  lt_save_LIBS="$LIBS"
6446	  lt_save_CFLAGS="$CFLAGS"
6447	  LIBS="conftstm.$ac_objext"
6448	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6449	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6450  (eval $ac_link) 2>&5
6451  ac_status=$?
6452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6454	    pipe_works=yes
6455	  fi
6456	  LIBS="$lt_save_LIBS"
6457	  CFLAGS="$lt_save_CFLAGS"
6458	else
6459	  echo "cannot find nm_test_func in $nlist" >&5
6460	fi
6461      else
6462	echo "cannot find nm_test_var in $nlist" >&5
6463      fi
6464    else
6465      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6466    fi
6467  else
6468    echo "$progname: failed program was:" >&5
6469    cat conftest.$ac_ext >&5
6470  fi
6471  rm -rf conftest* conftst*
6472
6473  # Do not use the global_symbol_pipe unless it works.
6474  if test "$pipe_works" = yes; then
6475    break
6476  else
6477    lt_cv_sys_global_symbol_pipe=
6478  fi
6479done
6480
6481fi
6482
6483if test -z "$lt_cv_sys_global_symbol_pipe"; then
6484  lt_cv_sys_global_symbol_to_cdecl=
6485fi
6486if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6488$as_echo "failed" >&6; }
6489else
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6491$as_echo "ok" >&6; }
6492fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515# Check whether --enable-libtool-lock was given.
6516if test "${enable_libtool_lock+set}" = set; then :
6517  enableval=$enable_libtool_lock;
6518fi
6519
6520test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6521
6522# Some flags need to be propagated to the compiler or linker for good
6523# libtool support.
6524case $host in
6525ia64-*-hpux*)
6526  # Find out which ABI we are using.
6527  echo 'int i;' > conftest.$ac_ext
6528  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6529  (eval $ac_compile) 2>&5
6530  ac_status=$?
6531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532  test $ac_status = 0; }; then
6533    case `/usr/bin/file conftest.$ac_objext` in
6534      *ELF-32*)
6535	HPUX_IA64_MODE="32"
6536	;;
6537      *ELF-64*)
6538	HPUX_IA64_MODE="64"
6539	;;
6540    esac
6541  fi
6542  rm -rf conftest*
6543  ;;
6544*-*-irix6*)
6545  # Find out which ABI we are using.
6546  echo '#line 6546 "configure"' > conftest.$ac_ext
6547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548  (eval $ac_compile) 2>&5
6549  ac_status=$?
6550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551  test $ac_status = 0; }; then
6552    if test "$lt_cv_prog_gnu_ld" = yes; then
6553      case `/usr/bin/file conftest.$ac_objext` in
6554	*32-bit*)
6555	  LD="${LD-ld} -melf32bsmip"
6556	  ;;
6557	*N32*)
6558	  LD="${LD-ld} -melf32bmipn32"
6559	  ;;
6560	*64-bit*)
6561	  LD="${LD-ld} -melf64bmip"
6562	;;
6563      esac
6564    else
6565      case `/usr/bin/file conftest.$ac_objext` in
6566	*32-bit*)
6567	  LD="${LD-ld} -32"
6568	  ;;
6569	*N32*)
6570	  LD="${LD-ld} -n32"
6571	  ;;
6572	*64-bit*)
6573	  LD="${LD-ld} -64"
6574	  ;;
6575      esac
6576    fi
6577  fi
6578  rm -rf conftest*
6579  ;;
6580
6581x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6582s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6583  # Find out which ABI we are using.
6584  echo 'int i;' > conftest.$ac_ext
6585  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6586  (eval $ac_compile) 2>&5
6587  ac_status=$?
6588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589  test $ac_status = 0; }; then
6590    case `/usr/bin/file conftest.o` in
6591      *32-bit*)
6592	case $host in
6593	  x86_64-*kfreebsd*-gnu)
6594	    LD="${LD-ld} -m elf_i386_fbsd"
6595	    ;;
6596	  x86_64-*linux*)
6597	    LD="${LD-ld} -m elf_i386"
6598	    ;;
6599	  ppc64-*linux*|powerpc64-*linux*)
6600	    LD="${LD-ld} -m elf32ppclinux"
6601	    ;;
6602	  s390x-*linux*)
6603	    LD="${LD-ld} -m elf_s390"
6604	    ;;
6605	  sparc64-*linux*)
6606	    LD="${LD-ld} -m elf32_sparc"
6607	    ;;
6608	esac
6609	;;
6610      *64-bit*)
6611	case $host in
6612	  x86_64-*kfreebsd*-gnu)
6613	    LD="${LD-ld} -m elf_x86_64_fbsd"
6614	    ;;
6615	  x86_64-*linux*)
6616	    LD="${LD-ld} -m elf_x86_64"
6617	    ;;
6618	  ppc*-*linux*|powerpc*-*linux*)
6619	    LD="${LD-ld} -m elf64ppc"
6620	    ;;
6621	  s390*-*linux*|s390*-*tpf*)
6622	    LD="${LD-ld} -m elf64_s390"
6623	    ;;
6624	  sparc*-*linux*)
6625	    LD="${LD-ld} -m elf64_sparc"
6626	    ;;
6627	esac
6628	;;
6629    esac
6630  fi
6631  rm -rf conftest*
6632  ;;
6633
6634*-*-sco3.2v5*)
6635  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6636  SAVE_CFLAGS="$CFLAGS"
6637  CFLAGS="$CFLAGS -belf"
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6639$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6640if test "${lt_cv_cc_needs_belf+set}" = set; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  ac_ext=c
6644ac_cpp='$CPP $CPPFLAGS'
6645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648
6649     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h.  */
6651
6652int
6653main ()
6654{
6655
6656  ;
6657  return 0;
6658}
6659_ACEOF
6660if ac_fn_c_try_link "$LINENO"; then :
6661  lt_cv_cc_needs_belf=yes
6662else
6663  lt_cv_cc_needs_belf=no
6664fi
6665rm -f core conftest.err conftest.$ac_objext \
6666    conftest$ac_exeext conftest.$ac_ext
6667     ac_ext=c
6668ac_cpp='$CPP $CPPFLAGS'
6669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671ac_compiler_gnu=$ac_cv_c_compiler_gnu
6672
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6675$as_echo "$lt_cv_cc_needs_belf" >&6; }
6676  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6677    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6678    CFLAGS="$SAVE_CFLAGS"
6679  fi
6680  ;;
6681sparc*-*solaris*)
6682  # Find out which ABI we are using.
6683  echo 'int i;' > conftest.$ac_ext
6684  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6685  (eval $ac_compile) 2>&5
6686  ac_status=$?
6687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688  test $ac_status = 0; }; then
6689    case `/usr/bin/file conftest.o` in
6690    *64-bit*)
6691      case $lt_cv_prog_gnu_ld in
6692      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6693      *)
6694	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6695	  LD="${LD-ld} -64"
6696	fi
6697	;;
6698      esac
6699      ;;
6700    esac
6701  fi
6702  rm -rf conftest*
6703  ;;
6704esac
6705
6706need_locks="$enable_libtool_lock"
6707
6708
6709  case $host_os in
6710    rhapsody* | darwin*)
6711    if test -n "$ac_tool_prefix"; then
6712  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6713set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715$as_echo_n "checking for $ac_word... " >&6; }
6716if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  if test -n "$DSYMUTIL"; then
6720  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725  IFS=$as_save_IFS
6726  test -z "$as_dir" && as_dir=.
6727    for ac_exec_ext in '' $ac_executable_extensions; do
6728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731    break 2
6732  fi
6733done
6734  done
6735IFS=$as_save_IFS
6736
6737fi
6738fi
6739DSYMUTIL=$ac_cv_prog_DSYMUTIL
6740if test -n "$DSYMUTIL"; then
6741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6742$as_echo "$DSYMUTIL" >&6; }
6743else
6744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745$as_echo "no" >&6; }
6746fi
6747
6748
6749fi
6750if test -z "$ac_cv_prog_DSYMUTIL"; then
6751  ac_ct_DSYMUTIL=$DSYMUTIL
6752  # Extract the first word of "dsymutil", so it can be a program name with args.
6753set dummy dsymutil; ac_word=$2
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755$as_echo_n "checking for $ac_word... " >&6; }
6756if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  if test -n "$ac_ct_DSYMUTIL"; then
6760  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765  IFS=$as_save_IFS
6766  test -z "$as_dir" && as_dir=.
6767    for ac_exec_ext in '' $ac_executable_extensions; do
6768  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771    break 2
6772  fi
6773done
6774  done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6780if test -n "$ac_ct_DSYMUTIL"; then
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6782$as_echo "$ac_ct_DSYMUTIL" >&6; }
6783else
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785$as_echo "no" >&6; }
6786fi
6787
6788  if test "x$ac_ct_DSYMUTIL" = x; then
6789    DSYMUTIL=":"
6790  else
6791    case $cross_compiling:$ac_tool_warned in
6792yes:)
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795ac_tool_warned=yes ;;
6796esac
6797    DSYMUTIL=$ac_ct_DSYMUTIL
6798  fi
6799else
6800  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6801fi
6802
6803    if test -n "$ac_tool_prefix"; then
6804  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6805set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807$as_echo_n "checking for $ac_word... " >&6; }
6808if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811  if test -n "$NMEDIT"; then
6812  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817  IFS=$as_save_IFS
6818  test -z "$as_dir" && as_dir=.
6819    for ac_exec_ext in '' $ac_executable_extensions; do
6820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823    break 2
6824  fi
6825done
6826  done
6827IFS=$as_save_IFS
6828
6829fi
6830fi
6831NMEDIT=$ac_cv_prog_NMEDIT
6832if test -n "$NMEDIT"; then
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6834$as_echo "$NMEDIT" >&6; }
6835else
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837$as_echo "no" >&6; }
6838fi
6839
6840
6841fi
6842if test -z "$ac_cv_prog_NMEDIT"; then
6843  ac_ct_NMEDIT=$NMEDIT
6844  # Extract the first word of "nmedit", so it can be a program name with args.
6845set dummy nmedit; ac_word=$2
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847$as_echo_n "checking for $ac_word... " >&6; }
6848if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  if test -n "$ac_ct_NMEDIT"; then
6852  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  test -z "$as_dir" && as_dir=.
6859    for ac_exec_ext in '' $ac_executable_extensions; do
6860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863    break 2
6864  fi
6865done
6866  done
6867IFS=$as_save_IFS
6868
6869fi
6870fi
6871ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6872if test -n "$ac_ct_NMEDIT"; then
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6874$as_echo "$ac_ct_NMEDIT" >&6; }
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878fi
6879
6880  if test "x$ac_ct_NMEDIT" = x; then
6881    NMEDIT=":"
6882  else
6883    case $cross_compiling:$ac_tool_warned in
6884yes:)
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887ac_tool_warned=yes ;;
6888esac
6889    NMEDIT=$ac_ct_NMEDIT
6890  fi
6891else
6892  NMEDIT="$ac_cv_prog_NMEDIT"
6893fi
6894
6895    if test -n "$ac_tool_prefix"; then
6896  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6897set dummy ${ac_tool_prefix}lipo; ac_word=$2
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
6900if test "${ac_cv_prog_LIPO+set}" = set; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  if test -n "$LIPO"; then
6904  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909  IFS=$as_save_IFS
6910  test -z "$as_dir" && as_dir=.
6911    for ac_exec_ext in '' $ac_executable_extensions; do
6912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915    break 2
6916  fi
6917done
6918  done
6919IFS=$as_save_IFS
6920
6921fi
6922fi
6923LIPO=$ac_cv_prog_LIPO
6924if test -n "$LIPO"; then
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6926$as_echo "$LIPO" >&6; }
6927else
6928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
6930fi
6931
6932
6933fi
6934if test -z "$ac_cv_prog_LIPO"; then
6935  ac_ct_LIPO=$LIPO
6936  # Extract the first word of "lipo", so it can be a program name with args.
6937set dummy lipo; ac_word=$2
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
6940if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  if test -n "$ac_ct_LIPO"; then
6944  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  test -z "$as_dir" && as_dir=.
6951    for ac_exec_ext in '' $ac_executable_extensions; do
6952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953    ac_cv_prog_ac_ct_LIPO="lipo"
6954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955    break 2
6956  fi
6957done
6958  done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6964if test -n "$ac_ct_LIPO"; then
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6966$as_echo "$ac_ct_LIPO" >&6; }
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972  if test "x$ac_ct_LIPO" = x; then
6973    LIPO=":"
6974  else
6975    case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981    LIPO=$ac_ct_LIPO
6982  fi
6983else
6984  LIPO="$ac_cv_prog_LIPO"
6985fi
6986
6987    if test -n "$ac_tool_prefix"; then
6988  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}otool; ac_word=$2
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if test "${ac_cv_prog_OTOOL+set}" = set; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  if test -n "$OTOOL"; then
6996  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001  IFS=$as_save_IFS
7002  test -z "$as_dir" && as_dir=.
7003    for ac_exec_ext in '' $ac_executable_extensions; do
7004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007    break 2
7008  fi
7009done
7010  done
7011IFS=$as_save_IFS
7012
7013fi
7014fi
7015OTOOL=$ac_cv_prog_OTOOL
7016if test -n "$OTOOL"; then
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7018$as_echo "$OTOOL" >&6; }
7019else
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_OTOOL"; then
7027  ac_ct_OTOOL=$OTOOL
7028  # Extract the first word of "otool", so it can be a program name with args.
7029set dummy otool; ac_word=$2
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
7032if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  if test -n "$ac_ct_OTOOL"; then
7036  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041  IFS=$as_save_IFS
7042  test -z "$as_dir" && as_dir=.
7043    for ac_exec_ext in '' $ac_executable_extensions; do
7044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045    ac_cv_prog_ac_ct_OTOOL="otool"
7046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047    break 2
7048  fi
7049done
7050  done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7056if test -n "$ac_ct_OTOOL"; then
7057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7058$as_echo "$ac_ct_OTOOL" >&6; }
7059else
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064  if test "x$ac_ct_OTOOL" = x; then
7065    OTOOL=":"
7066  else
7067    case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073    OTOOL=$ac_ct_OTOOL
7074  fi
7075else
7076  OTOOL="$ac_cv_prog_OTOOL"
7077fi
7078
7079    if test -n "$ac_tool_prefix"; then
7080  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7081set dummy ${ac_tool_prefix}otool64; ac_word=$2
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083$as_echo_n "checking for $ac_word... " >&6; }
7084if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7085  $as_echo_n "(cached) " >&6
7086else
7087  if test -n "$OTOOL64"; then
7088  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093  IFS=$as_save_IFS
7094  test -z "$as_dir" && as_dir=.
7095    for ac_exec_ext in '' $ac_executable_extensions; do
7096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099    break 2
7100  fi
7101done
7102  done
7103IFS=$as_save_IFS
7104
7105fi
7106fi
7107OTOOL64=$ac_cv_prog_OTOOL64
7108if test -n "$OTOOL64"; then
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7110$as_echo "$OTOOL64" >&6; }
7111else
7112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113$as_echo "no" >&6; }
7114fi
7115
7116
7117fi
7118if test -z "$ac_cv_prog_OTOOL64"; then
7119  ac_ct_OTOOL64=$OTOOL64
7120  # Extract the first word of "otool64", so it can be a program name with args.
7121set dummy otool64; ac_word=$2
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123$as_echo_n "checking for $ac_word... " >&6; }
7124if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  if test -n "$ac_ct_OTOOL64"; then
7128  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7129else
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133  IFS=$as_save_IFS
7134  test -z "$as_dir" && as_dir=.
7135    for ac_exec_ext in '' $ac_executable_extensions; do
7136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137    ac_cv_prog_ac_ct_OTOOL64="otool64"
7138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139    break 2
7140  fi
7141done
7142  done
7143IFS=$as_save_IFS
7144
7145fi
7146fi
7147ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7148if test -n "$ac_ct_OTOOL64"; then
7149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7150$as_echo "$ac_ct_OTOOL64" >&6; }
7151else
7152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153$as_echo "no" >&6; }
7154fi
7155
7156  if test "x$ac_ct_OTOOL64" = x; then
7157    OTOOL64=":"
7158  else
7159    case $cross_compiling:$ac_tool_warned in
7160yes:)
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163ac_tool_warned=yes ;;
7164esac
7165    OTOOL64=$ac_ct_OTOOL64
7166  fi
7167else
7168  OTOOL64="$ac_cv_prog_OTOOL64"
7169fi
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7198$as_echo_n "checking for -single_module linker flag... " >&6; }
7199if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202  lt_cv_apple_cc_single_mod=no
7203      if test -z "${LT_MULTI_MODULE}"; then
7204	# By default we will add the -single_module flag. You can override
7205	# by either setting the environment variable LT_MULTI_MODULE
7206	# non-empty at configure time, or by adding -multi_module to the
7207	# link flags.
7208	rm -rf libconftest.dylib*
7209	echo "int foo(void){return 1;}" > conftest.c
7210	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7211-dynamiclib -Wl,-single_module conftest.c" >&5
7212	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7213	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7214        _lt_result=$?
7215	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7216	  lt_cv_apple_cc_single_mod=yes
7217	else
7218	  cat conftest.err >&5
7219	fi
7220	rm -rf libconftest.dylib*
7221	rm -f conftest.*
7222      fi
7223fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7225$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7227$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7228if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  lt_cv_ld_exported_symbols_list=no
7232      save_LDFLAGS=$LDFLAGS
7233      echo "_main" > conftest.sym
7234      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7235      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237
7238int
7239main ()
7240{
7241
7242  ;
7243  return 0;
7244}
7245_ACEOF
7246if ac_fn_c_try_link "$LINENO"; then :
7247  lt_cv_ld_exported_symbols_list=yes
7248else
7249  lt_cv_ld_exported_symbols_list=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext \
7252    conftest$ac_exeext conftest.$ac_ext
7253	LDFLAGS="$save_LDFLAGS"
7254
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7257$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7258    case $host_os in
7259    rhapsody* | darwin1.[012])
7260      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7261    darwin1.*)
7262      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7263    darwin*) # darwin 5.x on
7264      # if running on 10.5 or later, the deployment target defaults
7265      # to the OS version, if on x86, and 10.4, the deployment
7266      # target defaults to 10.4. Don't you love it?
7267      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7268	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7269	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7270	10.[012]*)
7271	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7272	10.*)
7273	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7274      esac
7275    ;;
7276  esac
7277    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7278      _lt_dar_single_mod='$single_module'
7279    fi
7280    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7281      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7282    else
7283      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7284    fi
7285    if test "$DSYMUTIL" != ":"; then
7286      _lt_dsymutil='~$DSYMUTIL $lib || :'
7287    else
7288      _lt_dsymutil=
7289    fi
7290    ;;
7291  esac
7292
7293for ac_header in dlfcn.h
7294do :
7295  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7296"
7297if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7298  cat >>confdefs.h <<_ACEOF
7299#define HAVE_DLFCN_H 1
7300_ACEOF
7301
7302fi
7303
7304done
7305
7306
7307
7308# Set options
7309
7310
7311
7312        enable_dlopen=no
7313
7314
7315  enable_win32_dll=no
7316
7317
7318            # Check whether --enable-shared was given.
7319if test "${enable_shared+set}" = set; then :
7320  enableval=$enable_shared; p=${PACKAGE-default}
7321    case $enableval in
7322    yes) enable_shared=yes ;;
7323    no) enable_shared=no ;;
7324    *)
7325      enable_shared=no
7326      # Look at the argument we got.  We use all the common list separators.
7327      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7328      for pkg in $enableval; do
7329	IFS="$lt_save_ifs"
7330	if test "X$pkg" = "X$p"; then
7331	  enable_shared=yes
7332	fi
7333      done
7334      IFS="$lt_save_ifs"
7335      ;;
7336    esac
7337else
7338  enable_shared=yes
7339fi
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351# Check whether --with-pic was given.
7352if test "${with_pic+set}" = set; then :
7353  withval=$with_pic; pic_mode="$withval"
7354else
7355  pic_mode=default
7356fi
7357
7358
7359test -z "$pic_mode" && pic_mode=default
7360
7361
7362
7363
7364
7365
7366
7367  # Check whether --enable-fast-install was given.
7368if test "${enable_fast_install+set}" = set; then :
7369  enableval=$enable_fast_install; p=${PACKAGE-default}
7370    case $enableval in
7371    yes) enable_fast_install=yes ;;
7372    no) enable_fast_install=no ;;
7373    *)
7374      enable_fast_install=no
7375      # Look at the argument we got.  We use all the common list separators.
7376      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377      for pkg in $enableval; do
7378	IFS="$lt_save_ifs"
7379	if test "X$pkg" = "X$p"; then
7380	  enable_fast_install=yes
7381	fi
7382      done
7383      IFS="$lt_save_ifs"
7384      ;;
7385    esac
7386else
7387  enable_fast_install=yes
7388fi
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400# This can be used to rebuild libtool when needed
7401LIBTOOL_DEPS="$ltmain"
7402
7403# Always use our own libtool.
7404LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430test -z "$LN_S" && LN_S="ln -s"
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445if test -n "${ZSH_VERSION+set}" ; then
7446   setopt NO_GLOB_SUBST
7447fi
7448
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7450$as_echo_n "checking for objdir... " >&6; }
7451if test "${lt_cv_objdir+set}" = set; then :
7452  $as_echo_n "(cached) " >&6
7453else
7454  rm -f .libs 2>/dev/null
7455mkdir .libs 2>/dev/null
7456if test -d .libs; then
7457  lt_cv_objdir=.libs
7458else
7459  # MS-DOS does not allow filenames that begin with a dot.
7460  lt_cv_objdir=_libs
7461fi
7462rmdir .libs 2>/dev/null
7463fi
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7465$as_echo "$lt_cv_objdir" >&6; }
7466objdir=$lt_cv_objdir
7467
7468
7469
7470
7471
7472cat >>confdefs.h <<_ACEOF
7473#define LT_OBJDIR "$lt_cv_objdir/"
7474_ACEOF
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492case $host_os in
7493aix3*)
7494  # AIX sometimes has problems with the GCC collect2 program.  For some
7495  # reason, if we set the COLLECT_NAMES environment variable, the problems
7496  # vanish in a puff of smoke.
7497  if test "X${COLLECT_NAMES+set}" != Xset; then
7498    COLLECT_NAMES=
7499    export COLLECT_NAMES
7500  fi
7501  ;;
7502esac
7503
7504# Sed substitution that helps us do robust quoting.  It backslashifies
7505# metacharacters that are still active within double-quoted strings.
7506sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7507
7508# Same as above, but do not quote variable references.
7509double_quote_subst='s/\(["`\\]\)/\\\1/g'
7510
7511# Sed substitution to delay expansion of an escaped shell variable in a
7512# double_quote_subst'ed string.
7513delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7514
7515# Sed substitution to delay expansion of an escaped single quote.
7516delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7517
7518# Sed substitution to avoid accidental globbing in evaled expressions
7519no_glob_subst='s/\*/\\\*/g'
7520
7521# Global variables:
7522ofile=libtool
7523can_build_shared=yes
7524
7525# All known linkers require a `.a' archive for static linking (except MSVC,
7526# which needs '.lib').
7527libext=a
7528
7529with_gnu_ld="$lt_cv_prog_gnu_ld"
7530
7531old_CC="$CC"
7532old_CFLAGS="$CFLAGS"
7533
7534# Set sane defaults for various variables
7535test -z "$CC" && CC=cc
7536test -z "$LTCC" && LTCC=$CC
7537test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7538test -z "$LD" && LD=ld
7539test -z "$ac_objext" && ac_objext=o
7540
7541for cc_temp in $compiler""; do
7542  case $cc_temp in
7543    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7545    \-*) ;;
7546    *) break;;
7547  esac
7548done
7549cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7550
7551
7552# Only perform the check for file, if the check method requires it
7553test -z "$MAGIC_CMD" && MAGIC_CMD=file
7554case $deplibs_check_method in
7555file_magic*)
7556  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7557    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7558$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7559if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7560  $as_echo_n "(cached) " >&6
7561else
7562  case $MAGIC_CMD in
7563[\\/*] |  ?:[\\/]*)
7564  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7565  ;;
7566*)
7567  lt_save_MAGIC_CMD="$MAGIC_CMD"
7568  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570  for ac_dir in $ac_dummy; do
7571    IFS="$lt_save_ifs"
7572    test -z "$ac_dir" && ac_dir=.
7573    if test -f $ac_dir/${ac_tool_prefix}file; then
7574      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7575      if test -n "$file_magic_test_file"; then
7576	case $deplibs_check_method in
7577	"file_magic "*)
7578	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581	    $EGREP "$file_magic_regex" > /dev/null; then
7582	    :
7583	  else
7584	    cat <<_LT_EOF 1>&2
7585
7586*** Warning: the command libtool uses to detect shared libraries,
7587*** $file_magic_cmd, produces output that libtool cannot recognize.
7588*** The result is that libtool may fail to recognize shared libraries
7589*** as such.  This will affect the creation of libtool libraries that
7590*** depend on shared libraries, but programs linked with such libtool
7591*** libraries will work regardless of this problem.  Nevertheless, you
7592*** may want to report the problem to your system manager and/or to
7593*** bug-libtool@gnu.org
7594
7595_LT_EOF
7596	  fi ;;
7597	esac
7598      fi
7599      break
7600    fi
7601  done
7602  IFS="$lt_save_ifs"
7603  MAGIC_CMD="$lt_save_MAGIC_CMD"
7604  ;;
7605esac
7606fi
7607
7608MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609if test -n "$MAGIC_CMD"; then
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7611$as_echo "$MAGIC_CMD" >&6; }
7612else
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
7615fi
7616
7617
7618
7619
7620
7621if test -z "$lt_cv_path_MAGIC_CMD"; then
7622  if test -n "$ac_tool_prefix"; then
7623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7624$as_echo_n "checking for file... " >&6; }
7625if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7626  $as_echo_n "(cached) " >&6
7627else
7628  case $MAGIC_CMD in
7629[\\/*] |  ?:[\\/]*)
7630  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7631  ;;
7632*)
7633  lt_save_MAGIC_CMD="$MAGIC_CMD"
7634  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7635  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7636  for ac_dir in $ac_dummy; do
7637    IFS="$lt_save_ifs"
7638    test -z "$ac_dir" && ac_dir=.
7639    if test -f $ac_dir/file; then
7640      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7641      if test -n "$file_magic_test_file"; then
7642	case $deplibs_check_method in
7643	"file_magic "*)
7644	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7645	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7647	    $EGREP "$file_magic_regex" > /dev/null; then
7648	    :
7649	  else
7650	    cat <<_LT_EOF 1>&2
7651
7652*** Warning: the command libtool uses to detect shared libraries,
7653*** $file_magic_cmd, produces output that libtool cannot recognize.
7654*** The result is that libtool may fail to recognize shared libraries
7655*** as such.  This will affect the creation of libtool libraries that
7656*** depend on shared libraries, but programs linked with such libtool
7657*** libraries will work regardless of this problem.  Nevertheless, you
7658*** may want to report the problem to your system manager and/or to
7659*** bug-libtool@gnu.org
7660
7661_LT_EOF
7662	  fi ;;
7663	esac
7664      fi
7665      break
7666    fi
7667  done
7668  IFS="$lt_save_ifs"
7669  MAGIC_CMD="$lt_save_MAGIC_CMD"
7670  ;;
7671esac
7672fi
7673
7674MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7675if test -n "$MAGIC_CMD"; then
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7677$as_echo "$MAGIC_CMD" >&6; }
7678else
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
7681fi
7682
7683
7684  else
7685    MAGIC_CMD=:
7686  fi
7687fi
7688
7689  fi
7690  ;;
7691esac
7692
7693# Use C for the default configuration in the libtool script
7694
7695lt_save_CC="$CC"
7696ac_ext=c
7697ac_cpp='$CPP $CPPFLAGS'
7698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701
7702
7703# Source file extension for C test sources.
7704ac_ext=c
7705
7706# Object file extension for compiled C test sources.
7707objext=o
7708objext=$objext
7709
7710# Code to be used in simple compile tests
7711lt_simple_compile_test_code="int some_variable = 0;"
7712
7713# Code to be used in simple link tests
7714lt_simple_link_test_code='int main(){return(0);}'
7715
7716
7717
7718
7719
7720
7721
7722# If no C compiler was specified, use CC.
7723LTCC=${LTCC-"$CC"}
7724
7725# If no C compiler flags were specified, use CFLAGS.
7726LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7727
7728# Allow CC to be a program name with arguments.
7729compiler=$CC
7730
7731# Save the default compiler, since it gets overwritten when the other
7732# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7733compiler_DEFAULT=$CC
7734
7735# save warnings/boilerplate of simple test code
7736ac_outfile=conftest.$ac_objext
7737echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7738eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7739_lt_compiler_boilerplate=`cat conftest.err`
7740$RM conftest*
7741
7742ac_outfile=conftest.$ac_objext
7743echo "$lt_simple_link_test_code" >conftest.$ac_ext
7744eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745_lt_linker_boilerplate=`cat conftest.err`
7746$RM -r conftest*
7747
7748
7749if test -n "$compiler"; then
7750
7751lt_prog_compiler_no_builtin_flag=
7752
7753if test "$GCC" = yes; then
7754  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7755
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7757$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7758if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  lt_cv_prog_compiler_rtti_exceptions=no
7762   ac_outfile=conftest.$ac_objext
7763   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7764   lt_compiler_flag="-fno-rtti -fno-exceptions"
7765   # Insert the option either (1) after the last *FLAGS variable, or
7766   # (2) before a word containing "conftest.", or (3) at the end.
7767   # Note that $ac_compile itself does not contain backslashes and begins
7768   # with a dollar sign (not a hyphen), so the echo should work correctly.
7769   # The option is referenced via a variable to avoid confusing sed.
7770   lt_compile=`echo "$ac_compile" | $SED \
7771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7773   -e 's:$: $lt_compiler_flag:'`
7774   (eval echo "\"\$as_me:7774: $lt_compile\"" >&5)
7775   (eval "$lt_compile" 2>conftest.err)
7776   ac_status=$?
7777   cat conftest.err >&5
7778   echo "$as_me:7778: \$? = $ac_status" >&5
7779   if (exit $ac_status) && test -s "$ac_outfile"; then
7780     # The compiler can only warn and ignore the option if not recognized
7781     # So say no if there are warnings other than the usual output.
7782     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7783     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7785       lt_cv_prog_compiler_rtti_exceptions=yes
7786     fi
7787   fi
7788   $RM conftest*
7789
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7792$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7793
7794if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7795    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7796else
7797    :
7798fi
7799
7800fi
7801
7802
7803
7804
7805
7806
7807  lt_prog_compiler_wl=
7808lt_prog_compiler_pic=
7809lt_prog_compiler_static=
7810
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7812$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7813
7814  if test "$GCC" = yes; then
7815    lt_prog_compiler_wl='-Wl,'
7816    lt_prog_compiler_static='-static'
7817
7818    case $host_os in
7819      aix*)
7820      # All AIX code is PIC.
7821      if test "$host_cpu" = ia64; then
7822	# AIX 5 now supports IA64 processor
7823	lt_prog_compiler_static='-Bstatic'
7824      fi
7825      ;;
7826
7827    amigaos*)
7828      case $host_cpu in
7829      powerpc)
7830            # see comment about AmigaOS4 .so support
7831            lt_prog_compiler_pic='-fPIC'
7832        ;;
7833      m68k)
7834            # FIXME: we need at least 68020 code to build shared libraries, but
7835            # adding the `-m68020' flag to GCC prevents building anything better,
7836            # like `-m68040'.
7837            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7838        ;;
7839      esac
7840      ;;
7841
7842    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7843      # PIC is the default for these OSes.
7844      ;;
7845
7846    mingw* | cygwin* | pw32* | os2* | cegcc*)
7847      # This hack is so that the source file can tell whether it is being
7848      # built for inclusion in a dll (and should export symbols for example).
7849      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7850      # (--disable-auto-import) libraries
7851      lt_prog_compiler_pic='-DDLL_EXPORT'
7852      ;;
7853
7854    darwin* | rhapsody*)
7855      # PIC is the default on this platform
7856      # Common symbols not allowed in MH_DYLIB files
7857      lt_prog_compiler_pic='-fno-common'
7858      ;;
7859
7860    hpux*)
7861      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7862      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7863      # sets the default TLS model and affects inlining.
7864      case $host_cpu in
7865      hppa*64*)
7866	# +Z the default
7867	;;
7868      *)
7869	lt_prog_compiler_pic='-fPIC'
7870	;;
7871      esac
7872      ;;
7873
7874    interix[3-9]*)
7875      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7876      # Instead, we relocate shared libraries at runtime.
7877      ;;
7878
7879    msdosdjgpp*)
7880      # Just because we use GCC doesn't mean we suddenly get shared libraries
7881      # on systems that don't support them.
7882      lt_prog_compiler_can_build_shared=no
7883      enable_shared=no
7884      ;;
7885
7886    *nto* | *qnx*)
7887      # QNX uses GNU C++, but need to define -shared option too, otherwise
7888      # it will coredump.
7889      lt_prog_compiler_pic='-fPIC -shared'
7890      ;;
7891
7892    sysv4*MP*)
7893      if test -d /usr/nec; then
7894	lt_prog_compiler_pic=-Kconform_pic
7895      fi
7896      ;;
7897
7898    *)
7899      lt_prog_compiler_pic='-fPIC'
7900      ;;
7901    esac
7902  else
7903    # PORTME Check for flag to pass linker flags through the system compiler.
7904    case $host_os in
7905    aix*)
7906      lt_prog_compiler_wl='-Wl,'
7907      if test "$host_cpu" = ia64; then
7908	# AIX 5 now supports IA64 processor
7909	lt_prog_compiler_static='-Bstatic'
7910      else
7911	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7912      fi
7913      ;;
7914
7915    mingw* | cygwin* | pw32* | os2* | cegcc*)
7916      # This hack is so that the source file can tell whether it is being
7917      # built for inclusion in a dll (and should export symbols for example).
7918      lt_prog_compiler_pic='-DDLL_EXPORT'
7919      ;;
7920
7921    hpux9* | hpux10* | hpux11*)
7922      lt_prog_compiler_wl='-Wl,'
7923      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7924      # not for PA HP-UX.
7925      case $host_cpu in
7926      hppa*64*|ia64*)
7927	# +Z the default
7928	;;
7929      *)
7930	lt_prog_compiler_pic='+Z'
7931	;;
7932      esac
7933      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7934      lt_prog_compiler_static='${wl}-a ${wl}archive'
7935      ;;
7936
7937    irix5* | irix6* | nonstopux*)
7938      lt_prog_compiler_wl='-Wl,'
7939      # PIC (with -KPIC) is the default.
7940      lt_prog_compiler_static='-non_shared'
7941      ;;
7942
7943    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7944      case $cc_basename in
7945      # old Intel for x86_64 which still supported -KPIC.
7946      ecc*)
7947	lt_prog_compiler_wl='-Wl,'
7948	lt_prog_compiler_pic='-KPIC'
7949	lt_prog_compiler_static='-static'
7950        ;;
7951      # icc used to be incompatible with GCC.
7952      # ICC 10 doesn't accept -KPIC any more.
7953      icc* | ifort*)
7954	lt_prog_compiler_wl='-Wl,'
7955	lt_prog_compiler_pic='-fPIC'
7956	lt_prog_compiler_static='-static'
7957        ;;
7958      # Lahey Fortran 8.1.
7959      lf95*)
7960	lt_prog_compiler_wl='-Wl,'
7961	lt_prog_compiler_pic='--shared'
7962	lt_prog_compiler_static='--static'
7963	;;
7964      pgcc* | pgf77* | pgf90* | pgf95*)
7965        # Portland Group compilers (*not* the Pentium gcc compiler,
7966	# which looks to be a dead project)
7967	lt_prog_compiler_wl='-Wl,'
7968	lt_prog_compiler_pic='-fpic'
7969	lt_prog_compiler_static='-Bstatic'
7970        ;;
7971      ccc*)
7972        lt_prog_compiler_wl='-Wl,'
7973        # All Alpha code is PIC.
7974        lt_prog_compiler_static='-non_shared'
7975        ;;
7976      xl*)
7977	# IBM XL C 8.0/Fortran 10.1 on PPC
7978	lt_prog_compiler_wl='-Wl,'
7979	lt_prog_compiler_pic='-qpic'
7980	lt_prog_compiler_static='-qstaticlink'
7981	;;
7982      *)
7983	case `$CC -V 2>&1 | sed 5q` in
7984	*Sun\ C*)
7985	  # Sun C 5.9
7986	  lt_prog_compiler_pic='-KPIC'
7987	  lt_prog_compiler_static='-Bstatic'
7988	  lt_prog_compiler_wl='-Wl,'
7989	  ;;
7990	*Sun\ F*)
7991	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7992	  lt_prog_compiler_pic='-KPIC'
7993	  lt_prog_compiler_static='-Bstatic'
7994	  lt_prog_compiler_wl=''
7995	  ;;
7996	esac
7997	;;
7998      esac
7999      ;;
8000
8001    newsos6)
8002      lt_prog_compiler_pic='-KPIC'
8003      lt_prog_compiler_static='-Bstatic'
8004      ;;
8005
8006    *nto* | *qnx*)
8007      # QNX uses GNU C++, but need to define -shared option too, otherwise
8008      # it will coredump.
8009      lt_prog_compiler_pic='-fPIC -shared'
8010      ;;
8011
8012    osf3* | osf4* | osf5*)
8013      lt_prog_compiler_wl='-Wl,'
8014      # All OSF/1 code is PIC.
8015      lt_prog_compiler_static='-non_shared'
8016      ;;
8017
8018    rdos*)
8019      lt_prog_compiler_static='-non_shared'
8020      ;;
8021
8022    solaris*)
8023      lt_prog_compiler_pic='-KPIC'
8024      lt_prog_compiler_static='-Bstatic'
8025      case $cc_basename in
8026      f77* | f90* | f95*)
8027	lt_prog_compiler_wl='-Qoption ld ';;
8028      *)
8029	lt_prog_compiler_wl='-Wl,';;
8030      esac
8031      ;;
8032
8033    sunos4*)
8034      lt_prog_compiler_wl='-Qoption ld '
8035      lt_prog_compiler_pic='-PIC'
8036      lt_prog_compiler_static='-Bstatic'
8037      ;;
8038
8039    sysv4 | sysv4.2uw2* | sysv4.3*)
8040      lt_prog_compiler_wl='-Wl,'
8041      lt_prog_compiler_pic='-KPIC'
8042      lt_prog_compiler_static='-Bstatic'
8043      ;;
8044
8045    sysv4*MP*)
8046      if test -d /usr/nec ;then
8047	lt_prog_compiler_pic='-Kconform_pic'
8048	lt_prog_compiler_static='-Bstatic'
8049      fi
8050      ;;
8051
8052    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8053      lt_prog_compiler_wl='-Wl,'
8054      lt_prog_compiler_pic='-KPIC'
8055      lt_prog_compiler_static='-Bstatic'
8056      ;;
8057
8058    unicos*)
8059      lt_prog_compiler_wl='-Wl,'
8060      lt_prog_compiler_can_build_shared=no
8061      ;;
8062
8063    uts4*)
8064      lt_prog_compiler_pic='-pic'
8065      lt_prog_compiler_static='-Bstatic'
8066      ;;
8067
8068    *)
8069      lt_prog_compiler_can_build_shared=no
8070      ;;
8071    esac
8072  fi
8073
8074case $host_os in
8075  # For platforms which do not support PIC, -DPIC is meaningless:
8076  *djgpp*)
8077    lt_prog_compiler_pic=
8078    ;;
8079  *)
8080    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8081    ;;
8082esac
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8084$as_echo "$lt_prog_compiler_pic" >&6; }
8085
8086
8087
8088
8089
8090
8091#
8092# Check to make sure the PIC flag actually works.
8093#
8094if test -n "$lt_prog_compiler_pic"; then
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8096$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8097if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  lt_cv_prog_compiler_pic_works=no
8101   ac_outfile=conftest.$ac_objext
8102   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8103   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8104   # Insert the option either (1) after the last *FLAGS variable, or
8105   # (2) before a word containing "conftest.", or (3) at the end.
8106   # Note that $ac_compile itself does not contain backslashes and begins
8107   # with a dollar sign (not a hyphen), so the echo should work correctly.
8108   # The option is referenced via a variable to avoid confusing sed.
8109   lt_compile=`echo "$ac_compile" | $SED \
8110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112   -e 's:$: $lt_compiler_flag:'`
8113   (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8114   (eval "$lt_compile" 2>conftest.err)
8115   ac_status=$?
8116   cat conftest.err >&5
8117   echo "$as_me:8117: \$? = $ac_status" >&5
8118   if (exit $ac_status) && test -s "$ac_outfile"; then
8119     # The compiler can only warn and ignore the option if not recognized
8120     # So say no if there are warnings other than the usual output.
8121     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8122     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124       lt_cv_prog_compiler_pic_works=yes
8125     fi
8126   fi
8127   $RM conftest*
8128
8129fi
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8131$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8132
8133if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8134    case $lt_prog_compiler_pic in
8135     "" | " "*) ;;
8136     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8137     esac
8138else
8139    lt_prog_compiler_pic=
8140     lt_prog_compiler_can_build_shared=no
8141fi
8142
8143fi
8144
8145
8146
8147
8148
8149
8150#
8151# Check to make sure the static flag actually works.
8152#
8153wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8155$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8156if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  lt_cv_prog_compiler_static_works=no
8160   save_LDFLAGS="$LDFLAGS"
8161   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8162   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8163   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8164     # The linker can only warn and ignore the option if not recognized
8165     # So say no if there are warnings
8166     if test -s conftest.err; then
8167       # Append any errors to the config.log.
8168       cat conftest.err 1>&5
8169       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8170       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8171       if diff conftest.exp conftest.er2 >/dev/null; then
8172         lt_cv_prog_compiler_static_works=yes
8173       fi
8174     else
8175       lt_cv_prog_compiler_static_works=yes
8176     fi
8177   fi
8178   $RM -r conftest*
8179   LDFLAGS="$save_LDFLAGS"
8180
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8183$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8184
8185if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8186    :
8187else
8188    lt_prog_compiler_static=
8189fi
8190
8191
8192
8193
8194
8195
8196
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8198$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8199if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8200  $as_echo_n "(cached) " >&6
8201else
8202  lt_cv_prog_compiler_c_o=no
8203   $RM -r conftest 2>/dev/null
8204   mkdir conftest
8205   cd conftest
8206   mkdir out
8207   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8208
8209   lt_compiler_flag="-o out/conftest2.$ac_objext"
8210   # Insert the option either (1) after the last *FLAGS variable, or
8211   # (2) before a word containing "conftest.", or (3) at the end.
8212   # Note that $ac_compile itself does not contain backslashes and begins
8213   # with a dollar sign (not a hyphen), so the echo should work correctly.
8214   lt_compile=`echo "$ac_compile" | $SED \
8215   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8216   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217   -e 's:$: $lt_compiler_flag:'`
8218   (eval echo "\"\$as_me:8218: $lt_compile\"" >&5)
8219   (eval "$lt_compile" 2>out/conftest.err)
8220   ac_status=$?
8221   cat out/conftest.err >&5
8222   echo "$as_me:8222: \$? = $ac_status" >&5
8223   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8224   then
8225     # The compiler can only warn and ignore the option if not recognized
8226     # So say no if there are warnings
8227     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8228     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8229     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8230       lt_cv_prog_compiler_c_o=yes
8231     fi
8232   fi
8233   chmod u+w . 2>&5
8234   $RM conftest*
8235   # SGI C++ compiler will create directory out/ii_files/ for
8236   # template instantiation
8237   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8238   $RM out/* && rmdir out
8239   cd ..
8240   $RM -r conftest
8241   $RM conftest*
8242
8243fi
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8245$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8246
8247
8248
8249
8250
8251
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8253$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8254if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  lt_cv_prog_compiler_c_o=no
8258   $RM -r conftest 2>/dev/null
8259   mkdir conftest
8260   cd conftest
8261   mkdir out
8262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8263
8264   lt_compiler_flag="-o out/conftest2.$ac_objext"
8265   # Insert the option either (1) after the last *FLAGS variable, or
8266   # (2) before a word containing "conftest.", or (3) at the end.
8267   # Note that $ac_compile itself does not contain backslashes and begins
8268   # with a dollar sign (not a hyphen), so the echo should work correctly.
8269   lt_compile=`echo "$ac_compile" | $SED \
8270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8272   -e 's:$: $lt_compiler_flag:'`
8273   (eval echo "\"\$as_me:8273: $lt_compile\"" >&5)
8274   (eval "$lt_compile" 2>out/conftest.err)
8275   ac_status=$?
8276   cat out/conftest.err >&5
8277   echo "$as_me:8277: \$? = $ac_status" >&5
8278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8279   then
8280     # The compiler can only warn and ignore the option if not recognized
8281     # So say no if there are warnings
8282     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8285       lt_cv_prog_compiler_c_o=yes
8286     fi
8287   fi
8288   chmod u+w . 2>&5
8289   $RM conftest*
8290   # SGI C++ compiler will create directory out/ii_files/ for
8291   # template instantiation
8292   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8293   $RM out/* && rmdir out
8294   cd ..
8295   $RM -r conftest
8296   $RM conftest*
8297
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8300$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8301
8302
8303
8304
8305hard_links="nottested"
8306if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8307  # do not overwrite the value of need_locks provided by the user
8308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8309$as_echo_n "checking if we can lock with hard links... " >&6; }
8310  hard_links=yes
8311  $RM conftest*
8312  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8313  touch conftest.a
8314  ln conftest.a conftest.b 2>&5 || hard_links=no
8315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8317$as_echo "$hard_links" >&6; }
8318  if test "$hard_links" = no; then
8319    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8320$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8321    need_locks=warn
8322  fi
8323else
8324  need_locks=no
8325fi
8326
8327
8328
8329
8330
8331
8332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8333$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8334
8335  runpath_var=
8336  allow_undefined_flag=
8337  always_export_symbols=no
8338  archive_cmds=
8339  archive_expsym_cmds=
8340  compiler_needs_object=no
8341  enable_shared_with_static_runtimes=no
8342  export_dynamic_flag_spec=
8343  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8344  hardcode_automatic=no
8345  hardcode_direct=no
8346  hardcode_direct_absolute=no
8347  hardcode_libdir_flag_spec=
8348  hardcode_libdir_flag_spec_ld=
8349  hardcode_libdir_separator=
8350  hardcode_minus_L=no
8351  hardcode_shlibpath_var=unsupported
8352  inherit_rpath=no
8353  link_all_deplibs=unknown
8354  module_cmds=
8355  module_expsym_cmds=
8356  old_archive_from_new_cmds=
8357  old_archive_from_expsyms_cmds=
8358  thread_safe_flag_spec=
8359  whole_archive_flag_spec=
8360  # include_expsyms should be a list of space-separated symbols to be *always*
8361  # included in the symbol list
8362  include_expsyms=
8363  # exclude_expsyms can be an extended regexp of symbols to exclude
8364  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8365  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8366  # as well as any symbol that contains `d'.
8367  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8368  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8369  # platforms (ab)use it in PIC code, but their linkers get confused if
8370  # the symbol is explicitly referenced.  Since portable code cannot
8371  # rely on this symbol name, it's probably fine to never include it in
8372  # preloaded symbol tables.
8373  # Exclude shared library initialization/finalization symbols.
8374  extract_expsyms_cmds=
8375
8376  case $host_os in
8377  cygwin* | mingw* | pw32* | cegcc*)
8378    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8379    # When not using gcc, we currently assume that we are using
8380    # Microsoft Visual C++.
8381    if test "$GCC" != yes; then
8382      with_gnu_ld=no
8383    fi
8384    ;;
8385  interix*)
8386    # we just hope/assume this is gcc and not c89 (= MSVC++)
8387    with_gnu_ld=yes
8388    ;;
8389  openbsd*)
8390    with_gnu_ld=no
8391    ;;
8392  linux* | k*bsd*-gnu)
8393    link_all_deplibs=no
8394    ;;
8395  esac
8396
8397  ld_shlibs=yes
8398  if test "$with_gnu_ld" = yes; then
8399    # If archive_cmds runs LD, not CC, wlarc should be empty
8400    wlarc='${wl}'
8401
8402    # Set some defaults for GNU ld with shared library support. These
8403    # are reset later if shared libraries are not supported. Putting them
8404    # here allows them to be overridden if necessary.
8405    runpath_var=LD_RUN_PATH
8406    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407    export_dynamic_flag_spec='${wl}--export-dynamic'
8408    # ancient GNU ld didn't support --whole-archive et. al.
8409    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8411    else
8412      whole_archive_flag_spec=
8413    fi
8414    supports_anon_versioning=no
8415    case `$LD -v 2>&1` in
8416      *GNU\ gold*) supports_anon_versioning=yes ;;
8417      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8418      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8419      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8420      *\ 2.11.*) ;; # other 2.11 versions
8421      *) supports_anon_versioning=yes ;;
8422    esac
8423
8424    # See if GNU ld supports shared libraries.
8425    case $host_os in
8426    aix[3-9]*)
8427      # On AIX/PPC, the GNU linker is very broken
8428      if test "$host_cpu" != ia64; then
8429	ld_shlibs=no
8430	cat <<_LT_EOF 1>&2
8431
8432*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8433*** to be unable to reliably create shared libraries on AIX.
8434*** Therefore, libtool is disabling shared libraries support.  If you
8435*** really care for shared libraries, you may want to modify your PATH
8436*** so that a non-GNU linker is found, and then restart.
8437
8438_LT_EOF
8439      fi
8440      ;;
8441
8442    amigaos*)
8443      case $host_cpu in
8444      powerpc)
8445            # see comment about AmigaOS4 .so support
8446            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447            archive_expsym_cmds=''
8448        ;;
8449      m68k)
8450            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)'
8451            hardcode_libdir_flag_spec='-L$libdir'
8452            hardcode_minus_L=yes
8453        ;;
8454      esac
8455      ;;
8456
8457    beos*)
8458      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8459	allow_undefined_flag=unsupported
8460	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8461	# support --undefined.  This deserves some investigation.  FIXME
8462	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463      else
8464	ld_shlibs=no
8465      fi
8466      ;;
8467
8468    cygwin* | mingw* | pw32* | cegcc*)
8469      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8470      # as there is no search path for DLLs.
8471      hardcode_libdir_flag_spec='-L$libdir'
8472      allow_undefined_flag=unsupported
8473      always_export_symbols=no
8474      enable_shared_with_static_runtimes=yes
8475      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8476
8477      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8478        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8479	# If the export-symbols file already is a .def file (1st line
8480	# is EXPORTS), use it as is; otherwise, prepend...
8481	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8482	  cp $export_symbols $output_objdir/$soname.def;
8483	else
8484	  echo EXPORTS > $output_objdir/$soname.def;
8485	  cat $export_symbols >> $output_objdir/$soname.def;
8486	fi~
8487	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8488      else
8489	ld_shlibs=no
8490      fi
8491      ;;
8492
8493    interix[3-9]*)
8494      hardcode_direct=no
8495      hardcode_shlibpath_var=no
8496      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8497      export_dynamic_flag_spec='${wl}-E'
8498      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8499      # Instead, shared libraries are loaded at an image base (0x10000000 by
8500      # default) and relocated if they conflict, which is a slow very memory
8501      # consuming and fragmenting process.  To avoid this, we pick a random,
8502      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8503      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8504      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8505      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'
8506      ;;
8507
8508    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8509      tmp_diet=no
8510      if test "$host_os" = linux-dietlibc; then
8511	case $cc_basename in
8512	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8513	esac
8514      fi
8515      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8516	 && test "$tmp_diet" = no
8517      then
8518	tmp_addflag=
8519	tmp_sharedflag='-shared'
8520	case $cc_basename,$host_cpu in
8521        pgcc*)				# Portland Group C compiler
8522	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8523	  tmp_addflag=' $pic_flag'
8524	  ;;
8525	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8526	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8527	  tmp_addflag=' $pic_flag -Mnomain' ;;
8528	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8529	  tmp_addflag=' -i_dynamic' ;;
8530	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8531	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8532	ifc* | ifort*)			# Intel Fortran compiler
8533	  tmp_addflag=' -nofor_main' ;;
8534	lf95*)				# Lahey Fortran 8.1
8535	  whole_archive_flag_spec=
8536	  tmp_sharedflag='--shared' ;;
8537	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8538	  tmp_sharedflag='-qmkshrobj'
8539	  tmp_addflag= ;;
8540	esac
8541	case `$CC -V 2>&1 | sed 5q` in
8542	*Sun\ C*)			# Sun C 5.9
8543	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8544	  compiler_needs_object=yes
8545	  tmp_sharedflag='-G' ;;
8546	*Sun\ F*)			# Sun Fortran 8.3
8547	  tmp_sharedflag='-G' ;;
8548	esac
8549	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550
8551        if test "x$supports_anon_versioning" = xyes; then
8552          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8553	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8554	    echo "local: *; };" >> $output_objdir/$libname.ver~
8555	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8556        fi
8557
8558	case $cc_basename in
8559	xlf*)
8560	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8561	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8562	  hardcode_libdir_flag_spec=
8563	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8564	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8565	  if test "x$supports_anon_versioning" = xyes; then
8566	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8567	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8568	      echo "local: *; };" >> $output_objdir/$libname.ver~
8569	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8570	  fi
8571	  ;;
8572	esac
8573      else
8574        ld_shlibs=no
8575      fi
8576      ;;
8577
8578    netbsd* | netbsdelf*-gnu)
8579      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8580	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8581	wlarc=
8582      else
8583	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8584	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8585      fi
8586      ;;
8587
8588    solaris*)
8589      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8590	ld_shlibs=no
8591	cat <<_LT_EOF 1>&2
8592
8593*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8594*** create shared libraries on Solaris systems.  Therefore, libtool
8595*** is disabling shared libraries support.  We urge you to upgrade GNU
8596*** binutils to release 2.9.1 or newer.  Another option is to modify
8597*** your PATH or compiler configuration so that the native linker is
8598*** used, and then restart.
8599
8600_LT_EOF
8601      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8602	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8603	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8604      else
8605	ld_shlibs=no
8606      fi
8607      ;;
8608
8609    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8610      case `$LD -v 2>&1` in
8611        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8612	ld_shlibs=no
8613	cat <<_LT_EOF 1>&2
8614
8615*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8616*** reliably create shared libraries on SCO systems.  Therefore, libtool
8617*** is disabling shared libraries support.  We urge you to upgrade GNU
8618*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8619*** your PATH or compiler configuration so that the native linker is
8620*** used, and then restart.
8621
8622_LT_EOF
8623	;;
8624	*)
8625	  # For security reasons, it is highly recommended that you always
8626	  # use absolute paths for naming shared libraries, and exclude the
8627	  # DT_RUNPATH tag from executables and libraries.  But doing so
8628	  # requires that you compile everything twice, which is a pain.
8629	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8630	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8631	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8633	  else
8634	    ld_shlibs=no
8635	  fi
8636	;;
8637      esac
8638      ;;
8639
8640    sunos4*)
8641      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8642      wlarc=
8643      hardcode_direct=yes
8644      hardcode_shlibpath_var=no
8645      ;;
8646
8647    *)
8648      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8649	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651      else
8652	ld_shlibs=no
8653      fi
8654      ;;
8655    esac
8656
8657    if test "$ld_shlibs" = no; then
8658      runpath_var=
8659      hardcode_libdir_flag_spec=
8660      export_dynamic_flag_spec=
8661      whole_archive_flag_spec=
8662    fi
8663  else
8664    # PORTME fill in a description of your system's linker (not GNU ld)
8665    case $host_os in
8666    aix3*)
8667      allow_undefined_flag=unsupported
8668      always_export_symbols=yes
8669      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'
8670      # Note: this linker hardcodes the directories in LIBPATH if there
8671      # are no directories specified by -L.
8672      hardcode_minus_L=yes
8673      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8674	# Neither direct hardcoding nor static linking is supported with a
8675	# broken collect2.
8676	hardcode_direct=unsupported
8677      fi
8678      ;;
8679
8680    aix[4-9]*)
8681      if test "$host_cpu" = ia64; then
8682	# On IA64, the linker does run time linking by default, so we don't
8683	# have to do anything special.
8684	aix_use_runtimelinking=no
8685	exp_sym_flag='-Bexport'
8686	no_entry_flag=""
8687      else
8688	# If we're using GNU nm, then we don't want the "-C" option.
8689	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8690	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8691	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8692	else
8693	  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'
8694	fi
8695	aix_use_runtimelinking=no
8696
8697	# Test if we are trying to use run time linking or normal
8698	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8699	# need to do runtime linking.
8700	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8701	  for ld_flag in $LDFLAGS; do
8702	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8703	    aix_use_runtimelinking=yes
8704	    break
8705	  fi
8706	  done
8707	  ;;
8708	esac
8709
8710	exp_sym_flag='-bexport'
8711	no_entry_flag='-bnoentry'
8712      fi
8713
8714      # When large executables or shared objects are built, AIX ld can
8715      # have problems creating the table of contents.  If linking a library
8716      # or program results in "error TOC overflow" add -mminimal-toc to
8717      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8718      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8719
8720      archive_cmds=''
8721      hardcode_direct=yes
8722      hardcode_direct_absolute=yes
8723      hardcode_libdir_separator=':'
8724      link_all_deplibs=yes
8725      file_list_spec='${wl}-f,'
8726
8727      if test "$GCC" = yes; then
8728	case $host_os in aix4.[012]|aix4.[012].*)
8729	# We only want to do this on AIX 4.2 and lower, the check
8730	# below for broken collect2 doesn't work under 4.3+
8731	  collect2name=`${CC} -print-prog-name=collect2`
8732	  if test -f "$collect2name" &&
8733	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8734	  then
8735	  # We have reworked collect2
8736	  :
8737	  else
8738	  # We have old collect2
8739	  hardcode_direct=unsupported
8740	  # It fails to find uninstalled libraries when the uninstalled
8741	  # path is not listed in the libpath.  Setting hardcode_minus_L
8742	  # to unsupported forces relinking
8743	  hardcode_minus_L=yes
8744	  hardcode_libdir_flag_spec='-L$libdir'
8745	  hardcode_libdir_separator=
8746	  fi
8747	  ;;
8748	esac
8749	shared_flag='-shared'
8750	if test "$aix_use_runtimelinking" = yes; then
8751	  shared_flag="$shared_flag "'${wl}-G'
8752	fi
8753	link_all_deplibs=no
8754      else
8755	# not using gcc
8756	if test "$host_cpu" = ia64; then
8757	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8758	# chokes on -Wl,-G. The following line is correct:
8759	  shared_flag='-G'
8760	else
8761	  if test "$aix_use_runtimelinking" = yes; then
8762	    shared_flag='${wl}-G'
8763	  else
8764	    shared_flag='${wl}-bM:SRE'
8765	  fi
8766	fi
8767      fi
8768
8769      export_dynamic_flag_spec='${wl}-bexpall'
8770      # It seems that -bexpall does not export symbols beginning with
8771      # underscore (_), so it is better to generate a list of symbols to export.
8772      always_export_symbols=yes
8773      if test "$aix_use_runtimelinking" = yes; then
8774	# Warning - without using the other runtime loading flags (-brtl),
8775	# -berok will link without error, but may produce a broken library.
8776	allow_undefined_flag='-berok'
8777        # Determine the default libpath from the value encoded in an
8778        # empty executable.
8779        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780/* end confdefs.h.  */
8781
8782int
8783main ()
8784{
8785
8786  ;
8787  return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"; then :
8791
8792lt_aix_libpath_sed='
8793    /Import File Strings/,/^$/ {
8794	/^0/ {
8795	    s/^0  *\(.*\)$/\1/
8796	    p
8797	}
8798    }'
8799aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8800# Check for a 64-bit object if we didn't find anything.
8801if test -z "$aix_libpath"; then
8802  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8803fi
8804fi
8805rm -f core conftest.err conftest.$ac_objext \
8806    conftest$ac_exeext conftest.$ac_ext
8807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8808
8809        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8810        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8811      else
8812	if test "$host_cpu" = ia64; then
8813	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8814	  allow_undefined_flag="-z nodefs"
8815	  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"
8816	else
8817	 # Determine the default libpath from the value encoded in an
8818	 # empty executable.
8819	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821
8822int
8823main ()
8824{
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831
8832lt_aix_libpath_sed='
8833    /Import File Strings/,/^$/ {
8834	/^0/ {
8835	    s/^0  *\(.*\)$/\1/
8836	    p
8837	}
8838    }'
8839aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8840# Check for a 64-bit object if we didn't find anything.
8841if test -z "$aix_libpath"; then
8842  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8843fi
8844fi
8845rm -f core conftest.err conftest.$ac_objext \
8846    conftest$ac_exeext conftest.$ac_ext
8847if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8848
8849	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8850	  # Warning - without using the other run time loading flags,
8851	  # -berok will link without error, but may produce a broken library.
8852	  no_undefined_flag=' ${wl}-bernotok'
8853	  allow_undefined_flag=' ${wl}-berok'
8854	  # Exported symbols can be pulled into shared objects from archives
8855	  whole_archive_flag_spec='$convenience'
8856	  archive_cmds_need_lc=yes
8857	  # This is similar to how AIX traditionally builds its shared libraries.
8858	  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'
8859	fi
8860      fi
8861      ;;
8862
8863    amigaos*)
8864      case $host_cpu in
8865      powerpc)
8866            # see comment about AmigaOS4 .so support
8867            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868            archive_expsym_cmds=''
8869        ;;
8870      m68k)
8871            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)'
8872            hardcode_libdir_flag_spec='-L$libdir'
8873            hardcode_minus_L=yes
8874        ;;
8875      esac
8876      ;;
8877
8878    bsdi[45]*)
8879      export_dynamic_flag_spec=-rdynamic
8880      ;;
8881
8882    cygwin* | mingw* | pw32* | cegcc*)
8883      # When not using gcc, we currently assume that we are using
8884      # Microsoft Visual C++.
8885      # hardcode_libdir_flag_spec is actually meaningless, as there is
8886      # no search path for DLLs.
8887      hardcode_libdir_flag_spec=' '
8888      allow_undefined_flag=unsupported
8889      # Tell ltmain to make .lib files, not .a files.
8890      libext=lib
8891      # Tell ltmain to make .dll files, not .so files.
8892      shrext_cmds=".dll"
8893      # FIXME: Setting linknames here is a bad hack.
8894      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8895      # The linker will automatically build a .lib file if we build a DLL.
8896      old_archive_from_new_cmds='true'
8897      # FIXME: Should let the user specify the lib program.
8898      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8899      fix_srcfile_path='`cygpath -w "$srcfile"`'
8900      enable_shared_with_static_runtimes=yes
8901      ;;
8902
8903    darwin* | rhapsody*)
8904
8905
8906  archive_cmds_need_lc=no
8907  hardcode_direct=no
8908  hardcode_automatic=yes
8909  hardcode_shlibpath_var=unsupported
8910  whole_archive_flag_spec=''
8911  link_all_deplibs=yes
8912  allow_undefined_flag="$_lt_dar_allow_undefined"
8913  case $cc_basename in
8914     ifort*) _lt_dar_can_shared=yes ;;
8915     *) _lt_dar_can_shared=$GCC ;;
8916  esac
8917  if test "$_lt_dar_can_shared" = "yes"; then
8918    output_verbose_link_cmd=echo
8919    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8920    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8921    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}"
8922    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}"
8923
8924  else
8925  ld_shlibs=no
8926  fi
8927
8928      ;;
8929
8930    dgux*)
8931      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932      hardcode_libdir_flag_spec='-L$libdir'
8933      hardcode_shlibpath_var=no
8934      ;;
8935
8936    freebsd1*)
8937      ld_shlibs=no
8938      ;;
8939
8940    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8941    # support.  Future versions do this automatically, but an explicit c++rt0.o
8942    # does not break anything, and helps significantly (at the cost of a little
8943    # extra space).
8944    freebsd2.2*)
8945      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8946      hardcode_libdir_flag_spec='-R$libdir'
8947      hardcode_direct=yes
8948      hardcode_shlibpath_var=no
8949      ;;
8950
8951    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8952    freebsd2*)
8953      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8954      hardcode_direct=yes
8955      hardcode_minus_L=yes
8956      hardcode_shlibpath_var=no
8957      ;;
8958
8959    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8960    freebsd* | dragonfly*)
8961      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8962      hardcode_libdir_flag_spec='-R$libdir'
8963      hardcode_direct=yes
8964      hardcode_shlibpath_var=no
8965      ;;
8966
8967    hpux9*)
8968      if test "$GCC" = yes; then
8969	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8970      else
8971	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'
8972      fi
8973      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8974      hardcode_libdir_separator=:
8975      hardcode_direct=yes
8976
8977      # hardcode_minus_L: Not really in the search PATH,
8978      # but as the default location of the library.
8979      hardcode_minus_L=yes
8980      export_dynamic_flag_spec='${wl}-E'
8981      ;;
8982
8983    hpux10*)
8984      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8985	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8986      else
8987	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8988      fi
8989      if test "$with_gnu_ld" = no; then
8990	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8991	hardcode_libdir_flag_spec_ld='+b $libdir'
8992	hardcode_libdir_separator=:
8993	hardcode_direct=yes
8994	hardcode_direct_absolute=yes
8995	export_dynamic_flag_spec='${wl}-E'
8996	# hardcode_minus_L: Not really in the search PATH,
8997	# but as the default location of the library.
8998	hardcode_minus_L=yes
8999      fi
9000      ;;
9001
9002    hpux11*)
9003      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9004	case $host_cpu in
9005	hppa*64*)
9006	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9007	  ;;
9008	ia64*)
9009	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9010	  ;;
9011	*)
9012	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9013	  ;;
9014	esac
9015      else
9016	case $host_cpu in
9017	hppa*64*)
9018	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9019	  ;;
9020	ia64*)
9021	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9022	  ;;
9023	*)
9024	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9025	  ;;
9026	esac
9027      fi
9028      if test "$with_gnu_ld" = no; then
9029	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030	hardcode_libdir_separator=:
9031
9032	case $host_cpu in
9033	hppa*64*|ia64*)
9034	  hardcode_direct=no
9035	  hardcode_shlibpath_var=no
9036	  ;;
9037	*)
9038	  hardcode_direct=yes
9039	  hardcode_direct_absolute=yes
9040	  export_dynamic_flag_spec='${wl}-E'
9041
9042	  # hardcode_minus_L: Not really in the search PATH,
9043	  # but as the default location of the library.
9044	  hardcode_minus_L=yes
9045	  ;;
9046	esac
9047      fi
9048      ;;
9049
9050    irix5* | irix6* | nonstopux*)
9051      if test "$GCC" = yes; then
9052	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9053	# Try to use the -exported_symbol ld option, if it does not
9054	# work, assume that -exports_file does not work either and
9055	# implicitly export all symbols.
9056        save_LDFLAGS="$LDFLAGS"
9057        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9058        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060int foo(void) {}
9061_ACEOF
9062if ac_fn_c_try_link "$LINENO"; then :
9063  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9064
9065fi
9066rm -f core conftest.err conftest.$ac_objext \
9067    conftest$ac_exeext conftest.$ac_ext
9068        LDFLAGS="$save_LDFLAGS"
9069      else
9070	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9071	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9072      fi
9073      archive_cmds_need_lc='no'
9074      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9075      hardcode_libdir_separator=:
9076      inherit_rpath=yes
9077      link_all_deplibs=yes
9078      ;;
9079
9080    netbsd* | netbsdelf*-gnu)
9081      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9082	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9083      else
9084	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9085      fi
9086      hardcode_libdir_flag_spec='-R$libdir'
9087      hardcode_direct=yes
9088      hardcode_shlibpath_var=no
9089      ;;
9090
9091    newsos6)
9092      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093      hardcode_direct=yes
9094      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9095      hardcode_libdir_separator=:
9096      hardcode_shlibpath_var=no
9097      ;;
9098
9099    *nto* | *qnx*)
9100      ;;
9101
9102    openbsd*)
9103      if test -f /usr/libexec/ld.so; then
9104	hardcode_direct=yes
9105	hardcode_shlibpath_var=no
9106	hardcode_direct_absolute=yes
9107	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9108	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9109	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9110	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9111	  export_dynamic_flag_spec='${wl}-E'
9112	else
9113	  case $host_os in
9114	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9115	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9116	     hardcode_libdir_flag_spec='-R$libdir'
9117	     ;;
9118	   *)
9119	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9120	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9121	     ;;
9122	  esac
9123	fi
9124      else
9125	ld_shlibs=no
9126      fi
9127      ;;
9128
9129    os2*)
9130      hardcode_libdir_flag_spec='-L$libdir'
9131      hardcode_minus_L=yes
9132      allow_undefined_flag=unsupported
9133      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'
9134      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9135      ;;
9136
9137    osf3*)
9138      if test "$GCC" = yes; then
9139	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9140	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9141      else
9142	allow_undefined_flag=' -expect_unresolved \*'
9143	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9144      fi
9145      archive_cmds_need_lc='no'
9146      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9147      hardcode_libdir_separator=:
9148      ;;
9149
9150    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9151      if test "$GCC" = yes; then
9152	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9153	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9154	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9155      else
9156	allow_undefined_flag=' -expect_unresolved \*'
9157	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9158	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~
9159	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9160
9161	# Both c and cxx compiler support -rpath directly
9162	hardcode_libdir_flag_spec='-rpath $libdir'
9163      fi
9164      archive_cmds_need_lc='no'
9165      hardcode_libdir_separator=:
9166      ;;
9167
9168    solaris*)
9169      no_undefined_flag=' -z defs'
9170      if test "$GCC" = yes; then
9171	wlarc='${wl}'
9172	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9173	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9174	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9175      else
9176	case `$CC -V 2>&1` in
9177	*"Compilers 5.0"*)
9178	  wlarc=''
9179	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9181	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9182	  ;;
9183	*)
9184	  wlarc='${wl}'
9185	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9186	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9187	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9188	  ;;
9189	esac
9190      fi
9191      hardcode_libdir_flag_spec='-R$libdir'
9192      hardcode_shlibpath_var=no
9193      case $host_os in
9194      solaris2.[0-5] | solaris2.[0-5].*) ;;
9195      *)
9196	# The compiler driver will combine and reorder linker options,
9197	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9198	# but is careful enough not to reorder.
9199	# Supported since Solaris 2.6 (maybe 2.5.1?)
9200	if test "$GCC" = yes; then
9201	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9202	else
9203	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9204	fi
9205	;;
9206      esac
9207      link_all_deplibs=yes
9208      ;;
9209
9210    sunos4*)
9211      if test "x$host_vendor" = xsequent; then
9212	# Use $CC to link under sequent, because it throws in some extra .o
9213	# files that make .init and .fini sections work.
9214	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9215      else
9216	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9217      fi
9218      hardcode_libdir_flag_spec='-L$libdir'
9219      hardcode_direct=yes
9220      hardcode_minus_L=yes
9221      hardcode_shlibpath_var=no
9222      ;;
9223
9224    sysv4)
9225      case $host_vendor in
9226	sni)
9227	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228	  hardcode_direct=yes # is this really true???
9229	;;
9230	siemens)
9231	  ## LD is ld it makes a PLAMLIB
9232	  ## CC just makes a GrossModule.
9233	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9234	  reload_cmds='$CC -r -o $output$reload_objs'
9235	  hardcode_direct=no
9236        ;;
9237	motorola)
9238	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9239	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9240	;;
9241      esac
9242      runpath_var='LD_RUN_PATH'
9243      hardcode_shlibpath_var=no
9244      ;;
9245
9246    sysv4.3*)
9247      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248      hardcode_shlibpath_var=no
9249      export_dynamic_flag_spec='-Bexport'
9250      ;;
9251
9252    sysv4*MP*)
9253      if test -d /usr/nec; then
9254	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255	hardcode_shlibpath_var=no
9256	runpath_var=LD_RUN_PATH
9257	hardcode_runpath_var=yes
9258	ld_shlibs=yes
9259      fi
9260      ;;
9261
9262    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9263      no_undefined_flag='${wl}-z,text'
9264      archive_cmds_need_lc=no
9265      hardcode_shlibpath_var=no
9266      runpath_var='LD_RUN_PATH'
9267
9268      if test "$GCC" = yes; then
9269	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9270	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9271      else
9272	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9273	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9274      fi
9275      ;;
9276
9277    sysv5* | sco3.2v5* | sco5v6*)
9278      # Note: We can NOT use -z defs as we might desire, because we do not
9279      # link with -lc, and that would cause any symbols used from libc to
9280      # always be unresolved, which means just about no library would
9281      # ever link correctly.  If we're not using GNU ld we use -z text
9282      # though, which does catch some bad symbols but isn't as heavy-handed
9283      # as -z defs.
9284      no_undefined_flag='${wl}-z,text'
9285      allow_undefined_flag='${wl}-z,nodefs'
9286      archive_cmds_need_lc=no
9287      hardcode_shlibpath_var=no
9288      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9289      hardcode_libdir_separator=':'
9290      link_all_deplibs=yes
9291      export_dynamic_flag_spec='${wl}-Bexport'
9292      runpath_var='LD_RUN_PATH'
9293
9294      if test "$GCC" = yes; then
9295	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9296	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9297      else
9298	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9299	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9300      fi
9301      ;;
9302
9303    uts4*)
9304      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305      hardcode_libdir_flag_spec='-L$libdir'
9306      hardcode_shlibpath_var=no
9307      ;;
9308
9309    *)
9310      ld_shlibs=no
9311      ;;
9312    esac
9313
9314    if test x$host_vendor = xsni; then
9315      case $host in
9316      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9317	export_dynamic_flag_spec='${wl}-Blargedynsym'
9318	;;
9319      esac
9320    fi
9321  fi
9322
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9324$as_echo "$ld_shlibs" >&6; }
9325test "$ld_shlibs" = no && can_build_shared=no
9326
9327with_gnu_ld=$with_gnu_ld
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343#
9344# Do we need to explicitly link libc?
9345#
9346case "x$archive_cmds_need_lc" in
9347x|xyes)
9348  # Assume -lc should be added
9349  archive_cmds_need_lc=yes
9350
9351  if test "$enable_shared" = yes && test "$GCC" = yes; then
9352    case $archive_cmds in
9353    *'~'*)
9354      # FIXME: we may have to deal with multi-command sequences.
9355      ;;
9356    '$CC '*)
9357      # Test whether the compiler implicitly links with -lc since on some
9358      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9359      # to ld, don't add -lc before -lgcc.
9360      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9361$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9362      $RM conftest*
9363      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9364
9365      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9366  (eval $ac_compile) 2>&5
9367  ac_status=$?
9368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9369  test $ac_status = 0; } 2>conftest.err; then
9370        soname=conftest
9371        lib=conftest
9372        libobjs=conftest.$ac_objext
9373        deplibs=
9374        wl=$lt_prog_compiler_wl
9375	pic_flag=$lt_prog_compiler_pic
9376        compiler_flags=-v
9377        linker_flags=-v
9378        verstring=
9379        output_objdir=.
9380        libname=conftest
9381        lt_save_allow_undefined_flag=$allow_undefined_flag
9382        allow_undefined_flag=
9383        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9384  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9385  ac_status=$?
9386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9387  test $ac_status = 0; }
9388        then
9389	  archive_cmds_need_lc=no
9390        else
9391	  archive_cmds_need_lc=yes
9392        fi
9393        allow_undefined_flag=$lt_save_allow_undefined_flag
9394      else
9395        cat conftest.err 1>&5
9396      fi
9397      $RM conftest*
9398      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9399$as_echo "$archive_cmds_need_lc" >&6; }
9400      ;;
9401    esac
9402  fi
9403  ;;
9404esac
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9563$as_echo_n "checking dynamic linker characteristics... " >&6; }
9564
9565if test "$GCC" = yes; then
9566  case $host_os in
9567    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9568    *) lt_awk_arg="/^libraries:/" ;;
9569  esac
9570  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9571  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9572    # if the path contains ";" then we assume it to be the separator
9573    # otherwise default to the standard path separator (i.e. ":") - it is
9574    # assumed that no part of a normal pathname contains ";" but that should
9575    # okay in the real world where ";" in dirpaths is itself problematic.
9576    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9577  else
9578    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9579  fi
9580  # Ok, now we have the path, separated by spaces, we can step through it
9581  # and add multilib dir if necessary.
9582  lt_tmp_lt_search_path_spec=
9583  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9584  for lt_sys_path in $lt_search_path_spec; do
9585    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9586      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9587    else
9588      test -d "$lt_sys_path" && \
9589	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9590    fi
9591  done
9592  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9593BEGIN {RS=" "; FS="/|\n";} {
9594  lt_foo="";
9595  lt_count=0;
9596  for (lt_i = NF; lt_i > 0; lt_i--) {
9597    if ($lt_i != "" && $lt_i != ".") {
9598      if ($lt_i == "..") {
9599        lt_count++;
9600      } else {
9601        if (lt_count == 0) {
9602          lt_foo="/" $lt_i lt_foo;
9603        } else {
9604          lt_count--;
9605        }
9606      }
9607    }
9608  }
9609  if (lt_foo != "") { lt_freq[lt_foo]++; }
9610  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9611}'`
9612  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9613else
9614  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9615fi
9616library_names_spec=
9617libname_spec='lib$name'
9618soname_spec=
9619shrext_cmds=".so"
9620postinstall_cmds=
9621postuninstall_cmds=
9622finish_cmds=
9623finish_eval=
9624shlibpath_var=
9625shlibpath_overrides_runpath=unknown
9626version_type=none
9627dynamic_linker="$host_os ld.so"
9628sys_lib_dlsearch_path_spec="/lib /usr/lib"
9629need_lib_prefix=unknown
9630hardcode_into_libs=no
9631
9632# when you set need_version to no, make sure it does not cause -set_version
9633# flags to be left without arguments
9634need_version=unknown
9635
9636case $host_os in
9637aix3*)
9638  version_type=linux
9639  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9640  shlibpath_var=LIBPATH
9641
9642  # AIX 3 has no versioning support, so we append a major version to the name.
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  ;;
9645
9646aix[4-9]*)
9647  version_type=linux
9648  need_lib_prefix=no
9649  need_version=no
9650  hardcode_into_libs=yes
9651  if test "$host_cpu" = ia64; then
9652    # AIX 5 supports IA64
9653    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9654    shlibpath_var=LD_LIBRARY_PATH
9655  else
9656    # With GCC up to 2.95.x, collect2 would create an import file
9657    # for dependence libraries.  The import file would start with
9658    # the line `#! .'.  This would cause the generated library to
9659    # depend on `.', always an invalid library.  This was fixed in
9660    # development snapshots of GCC prior to 3.0.
9661    case $host_os in
9662      aix4 | aix4.[01] | aix4.[01].*)
9663      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9664	   echo ' yes '
9665	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9666	:
9667      else
9668	can_build_shared=no
9669      fi
9670      ;;
9671    esac
9672    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9673    # soname into executable. Probably we can add versioning support to
9674    # collect2, so additional links can be useful in future.
9675    if test "$aix_use_runtimelinking" = yes; then
9676      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9677      # instead of lib<name>.a to let people know that these are not
9678      # typical AIX shared libraries.
9679      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680    else
9681      # We preserve .a as extension for shared libraries through AIX4.2
9682      # and later when we are not doing run time linking.
9683      library_names_spec='${libname}${release}.a $libname.a'
9684      soname_spec='${libname}${release}${shared_ext}$major'
9685    fi
9686    shlibpath_var=LIBPATH
9687  fi
9688  ;;
9689
9690amigaos*)
9691  case $host_cpu in
9692  powerpc)
9693    # Since July 2007 AmigaOS4 officially supports .so libraries.
9694    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9695    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696    ;;
9697  m68k)
9698    library_names_spec='$libname.ixlibrary $libname.a'
9699    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9700    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9701    ;;
9702  esac
9703  ;;
9704
9705beos*)
9706  library_names_spec='${libname}${shared_ext}'
9707  dynamic_linker="$host_os ld.so"
9708  shlibpath_var=LIBRARY_PATH
9709  ;;
9710
9711bsdi[45]*)
9712  version_type=linux
9713  need_version=no
9714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715  soname_spec='${libname}${release}${shared_ext}$major'
9716  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9717  shlibpath_var=LD_LIBRARY_PATH
9718  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9719  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9720  # the default ld.so.conf also contains /usr/contrib/lib and
9721  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9722  # libtool to hard-code these into programs
9723  ;;
9724
9725cygwin* | mingw* | pw32* | cegcc*)
9726  version_type=windows
9727  shrext_cmds=".dll"
9728  need_version=no
9729  need_lib_prefix=no
9730
9731  case $GCC,$host_os in
9732  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9733    library_names_spec='$libname.dll.a'
9734    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9735    postinstall_cmds='base_file=`basename \${file}`~
9736      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9737      dldir=$destdir/`dirname \$dlpath`~
9738      test -d \$dldir || mkdir -p \$dldir~
9739      $install_prog $dir/$dlname \$dldir/$dlname~
9740      chmod a+x \$dldir/$dlname~
9741      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9742        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9743      fi'
9744    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9745      dlpath=$dir/\$dldll~
9746       $RM \$dlpath'
9747    shlibpath_overrides_runpath=yes
9748
9749    case $host_os in
9750    cygwin*)
9751      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9752      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9753      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9754      ;;
9755    mingw* | cegcc*)
9756      # MinGW DLLs use traditional 'lib' prefix
9757      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9758      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9759      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9760        # It is most probably a Windows format PATH printed by
9761        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9762        # path with ; separators, and with drive letters. We can handle the
9763        # drive letters (cygwin fileutils understands them), so leave them,
9764        # especially as we might pass files found there to a mingw objdump,
9765        # which wouldn't understand a cygwinified path. Ahh.
9766        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9767      else
9768        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9769      fi
9770      ;;
9771    pw32*)
9772      # pw32 DLLs use 'pw' prefix rather than 'lib'
9773      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9774      ;;
9775    esac
9776    ;;
9777
9778  *)
9779    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9780    ;;
9781  esac
9782  dynamic_linker='Win32 ld.exe'
9783  # FIXME: first we should search . and the directory the executable is in
9784  shlibpath_var=PATH
9785  ;;
9786
9787darwin* | rhapsody*)
9788  dynamic_linker="$host_os dyld"
9789  version_type=darwin
9790  need_lib_prefix=no
9791  need_version=no
9792  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9793  soname_spec='${libname}${release}${major}$shared_ext'
9794  shlibpath_overrides_runpath=yes
9795  shlibpath_var=DYLD_LIBRARY_PATH
9796  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9797
9798  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9799  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9800  ;;
9801
9802dgux*)
9803  version_type=linux
9804  need_lib_prefix=no
9805  need_version=no
9806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9807  soname_spec='${libname}${release}${shared_ext}$major'
9808  shlibpath_var=LD_LIBRARY_PATH
9809  ;;
9810
9811freebsd1*)
9812  dynamic_linker=no
9813  ;;
9814
9815freebsd* | dragonfly*)
9816  # DragonFly does not have aout.  When/if they implement a new
9817  # versioning mechanism, adjust this.
9818  if test -x /usr/bin/objformat; then
9819    objformat=`/usr/bin/objformat`
9820  else
9821    case $host_os in
9822    freebsd[123]*) objformat=aout ;;
9823    *) objformat=elf ;;
9824    esac
9825  fi
9826  version_type=freebsd-$objformat
9827  case $version_type in
9828    freebsd-elf*)
9829      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9830      need_version=no
9831      need_lib_prefix=no
9832      ;;
9833    freebsd-*)
9834      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9835      need_version=yes
9836      ;;
9837  esac
9838  shlibpath_var=LD_LIBRARY_PATH
9839  case $host_os in
9840  freebsd2*)
9841    shlibpath_overrides_runpath=yes
9842    ;;
9843  freebsd3.[01]* | freebsdelf3.[01]*)
9844    shlibpath_overrides_runpath=yes
9845    hardcode_into_libs=yes
9846    ;;
9847  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9848  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9849    shlibpath_overrides_runpath=no
9850    hardcode_into_libs=yes
9851    ;;
9852  *) # from 4.6 on, and DragonFly
9853    shlibpath_overrides_runpath=yes
9854    hardcode_into_libs=yes
9855    ;;
9856  esac
9857  ;;
9858
9859gnu*)
9860  version_type=linux
9861  need_lib_prefix=no
9862  need_version=no
9863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9864  soname_spec='${libname}${release}${shared_ext}$major'
9865  shlibpath_var=LD_LIBRARY_PATH
9866  hardcode_into_libs=yes
9867  ;;
9868
9869hpux9* | hpux10* | hpux11*)
9870  # Give a soname corresponding to the major version so that dld.sl refuses to
9871  # link against other versions.
9872  version_type=sunos
9873  need_lib_prefix=no
9874  need_version=no
9875  case $host_cpu in
9876  ia64*)
9877    shrext_cmds='.so'
9878    hardcode_into_libs=yes
9879    dynamic_linker="$host_os dld.so"
9880    shlibpath_var=LD_LIBRARY_PATH
9881    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9882    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883    soname_spec='${libname}${release}${shared_ext}$major'
9884    if test "X$HPUX_IA64_MODE" = X32; then
9885      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9886    else
9887      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9888    fi
9889    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9890    ;;
9891  hppa*64*)
9892    shrext_cmds='.sl'
9893    hardcode_into_libs=yes
9894    dynamic_linker="$host_os dld.sl"
9895    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9896    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9897    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898    soname_spec='${libname}${release}${shared_ext}$major'
9899    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9900    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9901    ;;
9902  *)
9903    shrext_cmds='.sl'
9904    dynamic_linker="$host_os dld.sl"
9905    shlibpath_var=SHLIB_PATH
9906    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9907    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908    soname_spec='${libname}${release}${shared_ext}$major'
9909    ;;
9910  esac
9911  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9912  postinstall_cmds='chmod 555 $lib'
9913  ;;
9914
9915interix[3-9]*)
9916  version_type=linux
9917  need_lib_prefix=no
9918  need_version=no
9919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9920  soname_spec='${libname}${release}${shared_ext}$major'
9921  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9922  shlibpath_var=LD_LIBRARY_PATH
9923  shlibpath_overrides_runpath=no
9924  hardcode_into_libs=yes
9925  ;;
9926
9927irix5* | irix6* | nonstopux*)
9928  case $host_os in
9929    nonstopux*) version_type=nonstopux ;;
9930    *)
9931	if test "$lt_cv_prog_gnu_ld" = yes; then
9932		version_type=linux
9933	else
9934		version_type=irix
9935	fi ;;
9936  esac
9937  need_lib_prefix=no
9938  need_version=no
9939  soname_spec='${libname}${release}${shared_ext}$major'
9940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9941  case $host_os in
9942  irix5* | nonstopux*)
9943    libsuff= shlibsuff=
9944    ;;
9945  *)
9946    case $LD in # libtool.m4 will add one of these switches to LD
9947    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9948      libsuff= shlibsuff= libmagic=32-bit;;
9949    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9950      libsuff=32 shlibsuff=N32 libmagic=N32;;
9951    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9952      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9953    *) libsuff= shlibsuff= libmagic=never-match;;
9954    esac
9955    ;;
9956  esac
9957  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9958  shlibpath_overrides_runpath=no
9959  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9960  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9961  hardcode_into_libs=yes
9962  ;;
9963
9964# No shared lib support for Linux oldld, aout, or coff.
9965linux*oldld* | linux*aout* | linux*coff*)
9966  dynamic_linker=no
9967  ;;
9968
9969# This must be Linux ELF.
9970linux* | k*bsd*-gnu | kopensolaris*-gnu)
9971  version_type=linux
9972  need_lib_prefix=no
9973  need_version=no
9974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975  soname_spec='${libname}${release}${shared_ext}$major'
9976  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9977  shlibpath_var=LD_LIBRARY_PATH
9978  shlibpath_overrides_runpath=no
9979  # Some binutils ld are patched to set DT_RUNPATH
9980  save_LDFLAGS=$LDFLAGS
9981  save_libdir=$libdir
9982  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9983       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986
9987int
9988main ()
9989{
9990
9991  ;
9992  return 0;
9993}
9994_ACEOF
9995if ac_fn_c_try_link "$LINENO"; then :
9996  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9997  shlibpath_overrides_runpath=yes
9998fi
9999fi
10000rm -f core conftest.err conftest.$ac_objext \
10001    conftest$ac_exeext conftest.$ac_ext
10002  LDFLAGS=$save_LDFLAGS
10003  libdir=$save_libdir
10004
10005  # This implies no fast_install, which is unacceptable.
10006  # Some rework will be needed to allow for fast_install
10007  # before this can be enabled.
10008  hardcode_into_libs=yes
10009
10010  # Append ld.so.conf contents to the search path
10011  if test -f /etc/ld.so.conf; then
10012    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;/^$/d' | tr '\n' ' '`
10013    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10014  fi
10015
10016  # We used to test for /lib/ld.so.1 and disable shared libraries on
10017  # powerpc, because MkLinux only supported shared libraries with the
10018  # GNU dynamic linker.  Since this was broken with cross compilers,
10019  # most powerpc-linux boxes support dynamic linking these days and
10020  # people can always --disable-shared, the test was removed, and we
10021  # assume the GNU/Linux dynamic linker is in use.
10022  dynamic_linker='GNU/Linux ld.so'
10023  ;;
10024
10025netbsdelf*-gnu)
10026  version_type=linux
10027  need_lib_prefix=no
10028  need_version=no
10029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10030  soname_spec='${libname}${release}${shared_ext}$major'
10031  shlibpath_var=LD_LIBRARY_PATH
10032  shlibpath_overrides_runpath=no
10033  hardcode_into_libs=yes
10034  dynamic_linker='NetBSD ld.elf_so'
10035  ;;
10036
10037netbsd*)
10038  version_type=sunos
10039  need_lib_prefix=no
10040  need_version=no
10041  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10043    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10044    dynamic_linker='NetBSD (a.out) ld.so'
10045  else
10046    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047    soname_spec='${libname}${release}${shared_ext}$major'
10048    dynamic_linker='NetBSD ld.elf_so'
10049  fi
10050  shlibpath_var=LD_LIBRARY_PATH
10051  shlibpath_overrides_runpath=yes
10052  hardcode_into_libs=yes
10053  ;;
10054
10055newsos6)
10056  version_type=linux
10057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058  shlibpath_var=LD_LIBRARY_PATH
10059  shlibpath_overrides_runpath=yes
10060  ;;
10061
10062*nto* | *qnx*)
10063  version_type=qnx
10064  need_lib_prefix=no
10065  need_version=no
10066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067  soname_spec='${libname}${release}${shared_ext}$major'
10068  shlibpath_var=LD_LIBRARY_PATH
10069  shlibpath_overrides_runpath=no
10070  hardcode_into_libs=yes
10071  dynamic_linker='ldqnx.so'
10072  ;;
10073
10074openbsd*)
10075  version_type=sunos
10076  sys_lib_dlsearch_path_spec="/usr/lib"
10077  need_lib_prefix=no
10078  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10079  case $host_os in
10080    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10081    *)				need_version=no  ;;
10082  esac
10083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10084  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10085  shlibpath_var=LD_LIBRARY_PATH
10086  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10087    case $host_os in
10088      openbsd2.[89] | openbsd2.[89].*)
10089	shlibpath_overrides_runpath=no
10090	;;
10091      *)
10092	shlibpath_overrides_runpath=yes
10093	;;
10094      esac
10095  else
10096    shlibpath_overrides_runpath=yes
10097  fi
10098  ;;
10099
10100os2*)
10101  libname_spec='$name'
10102  shrext_cmds=".dll"
10103  need_lib_prefix=no
10104  library_names_spec='$libname${shared_ext} $libname.a'
10105  dynamic_linker='OS/2 ld.exe'
10106  shlibpath_var=LIBPATH
10107  ;;
10108
10109osf3* | osf4* | osf5*)
10110  version_type=osf
10111  need_lib_prefix=no
10112  need_version=no
10113  soname_spec='${libname}${release}${shared_ext}$major'
10114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115  shlibpath_var=LD_LIBRARY_PATH
10116  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10117  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10118  ;;
10119
10120rdos*)
10121  dynamic_linker=no
10122  ;;
10123
10124solaris*)
10125  version_type=linux
10126  need_lib_prefix=no
10127  need_version=no
10128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129  soname_spec='${libname}${release}${shared_ext}$major'
10130  shlibpath_var=LD_LIBRARY_PATH
10131  shlibpath_overrides_runpath=yes
10132  hardcode_into_libs=yes
10133  # ldd complains unless libraries are executable
10134  postinstall_cmds='chmod +x $lib'
10135  ;;
10136
10137sunos4*)
10138  version_type=sunos
10139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10140  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10141  shlibpath_var=LD_LIBRARY_PATH
10142  shlibpath_overrides_runpath=yes
10143  if test "$with_gnu_ld" = yes; then
10144    need_lib_prefix=no
10145  fi
10146  need_version=yes
10147  ;;
10148
10149sysv4 | sysv4.3*)
10150  version_type=linux
10151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152  soname_spec='${libname}${release}${shared_ext}$major'
10153  shlibpath_var=LD_LIBRARY_PATH
10154  case $host_vendor in
10155    sni)
10156      shlibpath_overrides_runpath=no
10157      need_lib_prefix=no
10158      runpath_var=LD_RUN_PATH
10159      ;;
10160    siemens)
10161      need_lib_prefix=no
10162      ;;
10163    motorola)
10164      need_lib_prefix=no
10165      need_version=no
10166      shlibpath_overrides_runpath=no
10167      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10168      ;;
10169  esac
10170  ;;
10171
10172sysv4*MP*)
10173  if test -d /usr/nec ;then
10174    version_type=linux
10175    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10176    soname_spec='$libname${shared_ext}.$major'
10177    shlibpath_var=LD_LIBRARY_PATH
10178  fi
10179  ;;
10180
10181sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10182  version_type=freebsd-elf
10183  need_lib_prefix=no
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  shlibpath_overrides_runpath=yes
10189  hardcode_into_libs=yes
10190  if test "$with_gnu_ld" = yes; then
10191    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10192  else
10193    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10194    case $host_os in
10195      sco3.2v5*)
10196        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10197	;;
10198    esac
10199  fi
10200  sys_lib_dlsearch_path_spec='/usr/lib'
10201  ;;
10202
10203tpf*)
10204  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10205  version_type=linux
10206  need_lib_prefix=no
10207  need_version=no
10208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209  shlibpath_var=LD_LIBRARY_PATH
10210  shlibpath_overrides_runpath=no
10211  hardcode_into_libs=yes
10212  ;;
10213
10214uts4*)
10215  version_type=linux
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217  soname_spec='${libname}${release}${shared_ext}$major'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  ;;
10220
10221*)
10222  dynamic_linker=no
10223  ;;
10224esac
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10226$as_echo "$dynamic_linker" >&6; }
10227test "$dynamic_linker" = no && can_build_shared=no
10228
10229variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10230if test "$GCC" = yes; then
10231  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10232fi
10233
10234if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10235  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10236fi
10237if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10238  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10239fi
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10328$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10329hardcode_action=
10330if test -n "$hardcode_libdir_flag_spec" ||
10331   test -n "$runpath_var" ||
10332   test "X$hardcode_automatic" = "Xyes" ; then
10333
10334  # We can hardcode non-existent directories.
10335  if test "$hardcode_direct" != no &&
10336     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10337     # have to relink, otherwise we might link with an installed library
10338     # when we should be linking with a yet-to-be-installed one
10339     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10340     test "$hardcode_minus_L" != no; then
10341    # Linking always hardcodes the temporary library directory.
10342    hardcode_action=relink
10343  else
10344    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10345    hardcode_action=immediate
10346  fi
10347else
10348  # We cannot hardcode anything, or else we can only hardcode existing
10349  # directories.
10350  hardcode_action=unsupported
10351fi
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10353$as_echo "$hardcode_action" >&6; }
10354
10355if test "$hardcode_action" = relink ||
10356   test "$inherit_rpath" = yes; then
10357  # Fast installation is not supported
10358  enable_fast_install=no
10359elif test "$shlibpath_overrides_runpath" = yes ||
10360     test "$enable_shared" = no; then
10361  # Fast installation is not necessary
10362  enable_fast_install=needless
10363fi
10364
10365
10366
10367
10368
10369
10370  if test "x$enable_dlopen" != xyes; then
10371  enable_dlopen=unknown
10372  enable_dlopen_self=unknown
10373  enable_dlopen_self_static=unknown
10374else
10375  lt_cv_dlopen=no
10376  lt_cv_dlopen_libs=
10377
10378  case $host_os in
10379  beos*)
10380    lt_cv_dlopen="load_add_on"
10381    lt_cv_dlopen_libs=
10382    lt_cv_dlopen_self=yes
10383    ;;
10384
10385  mingw* | pw32* | cegcc*)
10386    lt_cv_dlopen="LoadLibrary"
10387    lt_cv_dlopen_libs=
10388    ;;
10389
10390  cygwin*)
10391    lt_cv_dlopen="dlopen"
10392    lt_cv_dlopen_libs=
10393    ;;
10394
10395  darwin*)
10396  # if libdl is installed we need to link against it
10397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10398$as_echo_n "checking for dlopen in -ldl... " >&6; }
10399if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10400  $as_echo_n "(cached) " >&6
10401else
10402  ac_check_lib_save_LIBS=$LIBS
10403LIBS="-ldl  $LIBS"
10404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h.  */
10406
10407/* Override any GCC internal prototype to avoid an error.
10408   Use char because int might match the return type of a GCC
10409   builtin and then its argument prototype would still apply.  */
10410#ifdef __cplusplus
10411extern "C"
10412#endif
10413char dlopen ();
10414int
10415main ()
10416{
10417return dlopen ();
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423  ac_cv_lib_dl_dlopen=yes
10424else
10425  ac_cv_lib_dl_dlopen=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext \
10428    conftest$ac_exeext conftest.$ac_ext
10429LIBS=$ac_check_lib_save_LIBS
10430fi
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10432$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10433if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10434  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10435else
10436
10437    lt_cv_dlopen="dyld"
10438    lt_cv_dlopen_libs=
10439    lt_cv_dlopen_self=yes
10440
10441fi
10442
10443    ;;
10444
10445  *)
10446    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10447if test "x$ac_cv_func_shl_load" = x""yes; then :
10448  lt_cv_dlopen="shl_load"
10449else
10450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10451$as_echo_n "checking for shl_load in -ldld... " >&6; }
10452if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10453  $as_echo_n "(cached) " >&6
10454else
10455  ac_check_lib_save_LIBS=$LIBS
10456LIBS="-ldld  $LIBS"
10457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h.  */
10459
10460/* Override any GCC internal prototype to avoid an error.
10461   Use char because int might match the return type of a GCC
10462   builtin and then its argument prototype would still apply.  */
10463#ifdef __cplusplus
10464extern "C"
10465#endif
10466char shl_load ();
10467int
10468main ()
10469{
10470return shl_load ();
10471  ;
10472  return 0;
10473}
10474_ACEOF
10475if ac_fn_c_try_link "$LINENO"; then :
10476  ac_cv_lib_dld_shl_load=yes
10477else
10478  ac_cv_lib_dld_shl_load=no
10479fi
10480rm -f core conftest.err conftest.$ac_objext \
10481    conftest$ac_exeext conftest.$ac_ext
10482LIBS=$ac_check_lib_save_LIBS
10483fi
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10485$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10486if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10487  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10488else
10489  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10490if test "x$ac_cv_func_dlopen" = x""yes; then :
10491  lt_cv_dlopen="dlopen"
10492else
10493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10494$as_echo_n "checking for dlopen in -ldl... " >&6; }
10495if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10496  $as_echo_n "(cached) " >&6
10497else
10498  ac_check_lib_save_LIBS=$LIBS
10499LIBS="-ldl  $LIBS"
10500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501/* end confdefs.h.  */
10502
10503/* Override any GCC internal prototype to avoid an error.
10504   Use char because int might match the return type of a GCC
10505   builtin and then its argument prototype would still apply.  */
10506#ifdef __cplusplus
10507extern "C"
10508#endif
10509char dlopen ();
10510int
10511main ()
10512{
10513return dlopen ();
10514  ;
10515  return 0;
10516}
10517_ACEOF
10518if ac_fn_c_try_link "$LINENO"; then :
10519  ac_cv_lib_dl_dlopen=yes
10520else
10521  ac_cv_lib_dl_dlopen=no
10522fi
10523rm -f core conftest.err conftest.$ac_objext \
10524    conftest$ac_exeext conftest.$ac_ext
10525LIBS=$ac_check_lib_save_LIBS
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10528$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10529if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10530  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10531else
10532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10533$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10534if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10535  $as_echo_n "(cached) " >&6
10536else
10537  ac_check_lib_save_LIBS=$LIBS
10538LIBS="-lsvld  $LIBS"
10539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h.  */
10541
10542/* Override any GCC internal prototype to avoid an error.
10543   Use char because int might match the return type of a GCC
10544   builtin and then its argument prototype would still apply.  */
10545#ifdef __cplusplus
10546extern "C"
10547#endif
10548char dlopen ();
10549int
10550main ()
10551{
10552return dlopen ();
10553  ;
10554  return 0;
10555}
10556_ACEOF
10557if ac_fn_c_try_link "$LINENO"; then :
10558  ac_cv_lib_svld_dlopen=yes
10559else
10560  ac_cv_lib_svld_dlopen=no
10561fi
10562rm -f core conftest.err conftest.$ac_objext \
10563    conftest$ac_exeext conftest.$ac_ext
10564LIBS=$ac_check_lib_save_LIBS
10565fi
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10567$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10568if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10569  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10570else
10571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10572$as_echo_n "checking for dld_link in -ldld... " >&6; }
10573if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10574  $as_echo_n "(cached) " >&6
10575else
10576  ac_check_lib_save_LIBS=$LIBS
10577LIBS="-ldld  $LIBS"
10578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579/* end confdefs.h.  */
10580
10581/* Override any GCC internal prototype to avoid an error.
10582   Use char because int might match the return type of a GCC
10583   builtin and then its argument prototype would still apply.  */
10584#ifdef __cplusplus
10585extern "C"
10586#endif
10587char dld_link ();
10588int
10589main ()
10590{
10591return dld_link ();
10592  ;
10593  return 0;
10594}
10595_ACEOF
10596if ac_fn_c_try_link "$LINENO"; then :
10597  ac_cv_lib_dld_dld_link=yes
10598else
10599  ac_cv_lib_dld_dld_link=no
10600fi
10601rm -f core conftest.err conftest.$ac_objext \
10602    conftest$ac_exeext conftest.$ac_ext
10603LIBS=$ac_check_lib_save_LIBS
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10606$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10607if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10608  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10609fi
10610
10611
10612fi
10613
10614
10615fi
10616
10617
10618fi
10619
10620
10621fi
10622
10623
10624fi
10625
10626    ;;
10627  esac
10628
10629  if test "x$lt_cv_dlopen" != xno; then
10630    enable_dlopen=yes
10631  else
10632    enable_dlopen=no
10633  fi
10634
10635  case $lt_cv_dlopen in
10636  dlopen)
10637    save_CPPFLAGS="$CPPFLAGS"
10638    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10639
10640    save_LDFLAGS="$LDFLAGS"
10641    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10642
10643    save_LIBS="$LIBS"
10644    LIBS="$lt_cv_dlopen_libs $LIBS"
10645
10646    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10647$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10648if test "${lt_cv_dlopen_self+set}" = set; then :
10649  $as_echo_n "(cached) " >&6
10650else
10651  	  if test "$cross_compiling" = yes; then :
10652  lt_cv_dlopen_self=cross
10653else
10654  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10655  lt_status=$lt_dlunknown
10656  cat > conftest.$ac_ext <<_LT_EOF
10657#line 10657 "configure"
10658#include "confdefs.h"
10659
10660#if HAVE_DLFCN_H
10661#include <dlfcn.h>
10662#endif
10663
10664#include <stdio.h>
10665
10666#ifdef RTLD_GLOBAL
10667#  define LT_DLGLOBAL		RTLD_GLOBAL
10668#else
10669#  ifdef DL_GLOBAL
10670#    define LT_DLGLOBAL		DL_GLOBAL
10671#  else
10672#    define LT_DLGLOBAL		0
10673#  endif
10674#endif
10675
10676/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10677   find out it does not work in some platform. */
10678#ifndef LT_DLLAZY_OR_NOW
10679#  ifdef RTLD_LAZY
10680#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10681#  else
10682#    ifdef DL_LAZY
10683#      define LT_DLLAZY_OR_NOW		DL_LAZY
10684#    else
10685#      ifdef RTLD_NOW
10686#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10687#      else
10688#        ifdef DL_NOW
10689#          define LT_DLLAZY_OR_NOW	DL_NOW
10690#        else
10691#          define LT_DLLAZY_OR_NOW	0
10692#        endif
10693#      endif
10694#    endif
10695#  endif
10696#endif
10697
10698void fnord() { int i=42;}
10699int main ()
10700{
10701  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10702  int status = $lt_dlunknown;
10703
10704  if (self)
10705    {
10706      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10707      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10708      /* dlclose (self); */
10709    }
10710  else
10711    puts (dlerror ());
10712
10713  return status;
10714}
10715_LT_EOF
10716  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10717  (eval $ac_link) 2>&5
10718  ac_status=$?
10719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10720  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10721    (./conftest; exit; ) >&5 2>/dev/null
10722    lt_status=$?
10723    case x$lt_status in
10724      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10725      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10726      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10727    esac
10728  else :
10729    # compilation failed
10730    lt_cv_dlopen_self=no
10731  fi
10732fi
10733rm -fr conftest*
10734
10735
10736fi
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10738$as_echo "$lt_cv_dlopen_self" >&6; }
10739
10740    if test "x$lt_cv_dlopen_self" = xyes; then
10741      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10742      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10743$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10744if test "${lt_cv_dlopen_self_static+set}" = set; then :
10745  $as_echo_n "(cached) " >&6
10746else
10747  	  if test "$cross_compiling" = yes; then :
10748  lt_cv_dlopen_self_static=cross
10749else
10750  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10751  lt_status=$lt_dlunknown
10752  cat > conftest.$ac_ext <<_LT_EOF
10753#line 10753 "configure"
10754#include "confdefs.h"
10755
10756#if HAVE_DLFCN_H
10757#include <dlfcn.h>
10758#endif
10759
10760#include <stdio.h>
10761
10762#ifdef RTLD_GLOBAL
10763#  define LT_DLGLOBAL		RTLD_GLOBAL
10764#else
10765#  ifdef DL_GLOBAL
10766#    define LT_DLGLOBAL		DL_GLOBAL
10767#  else
10768#    define LT_DLGLOBAL		0
10769#  endif
10770#endif
10771
10772/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10773   find out it does not work in some platform. */
10774#ifndef LT_DLLAZY_OR_NOW
10775#  ifdef RTLD_LAZY
10776#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10777#  else
10778#    ifdef DL_LAZY
10779#      define LT_DLLAZY_OR_NOW		DL_LAZY
10780#    else
10781#      ifdef RTLD_NOW
10782#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10783#      else
10784#        ifdef DL_NOW
10785#          define LT_DLLAZY_OR_NOW	DL_NOW
10786#        else
10787#          define LT_DLLAZY_OR_NOW	0
10788#        endif
10789#      endif
10790#    endif
10791#  endif
10792#endif
10793
10794void fnord() { int i=42;}
10795int main ()
10796{
10797  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10798  int status = $lt_dlunknown;
10799
10800  if (self)
10801    {
10802      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10803      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10804      /* dlclose (self); */
10805    }
10806  else
10807    puts (dlerror ());
10808
10809  return status;
10810}
10811_LT_EOF
10812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10813  (eval $ac_link) 2>&5
10814  ac_status=$?
10815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10816  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10817    (./conftest; exit; ) >&5 2>/dev/null
10818    lt_status=$?
10819    case x$lt_status in
10820      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10821      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10822      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10823    esac
10824  else :
10825    # compilation failed
10826    lt_cv_dlopen_self_static=no
10827  fi
10828fi
10829rm -fr conftest*
10830
10831
10832fi
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10834$as_echo "$lt_cv_dlopen_self_static" >&6; }
10835    fi
10836
10837    CPPFLAGS="$save_CPPFLAGS"
10838    LDFLAGS="$save_LDFLAGS"
10839    LIBS="$save_LIBS"
10840    ;;
10841  esac
10842
10843  case $lt_cv_dlopen_self in
10844  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10845  *) enable_dlopen_self=unknown ;;
10846  esac
10847
10848  case $lt_cv_dlopen_self_static in
10849  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10850  *) enable_dlopen_self_static=unknown ;;
10851  esac
10852fi
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870striplib=
10871old_striplib=
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10873$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10874if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10875  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10876  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10878$as_echo "yes" >&6; }
10879else
10880# FIXME - insert some real tests, host_os isn't really good enough
10881  case $host_os in
10882  darwin*)
10883    if test -n "$STRIP" ; then
10884      striplib="$STRIP -x"
10885      old_striplib="$STRIP -S"
10886      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10887$as_echo "yes" >&6; }
10888    else
10889      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890$as_echo "no" >&6; }
10891    fi
10892    ;;
10893  *)
10894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895$as_echo "no" >&6; }
10896    ;;
10897  esac
10898fi
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911  # Report which library types will actually be built
10912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10913$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10915$as_echo "$can_build_shared" >&6; }
10916
10917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10918$as_echo_n "checking whether to build shared libraries... " >&6; }
10919  test "$can_build_shared" = "no" && enable_shared=no
10920
10921  # On AIX, shared libraries and static libraries use the same namespace, and
10922  # are all built from PIC.
10923  case $host_os in
10924  aix3*)
10925    test "$enable_shared" = yes && enable_static=no
10926    if test -n "$RANLIB"; then
10927      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10928      postinstall_cmds='$RANLIB $lib'
10929    fi
10930    ;;
10931
10932  aix[4-9]*)
10933    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10934      test "$enable_shared" = yes && enable_static=no
10935    fi
10936    ;;
10937  esac
10938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10939$as_echo "$enable_shared" >&6; }
10940
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10942$as_echo_n "checking whether to build static libraries... " >&6; }
10943  # Make sure either enable_shared or enable_static is yes.
10944  test "$enable_shared" = yes || enable_static=yes
10945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10946$as_echo "$enable_static" >&6; }
10947
10948
10949
10950
10951fi
10952ac_ext=c
10953ac_cpp='$CPP $CPPFLAGS'
10954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10956ac_compiler_gnu=$ac_cv_c_compiler_gnu
10957
10958CC="$lt_save_CC"
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972        ac_config_commands="$ac_config_commands libtool"
10973
10974
10975
10976
10977# Only expand once:
10978
10979
10980ac_ext=c
10981ac_cpp='$CPP $CPPFLAGS'
10982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984ac_compiler_gnu=$ac_cv_c_compiler_gnu
10985if test -n "$ac_tool_prefix"; then
10986  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10987set dummy ${ac_tool_prefix}gcc; ac_word=$2
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989$as_echo_n "checking for $ac_word... " >&6; }
10990if test "${ac_cv_prog_CC+set}" = set; then :
10991  $as_echo_n "(cached) " >&6
10992else
10993  if test -n "$CC"; then
10994  ac_cv_prog_CC="$CC" # Let the user override the test.
10995else
10996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997for as_dir in $PATH
10998do
10999  IFS=$as_save_IFS
11000  test -z "$as_dir" && as_dir=.
11001    for ac_exec_ext in '' $ac_executable_extensions; do
11002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11003    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11005    break 2
11006  fi
11007done
11008  done
11009IFS=$as_save_IFS
11010
11011fi
11012fi
11013CC=$ac_cv_prog_CC
11014if test -n "$CC"; then
11015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11016$as_echo "$CC" >&6; }
11017else
11018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019$as_echo "no" >&6; }
11020fi
11021
11022
11023fi
11024if test -z "$ac_cv_prog_CC"; then
11025  ac_ct_CC=$CC
11026  # Extract the first word of "gcc", so it can be a program name with args.
11027set dummy gcc; ac_word=$2
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029$as_echo_n "checking for $ac_word... " >&6; }
11030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11031  $as_echo_n "(cached) " >&6
11032else
11033  if test -n "$ac_ct_CC"; then
11034  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11035else
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039  IFS=$as_save_IFS
11040  test -z "$as_dir" && as_dir=.
11041    for ac_exec_ext in '' $ac_executable_extensions; do
11042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043    ac_cv_prog_ac_ct_CC="gcc"
11044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045    break 2
11046  fi
11047done
11048  done
11049IFS=$as_save_IFS
11050
11051fi
11052fi
11053ac_ct_CC=$ac_cv_prog_ac_ct_CC
11054if test -n "$ac_ct_CC"; then
11055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11056$as_echo "$ac_ct_CC" >&6; }
11057else
11058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059$as_echo "no" >&6; }
11060fi
11061
11062  if test "x$ac_ct_CC" = x; then
11063    CC=""
11064  else
11065    case $cross_compiling:$ac_tool_warned in
11066yes:)
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11069ac_tool_warned=yes ;;
11070esac
11071    CC=$ac_ct_CC
11072  fi
11073else
11074  CC="$ac_cv_prog_CC"
11075fi
11076
11077if test -z "$CC"; then
11078          if test -n "$ac_tool_prefix"; then
11079    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11080set dummy ${ac_tool_prefix}cc; ac_word=$2
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082$as_echo_n "checking for $ac_word... " >&6; }
11083if test "${ac_cv_prog_CC+set}" = set; then :
11084  $as_echo_n "(cached) " >&6
11085else
11086  if test -n "$CC"; then
11087  ac_cv_prog_CC="$CC" # Let the user override the test.
11088else
11089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092  IFS=$as_save_IFS
11093  test -z "$as_dir" && as_dir=.
11094    for ac_exec_ext in '' $ac_executable_extensions; do
11095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11096    ac_cv_prog_CC="${ac_tool_prefix}cc"
11097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11098    break 2
11099  fi
11100done
11101  done
11102IFS=$as_save_IFS
11103
11104fi
11105fi
11106CC=$ac_cv_prog_CC
11107if test -n "$CC"; then
11108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11109$as_echo "$CC" >&6; }
11110else
11111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112$as_echo "no" >&6; }
11113fi
11114
11115
11116  fi
11117fi
11118if test -z "$CC"; then
11119  # Extract the first word of "cc", so it can be a program name with args.
11120set dummy cc; ac_word=$2
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122$as_echo_n "checking for $ac_word... " >&6; }
11123if test "${ac_cv_prog_CC+set}" = set; then :
11124  $as_echo_n "(cached) " >&6
11125else
11126  if test -n "$CC"; then
11127  ac_cv_prog_CC="$CC" # Let the user override the test.
11128else
11129  ac_prog_rejected=no
11130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131for as_dir in $PATH
11132do
11133  IFS=$as_save_IFS
11134  test -z "$as_dir" && as_dir=.
11135    for ac_exec_ext in '' $ac_executable_extensions; do
11136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11137    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11138       ac_prog_rejected=yes
11139       continue
11140     fi
11141    ac_cv_prog_CC="cc"
11142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143    break 2
11144  fi
11145done
11146  done
11147IFS=$as_save_IFS
11148
11149if test $ac_prog_rejected = yes; then
11150  # We found a bogon in the path, so make sure we never use it.
11151  set dummy $ac_cv_prog_CC
11152  shift
11153  if test $# != 0; then
11154    # We chose a different compiler from the bogus one.
11155    # However, it has the same basename, so the bogon will be chosen
11156    # first if we set CC to just the basename; use the full file name.
11157    shift
11158    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11159  fi
11160fi
11161fi
11162fi
11163CC=$ac_cv_prog_CC
11164if test -n "$CC"; then
11165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11166$as_echo "$CC" >&6; }
11167else
11168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169$as_echo "no" >&6; }
11170fi
11171
11172
11173fi
11174if test -z "$CC"; then
11175  if test -n "$ac_tool_prefix"; then
11176  for ac_prog in cl.exe
11177  do
11178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181$as_echo_n "checking for $ac_word... " >&6; }
11182if test "${ac_cv_prog_CC+set}" = set; then :
11183  $as_echo_n "(cached) " >&6
11184else
11185  if test -n "$CC"; then
11186  ac_cv_prog_CC="$CC" # Let the user override the test.
11187else
11188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189for as_dir in $PATH
11190do
11191  IFS=$as_save_IFS
11192  test -z "$as_dir" && as_dir=.
11193    for ac_exec_ext in '' $ac_executable_extensions; do
11194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197    break 2
11198  fi
11199done
11200  done
11201IFS=$as_save_IFS
11202
11203fi
11204fi
11205CC=$ac_cv_prog_CC
11206if test -n "$CC"; then
11207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11208$as_echo "$CC" >&6; }
11209else
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211$as_echo "no" >&6; }
11212fi
11213
11214
11215    test -n "$CC" && break
11216  done
11217fi
11218if test -z "$CC"; then
11219  ac_ct_CC=$CC
11220  for ac_prog in cl.exe
11221do
11222  # Extract the first word of "$ac_prog", so it can be a program name with args.
11223set dummy $ac_prog; ac_word=$2
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
11226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11227  $as_echo_n "(cached) " >&6
11228else
11229  if test -n "$ac_ct_CC"; then
11230  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235  IFS=$as_save_IFS
11236  test -z "$as_dir" && as_dir=.
11237    for ac_exec_ext in '' $ac_executable_extensions; do
11238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239    ac_cv_prog_ac_ct_CC="$ac_prog"
11240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241    break 2
11242  fi
11243done
11244  done
11245IFS=$as_save_IFS
11246
11247fi
11248fi
11249ac_ct_CC=$ac_cv_prog_ac_ct_CC
11250if test -n "$ac_ct_CC"; then
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11252$as_echo "$ac_ct_CC" >&6; }
11253else
11254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
11256fi
11257
11258
11259  test -n "$ac_ct_CC" && break
11260done
11261
11262  if test "x$ac_ct_CC" = x; then
11263    CC=""
11264  else
11265    case $cross_compiling:$ac_tool_warned in
11266yes:)
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11269ac_tool_warned=yes ;;
11270esac
11271    CC=$ac_ct_CC
11272  fi
11273fi
11274
11275fi
11276
11277
11278test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11280as_fn_error "no acceptable C compiler found in \$PATH
11281See \`config.log' for more details." "$LINENO" 5; }
11282
11283# Provide some information about the compiler.
11284$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11285set X $ac_compile
11286ac_compiler=$2
11287for ac_option in --version -v -V -qversion; do
11288  { { ac_try="$ac_compiler $ac_option >&5"
11289case "(($ac_try" in
11290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291  *) ac_try_echo=$ac_try;;
11292esac
11293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11294$as_echo "$ac_try_echo"; } >&5
11295  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11296  ac_status=$?
11297  if test -s conftest.err; then
11298    sed '10a\
11299... rest of stderr output deleted ...
11300         10q' conftest.err >conftest.er1
11301    cat conftest.er1 >&5
11302  fi
11303  rm -f conftest.er1 conftest.err
11304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305  test $ac_status = 0; }
11306done
11307
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11309$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11310if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11311  $as_echo_n "(cached) " >&6
11312else
11313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314/* end confdefs.h.  */
11315
11316int
11317main ()
11318{
11319#ifndef __GNUC__
11320       choke me
11321#endif
11322
11323  ;
11324  return 0;
11325}
11326_ACEOF
11327if ac_fn_c_try_compile "$LINENO"; then :
11328  ac_compiler_gnu=yes
11329else
11330  ac_compiler_gnu=no
11331fi
11332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333ac_cv_c_compiler_gnu=$ac_compiler_gnu
11334
11335fi
11336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11337$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11338if test $ac_compiler_gnu = yes; then
11339  GCC=yes
11340else
11341  GCC=
11342fi
11343ac_test_CFLAGS=${CFLAGS+set}
11344ac_save_CFLAGS=$CFLAGS
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11346$as_echo_n "checking whether $CC accepts -g... " >&6; }
11347if test "${ac_cv_prog_cc_g+set}" = set; then :
11348  $as_echo_n "(cached) " >&6
11349else
11350  ac_save_c_werror_flag=$ac_c_werror_flag
11351   ac_c_werror_flag=yes
11352   ac_cv_prog_cc_g=no
11353   CFLAGS="-g"
11354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355/* end confdefs.h.  */
11356
11357int
11358main ()
11359{
11360
11361  ;
11362  return 0;
11363}
11364_ACEOF
11365if ac_fn_c_try_compile "$LINENO"; then :
11366  ac_cv_prog_cc_g=yes
11367else
11368  CFLAGS=""
11369      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370/* end confdefs.h.  */
11371
11372int
11373main ()
11374{
11375
11376  ;
11377  return 0;
11378}
11379_ACEOF
11380if ac_fn_c_try_compile "$LINENO"; then :
11381
11382else
11383  ac_c_werror_flag=$ac_save_c_werror_flag
11384	 CFLAGS="-g"
11385	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386/* end confdefs.h.  */
11387
11388int
11389main ()
11390{
11391
11392  ;
11393  return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_compile "$LINENO"; then :
11397  ac_cv_prog_cc_g=yes
11398fi
11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400fi
11401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402fi
11403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404   ac_c_werror_flag=$ac_save_c_werror_flag
11405fi
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11407$as_echo "$ac_cv_prog_cc_g" >&6; }
11408if test "$ac_test_CFLAGS" = set; then
11409  CFLAGS=$ac_save_CFLAGS
11410elif test $ac_cv_prog_cc_g = yes; then
11411  if test "$GCC" = yes; then
11412    CFLAGS="-g -O2"
11413  else
11414    CFLAGS="-g"
11415  fi
11416else
11417  if test "$GCC" = yes; then
11418    CFLAGS="-O2"
11419  else
11420    CFLAGS=
11421  fi
11422fi
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11424$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11425if test "${ac_cv_prog_cc_c89+set}" = set; then :
11426  $as_echo_n "(cached) " >&6
11427else
11428  ac_cv_prog_cc_c89=no
11429ac_save_CC=$CC
11430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431/* end confdefs.h.  */
11432#include <stdarg.h>
11433#include <stdio.h>
11434#include <sys/types.h>
11435#include <sys/stat.h>
11436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11437struct buf { int x; };
11438FILE * (*rcsopen) (struct buf *, struct stat *, int);
11439static char *e (p, i)
11440     char **p;
11441     int i;
11442{
11443  return p[i];
11444}
11445static char *f (char * (*g) (char **, int), char **p, ...)
11446{
11447  char *s;
11448  va_list v;
11449  va_start (v,p);
11450  s = g (p, va_arg (v,int));
11451  va_end (v);
11452  return s;
11453}
11454
11455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11456   function prototypes and stuff, but not '\xHH' hex character constants.
11457   These don't provoke an error unfortunately, instead are silently treated
11458   as 'x'.  The following induces an error, until -std is added to get
11459   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11460   array size at least.  It's necessary to write '\x00'==0 to get something
11461   that's true only with -std.  */
11462int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11463
11464/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11465   inside strings and character constants.  */
11466#define FOO(x) 'x'
11467int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11468
11469int test (int i, double x);
11470struct s1 {int (*f) (int a);};
11471struct s2 {int (*f) (double a);};
11472int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11473int argc;
11474char **argv;
11475int
11476main ()
11477{
11478return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11479  ;
11480  return 0;
11481}
11482_ACEOF
11483for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11484	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11485do
11486  CC="$ac_save_CC $ac_arg"
11487  if ac_fn_c_try_compile "$LINENO"; then :
11488  ac_cv_prog_cc_c89=$ac_arg
11489fi
11490rm -f core conftest.err conftest.$ac_objext
11491  test "x$ac_cv_prog_cc_c89" != "xno" && break
11492done
11493rm -f conftest.$ac_ext
11494CC=$ac_save_CC
11495
11496fi
11497# AC_CACHE_VAL
11498case "x$ac_cv_prog_cc_c89" in
11499  x)
11500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11501$as_echo "none needed" >&6; } ;;
11502  xno)
11503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11504$as_echo "unsupported" >&6; } ;;
11505  *)
11506    CC="$CC $ac_cv_prog_cc_c89"
11507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11508$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11509esac
11510if test "x$ac_cv_prog_cc_c89" != xno; then :
11511
11512fi
11513
11514ac_ext=c
11515ac_cpp='$CPP $CPPFLAGS'
11516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518ac_compiler_gnu=$ac_cv_c_compiler_gnu
11519
11520# By default we simply use the C compiler to build assembly code.
11521
11522test "${CCAS+set}" = set || CCAS=$CC
11523test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11524
11525
11526
11527depcc="$CCAS"   am_compiler_list=
11528
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11530$as_echo_n "checking dependency style of $depcc... " >&6; }
11531if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
11532  $as_echo_n "(cached) " >&6
11533else
11534  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11535  # We make a subdir and do the tests there.  Otherwise we can end up
11536  # making bogus files that we don't know about and never remove.  For
11537  # instance it was reported that on HP-UX the gcc test will end up
11538  # making a dummy file named `D' -- because `-MD' means `put the output
11539  # in D'.
11540  mkdir conftest.dir
11541  # Copy depcomp to subdir because otherwise we won't find it if we're
11542  # using a relative directory.
11543  cp "$am_depcomp" conftest.dir
11544  cd conftest.dir
11545  # We will build objects and dependencies in a subdirectory because
11546  # it helps to detect inapplicable dependency modes.  For instance
11547  # both Tru64's cc and ICC support -MD to output dependencies as a
11548  # side effect of compilation, but ICC will put the dependencies in
11549  # the current directory while Tru64 will put them in the object
11550  # directory.
11551  mkdir sub
11552
11553  am_cv_CCAS_dependencies_compiler_type=none
11554  if test "$am_compiler_list" = ""; then
11555     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11556  fi
11557  am__universal=false
11558
11559
11560  for depmode in $am_compiler_list; do
11561    # Setup a source with many dependencies, because some compilers
11562    # like to wrap large dependency lists on column 80 (with \), and
11563    # we should not choose a depcomp mode which is confused by this.
11564    #
11565    # We need to recreate these files for each test, as the compiler may
11566    # overwrite some of them when testing with obscure command lines.
11567    # This happens at least with the AIX C compiler.
11568    : > sub/conftest.c
11569    for i in 1 2 3 4 5 6; do
11570      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11571      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11572      # Solaris 8's {/usr,}/bin/sh.
11573      touch sub/conftst$i.h
11574    done
11575    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11576
11577    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11578    # mode.  It turns out that the SunPro C++ compiler does not properly
11579    # handle `-M -o', and we need to detect this.  Also, some Intel
11580    # versions had trouble with output in subdirs
11581    am__obj=sub/conftest.${OBJEXT-o}
11582    am__minus_obj="-o $am__obj"
11583    case $depmode in
11584    gcc)
11585      # This depmode causes a compiler race in universal mode.
11586      test "$am__universal" = false || continue
11587      ;;
11588    nosideeffect)
11589      # after this tag, mechanisms are not by side-effect, so they'll
11590      # only be used when explicitly requested
11591      if test "x$enable_dependency_tracking" = xyes; then
11592	continue
11593      else
11594	break
11595      fi
11596      ;;
11597    msvisualcpp | msvcmsys)
11598      # This compiler won't grok `-c -o', but also, the minuso test has
11599      # not run yet.  These depmodes are late enough in the game, and
11600      # so weak that their functioning should not be impacted.
11601      am__obj=conftest.${OBJEXT-o}
11602      am__minus_obj=
11603      ;;
11604    none) break ;;
11605    esac
11606    if depmode=$depmode \
11607       source=sub/conftest.c object=$am__obj \
11608       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11609       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11610         >/dev/null 2>conftest.err &&
11611       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11612       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11613       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11614       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11615      # icc doesn't choke on unknown options, it will just issue warnings
11616      # or remarks (even with -Werror).  So we grep stderr for any message
11617      # that says an option was ignored or not supported.
11618      # When given -MP, icc 7.0 and 7.1 complain thusly:
11619      #   icc: Command line warning: ignoring option '-M'; no argument required
11620      # The diagnosis changed in icc 8.0:
11621      #   icc: Command line remark: option '-MP' not supported
11622      if (grep 'ignoring option' conftest.err ||
11623          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11624        am_cv_CCAS_dependencies_compiler_type=$depmode
11625        break
11626      fi
11627    fi
11628  done
11629
11630  cd ..
11631  rm -rf conftest.dir
11632else
11633  am_cv_CCAS_dependencies_compiler_type=none
11634fi
11635
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11638$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11639CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11640
11641 if
11642  test "x$enable_dependency_tracking" != xno \
11643  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11644  am__fastdepCCAS_TRUE=
11645  am__fastdepCCAS_FALSE='#'
11646else
11647  am__fastdepCCAS_TRUE='#'
11648  am__fastdepCCAS_FALSE=
11649fi
11650
11651
11652
11653
11654
11655
11656# Check whether --with-xorg-module-dir was given.
11657if test "${with_xorg_module_dir+set}" = set; then :
11658  withval=$with_xorg_module_dir; moduledir="$withval"
11659else
11660  moduledir="$libdir/xorg/modules"
11661fi
11662
11663
11664# Check whether --enable-geodegx-panel was given.
11665if test "${enable_geodegx_panel+set}" = set; then :
11666  enableval=$enable_geodegx_panel;
11667else
11668   AMD_CFLAGS="-DPNL_SUP $AMD_CFLAGS"
11669fi
11670
11671
11672# Check whether --enable-werror was given.
11673if test "${enable_werror+set}" = set; then :
11674  enableval=$enable_werror; WERROR=$enableval
11675else
11676  WERROR=no
11677fi
11678
11679# Check whether --enable-visibility was given.
11680if test "${enable_visibility+set}" = set; then :
11681  enableval=$enable_visibility;  AMD_CFLAGS="$AMD_CFLAGS -fvisibility=hidden"
11682else
11683   :
11684fi
11685
11686
11687if test "x$GCC" = "xyes"; then
11688       GCC_WARNINGS1="-Wall -Wpointer-arith -Wstrict-prototypes"
11689       GCC_WARNINGS2="-Wmissing-prototypes -Wmissing-declarations"
11690       GCC_WARNINGS3="-Wnested-externs -fno-strict-aliasing"
11691       GCC_WARNINGS="$GCC_WARNINGS1 $GCC_WARNINGS2 $GCC_WARNINGS3"
11692       if test "x$WERROR" = "xyes"; then
11693               GCC_WARNINGS="${GCC_WARNINGS} -Werror"
11694       fi
11695       AMD_CFLAGS="$GCC_WARNINGS $AMD_CFLAGS"
11696fi
11697
11698# Checks for extensions
11699
11700
11701	SAVE_CFLAGS="$CFLAGS"
11702	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11703	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704/* end confdefs.h.  */
11705
11706#include "xorg-server.h"
11707#if !defined RANDR
11708#error RANDR not defined
11709#endif
11710
11711int
11712main ()
11713{
11714
11715  ;
11716  return 0;
11717}
11718_ACEOF
11719if ac_fn_c_try_compile "$LINENO"; then :
11720  _EXT_CHECK=yes
11721else
11722  _EXT_CHECK=no
11723fi
11724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725	CFLAGS="$SAVE_CFLAGS"
11726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11727$as_echo_n "checking if RANDR is defined... " >&6; }
11728	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11729$as_echo "$_EXT_CHECK" >&6; }
11730	if test "$_EXT_CHECK" != no; then
11731		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11732	fi
11733
11734
11735
11736	SAVE_CFLAGS="$CFLAGS"
11737	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11738	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739/* end confdefs.h.  */
11740
11741#include "xorg-server.h"
11742#if !defined RENDER
11743#error RENDER not defined
11744#endif
11745
11746int
11747main ()
11748{
11749
11750  ;
11751  return 0;
11752}
11753_ACEOF
11754if ac_fn_c_try_compile "$LINENO"; then :
11755  _EXT_CHECK=yes
11756else
11757  _EXT_CHECK=no
11758fi
11759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760	CFLAGS="$SAVE_CFLAGS"
11761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11762$as_echo_n "checking if RENDER is defined... " >&6; }
11763	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11764$as_echo "$_EXT_CHECK" >&6; }
11765	if test "$_EXT_CHECK" != no; then
11766		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11767	fi
11768
11769
11770
11771	SAVE_CFLAGS="$CFLAGS"
11772	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11773	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774/* end confdefs.h.  */
11775
11776#include "xorg-server.h"
11777#if !defined XV
11778#error XV not defined
11779#endif
11780
11781int
11782main ()
11783{
11784
11785  ;
11786  return 0;
11787}
11788_ACEOF
11789if ac_fn_c_try_compile "$LINENO"; then :
11790  _EXT_CHECK=yes
11791else
11792  _EXT_CHECK=no
11793fi
11794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795	CFLAGS="$SAVE_CFLAGS"
11796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
11797$as_echo_n "checking if XV is defined... " >&6; }
11798	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11799$as_echo "$_EXT_CHECK" >&6; }
11800	if test "$_EXT_CHECK" != no; then
11801		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
11802	fi
11803
11804
11805
11806	SAVE_CFLAGS="$CFLAGS"
11807	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11808	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809/* end confdefs.h.  */
11810
11811#include "xorg-server.h"
11812#if !defined DPMSExtension
11813#error DPMSExtension not defined
11814#endif
11815
11816int
11817main ()
11818{
11819
11820  ;
11821  return 0;
11822}
11823_ACEOF
11824if ac_fn_c_try_compile "$LINENO"; then :
11825  _EXT_CHECK=yes
11826else
11827  _EXT_CHECK=no
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830	CFLAGS="$SAVE_CFLAGS"
11831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11832$as_echo_n "checking if DPMSExtension is defined... " >&6; }
11833	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11834$as_echo "$_EXT_CHECK" >&6; }
11835	if test "$_EXT_CHECK" != no; then
11836		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11837	fi
11838
11839
11840# Checks for pkg-config packages
11841
11842pkg_failed=no
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11844$as_echo_n "checking for XORG... " >&6; }
11845
11846if test -n "$PKG_CONFIG"; then
11847    if test -n "$XORG_CFLAGS"; then
11848        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11849    else
11850        if test -n "$PKG_CONFIG" && \
11851    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11852  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
11853  ac_status=$?
11854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11855  test $ac_status = 0; }; then
11856  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11857else
11858  pkg_failed=yes
11859fi
11860    fi
11861else
11862	pkg_failed=untried
11863fi
11864if test -n "$PKG_CONFIG"; then
11865    if test -n "$XORG_LIBS"; then
11866        pkg_cv_XORG_LIBS="$XORG_LIBS"
11867    else
11868        if test -n "$PKG_CONFIG" && \
11869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11870  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
11871  ac_status=$?
11872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873  test $ac_status = 0; }; then
11874  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11875else
11876  pkg_failed=yes
11877fi
11878    fi
11879else
11880	pkg_failed=untried
11881fi
11882
11883
11884
11885if test $pkg_failed = yes; then
11886
11887if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11888        _pkg_short_errors_supported=yes
11889else
11890        _pkg_short_errors_supported=no
11891fi
11892        if test $_pkg_short_errors_supported = yes; then
11893	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"`
11894        else
11895	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"`
11896        fi
11897	# Put the nasty error message in config.log where it belongs
11898	echo "$XORG_PKG_ERRORS" >&5
11899
11900	as_fn_error "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
11901
11902$XORG_PKG_ERRORS
11903
11904Consider adjusting the PKG_CONFIG_PATH environment variable if you
11905installed software in a non-standard prefix.
11906
11907Alternatively, you may set the environment variables XORG_CFLAGS
11908and XORG_LIBS to avoid the need to call pkg-config.
11909See the pkg-config man page for more details.
11910" "$LINENO" 5
11911elif test $pkg_failed = untried; then
11912	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11914as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11915is in your PATH or set the PKG_CONFIG environment variable to the full
11916path to pkg-config.
11917
11918Alternatively, you may set the environment variables XORG_CFLAGS
11919and XORG_LIBS to avoid the need to call pkg-config.
11920See the pkg-config man page for more details.
11921
11922To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11923See \`config.log' for more details." "$LINENO" 5; }
11924else
11925	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11926	XORG_LIBS=$pkg_cv_XORG_LIBS
11927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928$as_echo "yes" >&6; }
11929	:
11930fi
11931
11932pkg_failed=no
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
11934$as_echo_n "checking for XEXT... " >&6; }
11935
11936if test -n "$PKG_CONFIG"; then
11937    if test -n "$XEXT_CFLAGS"; then
11938        pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
11939    else
11940        if test -n "$PKG_CONFIG" && \
11941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11942  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11943  ac_status=$?
11944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945  test $ac_status = 0; }; then
11946  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
11947else
11948  pkg_failed=yes
11949fi
11950    fi
11951else
11952	pkg_failed=untried
11953fi
11954if test -n "$PKG_CONFIG"; then
11955    if test -n "$XEXT_LIBS"; then
11956        pkg_cv_XEXT_LIBS="$XEXT_LIBS"
11957    else
11958        if test -n "$PKG_CONFIG" && \
11959    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11960  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11961  ac_status=$?
11962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11963  test $ac_status = 0; }; then
11964  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
11965else
11966  pkg_failed=yes
11967fi
11968    fi
11969else
11970	pkg_failed=untried
11971fi
11972
11973
11974
11975if test $pkg_failed = yes; then
11976
11977if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11978        _pkg_short_errors_supported=yes
11979else
11980        _pkg_short_errors_supported=no
11981fi
11982        if test $_pkg_short_errors_supported = yes; then
11983	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"`
11984        else
11985	        XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"`
11986        fi
11987	# Put the nasty error message in config.log where it belongs
11988	echo "$XEXT_PKG_ERRORS" >&5
11989
11990	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
11992                HAVE_XEXTPROTO_71="no"
11993elif test $pkg_failed = untried; then
11994	HAVE_XEXTPROTO_71="no"
11995else
11996	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
11997	XEXT_LIBS=$pkg_cv_XEXT_LIBS
11998        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999$as_echo "yes" >&6; }
12000	HAVE_XEXTPROTO_71="yes";
12001$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
12002
12003fi
12004 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
12005  HAVE_XEXTPROTO_71_TRUE=
12006  HAVE_XEXTPROTO_71_FALSE='#'
12007else
12008  HAVE_XEXTPROTO_71_TRUE='#'
12009  HAVE_XEXTPROTO_71_FALSE=
12010fi
12011
12012
12013# Checks for libraries.
12014SAVE_CPPFLAGS="$CPPFLAGS"
12015CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12016ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
12017"
12018if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
12019  XSERVER_LIBPCIACCESS=yes
12020else
12021  XSERVER_LIBPCIACCESS=no
12022fi
12023
12024CPPFLAGS="$SAVE_CPPFLAGS"
12025
12026# Checks for header files.
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12028$as_echo_n "checking for ANSI C header files... " >&6; }
12029if test "${ac_cv_header_stdc+set}" = set; then :
12030  $as_echo_n "(cached) " >&6
12031else
12032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033/* end confdefs.h.  */
12034#include <stdlib.h>
12035#include <stdarg.h>
12036#include <string.h>
12037#include <float.h>
12038
12039int
12040main ()
12041{
12042
12043  ;
12044  return 0;
12045}
12046_ACEOF
12047if ac_fn_c_try_compile "$LINENO"; then :
12048  ac_cv_header_stdc=yes
12049else
12050  ac_cv_header_stdc=no
12051fi
12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053
12054if test $ac_cv_header_stdc = yes; then
12055  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057/* end confdefs.h.  */
12058#include <string.h>
12059
12060_ACEOF
12061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062  $EGREP "memchr" >/dev/null 2>&1; then :
12063
12064else
12065  ac_cv_header_stdc=no
12066fi
12067rm -f conftest*
12068
12069fi
12070
12071if test $ac_cv_header_stdc = yes; then
12072  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h.  */
12075#include <stdlib.h>
12076
12077_ACEOF
12078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079  $EGREP "free" >/dev/null 2>&1; then :
12080
12081else
12082  ac_cv_header_stdc=no
12083fi
12084rm -f conftest*
12085
12086fi
12087
12088if test $ac_cv_header_stdc = yes; then
12089  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12090  if test "$cross_compiling" = yes; then :
12091  :
12092else
12093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h.  */
12095#include <ctype.h>
12096#include <stdlib.h>
12097#if ((' ' & 0x0FF) == 0x020)
12098# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12099# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12100#else
12101# define ISLOWER(c) \
12102		   (('a' <= (c) && (c) <= 'i') \
12103		     || ('j' <= (c) && (c) <= 'r') \
12104		     || ('s' <= (c) && (c) <= 'z'))
12105# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12106#endif
12107
12108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12109int
12110main ()
12111{
12112  int i;
12113  for (i = 0; i < 256; i++)
12114    if (XOR (islower (i), ISLOWER (i))
12115	|| toupper (i) != TOUPPER (i))
12116      return 2;
12117  return 0;
12118}
12119_ACEOF
12120if ac_fn_c_try_run "$LINENO"; then :
12121
12122else
12123  ac_cv_header_stdc=no
12124fi
12125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12126  conftest.$ac_objext conftest.beam conftest.$ac_ext
12127fi
12128
12129fi
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12132$as_echo "$ac_cv_header_stdc" >&6; }
12133if test $ac_cv_header_stdc = yes; then
12134
12135$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12136
12137fi
12138
12139
12140if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12141
12142pkg_failed=no
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12144$as_echo_n "checking for PCIACCESS... " >&6; }
12145
12146if test -n "$PKG_CONFIG"; then
12147    if test -n "$PCIACCESS_CFLAGS"; then
12148        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12149    else
12150        if test -n "$PKG_CONFIG" && \
12151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
12152  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12153  ac_status=$?
12154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12155  test $ac_status = 0; }; then
12156  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12157else
12158  pkg_failed=yes
12159fi
12160    fi
12161else
12162	pkg_failed=untried
12163fi
12164if test -n "$PKG_CONFIG"; then
12165    if test -n "$PCIACCESS_LIBS"; then
12166        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12167    else
12168        if test -n "$PKG_CONFIG" && \
12169    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
12170  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12171  ac_status=$?
12172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173  test $ac_status = 0; }; then
12174  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12175else
12176  pkg_failed=yes
12177fi
12178    fi
12179else
12180	pkg_failed=untried
12181fi
12182
12183
12184
12185if test $pkg_failed = yes; then
12186
12187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12188        _pkg_short_errors_supported=yes
12189else
12190        _pkg_short_errors_supported=no
12191fi
12192        if test $_pkg_short_errors_supported = yes; then
12193	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
12194        else
12195	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
12196        fi
12197	# Put the nasty error message in config.log where it belongs
12198	echo "$PCIACCESS_PKG_ERRORS" >&5
12199
12200	as_fn_error "Package requirements (pciaccess >= 0.8.0) were not met:
12201
12202$PCIACCESS_PKG_ERRORS
12203
12204Consider adjusting the PKG_CONFIG_PATH environment variable if you
12205installed software in a non-standard prefix.
12206
12207Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12208and PCIACCESS_LIBS to avoid the need to call pkg-config.
12209See the pkg-config man page for more details.
12210" "$LINENO" 5
12211elif test $pkg_failed = untried; then
12212	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12214as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12215is in your PATH or set the PKG_CONFIG environment variable to the full
12216path to pkg-config.
12217
12218Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12219and PCIACCESS_LIBS to avoid the need to call pkg-config.
12220See the pkg-config man page for more details.
12221
12222To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12223See \`config.log' for more details." "$LINENO" 5; }
12224else
12225	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12226	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12227        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228$as_echo "yes" >&6; }
12229	:
12230fi
12231    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12232fi
12233
12234
12235
12236
12237
12238is386=false
12239
12240case $host_cpu in
12241  i*86)
12242	is386=true
12243	;;
12244esac
12245
12246# Unset is386 if compiling for AMD64/EM64T
12247if test $is386 = true ; then
12248	ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
12249if test "x$ac_cv_have_decl__LP64" = x""yes; then :
12250  ac_have_decl=1
12251else
12252  ac_have_decl=0
12253fi
12254
12255cat >>confdefs.h <<_ACEOF
12256#define HAVE_DECL__LP64 $ac_have_decl
12257_ACEOF
12258if test $ac_have_decl = 1; then :
12259  is386=false
12260fi
12261ac_fn_c_check_decl "$LINENO" "__amd64__" "ac_cv_have_decl___amd64__" "$ac_includes_default"
12262if test "x$ac_cv_have_decl___amd64__" = x""yes; then :
12263  ac_have_decl=1
12264else
12265  ac_have_decl=0
12266fi
12267
12268cat >>confdefs.h <<_ACEOF
12269#define HAVE_DECL___AMD64__ $ac_have_decl
12270_ACEOF
12271if test $ac_have_decl = 1; then :
12272  is386=false
12273fi
12274ac_fn_c_check_decl "$LINENO" "amd64" "ac_cv_have_decl_amd64" "$ac_includes_default"
12275if test "x$ac_cv_have_decl_amd64" = x""yes; then :
12276  ac_have_decl=1
12277else
12278  ac_have_decl=0
12279fi
12280
12281cat >>confdefs.h <<_ACEOF
12282#define HAVE_DECL_AMD64 $ac_have_decl
12283_ACEOF
12284if test $ac_have_decl = 1; then :
12285  is386=false
12286fi
12287
12288fi
12289
12290 if test $is386 = true; then
12291  I386ARCH_TRUE=
12292  I386ARCH_FALSE='#'
12293else
12294  I386ARCH_TRUE='#'
12295  I386ARCH_FALSE=
12296fi
12297
12298
12299DRIVER_NAME=geode
12300
12301
12302ac_config_files="$ac_config_files Makefile src/Makefile"
12303
12304cat >confcache <<\_ACEOF
12305# This file is a shell script that caches the results of configure
12306# tests run on this system so they can be shared between configure
12307# scripts and configure runs, see configure's option --config-cache.
12308# It is not useful on other systems.  If it contains results you don't
12309# want to keep, you may remove or edit it.
12310#
12311# config.status only pays attention to the cache file if you give it
12312# the --recheck option to rerun configure.
12313#
12314# `ac_cv_env_foo' variables (set or unset) will be overridden when
12315# loading this file, other *unset* `ac_cv_foo' will be assigned the
12316# following values.
12317
12318_ACEOF
12319
12320# The following way of writing the cache mishandles newlines in values,
12321# but we know of no workaround that is simple, portable, and efficient.
12322# So, we kill variables containing newlines.
12323# Ultrix sh set writes to stderr and can't be redirected directly,
12324# and sets the high bit in the cache file unless we assign to the vars.
12325(
12326  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12327    eval ac_val=\$$ac_var
12328    case $ac_val in #(
12329    *${as_nl}*)
12330      case $ac_var in #(
12331      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12332$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12333      esac
12334      case $ac_var in #(
12335      _ | IFS | as_nl) ;; #(
12336      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12337      *) { eval $ac_var=; unset $ac_var;} ;;
12338      esac ;;
12339    esac
12340  done
12341
12342  (set) 2>&1 |
12343    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12344    *${as_nl}ac_space=\ *)
12345      # `set' does not quote correctly, so add quotes: double-quote
12346      # substitution turns \\\\ into \\, and sed turns \\ into \.
12347      sed -n \
12348	"s/'/'\\\\''/g;
12349	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12350      ;; #(
12351    *)
12352      # `set' quotes correctly as required by POSIX, so do not add quotes.
12353      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12354      ;;
12355    esac |
12356    sort
12357) |
12358  sed '
12359     /^ac_cv_env_/b end
12360     t clear
12361     :clear
12362     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12363     t end
12364     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12365     :end' >>confcache
12366if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12367  if test -w "$cache_file"; then
12368    test "x$cache_file" != "x/dev/null" &&
12369      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12370$as_echo "$as_me: updating cache $cache_file" >&6;}
12371    cat confcache >$cache_file
12372  else
12373    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12374$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12375  fi
12376fi
12377rm -f confcache
12378
12379test "x$prefix" = xNONE && prefix=$ac_default_prefix
12380# Let make expand exec_prefix.
12381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12382
12383DEFS=-DHAVE_CONFIG_H
12384
12385ac_libobjs=
12386ac_ltlibobjs=
12387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12388  # 1. Remove the extension, and $U if already installed.
12389  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12390  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12391  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12392  #    will be set to the directory where LIBOBJS objects are built.
12393  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12394  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12395done
12396LIBOBJS=$ac_libobjs
12397
12398LTLIBOBJS=$ac_ltlibobjs
12399
12400
12401if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12402  as_fn_error "conditional \"AMDEP\" was never defined.
12403Usually this means the macro was only invoked conditionally." "$LINENO" 5
12404fi
12405if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12406  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12407Usually this means the macro was only invoked conditionally." "$LINENO" 5
12408fi
12409 if test -n "$EXEEXT"; then
12410  am__EXEEXT_TRUE=
12411  am__EXEEXT_FALSE='#'
12412else
12413  am__EXEEXT_TRUE='#'
12414  am__EXEEXT_FALSE=
12415fi
12416
12417if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12418  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12419Usually this means the macro was only invoked conditionally." "$LINENO" 5
12420fi
12421if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12422  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12423Usually this means the macro was only invoked conditionally." "$LINENO" 5
12424fi
12425if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
12426  as_fn_error "conditional \"HAVE_XEXTPROTO_71\" was never defined.
12427Usually this means the macro was only invoked conditionally." "$LINENO" 5
12428fi
12429if test -z "${I386ARCH_TRUE}" && test -z "${I386ARCH_FALSE}"; then
12430  as_fn_error "conditional \"I386ARCH\" was never defined.
12431Usually this means the macro was only invoked conditionally." "$LINENO" 5
12432fi
12433
12434: ${CONFIG_STATUS=./config.status}
12435ac_write_fail=0
12436ac_clean_files_save=$ac_clean_files
12437ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12439$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12440as_write_fail=0
12441cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12442#! $SHELL
12443# Generated by $as_me.
12444# Run this file to recreate the current configuration.
12445# Compiler output produced by configure, useful for debugging
12446# configure, is in config.log if it exists.
12447
12448debug=false
12449ac_cs_recheck=false
12450ac_cs_silent=false
12451
12452SHELL=\${CONFIG_SHELL-$SHELL}
12453export SHELL
12454_ASEOF
12455cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12456## -------------------- ##
12457## M4sh Initialization. ##
12458## -------------------- ##
12459
12460# Be more Bourne compatible
12461DUALCASE=1; export DUALCASE # for MKS sh
12462if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12463  emulate sh
12464  NULLCMD=:
12465  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12466  # is contrary to our usage.  Disable this feature.
12467  alias -g '${1+"$@"}'='"$@"'
12468  setopt NO_GLOB_SUBST
12469else
12470  case `(set -o) 2>/dev/null` in #(
12471  *posix*) :
12472    set -o posix ;; #(
12473  *) :
12474     ;;
12475esac
12476fi
12477
12478
12479as_nl='
12480'
12481export as_nl
12482# Printing a long string crashes Solaris 7 /usr/bin/printf.
12483as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12484as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12485as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12486# Prefer a ksh shell builtin over an external printf program on Solaris,
12487# but without wasting forks for bash or zsh.
12488if test -z "$BASH_VERSION$ZSH_VERSION" \
12489    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12490  as_echo='print -r --'
12491  as_echo_n='print -rn --'
12492elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12493  as_echo='printf %s\n'
12494  as_echo_n='printf %s'
12495else
12496  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12497    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12498    as_echo_n='/usr/ucb/echo -n'
12499  else
12500    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12501    as_echo_n_body='eval
12502      arg=$1;
12503      case $arg in #(
12504      *"$as_nl"*)
12505	expr "X$arg" : "X\\(.*\\)$as_nl";
12506	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12507      esac;
12508      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12509    '
12510    export as_echo_n_body
12511    as_echo_n='sh -c $as_echo_n_body as_echo'
12512  fi
12513  export as_echo_body
12514  as_echo='sh -c $as_echo_body as_echo'
12515fi
12516
12517# The user is always right.
12518if test "${PATH_SEPARATOR+set}" != set; then
12519  PATH_SEPARATOR=:
12520  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12521    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12522      PATH_SEPARATOR=';'
12523  }
12524fi
12525
12526
12527# IFS
12528# We need space, tab and new line, in precisely that order.  Quoting is
12529# there to prevent editors from complaining about space-tab.
12530# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12531# splitting by setting IFS to empty value.)
12532IFS=" ""	$as_nl"
12533
12534# Find who we are.  Look in the path if we contain no directory separator.
12535case $0 in #((
12536  *[\\/]* ) as_myself=$0 ;;
12537  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538for as_dir in $PATH
12539do
12540  IFS=$as_save_IFS
12541  test -z "$as_dir" && as_dir=.
12542    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12543  done
12544IFS=$as_save_IFS
12545
12546     ;;
12547esac
12548# We did not find ourselves, most probably we were run as `sh COMMAND'
12549# in which case we are not to be found in the path.
12550if test "x$as_myself" = x; then
12551  as_myself=$0
12552fi
12553if test ! -f "$as_myself"; then
12554  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12555  exit 1
12556fi
12557
12558# Unset variables that we do not need and which cause bugs (e.g. in
12559# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12560# suppresses any "Segmentation fault" message there.  '((' could
12561# trigger a bug in pdksh 5.2.14.
12562for as_var in BASH_ENV ENV MAIL MAILPATH
12563do eval test x\${$as_var+set} = xset \
12564  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12565done
12566PS1='$ '
12567PS2='> '
12568PS4='+ '
12569
12570# NLS nuisances.
12571LC_ALL=C
12572export LC_ALL
12573LANGUAGE=C
12574export LANGUAGE
12575
12576# CDPATH.
12577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12578
12579
12580# as_fn_error ERROR [LINENO LOG_FD]
12581# ---------------------------------
12582# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12583# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12584# script with status $?, using 1 if that was 0.
12585as_fn_error ()
12586{
12587  as_status=$?; test $as_status -eq 0 && as_status=1
12588  if test "$3"; then
12589    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12590    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12591  fi
12592  $as_echo "$as_me: error: $1" >&2
12593  as_fn_exit $as_status
12594} # as_fn_error
12595
12596
12597# as_fn_set_status STATUS
12598# -----------------------
12599# Set $? to STATUS, without forking.
12600as_fn_set_status ()
12601{
12602  return $1
12603} # as_fn_set_status
12604
12605# as_fn_exit STATUS
12606# -----------------
12607# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12608as_fn_exit ()
12609{
12610  set +e
12611  as_fn_set_status $1
12612  exit $1
12613} # as_fn_exit
12614
12615# as_fn_unset VAR
12616# ---------------
12617# Portably unset VAR.
12618as_fn_unset ()
12619{
12620  { eval $1=; unset $1;}
12621}
12622as_unset=as_fn_unset
12623# as_fn_append VAR VALUE
12624# ----------------------
12625# Append the text in VALUE to the end of the definition contained in VAR. Take
12626# advantage of any shell optimizations that allow amortized linear growth over
12627# repeated appends, instead of the typical quadratic growth present in naive
12628# implementations.
12629if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12630  eval 'as_fn_append ()
12631  {
12632    eval $1+=\$2
12633  }'
12634else
12635  as_fn_append ()
12636  {
12637    eval $1=\$$1\$2
12638  }
12639fi # as_fn_append
12640
12641# as_fn_arith ARG...
12642# ------------------
12643# Perform arithmetic evaluation on the ARGs, and store the result in the
12644# global $as_val. Take advantage of shells that can avoid forks. The arguments
12645# must be portable across $(()) and expr.
12646if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12647  eval 'as_fn_arith ()
12648  {
12649    as_val=$(( $* ))
12650  }'
12651else
12652  as_fn_arith ()
12653  {
12654    as_val=`expr "$@" || test $? -eq 1`
12655  }
12656fi # as_fn_arith
12657
12658
12659if expr a : '\(a\)' >/dev/null 2>&1 &&
12660   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12661  as_expr=expr
12662else
12663  as_expr=false
12664fi
12665
12666if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12667  as_basename=basename
12668else
12669  as_basename=false
12670fi
12671
12672if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12673  as_dirname=dirname
12674else
12675  as_dirname=false
12676fi
12677
12678as_me=`$as_basename -- "$0" ||
12679$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12680	 X"$0" : 'X\(//\)$' \| \
12681	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12682$as_echo X/"$0" |
12683    sed '/^.*\/\([^/][^/]*\)\/*$/{
12684	    s//\1/
12685	    q
12686	  }
12687	  /^X\/\(\/\/\)$/{
12688	    s//\1/
12689	    q
12690	  }
12691	  /^X\/\(\/\).*/{
12692	    s//\1/
12693	    q
12694	  }
12695	  s/.*/./; q'`
12696
12697# Avoid depending upon Character Ranges.
12698as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12699as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12700as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12701as_cr_digits='0123456789'
12702as_cr_alnum=$as_cr_Letters$as_cr_digits
12703
12704ECHO_C= ECHO_N= ECHO_T=
12705case `echo -n x` in #(((((
12706-n*)
12707  case `echo 'xy\c'` in
12708  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12709  xy)  ECHO_C='\c';;
12710  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12711       ECHO_T='	';;
12712  esac;;
12713*)
12714  ECHO_N='-n';;
12715esac
12716
12717rm -f conf$$ conf$$.exe conf$$.file
12718if test -d conf$$.dir; then
12719  rm -f conf$$.dir/conf$$.file
12720else
12721  rm -f conf$$.dir
12722  mkdir conf$$.dir 2>/dev/null
12723fi
12724if (echo >conf$$.file) 2>/dev/null; then
12725  if ln -s conf$$.file conf$$ 2>/dev/null; then
12726    as_ln_s='ln -s'
12727    # ... but there are two gotchas:
12728    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12729    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12730    # In both cases, we have to default to `cp -p'.
12731    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12732      as_ln_s='cp -p'
12733  elif ln conf$$.file conf$$ 2>/dev/null; then
12734    as_ln_s=ln
12735  else
12736    as_ln_s='cp -p'
12737  fi
12738else
12739  as_ln_s='cp -p'
12740fi
12741rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12742rmdir conf$$.dir 2>/dev/null
12743
12744
12745# as_fn_mkdir_p
12746# -------------
12747# Create "$as_dir" as a directory, including parents if necessary.
12748as_fn_mkdir_p ()
12749{
12750
12751  case $as_dir in #(
12752  -*) as_dir=./$as_dir;;
12753  esac
12754  test -d "$as_dir" || eval $as_mkdir_p || {
12755    as_dirs=
12756    while :; do
12757      case $as_dir in #(
12758      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12759      *) as_qdir=$as_dir;;
12760      esac
12761      as_dirs="'$as_qdir' $as_dirs"
12762      as_dir=`$as_dirname -- "$as_dir" ||
12763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12764	 X"$as_dir" : 'X\(//\)[^/]' \| \
12765	 X"$as_dir" : 'X\(//\)$' \| \
12766	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12767$as_echo X"$as_dir" |
12768    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12769	    s//\1/
12770	    q
12771	  }
12772	  /^X\(\/\/\)[^/].*/{
12773	    s//\1/
12774	    q
12775	  }
12776	  /^X\(\/\/\)$/{
12777	    s//\1/
12778	    q
12779	  }
12780	  /^X\(\/\).*/{
12781	    s//\1/
12782	    q
12783	  }
12784	  s/.*/./; q'`
12785      test -d "$as_dir" && break
12786    done
12787    test -z "$as_dirs" || eval "mkdir $as_dirs"
12788  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12789
12790
12791} # as_fn_mkdir_p
12792if mkdir -p . 2>/dev/null; then
12793  as_mkdir_p='mkdir -p "$as_dir"'
12794else
12795  test -d ./-p && rmdir ./-p
12796  as_mkdir_p=false
12797fi
12798
12799if test -x / >/dev/null 2>&1; then
12800  as_test_x='test -x'
12801else
12802  if ls -dL / >/dev/null 2>&1; then
12803    as_ls_L_option=L
12804  else
12805    as_ls_L_option=
12806  fi
12807  as_test_x='
12808    eval sh -c '\''
12809      if test -d "$1"; then
12810	test -d "$1/.";
12811      else
12812	case $1 in #(
12813	-*)set "./$1";;
12814	esac;
12815	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12816	???[sx]*):;;*)false;;esac;fi
12817    '\'' sh
12818  '
12819fi
12820as_executable_p=$as_test_x
12821
12822# Sed expression to map a string onto a valid CPP name.
12823as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12824
12825# Sed expression to map a string onto a valid variable name.
12826as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12827
12828
12829exec 6>&1
12830## ----------------------------------- ##
12831## Main body of $CONFIG_STATUS script. ##
12832## ----------------------------------- ##
12833_ASEOF
12834test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12835
12836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837# Save the log message, to keep $0 and so on meaningful, and to
12838# report actual input values of CONFIG_FILES etc. instead of their
12839# values after options handling.
12840ac_log="
12841This file was extended by xf86-video-geode $as_me 2.11.8, which was
12842generated by GNU Autoconf 2.65.  Invocation command line was
12843
12844  CONFIG_FILES    = $CONFIG_FILES
12845  CONFIG_HEADERS  = $CONFIG_HEADERS
12846  CONFIG_LINKS    = $CONFIG_LINKS
12847  CONFIG_COMMANDS = $CONFIG_COMMANDS
12848  $ $0 $@
12849
12850on `(hostname || uname -n) 2>/dev/null | sed 1q`
12851"
12852
12853_ACEOF
12854
12855case $ac_config_files in *"
12856"*) set x $ac_config_files; shift; ac_config_files=$*;;
12857esac
12858
12859case $ac_config_headers in *"
12860"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12861esac
12862
12863
12864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12865# Files that config.status was made for.
12866config_files="$ac_config_files"
12867config_headers="$ac_config_headers"
12868config_commands="$ac_config_commands"
12869
12870_ACEOF
12871
12872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12873ac_cs_usage="\
12874\`$as_me' instantiates files and other configuration actions
12875from templates according to the current configuration.  Unless the files
12876and actions are specified as TAGs, all are instantiated by default.
12877
12878Usage: $0 [OPTION]... [TAG]...
12879
12880  -h, --help       print this help, then exit
12881  -V, --version    print version number and configuration settings, then exit
12882      --config     print configuration, then exit
12883  -q, --quiet, --silent
12884                   do not print progress messages
12885  -d, --debug      don't remove temporary files
12886      --recheck    update $as_me by reconfiguring in the same conditions
12887      --file=FILE[:TEMPLATE]
12888                   instantiate the configuration file FILE
12889      --header=FILE[:TEMPLATE]
12890                   instantiate the configuration header FILE
12891
12892Configuration files:
12893$config_files
12894
12895Configuration headers:
12896$config_headers
12897
12898Configuration commands:
12899$config_commands
12900
12901Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
12902xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>."
12903
12904_ACEOF
12905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12906ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12907ac_cs_version="\\
12908xf86-video-geode config.status 2.11.8
12909configured by $0, generated by GNU Autoconf 2.65,
12910  with options \\"\$ac_cs_config\\"
12911
12912Copyright (C) 2009 Free Software Foundation, Inc.
12913This config.status script is free software; the Free Software Foundation
12914gives unlimited permission to copy, distribute and modify it."
12915
12916ac_pwd='$ac_pwd'
12917srcdir='$srcdir'
12918INSTALL='$INSTALL'
12919MKDIR_P='$MKDIR_P'
12920AWK='$AWK'
12921test -n "\$AWK" || AWK=awk
12922_ACEOF
12923
12924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12925# The default lists apply if the user does not specify any file.
12926ac_need_defaults=:
12927while test $# != 0
12928do
12929  case $1 in
12930  --*=*)
12931    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12932    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12933    ac_shift=:
12934    ;;
12935  *)
12936    ac_option=$1
12937    ac_optarg=$2
12938    ac_shift=shift
12939    ;;
12940  esac
12941
12942  case $ac_option in
12943  # Handling of the options.
12944  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12945    ac_cs_recheck=: ;;
12946  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12947    $as_echo "$ac_cs_version"; exit ;;
12948  --config | --confi | --conf | --con | --co | --c )
12949    $as_echo "$ac_cs_config"; exit ;;
12950  --debug | --debu | --deb | --de | --d | -d )
12951    debug=: ;;
12952  --file | --fil | --fi | --f )
12953    $ac_shift
12954    case $ac_optarg in
12955    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12956    esac
12957    as_fn_append CONFIG_FILES " '$ac_optarg'"
12958    ac_need_defaults=false;;
12959  --header | --heade | --head | --hea )
12960    $ac_shift
12961    case $ac_optarg in
12962    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12963    esac
12964    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12965    ac_need_defaults=false;;
12966  --he | --h)
12967    # Conflict between --help and --header
12968    as_fn_error "ambiguous option: \`$1'
12969Try \`$0 --help' for more information.";;
12970  --help | --hel | -h )
12971    $as_echo "$ac_cs_usage"; exit ;;
12972  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12973  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12974    ac_cs_silent=: ;;
12975
12976  # This is an error.
12977  -*) as_fn_error "unrecognized option: \`$1'
12978Try \`$0 --help' for more information." ;;
12979
12980  *) as_fn_append ac_config_targets " $1"
12981     ac_need_defaults=false ;;
12982
12983  esac
12984  shift
12985done
12986
12987ac_configure_extra_args=
12988
12989if $ac_cs_silent; then
12990  exec 6>/dev/null
12991  ac_configure_extra_args="$ac_configure_extra_args --silent"
12992fi
12993
12994_ACEOF
12995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12996if \$ac_cs_recheck; then
12997  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12998  shift
12999  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13000  CONFIG_SHELL='$SHELL'
13001  export CONFIG_SHELL
13002  exec "\$@"
13003fi
13004
13005_ACEOF
13006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13007exec 5>>config.log
13008{
13009  echo
13010  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13011## Running $as_me. ##
13012_ASBOX
13013  $as_echo "$ac_log"
13014} >&5
13015
13016_ACEOF
13017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13018#
13019# INIT-COMMANDS
13020#
13021AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13022
13023
13024# The HP-UX ksh and POSIX shell print the target directory to stdout
13025# if CDPATH is set.
13026(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13027
13028sed_quote_subst='$sed_quote_subst'
13029double_quote_subst='$double_quote_subst'
13030delay_variable_subst='$delay_variable_subst'
13031enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13032macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13033macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13034enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13035pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13036enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13037host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13038host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13039host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13040build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13041build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13042build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13043SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13044Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13045GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13046EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13047FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13048LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13049NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13050LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13051max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13052ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13053exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13054lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13055lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13056lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13057reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13058reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13059OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13060deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13061file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13062AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13063AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13064STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13065RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13066old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13067old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13068old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13069CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13070CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13071compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13072GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13073lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13074lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13075lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13076lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13077objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13078SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13079ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13080MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13081lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13082lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13083lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13084lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13085lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13086need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13087DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13088NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13089LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13090OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13091OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13092libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13093shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13094extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13095archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13096enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13097export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13098whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13099compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13100old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13101old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13102archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13103archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13104module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13105module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13106with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13107allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13108no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13109hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13110hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13111hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13112hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13113hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13114hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13115hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13116hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13117inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13118link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13119fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13120always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13121export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13122exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13123include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13124prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13125file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13126variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13127need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13128need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13129version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13130runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13131shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13132shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13133libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13134library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13135soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13136postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13137postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13138finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13139finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13140hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13141sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13142sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13143hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13144enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13145enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13146enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13147old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13148striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13149
13150LTCC='$LTCC'
13151LTCFLAGS='$LTCFLAGS'
13152compiler='$compiler_DEFAULT'
13153
13154# Quote evaled strings.
13155for var in SED \
13156GREP \
13157EGREP \
13158FGREP \
13159LD \
13160NM \
13161LN_S \
13162lt_SP2NL \
13163lt_NL2SP \
13164reload_flag \
13165OBJDUMP \
13166deplibs_check_method \
13167file_magic_cmd \
13168AR \
13169AR_FLAGS \
13170STRIP \
13171RANLIB \
13172CC \
13173CFLAGS \
13174compiler \
13175lt_cv_sys_global_symbol_pipe \
13176lt_cv_sys_global_symbol_to_cdecl \
13177lt_cv_sys_global_symbol_to_c_name_address \
13178lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13179SHELL \
13180ECHO \
13181lt_prog_compiler_no_builtin_flag \
13182lt_prog_compiler_wl \
13183lt_prog_compiler_pic \
13184lt_prog_compiler_static \
13185lt_cv_prog_compiler_c_o \
13186need_locks \
13187DSYMUTIL \
13188NMEDIT \
13189LIPO \
13190OTOOL \
13191OTOOL64 \
13192shrext_cmds \
13193export_dynamic_flag_spec \
13194whole_archive_flag_spec \
13195compiler_needs_object \
13196with_gnu_ld \
13197allow_undefined_flag \
13198no_undefined_flag \
13199hardcode_libdir_flag_spec \
13200hardcode_libdir_flag_spec_ld \
13201hardcode_libdir_separator \
13202fix_srcfile_path \
13203exclude_expsyms \
13204include_expsyms \
13205file_list_spec \
13206variables_saved_for_relink \
13207libname_spec \
13208library_names_spec \
13209soname_spec \
13210finish_eval \
13211old_striplib \
13212striplib; do
13213    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13214    *[\\\\\\\`\\"\\\$]*)
13215      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13216      ;;
13217    *)
13218      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13219      ;;
13220    esac
13221done
13222
13223# Double-quote double-evaled strings.
13224for var in reload_cmds \
13225old_postinstall_cmds \
13226old_postuninstall_cmds \
13227old_archive_cmds \
13228extract_expsyms_cmds \
13229old_archive_from_new_cmds \
13230old_archive_from_expsyms_cmds \
13231archive_cmds \
13232archive_expsym_cmds \
13233module_cmds \
13234module_expsym_cmds \
13235export_symbols_cmds \
13236prelink_cmds \
13237postinstall_cmds \
13238postuninstall_cmds \
13239finish_cmds \
13240sys_lib_search_path_spec \
13241sys_lib_dlsearch_path_spec; do
13242    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13243    *[\\\\\\\`\\"\\\$]*)
13244      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13245      ;;
13246    *)
13247      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13248      ;;
13249    esac
13250done
13251
13252# Fix-up fallback echo if it was mangled by the above quoting rules.
13253case \$lt_ECHO in
13254*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13255  ;;
13256esac
13257
13258ac_aux_dir='$ac_aux_dir'
13259xsi_shell='$xsi_shell'
13260lt_shell_append='$lt_shell_append'
13261
13262# See if we are running on zsh, and set the options which allow our
13263# commands through without removal of \ escapes INIT.
13264if test -n "\${ZSH_VERSION+set}" ; then
13265   setopt NO_GLOB_SUBST
13266fi
13267
13268
13269    PACKAGE='$PACKAGE'
13270    VERSION='$VERSION'
13271    TIMESTAMP='$TIMESTAMP'
13272    RM='$RM'
13273    ofile='$ofile'
13274
13275
13276
13277
13278_ACEOF
13279
13280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13281
13282# Handling of arguments.
13283for ac_config_target in $ac_config_targets
13284do
13285  case $ac_config_target in
13286    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13287    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13288    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13289    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13290    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13291
13292  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13293  esac
13294done
13295
13296
13297# If the user did not use the arguments to specify the items to instantiate,
13298# then the envvar interface is used.  Set only those that are not.
13299# We use the long form for the default assignment because of an extremely
13300# bizarre bug on SunOS 4.1.3.
13301if $ac_need_defaults; then
13302  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13303  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13304  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13305fi
13306
13307# Have a temporary directory for convenience.  Make it in the build tree
13308# simply because there is no reason against having it here, and in addition,
13309# creating and moving files from /tmp can sometimes cause problems.
13310# Hook for its removal unless debugging.
13311# Note that there is a small window in which the directory will not be cleaned:
13312# after its creation but before its name has been assigned to `$tmp'.
13313$debug ||
13314{
13315  tmp=
13316  trap 'exit_status=$?
13317  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13318' 0
13319  trap 'as_fn_exit 1' 1 2 13 15
13320}
13321# Create a (secure) tmp directory for tmp files.
13322
13323{
13324  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13325  test -n "$tmp" && test -d "$tmp"
13326}  ||
13327{
13328  tmp=./conf$$-$RANDOM
13329  (umask 077 && mkdir "$tmp")
13330} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13331
13332# Set up the scripts for CONFIG_FILES section.
13333# No need to generate them if there are no CONFIG_FILES.
13334# This happens for instance with `./config.status config.h'.
13335if test -n "$CONFIG_FILES"; then
13336
13337
13338ac_cr=`echo X | tr X '\015'`
13339# On cygwin, bash can eat \r inside `` if the user requested igncr.
13340# But we know of no other shell where ac_cr would be empty at this
13341# point, so we can use a bashism as a fallback.
13342if test "x$ac_cr" = x; then
13343  eval ac_cr=\$\'\\r\'
13344fi
13345ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13346if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13347  ac_cs_awk_cr='\r'
13348else
13349  ac_cs_awk_cr=$ac_cr
13350fi
13351
13352echo 'BEGIN {' >"$tmp/subs1.awk" &&
13353_ACEOF
13354
13355
13356{
13357  echo "cat >conf$$subs.awk <<_ACEOF" &&
13358  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13359  echo "_ACEOF"
13360} >conf$$subs.sh ||
13361  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13362ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13363ac_delim='%!_!# '
13364for ac_last_try in false false false false false :; do
13365  . ./conf$$subs.sh ||
13366    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13367
13368  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13369  if test $ac_delim_n = $ac_delim_num; then
13370    break
13371  elif $ac_last_try; then
13372    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13373  else
13374    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13375  fi
13376done
13377rm -f conf$$subs.sh
13378
13379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13380cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13381_ACEOF
13382sed -n '
13383h
13384s/^/S["/; s/!.*/"]=/
13385p
13386g
13387s/^[^!]*!//
13388:repl
13389t repl
13390s/'"$ac_delim"'$//
13391t delim
13392:nl
13393h
13394s/\(.\{148\}\)..*/\1/
13395t more1
13396s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13397p
13398n
13399b repl
13400:more1
13401s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13402p
13403g
13404s/.\{148\}//
13405t nl
13406:delim
13407h
13408s/\(.\{148\}\)..*/\1/
13409t more2
13410s/["\\]/\\&/g; s/^/"/; s/$/"/
13411p
13412b
13413:more2
13414s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13415p
13416g
13417s/.\{148\}//
13418t delim
13419' <conf$$subs.awk | sed '
13420/^[^""]/{
13421  N
13422  s/\n//
13423}
13424' >>$CONFIG_STATUS || ac_write_fail=1
13425rm -f conf$$subs.awk
13426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13427_ACAWK
13428cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13429  for (key in S) S_is_set[key] = 1
13430  FS = ""
13431
13432}
13433{
13434  line = $ 0
13435  nfields = split(line, field, "@")
13436  substed = 0
13437  len = length(field[1])
13438  for (i = 2; i < nfields; i++) {
13439    key = field[i]
13440    keylen = length(key)
13441    if (S_is_set[key]) {
13442      value = S[key]
13443      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13444      len += length(value) + length(field[++i])
13445      substed = 1
13446    } else
13447      len += 1 + keylen
13448  }
13449
13450  print line
13451}
13452
13453_ACAWK
13454_ACEOF
13455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13456if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13457  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13458else
13459  cat
13460fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13461  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13462_ACEOF
13463
13464# VPATH may cause trouble with some makes, so we remove $(srcdir),
13465# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13466# trailing colons and then remove the whole line if VPATH becomes empty
13467# (actually we leave an empty line to preserve line numbers).
13468if test "x$srcdir" = x.; then
13469  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13470s/:*\$(srcdir):*/:/
13471s/:*\${srcdir}:*/:/
13472s/:*@srcdir@:*/:/
13473s/^\([^=]*=[	 ]*\):*/\1/
13474s/:*$//
13475s/^[^=]*=[	 ]*$//
13476}'
13477fi
13478
13479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13480fi # test -n "$CONFIG_FILES"
13481
13482# Set up the scripts for CONFIG_HEADERS section.
13483# No need to generate them if there are no CONFIG_HEADERS.
13484# This happens for instance with `./config.status Makefile'.
13485if test -n "$CONFIG_HEADERS"; then
13486cat >"$tmp/defines.awk" <<\_ACAWK ||
13487BEGIN {
13488_ACEOF
13489
13490# Transform confdefs.h into an awk script `defines.awk', embedded as
13491# here-document in config.status, that substitutes the proper values into
13492# config.h.in to produce config.h.
13493
13494# Create a delimiter string that does not exist in confdefs.h, to ease
13495# handling of long lines.
13496ac_delim='%!_!# '
13497for ac_last_try in false false :; do
13498  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13499  if test -z "$ac_t"; then
13500    break
13501  elif $ac_last_try; then
13502    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13503  else
13504    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13505  fi
13506done
13507
13508# For the awk script, D is an array of macro values keyed by name,
13509# likewise P contains macro parameters if any.  Preserve backslash
13510# newline sequences.
13511
13512ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13513sed -n '
13514s/.\{148\}/&'"$ac_delim"'/g
13515t rset
13516:rset
13517s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13518t def
13519d
13520:def
13521s/\\$//
13522t bsnl
13523s/["\\]/\\&/g
13524s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13525D["\1"]=" \3"/p
13526s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13527d
13528:bsnl
13529s/["\\]/\\&/g
13530s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13531D["\1"]=" \3\\\\\\n"\\/p
13532t cont
13533s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13534t cont
13535d
13536:cont
13537n
13538s/.\{148\}/&'"$ac_delim"'/g
13539t clear
13540:clear
13541s/\\$//
13542t bsnlc
13543s/["\\]/\\&/g; s/^/"/; s/$/"/p
13544d
13545:bsnlc
13546s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13547b cont
13548' <confdefs.h | sed '
13549s/'"$ac_delim"'/"\\\
13550"/g' >>$CONFIG_STATUS || ac_write_fail=1
13551
13552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13553  for (key in D) D_is_set[key] = 1
13554  FS = ""
13555}
13556/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13557  line = \$ 0
13558  split(line, arg, " ")
13559  if (arg[1] == "#") {
13560    defundef = arg[2]
13561    mac1 = arg[3]
13562  } else {
13563    defundef = substr(arg[1], 2)
13564    mac1 = arg[2]
13565  }
13566  split(mac1, mac2, "(") #)
13567  macro = mac2[1]
13568  prefix = substr(line, 1, index(line, defundef) - 1)
13569  if (D_is_set[macro]) {
13570    # Preserve the white space surrounding the "#".
13571    print prefix "define", macro P[macro] D[macro]
13572    next
13573  } else {
13574    # Replace #undef with comments.  This is necessary, for example,
13575    # in the case of _POSIX_SOURCE, which is predefined and required
13576    # on some systems where configure will not decide to define it.
13577    if (defundef == "undef") {
13578      print "/*", prefix defundef, macro, "*/"
13579      next
13580    }
13581  }
13582}
13583{ print }
13584_ACAWK
13585_ACEOF
13586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13587  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13588fi # test -n "$CONFIG_HEADERS"
13589
13590
13591eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13592shift
13593for ac_tag
13594do
13595  case $ac_tag in
13596  :[FHLC]) ac_mode=$ac_tag; continue;;
13597  esac
13598  case $ac_mode$ac_tag in
13599  :[FHL]*:*);;
13600  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13601  :[FH]-) ac_tag=-:-;;
13602  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13603  esac
13604  ac_save_IFS=$IFS
13605  IFS=:
13606  set x $ac_tag
13607  IFS=$ac_save_IFS
13608  shift
13609  ac_file=$1
13610  shift
13611
13612  case $ac_mode in
13613  :L) ac_source=$1;;
13614  :[FH])
13615    ac_file_inputs=
13616    for ac_f
13617    do
13618      case $ac_f in
13619      -) ac_f="$tmp/stdin";;
13620      *) # Look for the file first in the build tree, then in the source tree
13621	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13622	 # because $ac_f cannot contain `:'.
13623	 test -f "$ac_f" ||
13624	   case $ac_f in
13625	   [\\/$]*) false;;
13626	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13627	   esac ||
13628	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13629      esac
13630      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13631      as_fn_append ac_file_inputs " '$ac_f'"
13632    done
13633
13634    # Let's still pretend it is `configure' which instantiates (i.e., don't
13635    # use $as_me), people would be surprised to read:
13636    #    /* config.h.  Generated by config.status.  */
13637    configure_input='Generated from '`
13638	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13639	`' by configure.'
13640    if test x"$ac_file" != x-; then
13641      configure_input="$ac_file.  $configure_input"
13642      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13643$as_echo "$as_me: creating $ac_file" >&6;}
13644    fi
13645    # Neutralize special characters interpreted by sed in replacement strings.
13646    case $configure_input in #(
13647    *\&* | *\|* | *\\* )
13648       ac_sed_conf_input=`$as_echo "$configure_input" |
13649       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13650    *) ac_sed_conf_input=$configure_input;;
13651    esac
13652
13653    case $ac_tag in
13654    *:-:* | *:-) cat >"$tmp/stdin" \
13655      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13656    esac
13657    ;;
13658  esac
13659
13660  ac_dir=`$as_dirname -- "$ac_file" ||
13661$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13662	 X"$ac_file" : 'X\(//\)[^/]' \| \
13663	 X"$ac_file" : 'X\(//\)$' \| \
13664	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13665$as_echo X"$ac_file" |
13666    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13667	    s//\1/
13668	    q
13669	  }
13670	  /^X\(\/\/\)[^/].*/{
13671	    s//\1/
13672	    q
13673	  }
13674	  /^X\(\/\/\)$/{
13675	    s//\1/
13676	    q
13677	  }
13678	  /^X\(\/\).*/{
13679	    s//\1/
13680	    q
13681	  }
13682	  s/.*/./; q'`
13683  as_dir="$ac_dir"; as_fn_mkdir_p
13684  ac_builddir=.
13685
13686case "$ac_dir" in
13687.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13688*)
13689  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13690  # A ".." for each directory in $ac_dir_suffix.
13691  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13692  case $ac_top_builddir_sub in
13693  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13694  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13695  esac ;;
13696esac
13697ac_abs_top_builddir=$ac_pwd
13698ac_abs_builddir=$ac_pwd$ac_dir_suffix
13699# for backward compatibility:
13700ac_top_builddir=$ac_top_build_prefix
13701
13702case $srcdir in
13703  .)  # We are building in place.
13704    ac_srcdir=.
13705    ac_top_srcdir=$ac_top_builddir_sub
13706    ac_abs_top_srcdir=$ac_pwd ;;
13707  [\\/]* | ?:[\\/]* )  # Absolute name.
13708    ac_srcdir=$srcdir$ac_dir_suffix;
13709    ac_top_srcdir=$srcdir
13710    ac_abs_top_srcdir=$srcdir ;;
13711  *) # Relative name.
13712    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13713    ac_top_srcdir=$ac_top_build_prefix$srcdir
13714    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13715esac
13716ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13717
13718
13719  case $ac_mode in
13720  :F)
13721  #
13722  # CONFIG_FILE
13723  #
13724
13725  case $INSTALL in
13726  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13727  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13728  esac
13729  ac_MKDIR_P=$MKDIR_P
13730  case $MKDIR_P in
13731  [\\/$]* | ?:[\\/]* ) ;;
13732  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13733  esac
13734_ACEOF
13735
13736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13737# If the template does not know about datarootdir, expand it.
13738# FIXME: This hack should be removed a few years after 2.60.
13739ac_datarootdir_hack=; ac_datarootdir_seen=
13740ac_sed_dataroot='
13741/datarootdir/ {
13742  p
13743  q
13744}
13745/@datadir@/p
13746/@docdir@/p
13747/@infodir@/p
13748/@localedir@/p
13749/@mandir@/p'
13750case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13751*datarootdir*) ac_datarootdir_seen=yes;;
13752*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13753  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13754$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13755_ACEOF
13756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13757  ac_datarootdir_hack='
13758  s&@datadir@&$datadir&g
13759  s&@docdir@&$docdir&g
13760  s&@infodir@&$infodir&g
13761  s&@localedir@&$localedir&g
13762  s&@mandir@&$mandir&g
13763  s&\\\${datarootdir}&$datarootdir&g' ;;
13764esac
13765_ACEOF
13766
13767# Neutralize VPATH when `$srcdir' = `.'.
13768# Shell code in configure.ac might set extrasub.
13769# FIXME: do we really want to maintain this feature?
13770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13771ac_sed_extra="$ac_vpsub
13772$extrasub
13773_ACEOF
13774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13775:t
13776/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13777s|@configure_input@|$ac_sed_conf_input|;t t
13778s&@top_builddir@&$ac_top_builddir_sub&;t t
13779s&@top_build_prefix@&$ac_top_build_prefix&;t t
13780s&@srcdir@&$ac_srcdir&;t t
13781s&@abs_srcdir@&$ac_abs_srcdir&;t t
13782s&@top_srcdir@&$ac_top_srcdir&;t t
13783s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13784s&@builddir@&$ac_builddir&;t t
13785s&@abs_builddir@&$ac_abs_builddir&;t t
13786s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13787s&@INSTALL@&$ac_INSTALL&;t t
13788s&@MKDIR_P@&$ac_MKDIR_P&;t t
13789$ac_datarootdir_hack
13790"
13791eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13792  || as_fn_error "could not create $ac_file" "$LINENO" 5
13793
13794test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13795  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13796  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13798which seems to be undefined.  Please make sure it is defined." >&5
13799$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13800which seems to be undefined.  Please make sure it is defined." >&2;}
13801
13802  rm -f "$tmp/stdin"
13803  case $ac_file in
13804  -) cat "$tmp/out" && rm -f "$tmp/out";;
13805  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13806  esac \
13807  || as_fn_error "could not create $ac_file" "$LINENO" 5
13808 ;;
13809  :H)
13810  #
13811  # CONFIG_HEADER
13812  #
13813  if test x"$ac_file" != x-; then
13814    {
13815      $as_echo "/* $configure_input  */" \
13816      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13817    } >"$tmp/config.h" \
13818      || as_fn_error "could not create $ac_file" "$LINENO" 5
13819    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13820      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13821$as_echo "$as_me: $ac_file is unchanged" >&6;}
13822    else
13823      rm -f "$ac_file"
13824      mv "$tmp/config.h" "$ac_file" \
13825	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13826    fi
13827  else
13828    $as_echo "/* $configure_input  */" \
13829      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13830      || as_fn_error "could not create -" "$LINENO" 5
13831  fi
13832# Compute "$ac_file"'s index in $config_headers.
13833_am_arg="$ac_file"
13834_am_stamp_count=1
13835for _am_header in $config_headers :; do
13836  case $_am_header in
13837    $_am_arg | $_am_arg:* )
13838      break ;;
13839    * )
13840      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13841  esac
13842done
13843echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13844$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13845	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13846	 X"$_am_arg" : 'X\(//\)$' \| \
13847	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13848$as_echo X"$_am_arg" |
13849    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13850	    s//\1/
13851	    q
13852	  }
13853	  /^X\(\/\/\)[^/].*/{
13854	    s//\1/
13855	    q
13856	  }
13857	  /^X\(\/\/\)$/{
13858	    s//\1/
13859	    q
13860	  }
13861	  /^X\(\/\).*/{
13862	    s//\1/
13863	    q
13864	  }
13865	  s/.*/./; q'`/stamp-h$_am_stamp_count
13866 ;;
13867
13868  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13869$as_echo "$as_me: executing $ac_file commands" >&6;}
13870 ;;
13871  esac
13872
13873
13874  case $ac_file$ac_mode in
13875    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13876  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13877  # are listed without --file.  Let's play safe and only enable the eval
13878  # if we detect the quoting.
13879  case $CONFIG_FILES in
13880  *\'*) eval set x "$CONFIG_FILES" ;;
13881  *)   set x $CONFIG_FILES ;;
13882  esac
13883  shift
13884  for mf
13885  do
13886    # Strip MF so we end up with the name of the file.
13887    mf=`echo "$mf" | sed -e 's/:.*$//'`
13888    # Check whether this is an Automake generated Makefile or not.
13889    # We used to match only the files named `Makefile.in', but
13890    # some people rename them; so instead we look at the file content.
13891    # Grep'ing the first line is not enough: some people post-process
13892    # each Makefile.in and add a new line on top of each file to say so.
13893    # Grep'ing the whole file is not good either: AIX grep has a line
13894    # limit of 2048, but all sed's we know have understand at least 4000.
13895    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13896      dirpart=`$as_dirname -- "$mf" ||
13897$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13898	 X"$mf" : 'X\(//\)[^/]' \| \
13899	 X"$mf" : 'X\(//\)$' \| \
13900	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13901$as_echo X"$mf" |
13902    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13903	    s//\1/
13904	    q
13905	  }
13906	  /^X\(\/\/\)[^/].*/{
13907	    s//\1/
13908	    q
13909	  }
13910	  /^X\(\/\/\)$/{
13911	    s//\1/
13912	    q
13913	  }
13914	  /^X\(\/\).*/{
13915	    s//\1/
13916	    q
13917	  }
13918	  s/.*/./; q'`
13919    else
13920      continue
13921    fi
13922    # Extract the definition of DEPDIR, am__include, and am__quote
13923    # from the Makefile without running `make'.
13924    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13925    test -z "$DEPDIR" && continue
13926    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13927    test -z "am__include" && continue
13928    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13929    # When using ansi2knr, U may be empty or an underscore; expand it
13930    U=`sed -n 's/^U = //p' < "$mf"`
13931    # Find all dependency output files, they are included files with
13932    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13933    # simplest approach to changing $(DEPDIR) to its actual value in the
13934    # expansion.
13935    for file in `sed -n "
13936      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13937	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13938      # Make sure the directory exists.
13939      test -f "$dirpart/$file" && continue
13940      fdir=`$as_dirname -- "$file" ||
13941$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13942	 X"$file" : 'X\(//\)[^/]' \| \
13943	 X"$file" : 'X\(//\)$' \| \
13944	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13945$as_echo X"$file" |
13946    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13947	    s//\1/
13948	    q
13949	  }
13950	  /^X\(\/\/\)[^/].*/{
13951	    s//\1/
13952	    q
13953	  }
13954	  /^X\(\/\/\)$/{
13955	    s//\1/
13956	    q
13957	  }
13958	  /^X\(\/\).*/{
13959	    s//\1/
13960	    q
13961	  }
13962	  s/.*/./; q'`
13963      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13964      # echo "creating $dirpart/$file"
13965      echo '# dummy' > "$dirpart/$file"
13966    done
13967  done
13968}
13969 ;;
13970    "libtool":C)
13971
13972    # See if we are running on zsh, and set the options which allow our
13973    # commands through without removal of \ escapes.
13974    if test -n "${ZSH_VERSION+set}" ; then
13975      setopt NO_GLOB_SUBST
13976    fi
13977
13978    cfgfile="${ofile}T"
13979    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13980    $RM "$cfgfile"
13981
13982    cat <<_LT_EOF >> "$cfgfile"
13983#! $SHELL
13984
13985# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13986# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13987# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13988# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13989#
13990#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13991#                 2006, 2007, 2008 Free Software Foundation, Inc.
13992#   Written by Gordon Matzigkeit, 1996
13993#
13994#   This file is part of GNU Libtool.
13995#
13996# GNU Libtool is free software; you can redistribute it and/or
13997# modify it under the terms of the GNU General Public License as
13998# published by the Free Software Foundation; either version 2 of
13999# the License, or (at your option) any later version.
14000#
14001# As a special exception to the GNU General Public License,
14002# if you distribute this file as part of a program or library that
14003# is built using GNU Libtool, you may include this file under the
14004# same distribution terms that you use for the rest of that program.
14005#
14006# GNU Libtool is distributed in the hope that it will be useful,
14007# but WITHOUT ANY WARRANTY; without even the implied warranty of
14008# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14009# GNU General Public License for more details.
14010#
14011# You should have received a copy of the GNU General Public License
14012# along with GNU Libtool; see the file COPYING.  If not, a copy
14013# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14014# obtained by writing to the Free Software Foundation, Inc.,
14015# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14016
14017
14018# The names of the tagged configurations supported by this script.
14019available_tags=""
14020
14021# ### BEGIN LIBTOOL CONFIG
14022
14023# Whether or not to build static libraries.
14024build_old_libs=$enable_static
14025
14026# Which release of libtool.m4 was used?
14027macro_version=$macro_version
14028macro_revision=$macro_revision
14029
14030# Whether or not to build shared libraries.
14031build_libtool_libs=$enable_shared
14032
14033# What type of objects to build.
14034pic_mode=$pic_mode
14035
14036# Whether or not to optimize for fast installation.
14037fast_install=$enable_fast_install
14038
14039# The host system.
14040host_alias=$host_alias
14041host=$host
14042host_os=$host_os
14043
14044# The build system.
14045build_alias=$build_alias
14046build=$build
14047build_os=$build_os
14048
14049# A sed program that does not truncate output.
14050SED=$lt_SED
14051
14052# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14053Xsed="\$SED -e 1s/^X//"
14054
14055# A grep program that handles long lines.
14056GREP=$lt_GREP
14057
14058# An ERE matcher.
14059EGREP=$lt_EGREP
14060
14061# A literal string matcher.
14062FGREP=$lt_FGREP
14063
14064# A BSD- or MS-compatible name lister.
14065NM=$lt_NM
14066
14067# Whether we need soft or hard links.
14068LN_S=$lt_LN_S
14069
14070# What is the maximum length of a command?
14071max_cmd_len=$max_cmd_len
14072
14073# Object file suffix (normally "o").
14074objext=$ac_objext
14075
14076# Executable file suffix (normally "").
14077exeext=$exeext
14078
14079# whether the shell understands "unset".
14080lt_unset=$lt_unset
14081
14082# turn spaces into newlines.
14083SP2NL=$lt_lt_SP2NL
14084
14085# turn newlines into spaces.
14086NL2SP=$lt_lt_NL2SP
14087
14088# How to create reloadable object files.
14089reload_flag=$lt_reload_flag
14090reload_cmds=$lt_reload_cmds
14091
14092# An object symbol dumper.
14093OBJDUMP=$lt_OBJDUMP
14094
14095# Method to check whether dependent libraries are shared objects.
14096deplibs_check_method=$lt_deplibs_check_method
14097
14098# Command to use when deplibs_check_method == "file_magic".
14099file_magic_cmd=$lt_file_magic_cmd
14100
14101# The archiver.
14102AR=$lt_AR
14103AR_FLAGS=$lt_AR_FLAGS
14104
14105# A symbol stripping program.
14106STRIP=$lt_STRIP
14107
14108# Commands used to install an old-style archive.
14109RANLIB=$lt_RANLIB
14110old_postinstall_cmds=$lt_old_postinstall_cmds
14111old_postuninstall_cmds=$lt_old_postuninstall_cmds
14112
14113# A C compiler.
14114LTCC=$lt_CC
14115
14116# LTCC compiler flags.
14117LTCFLAGS=$lt_CFLAGS
14118
14119# Take the output of nm and produce a listing of raw symbols and C names.
14120global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14121
14122# Transform the output of nm in a proper C declaration.
14123global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14124
14125# Transform the output of nm in a C name address pair.
14126global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14127
14128# Transform the output of nm in a C name address pair when lib prefix is needed.
14129global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14130
14131# The name of the directory that contains temporary libtool files.
14132objdir=$objdir
14133
14134# Shell to use when invoking shell scripts.
14135SHELL=$lt_SHELL
14136
14137# An echo program that does not interpret backslashes.
14138ECHO=$lt_ECHO
14139
14140# Used to examine libraries when file_magic_cmd begins with "file".
14141MAGIC_CMD=$MAGIC_CMD
14142
14143# Must we lock files when doing compilation?
14144need_locks=$lt_need_locks
14145
14146# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14147DSYMUTIL=$lt_DSYMUTIL
14148
14149# Tool to change global to local symbols on Mac OS X.
14150NMEDIT=$lt_NMEDIT
14151
14152# Tool to manipulate fat objects and archives on Mac OS X.
14153LIPO=$lt_LIPO
14154
14155# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14156OTOOL=$lt_OTOOL
14157
14158# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14159OTOOL64=$lt_OTOOL64
14160
14161# Old archive suffix (normally "a").
14162libext=$libext
14163
14164# Shared library suffix (normally ".so").
14165shrext_cmds=$lt_shrext_cmds
14166
14167# The commands to extract the exported symbol list from a shared archive.
14168extract_expsyms_cmds=$lt_extract_expsyms_cmds
14169
14170# Variables whose values should be saved in libtool wrapper scripts and
14171# restored at link time.
14172variables_saved_for_relink=$lt_variables_saved_for_relink
14173
14174# Do we need the "lib" prefix for modules?
14175need_lib_prefix=$need_lib_prefix
14176
14177# Do we need a version for libraries?
14178need_version=$need_version
14179
14180# Library versioning type.
14181version_type=$version_type
14182
14183# Shared library runtime path variable.
14184runpath_var=$runpath_var
14185
14186# Shared library path variable.
14187shlibpath_var=$shlibpath_var
14188
14189# Is shlibpath searched before the hard-coded library search path?
14190shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14191
14192# Format of library name prefix.
14193libname_spec=$lt_libname_spec
14194
14195# List of archive names.  First name is the real one, the rest are links.
14196# The last name is the one that the linker finds with -lNAME
14197library_names_spec=$lt_library_names_spec
14198
14199# The coded name of the library, if different from the real name.
14200soname_spec=$lt_soname_spec
14201
14202# Command to use after installation of a shared archive.
14203postinstall_cmds=$lt_postinstall_cmds
14204
14205# Command to use after uninstallation of a shared archive.
14206postuninstall_cmds=$lt_postuninstall_cmds
14207
14208# Commands used to finish a libtool library installation in a directory.
14209finish_cmds=$lt_finish_cmds
14210
14211# As "finish_cmds", except a single script fragment to be evaled but
14212# not shown.
14213finish_eval=$lt_finish_eval
14214
14215# Whether we should hardcode library paths into libraries.
14216hardcode_into_libs=$hardcode_into_libs
14217
14218# Compile-time system search path for libraries.
14219sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14220
14221# Run-time system search path for libraries.
14222sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14223
14224# Whether dlopen is supported.
14225dlopen_support=$enable_dlopen
14226
14227# Whether dlopen of programs is supported.
14228dlopen_self=$enable_dlopen_self
14229
14230# Whether dlopen of statically linked programs is supported.
14231dlopen_self_static=$enable_dlopen_self_static
14232
14233# Commands to strip libraries.
14234old_striplib=$lt_old_striplib
14235striplib=$lt_striplib
14236
14237
14238# The linker used to build libraries.
14239LD=$lt_LD
14240
14241# Commands used to build an old-style archive.
14242old_archive_cmds=$lt_old_archive_cmds
14243
14244# A language specific compiler.
14245CC=$lt_compiler
14246
14247# Is the compiler the GNU compiler?
14248with_gcc=$GCC
14249
14250# Compiler flag to turn off builtin functions.
14251no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14252
14253# How to pass a linker flag through the compiler.
14254wl=$lt_lt_prog_compiler_wl
14255
14256# Additional compiler flags for building library objects.
14257pic_flag=$lt_lt_prog_compiler_pic
14258
14259# Compiler flag to prevent dynamic linking.
14260link_static_flag=$lt_lt_prog_compiler_static
14261
14262# Does compiler simultaneously support -c and -o options?
14263compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14264
14265# Whether or not to add -lc for building shared libraries.
14266build_libtool_need_lc=$archive_cmds_need_lc
14267
14268# Whether or not to disallow shared libs when runtime libs are static.
14269allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14270
14271# Compiler flag to allow reflexive dlopens.
14272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14273
14274# Compiler flag to generate shared objects directly from archives.
14275whole_archive_flag_spec=$lt_whole_archive_flag_spec
14276
14277# Whether the compiler copes with passing no objects directly.
14278compiler_needs_object=$lt_compiler_needs_object
14279
14280# Create an old-style archive from a shared archive.
14281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14282
14283# Create a temporary old-style archive to link instead of a shared archive.
14284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14285
14286# Commands used to build a shared archive.
14287archive_cmds=$lt_archive_cmds
14288archive_expsym_cmds=$lt_archive_expsym_cmds
14289
14290# Commands used to build a loadable module if different from building
14291# a shared archive.
14292module_cmds=$lt_module_cmds
14293module_expsym_cmds=$lt_module_expsym_cmds
14294
14295# Whether we are building with GNU ld or not.
14296with_gnu_ld=$lt_with_gnu_ld
14297
14298# Flag that allows shared libraries with undefined symbols to be built.
14299allow_undefined_flag=$lt_allow_undefined_flag
14300
14301# Flag that enforces no undefined symbols.
14302no_undefined_flag=$lt_no_undefined_flag
14303
14304# Flag to hardcode \$libdir into a binary during linking.
14305# This must work even if \$libdir does not exist
14306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14307
14308# If ld is used when linking, flag to hardcode \$libdir into a binary
14309# during linking.  This must work even if \$libdir does not exist.
14310hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14311
14312# Whether we need a single "-rpath" flag with a separated argument.
14313hardcode_libdir_separator=$lt_hardcode_libdir_separator
14314
14315# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14316# DIR into the resulting binary.
14317hardcode_direct=$hardcode_direct
14318
14319# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14320# DIR into the resulting binary and the resulting library dependency is
14321# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14322# library is relocated.
14323hardcode_direct_absolute=$hardcode_direct_absolute
14324
14325# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14326# into the resulting binary.
14327hardcode_minus_L=$hardcode_minus_L
14328
14329# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14330# into the resulting binary.
14331hardcode_shlibpath_var=$hardcode_shlibpath_var
14332
14333# Set to "yes" if building a shared library automatically hardcodes DIR
14334# into the library and all subsequent libraries and executables linked
14335# against it.
14336hardcode_automatic=$hardcode_automatic
14337
14338# Set to yes if linker adds runtime paths of dependent libraries
14339# to runtime path list.
14340inherit_rpath=$inherit_rpath
14341
14342# Whether libtool must link a program against all its dependency libraries.
14343link_all_deplibs=$link_all_deplibs
14344
14345# Fix the shell variable \$srcfile for the compiler.
14346fix_srcfile_path=$lt_fix_srcfile_path
14347
14348# Set to "yes" if exported symbols are required.
14349always_export_symbols=$always_export_symbols
14350
14351# The commands to list exported symbols.
14352export_symbols_cmds=$lt_export_symbols_cmds
14353
14354# Symbols that should not be listed in the preloaded symbols.
14355exclude_expsyms=$lt_exclude_expsyms
14356
14357# Symbols that must always be exported.
14358include_expsyms=$lt_include_expsyms
14359
14360# Commands necessary for linking programs (against libraries) with templates.
14361prelink_cmds=$lt_prelink_cmds
14362
14363# Specify filename containing input files.
14364file_list_spec=$lt_file_list_spec
14365
14366# How to hardcode a shared library path into an executable.
14367hardcode_action=$hardcode_action
14368
14369# ### END LIBTOOL CONFIG
14370
14371_LT_EOF
14372
14373  case $host_os in
14374  aix3*)
14375    cat <<\_LT_EOF >> "$cfgfile"
14376# AIX sometimes has problems with the GCC collect2 program.  For some
14377# reason, if we set the COLLECT_NAMES environment variable, the problems
14378# vanish in a puff of smoke.
14379if test "X${COLLECT_NAMES+set}" != Xset; then
14380  COLLECT_NAMES=
14381  export COLLECT_NAMES
14382fi
14383_LT_EOF
14384    ;;
14385  esac
14386
14387
14388ltmain="$ac_aux_dir/ltmain.sh"
14389
14390
14391  # We use sed instead of cat because bash on DJGPP gets confused if
14392  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14393  # text mode, it properly converts lines to CR/LF.  This bash problem
14394  # is reportedly fixed, but why not run on old versions too?
14395  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14396    || (rm -f "$cfgfile"; exit 1)
14397
14398  case $xsi_shell in
14399  yes)
14400    cat << \_LT_EOF >> "$cfgfile"
14401
14402# func_dirname file append nondir_replacement
14403# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14404# otherwise set result to NONDIR_REPLACEMENT.
14405func_dirname ()
14406{
14407  case ${1} in
14408    */*) func_dirname_result="${1%/*}${2}" ;;
14409    *  ) func_dirname_result="${3}" ;;
14410  esac
14411}
14412
14413# func_basename file
14414func_basename ()
14415{
14416  func_basename_result="${1##*/}"
14417}
14418
14419# func_dirname_and_basename file append nondir_replacement
14420# perform func_basename and func_dirname in a single function
14421# call:
14422#   dirname:  Compute the dirname of FILE.  If nonempty,
14423#             add APPEND to the result, otherwise set result
14424#             to NONDIR_REPLACEMENT.
14425#             value returned in "$func_dirname_result"
14426#   basename: Compute filename of FILE.
14427#             value retuned in "$func_basename_result"
14428# Implementation must be kept synchronized with func_dirname
14429# and func_basename. For efficiency, we do not delegate to
14430# those functions but instead duplicate the functionality here.
14431func_dirname_and_basename ()
14432{
14433  case ${1} in
14434    */*) func_dirname_result="${1%/*}${2}" ;;
14435    *  ) func_dirname_result="${3}" ;;
14436  esac
14437  func_basename_result="${1##*/}"
14438}
14439
14440# func_stripname prefix suffix name
14441# strip PREFIX and SUFFIX off of NAME.
14442# PREFIX and SUFFIX must not contain globbing or regex special
14443# characters, hashes, percent signs, but SUFFIX may contain a leading
14444# dot (in which case that matches only a dot).
14445func_stripname ()
14446{
14447  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14448  # positional parameters, so assign one to ordinary parameter first.
14449  func_stripname_result=${3}
14450  func_stripname_result=${func_stripname_result#"${1}"}
14451  func_stripname_result=${func_stripname_result%"${2}"}
14452}
14453
14454# func_opt_split
14455func_opt_split ()
14456{
14457  func_opt_split_opt=${1%%=*}
14458  func_opt_split_arg=${1#*=}
14459}
14460
14461# func_lo2o object
14462func_lo2o ()
14463{
14464  case ${1} in
14465    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14466    *)    func_lo2o_result=${1} ;;
14467  esac
14468}
14469
14470# func_xform libobj-or-source
14471func_xform ()
14472{
14473  func_xform_result=${1%.*}.lo
14474}
14475
14476# func_arith arithmetic-term...
14477func_arith ()
14478{
14479  func_arith_result=$(( $* ))
14480}
14481
14482# func_len string
14483# STRING may not start with a hyphen.
14484func_len ()
14485{
14486  func_len_result=${#1}
14487}
14488
14489_LT_EOF
14490    ;;
14491  *) # Bourne compatible functions.
14492    cat << \_LT_EOF >> "$cfgfile"
14493
14494# func_dirname file append nondir_replacement
14495# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14496# otherwise set result to NONDIR_REPLACEMENT.
14497func_dirname ()
14498{
14499  # Extract subdirectory from the argument.
14500  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14501  if test "X$func_dirname_result" = "X${1}"; then
14502    func_dirname_result="${3}"
14503  else
14504    func_dirname_result="$func_dirname_result${2}"
14505  fi
14506}
14507
14508# func_basename file
14509func_basename ()
14510{
14511  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14512}
14513
14514
14515# func_stripname prefix suffix name
14516# strip PREFIX and SUFFIX off of NAME.
14517# PREFIX and SUFFIX must not contain globbing or regex special
14518# characters, hashes, percent signs, but SUFFIX may contain a leading
14519# dot (in which case that matches only a dot).
14520# func_strip_suffix prefix name
14521func_stripname ()
14522{
14523  case ${2} in
14524    .*) func_stripname_result=`$ECHO "X${3}" \
14525           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14526    *)  func_stripname_result=`$ECHO "X${3}" \
14527           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14528  esac
14529}
14530
14531# sed scripts:
14532my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14533my_sed_long_arg='1s/^-[^=]*=//'
14534
14535# func_opt_split
14536func_opt_split ()
14537{
14538  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14539  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14540}
14541
14542# func_lo2o object
14543func_lo2o ()
14544{
14545  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14546}
14547
14548# func_xform libobj-or-source
14549func_xform ()
14550{
14551  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14552}
14553
14554# func_arith arithmetic-term...
14555func_arith ()
14556{
14557  func_arith_result=`expr "$@"`
14558}
14559
14560# func_len string
14561# STRING may not start with a hyphen.
14562func_len ()
14563{
14564  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14565}
14566
14567_LT_EOF
14568esac
14569
14570case $lt_shell_append in
14571  yes)
14572    cat << \_LT_EOF >> "$cfgfile"
14573
14574# func_append var value
14575# Append VALUE to the end of shell variable VAR.
14576func_append ()
14577{
14578  eval "$1+=\$2"
14579}
14580_LT_EOF
14581    ;;
14582  *)
14583    cat << \_LT_EOF >> "$cfgfile"
14584
14585# func_append var value
14586# Append VALUE to the end of shell variable VAR.
14587func_append ()
14588{
14589  eval "$1=\$$1\$2"
14590}
14591
14592_LT_EOF
14593    ;;
14594  esac
14595
14596
14597  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14598    || (rm -f "$cfgfile"; exit 1)
14599
14600  mv -f "$cfgfile" "$ofile" ||
14601    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14602  chmod +x "$ofile"
14603
14604 ;;
14605
14606  esac
14607done # for ac_tag
14608
14609
14610as_fn_exit 0
14611_ACEOF
14612ac_clean_files=$ac_clean_files_save
14613
14614test $ac_write_fail = 0 ||
14615  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14616
14617
14618# configure is writing to config.log, and then calls config.status.
14619# config.status does its own redirection, appending to config.log.
14620# Unfortunately, on DOS this fails, as config.log is still kept open
14621# by configure, so config.status won't be able to write to it; its
14622# output is simply discarded.  So we exec the FD to /dev/null,
14623# effectively closing config.log, so it can be properly (re)opened and
14624# appended to by config.status.  When coming back to configure, we
14625# need to make the FD available again.
14626if test "$no_create" != yes; then
14627  ac_cs_success=:
14628  ac_config_status_args=
14629  test "$silent" = yes &&
14630    ac_config_status_args="$ac_config_status_args --quiet"
14631  exec 5>/dev/null
14632  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14633  exec 5>>config.log
14634  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14635  # would make configure fail if this is the last instruction.
14636  $ac_cs_success || as_fn_exit $?
14637fi
14638if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14639  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14640$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14641fi
14642
14643