configure revision 6086d97e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for xf86-video-nv 2.1.18.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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
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-nv'
704PACKAGE_TARNAME='xf86-video-nv'
705PACKAGE_VERSION='2.1.18'
706PACKAGE_STRING='xf86-video-nv 2.1.18'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708PACKAGE_URL=''
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
752moduledir
753PCIACCESS_LIBS
754PCIACCESS_CFLAGS
755HAVE_XEXTPROTO_71_FALSE
756HAVE_XEXTPROTO_71_TRUE
757XEXT_LIBS
758XEXT_CFLAGS
759XORG_LIBS
760XORG_CFLAGS
761OTOOL64
762OTOOL
763LIPO
764NMEDIT
765DSYMUTIL
766lt_ECHO
767RANLIB
768AR
769OBJDUMP
770LN_S
771NM
772ac_ct_DUMPBIN
773DUMPBIN
774LD
775FGREP
776LIBTOOL
777MAINT
778MAINTAINER_MODE_FALSE
779MAINTAINER_MODE_TRUE
780am__fastdepCC_FALSE
781am__fastdepCC_TRUE
782CCDEPMODE
783AMDEPBACKSLASH
784AMDEP_FALSE
785AMDEP_TRUE
786am__quote
787am__include
788DEPDIR
789am__untar
790am__tar
791AMTAR
792am__leading_dot
793SET_MAKE
794AWK
795mkdir_p
796MKDIR_P
797INSTALL_STRIP_PROGRAM
798STRIP
799install_sh
800MAKEINFO
801AUTOHEADER
802AUTOMAKE
803AUTOCONF
804ACLOCAL
805VERSION
806PACKAGE
807CYGPATH_W
808am__isrc
809AM_BACKSLASH
810AM_DEFAULT_VERBOSITY
811MAN_SUBSTS
812XORG_MAN_PAGE
813ADMIN_MAN_DIR
814DRIVER_MAN_DIR
815MISC_MAN_DIR
816FILE_MAN_DIR
817LIB_MAN_DIR
818APP_MAN_DIR
819ADMIN_MAN_SUFFIX
820DRIVER_MAN_SUFFIX
821MISC_MAN_SUFFIX
822FILE_MAN_SUFFIX
823LIB_MAN_SUFFIX
824APP_MAN_SUFFIX
825SED
826host_os
827host_vendor
828host_cpu
829host
830build_os
831build_vendor
832build_cpu
833build
834INSTALL_CMD
835PKG_CONFIG
836CHANGELOG_CMD
837CWARNFLAGS
838EGREP
839GREP
840CPP
841OBJEXT
842EXEEXT
843ac_ct_CC
844CPPFLAGS
845LDFLAGS
846CFLAGS
847CC
848INSTALL_DATA
849INSTALL_SCRIPT
850INSTALL_PROGRAM
851target_alias
852host_alias
853build_alias
854LIBS
855ECHO_T
856ECHO_N
857ECHO_C
858DEFS
859mandir
860localedir
861libdir
862psdir
863pdfdir
864dvidir
865htmldir
866infodir
867docdir
868oldincludedir
869includedir
870localstatedir
871sharedstatedir
872sysconfdir
873datadir
874datarootdir
875libexecdir
876sbindir
877bindir
878program_transform_name
879prefix
880exec_prefix
881PACKAGE_URL
882PACKAGE_BUGREPORT
883PACKAGE_STRING
884PACKAGE_VERSION
885PACKAGE_TARNAME
886PACKAGE_NAME
887PATH_SEPARATOR
888SHELL'
889ac_subst_files=''
890ac_user_opts='
891enable_option_checking
892enable_strict_compilation
893enable_silent_rules
894enable_dependency_tracking
895enable_maintainer_mode
896enable_static
897enable_shared
898with_pic
899enable_fast_install
900with_gnu_ld
901enable_libtool_lock
902with_xorg_module_dir
903'
904      ac_precious_vars='build_alias
905host_alias
906target_alias
907CC
908CFLAGS
909LDFLAGS
910LIBS
911CPPFLAGS
912CPP
913PKG_CONFIG
914XORG_CFLAGS
915XORG_LIBS
916XEXT_CFLAGS
917XEXT_LIBS
918PCIACCESS_CFLAGS
919PCIACCESS_LIBS'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925ac_unrecognized_opts=
926ac_unrecognized_sep=
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974  # If the previous option needs an argument, assign it.
975  if test -n "$ac_prev"; then
976    eval $ac_prev=\$ac_option
977    ac_prev=
978    continue
979  fi
980
981  case $ac_option in
982  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983  *)	ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=no ;;
1039
1040  -docdir | --docdir | --docdi | --doc | --do)
1041    ac_prev=docdir ;;
1042  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043    docdir=$ac_optarg ;;
1044
1045  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046    ac_prev=dvidir ;;
1047  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048    dvidir=$ac_optarg ;;
1049
1050  -enable-* | --enable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210    ac_prev=sbindir ;;
1211  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212  | --sbi=* | --sb=*)
1213    sbindir=$ac_optarg ;;
1214
1215  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217  | --sharedst | --shareds | --shared | --share | --shar \
1218  | --sha | --sh)
1219    ac_prev=sharedstatedir ;;
1220  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223  | --sha=* | --sh=*)
1224    sharedstatedir=$ac_optarg ;;
1225
1226  -site | --site | --sit)
1227    ac_prev=site ;;
1228  -site=* | --site=* | --sit=*)
1229    site=$ac_optarg ;;
1230
1231  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232    ac_prev=srcdir ;;
1233  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234    srcdir=$ac_optarg ;;
1235
1236  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237  | --syscon | --sysco | --sysc | --sys | --sy)
1238    ac_prev=sysconfdir ;;
1239  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241    sysconfdir=$ac_optarg ;;
1242
1243  -target | --target | --targe | --targ | --tar | --ta | --t)
1244    ac_prev=target_alias ;;
1245  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246    target_alias=$ac_optarg ;;
1247
1248  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249    verbose=yes ;;
1250
1251  -version | --version | --versio | --versi | --vers | -V)
1252    ac_init_version=: ;;
1253
1254  -with-* | --with-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=\$ac_optarg ;;
1269
1270  -without-* | --without-*)
1271    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274      as_fn_error "invalid package name: $ac_useropt"
1275    ac_useropt_orig=$ac_useropt
1276    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277    case $ac_user_opts in
1278      *"
1279"with_$ac_useropt"
1280"*) ;;
1281      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282	 ac_unrecognized_sep=', ';;
1283    esac
1284    eval with_$ac_useropt=no ;;
1285
1286  --x)
1287    # Obsolete; use --with-x.
1288    with_x=yes ;;
1289
1290  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291  | --x-incl | --x-inc | --x-in | --x-i)
1292    ac_prev=x_includes ;;
1293  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295    x_includes=$ac_optarg ;;
1296
1297  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299    ac_prev=x_libraries ;;
1300  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302    x_libraries=$ac_optarg ;;
1303
1304  -*) as_fn_error "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information."
1306    ;;
1307
1308  *=*)
1309    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310    # Reject names that are not valid shell variable names.
1311    case $ac_envvar in #(
1312      '' | [0-9]* | *[!_$as_cr_alnum]* )
1313      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1314    esac
1315    eval $ac_envvar=\$ac_optarg
1316    export $ac_envvar ;;
1317
1318  *)
1319    # FIXME: should be removed in autoconf 3.0.
1320    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324    ;;
1325
1326  esac
1327done
1328
1329if test -n "$ac_prev"; then
1330  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331  as_fn_error "missing argument to $ac_option"
1332fi
1333
1334if test -n "$ac_unrecognized_opts"; then
1335  case $enable_option_checking in
1336    no) ;;
1337    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1338    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339  esac
1340fi
1341
1342# Check all directory arguments for consistency.
1343for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344		datadir sysconfdir sharedstatedir localstatedir includedir \
1345		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346		libdir localedir mandir
1347do
1348  eval ac_val=\$$ac_var
1349  # Remove trailing slashes.
1350  case $ac_val in
1351    */ )
1352      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353      eval $ac_var=\$ac_val;;
1354  esac
1355  # Be sure to have absolute directory names.
1356  case $ac_val in
1357    [\\/$]* | ?:[\\/]* )  continue;;
1358    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359  esac
1360  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375    If a cross compiler is detected then cross compile mode will be used." >&2
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  as_fn_error "working directory cannot be determined"
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392  as_fn_error "pwd does not report name of working directory"
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$as_myself" : 'X\(//\)[^/]' \| \
1402	 X"$as_myself" : 'X\(//\)$' \| \
1403	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436	pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439  srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_env_${ac_var}_value=\$${ac_var}
1450  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458  # Omit some internal or obsolete options to make the list less imposing.
1459  # This message is too long to be a string in the A/UX 3.1 sh.
1460  cat <<_ACEOF
1461\`configure' configures xf86-video-nv 2.1.18 to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471  -h, --help              display this help and exit
1472      --help=short        display options specific to this package
1473      --help=recursive    display the short help of all the included packages
1474  -V, --version           display version information and exit
1475  -q, --quiet, --silent   do not print \`checking...' messages
1476      --cache-file=FILE   cache test results in FILE [disabled]
1477  -C, --config-cache      alias for \`--cache-file=config.cache'
1478  -n, --no-create         do not create output files
1479      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482  --prefix=PREFIX         install architecture-independent files in PREFIX
1483                          [$ac_default_prefix]
1484  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                          [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495  --bindir=DIR            user executables [EPREFIX/bin]
1496  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497  --libexecdir=DIR        program executables [EPREFIX/libexec]
1498  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501  --libdir=DIR            object code libraries [EPREFIX/lib]
1502  --includedir=DIR        C header files [PREFIX/include]
1503  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-nv]
1510  --htmldir=DIR           html documentation [DOCDIR]
1511  --dvidir=DIR            dvi documentation [DOCDIR]
1512  --pdfdir=DIR            pdf documentation [DOCDIR]
1513  --psdir=DIR             ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518Program names:
1519  --program-prefix=PREFIX            prepend PREFIX to installed program names
1520  --program-suffix=SUFFIX            append SUFFIX to installed program names
1521  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1522
1523System types:
1524  --build=BUILD     configure for building on BUILD [guessed]
1525  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530  case $ac_init_help in
1531     short | recursive ) echo "Configuration of xf86-video-nv 2.1.18:";;
1532   esac
1533  cat <<\_ACEOF
1534
1535Optional Features:
1536  --disable-option-checking  ignore unrecognized --enable/--with options
1537  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539  --enable-strict-compilation
1540                          Enable all warnings from compiler and make them
1541                          errors (default: disabled)
1542  --enable-silent-rules          less verbose build output (undo: `make V=1')
1543  --disable-silent-rules         verbose build output (undo: `make V=0')
1544  --disable-dependency-tracking  speeds up one-time build
1545  --enable-dependency-tracking   do not reject slow dependency extractors
1546  --enable-maintainer-mode  enable make rules and dependencies not useful
1547			  (and sometimes confusing) to the casual installer
1548  --enable-static[=PKGS]  build static libraries [default=no]
1549  --enable-shared[=PKGS]  build shared libraries [default=yes]
1550  --enable-fast-install[=PKGS]
1551                          optimize for fast installation [default=yes]
1552  --disable-libtool-lock  avoid locking (might break parallel builds)
1553
1554Optional Packages:
1555  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557  --with-pic              try to use only PIC/non-PIC objects [default=use
1558                          both]
1559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560  --with-xorg-module-dir=DIR
1561                          Default xorg module directory
1562                          [[default=$libdir/xorg/modules]]
1563
1564Some influential environment variables:
1565  CC          C compiler command
1566  CFLAGS      C compiler flags
1567  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1568              nonstandard directory <lib dir>
1569  LIBS        libraries to pass to the linker, e.g. -l<library>
1570  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1571              you have headers in a nonstandard directory <include dir>
1572  CPP         C preprocessor
1573  PKG_CONFIG  path to pkg-config utility
1574  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1575  XORG_LIBS   linker flags for XORG, overriding pkg-config
1576  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1577  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1578  PCIACCESS_CFLAGS
1579              C compiler flags for PCIACCESS, overriding pkg-config
1580  PCIACCESS_LIBS
1581              linker flags for PCIACCESS, overriding pkg-config
1582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
1586Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1587_ACEOF
1588ac_status=$?
1589fi
1590
1591if test "$ac_init_help" = "recursive"; then
1592  # If there are subdirs, report their specific --help.
1593  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594    test -d "$ac_dir" ||
1595      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596      continue
1597    ac_builddir=.
1598
1599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
1602  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603  # A ".." for each directory in $ac_dir_suffix.
1604  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605  case $ac_top_builddir_sub in
1606  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608  esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
1614
1615case $srcdir in
1616  .)  # We are building in place.
1617    ac_srcdir=.
1618    ac_top_srcdir=$ac_top_builddir_sub
1619    ac_abs_top_srcdir=$ac_pwd ;;
1620  [\\/]* | ?:[\\/]* )  # Absolute name.
1621    ac_srcdir=$srcdir$ac_dir_suffix;
1622    ac_top_srcdir=$srcdir
1623    ac_abs_top_srcdir=$srcdir ;;
1624  *) # Relative name.
1625    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626    ac_top_srcdir=$ac_top_build_prefix$srcdir
1627    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628esac
1629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631    cd "$ac_dir" || { ac_status=$?; continue; }
1632    # Check for guested configure.
1633    if test -f "$ac_srcdir/configure.gnu"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636    elif test -f "$ac_srcdir/configure"; then
1637      echo &&
1638      $SHELL "$ac_srcdir/configure" --help=recursive
1639    else
1640      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641    fi || ac_status=$?
1642    cd "$ac_pwd" || { ac_status=$?; break; }
1643  done
1644fi
1645
1646test -n "$ac_init_help" && exit $ac_status
1647if $ac_init_version; then
1648  cat <<\_ACEOF
1649xf86-video-nv configure 2.1.18
1650generated by GNU Autoconf 2.65
1651
1652Copyright (C) 2009 Free Software Foundation, Inc.
1653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
1655_ACEOF
1656  exit
1657fi
1658
1659## ------------------------ ##
1660## Autoconf initialization. ##
1661## ------------------------ ##
1662
1663# ac_fn_c_try_compile LINENO
1664# --------------------------
1665# Try to compile conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  rm -f conftest.$ac_objext
1670  if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_compile") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } && {
1686	 test -z "$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       } && test -s conftest.$ac_objext; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_compile
1700
1701# ac_fn_c_check_decl LINENO SYMBOL VAR
1702# ------------------------------------
1703# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1704ac_fn_c_check_decl ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1708$as_echo_n "checking whether $2 is declared... " >&6; }
1709if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1710  $as_echo_n "(cached) " >&6
1711else
1712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714$4
1715int
1716main ()
1717{
1718#ifndef $2
1719  (void) $2;
1720#endif
1721
1722  ;
1723  return 0;
1724}
1725_ACEOF
1726if ac_fn_c_try_compile "$LINENO"; then :
1727  eval "$3=yes"
1728else
1729  eval "$3=no"
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732fi
1733eval ac_res=\$$3
1734	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735$as_echo "$ac_res" >&6; }
1736  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737
1738} # ac_fn_c_check_decl
1739
1740# ac_fn_c_try_cpp LINENO
1741# ----------------------
1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_cpp ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if { { ac_try="$ac_cpp conftest.$ac_ext"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754  ac_status=$?
1755  if test -s conftest.err; then
1756    grep -v '^ *+' conftest.err >conftest.er1
1757    cat conftest.er1 >&5
1758    mv -f conftest.er1 conftest.err
1759  fi
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } >/dev/null && {
1762	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763	 test ! -s conftest.err
1764       }; then :
1765  ac_retval=0
1766else
1767  $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770    ac_retval=1
1771fi
1772  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_cpp
1776
1777# ac_fn_c_try_run LINENO
1778# ----------------------
1779# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1780# that executables *can* be run.
1781ac_fn_c_try_run ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  if { { ac_try="$ac_link"
1785case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_link") 2>&5
1792  ac_status=$?
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1795  { { case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_try") 2>&5
1802  ac_status=$?
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; }; }; then :
1805  ac_retval=0
1806else
1807  $as_echo "$as_me: program exited with status $ac_status" >&5
1808       $as_echo "$as_me: failed program was:" >&5
1809sed 's/^/| /' conftest.$ac_ext >&5
1810
1811       ac_retval=$ac_status
1812fi
1813  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815  as_fn_set_status $ac_retval
1816
1817} # ac_fn_c_try_run
1818
1819# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1820# -------------------------------------------------------
1821# Tests whether HEADER exists and can be compiled using the include files in
1822# INCLUDES, setting the cache variable VAR accordingly.
1823ac_fn_c_check_header_compile ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829  $as_echo_n "(cached) " >&6
1830else
1831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833$4
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_compile "$LINENO"; then :
1837  eval "$3=yes"
1838else
1839  eval "$3=no"
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842fi
1843eval ac_res=\$$3
1844	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
1848} # ac_fn_c_check_header_compile
1849
1850# ac_fn_c_try_link LINENO
1851# -----------------------
1852# Try to link conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_c_try_link ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  rm -f conftest.$ac_objext conftest$ac_exeext
1857  if { { ac_try="$ac_link"
1858case "(($ac_try" in
1859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860  *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864  (eval "$ac_link") 2>conftest.err
1865  ac_status=$?
1866  if test -s conftest.err; then
1867    grep -v '^ *+' conftest.err >conftest.er1
1868    cat conftest.er1 >&5
1869    mv -f conftest.er1 conftest.err
1870  fi
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; } && {
1873	 test -z "$ac_c_werror_flag" ||
1874	 test ! -s conftest.err
1875       } && test -s conftest$ac_exeext && {
1876	 test "$cross_compiling" = yes ||
1877	 $as_test_x conftest$ac_exeext
1878       }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884	ac_retval=1
1885fi
1886  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888  # interfere with the next link command; also delete a directory that is
1889  # left behind by Apple's compiler.  We do this before executing the actions.
1890  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892  as_fn_set_status $ac_retval
1893
1894} # ac_fn_c_try_link
1895
1896# ac_fn_c_check_func LINENO FUNC VAR
1897# ----------------------------------
1898# Tests whether FUNC exists, setting the cache variable VAR accordingly
1899ac_fn_c_check_func ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1911#define $2 innocuous_$2
1912
1913/* System header to define __stub macros and hopefully few prototypes,
1914    which can conflict with char $2 (); below.
1915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916    <limits.h> exists even on freestanding compilers.  */
1917
1918#ifdef __STDC__
1919# include <limits.h>
1920#else
1921# include <assert.h>
1922#endif
1923
1924#undef $2
1925
1926/* Override any GCC internal prototype to avoid an error.
1927   Use char because int might match the return type of a GCC
1928   builtin and then its argument prototype would still apply.  */
1929#ifdef __cplusplus
1930extern "C"
1931#endif
1932char $2 ();
1933/* The GNU C library defines this for functions which it implements
1934    to always fail with ENOSYS.  Some functions are actually named
1935    something starting with __ and the normal name is an alias.  */
1936#if defined __stub_$2 || defined __stub___$2
1937choke me
1938#endif
1939
1940int
1941main ()
1942{
1943return $2 ();
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_link "$LINENO"; then :
1949  eval "$3=yes"
1950else
1951  eval "$3=no"
1952fi
1953rm -f core conftest.err conftest.$ac_objext \
1954    conftest$ac_exeext conftest.$ac_ext
1955fi
1956eval ac_res=\$$3
1957	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
1959  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960
1961} # ac_fn_c_check_func
1962cat >config.log <<_ACEOF
1963This file contains any messages produced by compilers while
1964running configure, to aid debugging if configure makes a mistake.
1965
1966It was created by xf86-video-nv $as_me 2.1.18, which was
1967generated by GNU Autoconf 2.65.  Invocation command line was
1968
1969  $ $0 $@
1970
1971_ACEOF
1972exec 5>>config.log
1973{
1974cat <<_ASUNAME
1975## --------- ##
1976## Platform. ##
1977## --------- ##
1978
1979hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983uname -v = `(uname -v) 2>/dev/null || echo unknown`
1984
1985/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1987
1988/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1989/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1990/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1992/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1993/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1994/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1995
1996_ASUNAME
1997
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001  IFS=$as_save_IFS
2002  test -z "$as_dir" && as_dir=.
2003    $as_echo "PATH: $as_dir"
2004  done
2005IFS=$as_save_IFS
2006
2007} >&5
2008
2009cat >&5 <<_ACEOF
2010
2011
2012## ----------- ##
2013## Core tests. ##
2014## ----------- ##
2015
2016_ACEOF
2017
2018
2019# Keep a trace of the command line.
2020# Strip out --no-create and --no-recursion so they do not pile up.
2021# Strip out --silent because we don't want to record it for future runs.
2022# Also quote any args containing shell meta-characters.
2023# Make two passes to allow for proper duplicate-argument suppression.
2024ac_configure_args=
2025ac_configure_args0=
2026ac_configure_args1=
2027ac_must_keep_next=false
2028for ac_pass in 1 2
2029do
2030  for ac_arg
2031  do
2032    case $ac_arg in
2033    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035    | -silent | --silent | --silen | --sile | --sil)
2036      continue ;;
2037    *\'*)
2038      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039    esac
2040    case $ac_pass in
2041    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2042    2)
2043      as_fn_append ac_configure_args1 " '$ac_arg'"
2044      if test $ac_must_keep_next = true; then
2045	ac_must_keep_next=false # Got value, back to normal.
2046      else
2047	case $ac_arg in
2048	  *=* | --config-cache | -C | -disable-* | --disable-* \
2049	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051	  | -with-* | --with-* | -without-* | --without-* | --x)
2052	    case "$ac_configure_args0 " in
2053	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054	    esac
2055	    ;;
2056	  -* ) ac_must_keep_next=true ;;
2057	esac
2058      fi
2059      as_fn_append ac_configure_args " '$ac_arg'"
2060      ;;
2061    esac
2062  done
2063done
2064{ ac_configure_args0=; unset ac_configure_args0;}
2065{ ac_configure_args1=; unset ac_configure_args1;}
2066
2067# When interrupted or exit'd, cleanup temporary files, and complete
2068# config.log.  We remove comments because anyway the quotes in there
2069# would cause problems or look ugly.
2070# WARNING: Use '\'' to represent an apostrophe within the trap.
2071# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072trap 'exit_status=$?
2073  # Save into config.log some information that might help in debugging.
2074  {
2075    echo
2076
2077    cat <<\_ASBOX
2078## ---------------- ##
2079## Cache variables. ##
2080## ---------------- ##
2081_ASBOX
2082    echo
2083    # The following way of writing the cache mishandles newlines in values,
2084(
2085  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086    eval ac_val=\$$ac_var
2087    case $ac_val in #(
2088    *${as_nl}*)
2089      case $ac_var in #(
2090      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092      esac
2093      case $ac_var in #(
2094      _ | IFS | as_nl) ;; #(
2095      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096      *) { eval $ac_var=; unset $ac_var;} ;;
2097      esac ;;
2098    esac
2099  done
2100  (set) 2>&1 |
2101    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102    *${as_nl}ac_space=\ *)
2103      sed -n \
2104	"s/'\''/'\''\\\\'\'''\''/g;
2105	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106      ;; #(
2107    *)
2108      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109      ;;
2110    esac |
2111    sort
2112)
2113    echo
2114
2115    cat <<\_ASBOX
2116## ----------------- ##
2117## Output variables. ##
2118## ----------------- ##
2119_ASBOX
2120    echo
2121    for ac_var in $ac_subst_vars
2122    do
2123      eval ac_val=\$$ac_var
2124      case $ac_val in
2125      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126      esac
2127      $as_echo "$ac_var='\''$ac_val'\''"
2128    done | sort
2129    echo
2130
2131    if test -n "$ac_subst_files"; then
2132      cat <<\_ASBOX
2133## ------------------- ##
2134## File substitutions. ##
2135## ------------------- ##
2136_ASBOX
2137      echo
2138      for ac_var in $ac_subst_files
2139      do
2140	eval ac_val=\$$ac_var
2141	case $ac_val in
2142	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143	esac
2144	$as_echo "$ac_var='\''$ac_val'\''"
2145      done | sort
2146      echo
2147    fi
2148
2149    if test -s confdefs.h; then
2150      cat <<\_ASBOX
2151## ----------- ##
2152## confdefs.h. ##
2153## ----------- ##
2154_ASBOX
2155      echo
2156      cat confdefs.h
2157      echo
2158    fi
2159    test "$ac_signal" != 0 &&
2160      $as_echo "$as_me: caught signal $ac_signal"
2161    $as_echo "$as_me: exit $exit_status"
2162  } >&5
2163  rm -f core *.core core.conftest.* &&
2164    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165    exit $exit_status
2166' 0
2167for ac_signal in 1 2 13 15; do
2168  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169done
2170ac_signal=0
2171
2172# confdefs.h avoids OS command line length limits that DEFS can exceed.
2173rm -f -r conftest* confdefs.h
2174
2175$as_echo "/* confdefs.h */" > confdefs.h
2176
2177# Predefined preprocessor variables.
2178
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_NAME "$PACKAGE_NAME"
2181_ACEOF
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185_ACEOF
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_VERSION "$PACKAGE_VERSION"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_STRING "$PACKAGE_STRING"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_URL "$PACKAGE_URL"
2201_ACEOF
2202
2203
2204# Let the site file select an alternate cache file if it wants to.
2205# Prefer an explicitly selected file to automatically selected ones.
2206ac_site_file1=NONE
2207ac_site_file2=NONE
2208if test -n "$CONFIG_SITE"; then
2209  ac_site_file1=$CONFIG_SITE
2210elif test "x$prefix" != xNONE; then
2211  ac_site_file1=$prefix/share/config.site
2212  ac_site_file2=$prefix/etc/config.site
2213else
2214  ac_site_file1=$ac_default_prefix/share/config.site
2215  ac_site_file2=$ac_default_prefix/etc/config.site
2216fi
2217for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218do
2219  test "x$ac_site_file" = xNONE && continue
2220  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223    sed 's/^/| /' "$ac_site_file" >&5
2224    . "$ac_site_file"
2225  fi
2226done
2227
2228if test -r "$cache_file"; then
2229  # Some versions of bash will fail to source /dev/null (special files
2230  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2231  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2232    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2233$as_echo "$as_me: loading cache $cache_file" >&6;}
2234    case $cache_file in
2235      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2236      *)                      . "./$cache_file";;
2237    esac
2238  fi
2239else
2240  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2241$as_echo "$as_me: creating cache $cache_file" >&6;}
2242  >$cache_file
2243fi
2244
2245# Check that the precious variables saved in the cache have kept the same
2246# value.
2247ac_cache_corrupted=false
2248for ac_var in $ac_precious_vars; do
2249  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2250  eval ac_new_set=\$ac_env_${ac_var}_set
2251  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2252  eval ac_new_val=\$ac_env_${ac_var}_value
2253  case $ac_old_set,$ac_new_set in
2254    set,)
2255      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2256$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2257      ac_cache_corrupted=: ;;
2258    ,set)
2259      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2260$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2261      ac_cache_corrupted=: ;;
2262    ,);;
2263    *)
2264      if test "x$ac_old_val" != "x$ac_new_val"; then
2265	# differences in whitespace do not lead to failure.
2266	ac_old_val_w=`echo x $ac_old_val`
2267	ac_new_val_w=`echo x $ac_new_val`
2268	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2269	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2270$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2271	  ac_cache_corrupted=:
2272	else
2273	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2274$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2275	  eval $ac_var=\$ac_old_val
2276	fi
2277	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2278$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2279	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2280$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2281      fi;;
2282  esac
2283  # Pass precious variables to config.status.
2284  if test "$ac_new_set" = set; then
2285    case $ac_new_val in
2286    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2287    *) ac_arg=$ac_var=$ac_new_val ;;
2288    esac
2289    case " $ac_configure_args " in
2290      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2291      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2292    esac
2293  fi
2294done
2295if $ac_cache_corrupted; then
2296  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2299$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2300  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2301fi
2302## -------------------- ##
2303## Main body of script. ##
2304## -------------------- ##
2305
2306ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311
2312
2313
2314ac_config_headers="$ac_config_headers config.h"
2315
2316
2317# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329ac_aux_dir=
2330for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2331  for ac_t in install-sh install.sh shtool; do
2332    if test -f "$ac_dir/$ac_t"; then
2333      ac_aux_dir=$ac_dir
2334      ac_install_sh="$ac_aux_dir/$ac_t -c"
2335      break 2
2336    fi
2337  done
2338done
2339if test -z "$ac_aux_dir"; then
2340  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2341fi
2342
2343# These three variables are undocumented and unsupported,
2344# and are intended to be withdrawn in a future Autoconf release.
2345# They can cause serious problems if a builder's source tree is in a directory
2346# whose full name contains unusual characters.
2347ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2348ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2349ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2350
2351
2352# Find a good install program.  We prefer a C program (faster),
2353# so one script is as good as another.  But avoid the broken or
2354# incompatible versions:
2355# SysV /etc/install, /usr/sbin/install
2356# SunOS /usr/etc/install
2357# IRIX /sbin/install
2358# AIX /bin/install
2359# AmigaOS /C/install, which installs bootblocks on floppy discs
2360# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2361# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2362# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2363# OS/2's system install, which has a completely different semantic
2364# ./install, which can be erroneously created by make from ./install.sh.
2365# Reject install programs that cannot install multiple files.
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2367$as_echo_n "checking for a BSD-compatible install... " >&6; }
2368if test -z "$INSTALL"; then
2369if test "${ac_cv_path_install+set}" = set; then :
2370  $as_echo_n "(cached) " >&6
2371else
2372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375  IFS=$as_save_IFS
2376  test -z "$as_dir" && as_dir=.
2377    # Account for people who put trailing slashes in PATH elements.
2378case $as_dir/ in #((
2379  ./ | .// | /[cC]/* | \
2380  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2381  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2382  /usr/ucb/* ) ;;
2383  *)
2384    # OSF1 and SCO ODT 3.0 have their own names for install.
2385    # Don't use installbsd from OSF since it installs stuff as root
2386    # by default.
2387    for ac_prog in ginstall scoinst install; do
2388      for ac_exec_ext in '' $ac_executable_extensions; do
2389	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2390	  if test $ac_prog = install &&
2391	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392	    # AIX install.  It has an incompatible calling convention.
2393	    :
2394	  elif test $ac_prog = install &&
2395	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396	    # program-specific install script used by HP pwplus--don't use.
2397	    :
2398	  else
2399	    rm -rf conftest.one conftest.two conftest.dir
2400	    echo one > conftest.one
2401	    echo two > conftest.two
2402	    mkdir conftest.dir
2403	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2404	      test -s conftest.one && test -s conftest.two &&
2405	      test -s conftest.dir/conftest.one &&
2406	      test -s conftest.dir/conftest.two
2407	    then
2408	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2409	      break 3
2410	    fi
2411	  fi
2412	fi
2413      done
2414    done
2415    ;;
2416esac
2417
2418  done
2419IFS=$as_save_IFS
2420
2421rm -rf conftest.one conftest.two conftest.dir
2422
2423fi
2424  if test "${ac_cv_path_install+set}" = set; then
2425    INSTALL=$ac_cv_path_install
2426  else
2427    # As a last resort, use the slow shell script.  Don't cache a
2428    # value for INSTALL within a source directory, because that will
2429    # break other packages using the cache if that directory is
2430    # removed, or if the value is a relative name.
2431    INSTALL=$ac_install_sh
2432  fi
2433fi
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2435$as_echo "$INSTALL" >&6; }
2436
2437# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2438# It thinks the first close brace ends the variable substitution.
2439test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440
2441test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442
2443test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2444
2445ac_ext=c
2446ac_cpp='$CPP $CPPFLAGS'
2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450if test -n "$ac_tool_prefix"; then
2451  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2452set dummy ${ac_tool_prefix}gcc; ac_word=$2
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454$as_echo_n "checking for $ac_word... " >&6; }
2455if test "${ac_cv_prog_CC+set}" = set; then :
2456  $as_echo_n "(cached) " >&6
2457else
2458  if test -n "$CC"; then
2459  ac_cv_prog_CC="$CC" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464  IFS=$as_save_IFS
2465  test -z "$as_dir" && as_dir=.
2466    for ac_exec_ext in '' $ac_executable_extensions; do
2467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470    break 2
2471  fi
2472done
2473  done
2474IFS=$as_save_IFS
2475
2476fi
2477fi
2478CC=$ac_cv_prog_CC
2479if test -n "$CC"; then
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2481$as_echo "$CC" >&6; }
2482else
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484$as_echo "no" >&6; }
2485fi
2486
2487
2488fi
2489if test -z "$ac_cv_prog_CC"; then
2490  ac_ct_CC=$CC
2491  # Extract the first word of "gcc", so it can be a program name with args.
2492set dummy gcc; ac_word=$2
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494$as_echo_n "checking for $ac_word... " >&6; }
2495if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2496  $as_echo_n "(cached) " >&6
2497else
2498  if test -n "$ac_ct_CC"; then
2499  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500else
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504  IFS=$as_save_IFS
2505  test -z "$as_dir" && as_dir=.
2506    for ac_exec_ext in '' $ac_executable_extensions; do
2507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508    ac_cv_prog_ac_ct_CC="gcc"
2509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2510    break 2
2511  fi
2512done
2513  done
2514IFS=$as_save_IFS
2515
2516fi
2517fi
2518ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519if test -n "$ac_ct_CC"; then
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521$as_echo "$ac_ct_CC" >&6; }
2522else
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524$as_echo "no" >&6; }
2525fi
2526
2527  if test "x$ac_ct_CC" = x; then
2528    CC=""
2529  else
2530    case $cross_compiling:$ac_tool_warned in
2531yes:)
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534ac_tool_warned=yes ;;
2535esac
2536    CC=$ac_ct_CC
2537  fi
2538else
2539  CC="$ac_cv_prog_CC"
2540fi
2541
2542if test -z "$CC"; then
2543          if test -n "$ac_tool_prefix"; then
2544    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2545set dummy ${ac_tool_prefix}cc; ac_word=$2
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
2548if test "${ac_cv_prog_CC+set}" = set; then :
2549  $as_echo_n "(cached) " >&6
2550else
2551  if test -n "$CC"; then
2552  ac_cv_prog_CC="$CC" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557  IFS=$as_save_IFS
2558  test -z "$as_dir" && as_dir=.
2559    for ac_exec_ext in '' $ac_executable_extensions; do
2560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561    ac_cv_prog_CC="${ac_tool_prefix}cc"
2562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563    break 2
2564  fi
2565done
2566  done
2567IFS=$as_save_IFS
2568
2569fi
2570fi
2571CC=$ac_cv_prog_CC
2572if test -n "$CC"; then
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2574$as_echo "$CC" >&6; }
2575else
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577$as_echo "no" >&6; }
2578fi
2579
2580
2581  fi
2582fi
2583if test -z "$CC"; then
2584  # Extract the first word of "cc", so it can be a program name with args.
2585set dummy cc; ac_word=$2
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
2588if test "${ac_cv_prog_CC+set}" = set; then :
2589  $as_echo_n "(cached) " >&6
2590else
2591  if test -n "$CC"; then
2592  ac_cv_prog_CC="$CC" # Let the user override the test.
2593else
2594  ac_prog_rejected=no
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    for ac_exec_ext in '' $ac_executable_extensions; do
2601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2603       ac_prog_rejected=yes
2604       continue
2605     fi
2606    ac_cv_prog_CC="cc"
2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611  done
2612IFS=$as_save_IFS
2613
2614if test $ac_prog_rejected = yes; then
2615  # We found a bogon in the path, so make sure we never use it.
2616  set dummy $ac_cv_prog_CC
2617  shift
2618  if test $# != 0; then
2619    # We chose a different compiler from the bogus one.
2620    # However, it has the same basename, so the bogon will be chosen
2621    # first if we set CC to just the basename; use the full file name.
2622    shift
2623    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2624  fi
2625fi
2626fi
2627fi
2628CC=$ac_cv_prog_CC
2629if test -n "$CC"; then
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2631$as_echo "$CC" >&6; }
2632else
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634$as_echo "no" >&6; }
2635fi
2636
2637
2638fi
2639if test -z "$CC"; then
2640  if test -n "$ac_tool_prefix"; then
2641  for ac_prog in cl.exe
2642  do
2643    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2644set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
2647if test "${ac_cv_prog_CC+set}" = set; then :
2648  $as_echo_n "(cached) " >&6
2649else
2650  if test -n "$CC"; then
2651  ac_cv_prog_CC="$CC" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656  IFS=$as_save_IFS
2657  test -z "$as_dir" && as_dir=.
2658    for ac_exec_ext in '' $ac_executable_extensions; do
2659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662    break 2
2663  fi
2664done
2665  done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
2670CC=$ac_cv_prog_CC
2671if test -n "$CC"; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673$as_echo "$CC" >&6; }
2674else
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680    test -n "$CC" && break
2681  done
2682fi
2683if test -z "$CC"; then
2684  ac_ct_CC=$CC
2685  for ac_prog in cl.exe
2686do
2687  # Extract the first word of "$ac_prog", so it can be a program name with args.
2688set dummy $ac_prog; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  if test -n "$ac_ct_CC"; then
2695  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_exec_ext in '' $ac_executable_extensions; do
2703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704    ac_cv_prog_ac_ct_CC="$ac_prog"
2705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714ac_ct_CC=$ac_cv_prog_ac_ct_CC
2715if test -n "$ac_ct_CC"; then
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2717$as_echo "$ac_ct_CC" >&6; }
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723
2724  test -n "$ac_ct_CC" && break
2725done
2726
2727  if test "x$ac_ct_CC" = x; then
2728    CC=""
2729  else
2730    case $cross_compiling:$ac_tool_warned in
2731yes:)
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734ac_tool_warned=yes ;;
2735esac
2736    CC=$ac_ct_CC
2737  fi
2738fi
2739
2740fi
2741
2742
2743test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745as_fn_error "no acceptable C compiler found in \$PATH
2746See \`config.log' for more details." "$LINENO" 5; }
2747
2748# Provide some information about the compiler.
2749$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2750set X $ac_compile
2751ac_compiler=$2
2752for ac_option in --version -v -V -qversion; do
2753  { { ac_try="$ac_compiler $ac_option >&5"
2754case "(($ac_try" in
2755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756  *) ac_try_echo=$ac_try;;
2757esac
2758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2759$as_echo "$ac_try_echo"; } >&5
2760  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2761  ac_status=$?
2762  if test -s conftest.err; then
2763    sed '10a\
2764... rest of stderr output deleted ...
2765         10q' conftest.err >conftest.er1
2766    cat conftest.er1 >&5
2767  fi
2768  rm -f conftest.er1 conftest.err
2769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770  test $ac_status = 0; }
2771done
2772
2773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h.  */
2775
2776int
2777main ()
2778{
2779
2780  ;
2781  return 0;
2782}
2783_ACEOF
2784ac_clean_files_save=$ac_clean_files
2785ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2786# Try to create an executable without -o first, disregard a.out.
2787# It will help us diagnose broken compilers, and finding out an intuition
2788# of exeext.
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2790$as_echo_n "checking whether the C compiler works... " >&6; }
2791ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792
2793# The possible output files:
2794ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2795
2796ac_rmfiles=
2797for ac_file in $ac_files
2798do
2799  case $ac_file in
2800    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2801    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2802  esac
2803done
2804rm -f $ac_rmfiles
2805
2806if { { ac_try="$ac_link_default"
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_default") 2>&5
2814  ac_status=$?
2815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816  test $ac_status = 0; }; then :
2817  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2818# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2819# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2820# so that the user can short-circuit this test for compilers unknown to
2821# Autoconf.
2822for ac_file in $ac_files ''
2823do
2824  test -f "$ac_file" || continue
2825  case $ac_file in
2826    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2827	;;
2828    [ab].out )
2829	# We found the default executable, but exeext='' is most
2830	# certainly right.
2831	break;;
2832    *.* )
2833	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2834	then :; else
2835	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836	fi
2837	# We set ac_cv_exeext here because the later test for it is not
2838	# safe: cross compilers may not add the suffix if given an `-o'
2839	# argument, so we may need to know it at that point already.
2840	# Even if this section looks crufty: it has the advantage of
2841	# actually working.
2842	break;;
2843    * )
2844	break;;
2845  esac
2846done
2847test "$ac_cv_exeext" = no && ac_cv_exeext=
2848
2849else
2850  ac_file=''
2851fi
2852if test -z "$ac_file"; then :
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855$as_echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860{ as_fn_set_status 77
2861as_fn_error "C compiler cannot create executables
2862See \`config.log' for more details." "$LINENO" 5; }; }
2863else
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2865$as_echo "yes" >&6; }
2866fi
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2868$as_echo_n "checking for C compiler default output file name... " >&6; }
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2870$as_echo "$ac_file" >&6; }
2871ac_exeext=$ac_cv_exeext
2872
2873rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2874ac_clean_files=$ac_clean_files_save
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2876$as_echo_n "checking for suffix of executables... " >&6; }
2877if { { ac_try="$ac_link"
2878case "(($ac_try" in
2879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880  *) ac_try_echo=$ac_try;;
2881esac
2882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883$as_echo "$ac_try_echo"; } >&5
2884  (eval "$ac_link") 2>&5
2885  ac_status=$?
2886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887  test $ac_status = 0; }; then :
2888  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
2892for ac_file in conftest.exe conftest conftest.*; do
2893  test -f "$ac_file" || continue
2894  case $ac_file in
2895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2896    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897	  break;;
2898    * ) break;;
2899  esac
2900done
2901else
2902  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2904as_fn_error "cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." "$LINENO" 5; }
2906fi
2907rm -f conftest conftest$ac_cv_exeext
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2909$as_echo "$ac_cv_exeext" >&6; }
2910
2911rm -f conftest.$ac_ext
2912EXEEXT=$ac_cv_exeext
2913ac_exeext=$EXEEXT
2914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h.  */
2916#include <stdio.h>
2917int
2918main ()
2919{
2920FILE *f = fopen ("conftest.out", "w");
2921 return ferror (f) || fclose (f) != 0;
2922
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927ac_clean_files="$ac_clean_files conftest.out"
2928# Check that the compiler produces executables we can run.  If not, either
2929# the compiler is broken, or we cross compile.
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2931$as_echo_n "checking whether we are cross compiling... " >&6; }
2932if test "$cross_compiling" != yes; then
2933  { { ac_try="$ac_link"
2934case "(($ac_try" in
2935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936  *) ac_try_echo=$ac_try;;
2937esac
2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939$as_echo "$ac_try_echo"; } >&5
2940  (eval "$ac_link") 2>&5
2941  ac_status=$?
2942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943  test $ac_status = 0; }
2944  if { ac_try='./conftest$ac_cv_exeext'
2945  { { case "(($ac_try" in
2946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947  *) ac_try_echo=$ac_try;;
2948esac
2949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950$as_echo "$ac_try_echo"; } >&5
2951  (eval "$ac_try") 2>&5
2952  ac_status=$?
2953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954  test $ac_status = 0; }; }; then
2955    cross_compiling=no
2956  else
2957    if test "$cross_compiling" = maybe; then
2958	cross_compiling=yes
2959    else
2960	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962as_fn_error "cannot run C compiled programs.
2963If you meant to cross compile, use \`--host'.
2964See \`config.log' for more details." "$LINENO" 5; }
2965    fi
2966  fi
2967fi
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2969$as_echo "$cross_compiling" >&6; }
2970
2971rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2972ac_clean_files=$ac_clean_files_save
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2974$as_echo_n "checking for suffix of object files... " >&6; }
2975if test "${ac_cv_objext+set}" = set; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989rm -f conftest.o conftest.obj
2990if { { ac_try="$ac_compile"
2991case "(($ac_try" in
2992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993  *) ac_try_echo=$ac_try;;
2994esac
2995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996$as_echo "$ac_try_echo"; } >&5
2997  (eval "$ac_compile") 2>&5
2998  ac_status=$?
2999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000  test $ac_status = 0; }; then :
3001  for ac_file in conftest.o conftest.obj conftest.*; do
3002  test -f "$ac_file" || continue;
3003  case $ac_file in
3004    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3005    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3006       break;;
3007  esac
3008done
3009else
3010  $as_echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015as_fn_error "cannot compute suffix of object files: cannot compile
3016See \`config.log' for more details." "$LINENO" 5; }
3017fi
3018rm -f conftest.$ac_cv_objext conftest.$ac_ext
3019fi
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3021$as_echo "$ac_cv_objext" >&6; }
3022OBJEXT=$ac_cv_objext
3023ac_objext=$OBJEXT
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3025$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3026if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030/* end confdefs.h.  */
3031
3032int
3033main ()
3034{
3035#ifndef __GNUC__
3036       choke me
3037#endif
3038
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043if ac_fn_c_try_compile "$LINENO"; then :
3044  ac_compiler_gnu=yes
3045else
3046  ac_compiler_gnu=no
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049ac_cv_c_compiler_gnu=$ac_compiler_gnu
3050
3051fi
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3053$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3054if test $ac_compiler_gnu = yes; then
3055  GCC=yes
3056else
3057  GCC=
3058fi
3059ac_test_CFLAGS=${CFLAGS+set}
3060ac_save_CFLAGS=$CFLAGS
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3062$as_echo_n "checking whether $CC accepts -g... " >&6; }
3063if test "${ac_cv_prog_cc_g+set}" = set; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  ac_save_c_werror_flag=$ac_c_werror_flag
3067   ac_c_werror_flag=yes
3068   ac_cv_prog_cc_g=no
3069   CFLAGS="-g"
3070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081if ac_fn_c_try_compile "$LINENO"; then :
3082  ac_cv_prog_cc_g=yes
3083else
3084  CFLAGS=""
3085      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086/* end confdefs.h.  */
3087
3088int
3089main ()
3090{
3091
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096if ac_fn_c_try_compile "$LINENO"; then :
3097
3098else
3099  ac_c_werror_flag=$ac_save_c_werror_flag
3100	 CFLAGS="-g"
3101	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102/* end confdefs.h.  */
3103
3104int
3105main ()
3106{
3107
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112if ac_fn_c_try_compile "$LINENO"; then :
3113  ac_cv_prog_cc_g=yes
3114fi
3115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116fi
3117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118fi
3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120   ac_c_werror_flag=$ac_save_c_werror_flag
3121fi
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3123$as_echo "$ac_cv_prog_cc_g" >&6; }
3124if test "$ac_test_CFLAGS" = set; then
3125  CFLAGS=$ac_save_CFLAGS
3126elif test $ac_cv_prog_cc_g = yes; then
3127  if test "$GCC" = yes; then
3128    CFLAGS="-g -O2"
3129  else
3130    CFLAGS="-g"
3131  fi
3132else
3133  if test "$GCC" = yes; then
3134    CFLAGS="-O2"
3135  else
3136    CFLAGS=
3137  fi
3138fi
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3140$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3141if test "${ac_cv_prog_cc_c89+set}" = set; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  ac_cv_prog_cc_c89=no
3145ac_save_CC=$CC
3146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147/* end confdefs.h.  */
3148#include <stdarg.h>
3149#include <stdio.h>
3150#include <sys/types.h>
3151#include <sys/stat.h>
3152/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3153struct buf { int x; };
3154FILE * (*rcsopen) (struct buf *, struct stat *, int);
3155static char *e (p, i)
3156     char **p;
3157     int i;
3158{
3159  return p[i];
3160}
3161static char *f (char * (*g) (char **, int), char **p, ...)
3162{
3163  char *s;
3164  va_list v;
3165  va_start (v,p);
3166  s = g (p, va_arg (v,int));
3167  va_end (v);
3168  return s;
3169}
3170
3171/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3172   function prototypes and stuff, but not '\xHH' hex character constants.
3173   These don't provoke an error unfortunately, instead are silently treated
3174   as 'x'.  The following induces an error, until -std is added to get
3175   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3176   array size at least.  It's necessary to write '\x00'==0 to get something
3177   that's true only with -std.  */
3178int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3179
3180/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3181   inside strings and character constants.  */
3182#define FOO(x) 'x'
3183int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3184
3185int test (int i, double x);
3186struct s1 {int (*f) (int a);};
3187struct s2 {int (*f) (double a);};
3188int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3189int argc;
3190char **argv;
3191int
3192main ()
3193{
3194return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3195  ;
3196  return 0;
3197}
3198_ACEOF
3199for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3200	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3201do
3202  CC="$ac_save_CC $ac_arg"
3203  if ac_fn_c_try_compile "$LINENO"; then :
3204  ac_cv_prog_cc_c89=$ac_arg
3205fi
3206rm -f core conftest.err conftest.$ac_objext
3207  test "x$ac_cv_prog_cc_c89" != "xno" && break
3208done
3209rm -f conftest.$ac_ext
3210CC=$ac_save_CC
3211
3212fi
3213# AC_CACHE_VAL
3214case "x$ac_cv_prog_cc_c89" in
3215  x)
3216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3217$as_echo "none needed" >&6; } ;;
3218  xno)
3219    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3220$as_echo "unsupported" >&6; } ;;
3221  *)
3222    CC="$CC $ac_cv_prog_cc_c89"
3223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3224$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3225esac
3226if test "x$ac_cv_prog_cc_c89" != xno; then :
3227
3228fi
3229
3230ac_ext=c
3231ac_cpp='$CPP $CPPFLAGS'
3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3237$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3238if test "${ac_cv_prog_cc_c99+set}" = set; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  ac_cv_prog_cc_c99=no
3242ac_save_CC=$CC
3243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244/* end confdefs.h.  */
3245#include <stdarg.h>
3246#include <stdbool.h>
3247#include <stdlib.h>
3248#include <wchar.h>
3249#include <stdio.h>
3250
3251// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3252#define debug(...) fprintf (stderr, __VA_ARGS__)
3253#define showlist(...) puts (#__VA_ARGS__)
3254#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3255static void
3256test_varargs_macros (void)
3257{
3258  int x = 1234;
3259  int y = 5678;
3260  debug ("Flag");
3261  debug ("X = %d\n", x);
3262  showlist (The first, second, and third items.);
3263  report (x>y, "x is %d but y is %d", x, y);
3264}
3265
3266// Check long long types.
3267#define BIG64 18446744073709551615ull
3268#define BIG32 4294967295ul
3269#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3270#if !BIG_OK
3271  your preprocessor is broken;
3272#endif
3273#if BIG_OK
3274#else
3275  your preprocessor is broken;
3276#endif
3277static long long int bignum = -9223372036854775807LL;
3278static unsigned long long int ubignum = BIG64;
3279
3280struct incomplete_array
3281{
3282  int datasize;
3283  double data[];
3284};
3285
3286struct named_init {
3287  int number;
3288  const wchar_t *name;
3289  double average;
3290};
3291
3292typedef const char *ccp;
3293
3294static inline int
3295test_restrict (ccp restrict text)
3296{
3297  // See if C++-style comments work.
3298  // Iterate through items via the restricted pointer.
3299  // Also check for declarations in for loops.
3300  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3301    continue;
3302  return 0;
3303}
3304
3305// Check varargs and va_copy.
3306static void
3307test_varargs (const char *format, ...)
3308{
3309  va_list args;
3310  va_start (args, format);
3311  va_list args_copy;
3312  va_copy (args_copy, args);
3313
3314  const char *str;
3315  int number;
3316  float fnumber;
3317
3318  while (*format)
3319    {
3320      switch (*format++)
3321	{
3322	case 's': // string
3323	  str = va_arg (args_copy, const char *);
3324	  break;
3325	case 'd': // int
3326	  number = va_arg (args_copy, int);
3327	  break;
3328	case 'f': // float
3329	  fnumber = va_arg (args_copy, double);
3330	  break;
3331	default:
3332	  break;
3333	}
3334    }
3335  va_end (args_copy);
3336  va_end (args);
3337}
3338
3339int
3340main ()
3341{
3342
3343  // Check bool.
3344  _Bool success = false;
3345
3346  // Check restrict.
3347  if (test_restrict ("String literal") == 0)
3348    success = true;
3349  char *restrict newvar = "Another string";
3350
3351  // Check varargs.
3352  test_varargs ("s, d' f .", "string", 65, 34.234);
3353  test_varargs_macros ();
3354
3355  // Check flexible array members.
3356  struct incomplete_array *ia =
3357    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3358  ia->datasize = 10;
3359  for (int i = 0; i < ia->datasize; ++i)
3360    ia->data[i] = i * 1.234;
3361
3362  // Check named initializers.
3363  struct named_init ni = {
3364    .number = 34,
3365    .name = L"Test wide string",
3366    .average = 543.34343,
3367  };
3368
3369  ni.number = 58;
3370
3371  int dynamic_array[ni.number];
3372  dynamic_array[ni.number - 1] = 543;
3373
3374  // work around unused variable warnings
3375  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3376	  || dynamic_array[ni.number - 1] != 543);
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3383do
3384  CC="$ac_save_CC $ac_arg"
3385  if ac_fn_c_try_compile "$LINENO"; then :
3386  ac_cv_prog_cc_c99=$ac_arg
3387fi
3388rm -f core conftest.err conftest.$ac_objext
3389  test "x$ac_cv_prog_cc_c99" != "xno" && break
3390done
3391rm -f conftest.$ac_ext
3392CC=$ac_save_CC
3393
3394fi
3395# AC_CACHE_VAL
3396case "x$ac_cv_prog_cc_c99" in
3397  x)
3398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399$as_echo "none needed" >&6; } ;;
3400  xno)
3401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402$as_echo "unsupported" >&6; } ;;
3403  *)
3404    CC="$CC $ac_cv_prog_cc_c99"
3405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3406$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3407esac
3408if test "x$ac_cv_prog_cc_c99" != xno; then :
3409
3410fi
3411
3412
3413
3414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3420$as_echo_n "checking how to run the C preprocessor... " >&6; }
3421# On Suns, sometimes $CPP names a directory.
3422if test -n "$CPP" && test -d "$CPP"; then
3423  CPP=
3424fi
3425if test -z "$CPP"; then
3426  if test "${ac_cv_prog_CPP+set}" = set; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429      # Double quotes because CPP needs to be expanded
3430    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3431    do
3432      ac_preproc_ok=false
3433for ac_c_preproc_warn_flag in '' yes
3434do
3435  # Use a header file that comes with gcc, so configuring glibc
3436  # with a fresh cross-compiler works.
3437  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438  # <limits.h> exists even on freestanding compilers.
3439  # On the NeXT, cc -E runs the code through the compiler's parser,
3440  # not just through cpp. "Syntax error" is here to catch this case.
3441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h.  */
3443#ifdef __STDC__
3444# include <limits.h>
3445#else
3446# include <assert.h>
3447#endif
3448		     Syntax error
3449_ACEOF
3450if ac_fn_c_try_cpp "$LINENO"; then :
3451
3452else
3453  # Broken: fails on valid input.
3454continue
3455fi
3456rm -f conftest.err conftest.$ac_ext
3457
3458  # OK, works on sane cases.  Now check whether nonexistent headers
3459  # can be detected and how.
3460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h.  */
3462#include <ac_nonexistent.h>
3463_ACEOF
3464if ac_fn_c_try_cpp "$LINENO"; then :
3465  # Broken: success on invalid input.
3466continue
3467else
3468  # Passes both tests.
3469ac_preproc_ok=:
3470break
3471fi
3472rm -f conftest.err conftest.$ac_ext
3473
3474done
3475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3476rm -f conftest.err conftest.$ac_ext
3477if $ac_preproc_ok; then :
3478  break
3479fi
3480
3481    done
3482    ac_cv_prog_CPP=$CPP
3483
3484fi
3485  CPP=$ac_cv_prog_CPP
3486else
3487  ac_cv_prog_CPP=$CPP
3488fi
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3490$as_echo "$CPP" >&6; }
3491ac_preproc_ok=false
3492for ac_c_preproc_warn_flag in '' yes
3493do
3494  # Use a header file that comes with gcc, so configuring glibc
3495  # with a fresh cross-compiler works.
3496  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497  # <limits.h> exists even on freestanding compilers.
3498  # On the NeXT, cc -E runs the code through the compiler's parser,
3499  # not just through cpp. "Syntax error" is here to catch this case.
3500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502#ifdef __STDC__
3503# include <limits.h>
3504#else
3505# include <assert.h>
3506#endif
3507		     Syntax error
3508_ACEOF
3509if ac_fn_c_try_cpp "$LINENO"; then :
3510
3511else
3512  # Broken: fails on valid input.
3513continue
3514fi
3515rm -f conftest.err conftest.$ac_ext
3516
3517  # OK, works on sane cases.  Now check whether nonexistent headers
3518  # can be detected and how.
3519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h.  */
3521#include <ac_nonexistent.h>
3522_ACEOF
3523if ac_fn_c_try_cpp "$LINENO"; then :
3524  # Broken: success on invalid input.
3525continue
3526else
3527  # Passes both tests.
3528ac_preproc_ok=:
3529break
3530fi
3531rm -f conftest.err conftest.$ac_ext
3532
3533done
3534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535rm -f conftest.err conftest.$ac_ext
3536if $ac_preproc_ok; then :
3537
3538else
3539  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541as_fn_error "C preprocessor \"$CPP\" fails sanity check
3542See \`config.log' for more details." "$LINENO" 5; }
3543fi
3544
3545ac_ext=c
3546ac_cpp='$CPP $CPPFLAGS'
3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550
3551
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3553$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3554if test "${ac_cv_path_GREP+set}" = set; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557  if test -z "$GREP"; then
3558  ac_path_GREP_found=false
3559  # Loop through the user's path and test for each of PROGNAME-LIST
3560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562do
3563  IFS=$as_save_IFS
3564  test -z "$as_dir" && as_dir=.
3565    for ac_prog in grep ggrep; do
3566    for ac_exec_ext in '' $ac_executable_extensions; do
3567      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3568      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3569# Check for GNU ac_path_GREP and select it if it is found.
3570  # Check for GNU $ac_path_GREP
3571case `"$ac_path_GREP" --version 2>&1` in
3572*GNU*)
3573  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3574*)
3575  ac_count=0
3576  $as_echo_n 0123456789 >"conftest.in"
3577  while :
3578  do
3579    cat "conftest.in" "conftest.in" >"conftest.tmp"
3580    mv "conftest.tmp" "conftest.in"
3581    cp "conftest.in" "conftest.nl"
3582    $as_echo 'GREP' >> "conftest.nl"
3583    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585    as_fn_arith $ac_count + 1 && ac_count=$as_val
3586    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3587      # Best one so far, save it but keep looking for a better one
3588      ac_cv_path_GREP="$ac_path_GREP"
3589      ac_path_GREP_max=$ac_count
3590    fi
3591    # 10*(2^10) chars as input seems more than enough
3592    test $ac_count -gt 10 && break
3593  done
3594  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595esac
3596
3597      $ac_path_GREP_found && break 3
3598    done
3599  done
3600  done
3601IFS=$as_save_IFS
3602  if test -z "$ac_cv_path_GREP"; then
3603    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3604  fi
3605else
3606  ac_cv_path_GREP=$GREP
3607fi
3608
3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3611$as_echo "$ac_cv_path_GREP" >&6; }
3612 GREP="$ac_cv_path_GREP"
3613
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3616$as_echo_n "checking for egrep... " >&6; }
3617if test "${ac_cv_path_EGREP+set}" = set; then :
3618  $as_echo_n "(cached) " >&6
3619else
3620  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3621   then ac_cv_path_EGREP="$GREP -E"
3622   else
3623     if test -z "$EGREP"; then
3624  ac_path_EGREP_found=false
3625  # Loop through the user's path and test for each of PROGNAME-LIST
3626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628do
3629  IFS=$as_save_IFS
3630  test -z "$as_dir" && as_dir=.
3631    for ac_prog in egrep; do
3632    for ac_exec_ext in '' $ac_executable_extensions; do
3633      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3634      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3635# Check for GNU ac_path_EGREP and select it if it is found.
3636  # Check for GNU $ac_path_EGREP
3637case `"$ac_path_EGREP" --version 2>&1` in
3638*GNU*)
3639  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3640*)
3641  ac_count=0
3642  $as_echo_n 0123456789 >"conftest.in"
3643  while :
3644  do
3645    cat "conftest.in" "conftest.in" >"conftest.tmp"
3646    mv "conftest.tmp" "conftest.in"
3647    cp "conftest.in" "conftest.nl"
3648    $as_echo 'EGREP' >> "conftest.nl"
3649    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3650    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3651    as_fn_arith $ac_count + 1 && ac_count=$as_val
3652    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3653      # Best one so far, save it but keep looking for a better one
3654      ac_cv_path_EGREP="$ac_path_EGREP"
3655      ac_path_EGREP_max=$ac_count
3656    fi
3657    # 10*(2^10) chars as input seems more than enough
3658    test $ac_count -gt 10 && break
3659  done
3660  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3661esac
3662
3663      $ac_path_EGREP_found && break 3
3664    done
3665  done
3666  done
3667IFS=$as_save_IFS
3668  if test -z "$ac_cv_path_EGREP"; then
3669    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670  fi
3671else
3672  ac_cv_path_EGREP=$EGREP
3673fi
3674
3675   fi
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3678$as_echo "$ac_cv_path_EGREP" >&6; }
3679 EGREP="$ac_cv_path_EGREP"
3680
3681
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3683$as_echo_n "checking for ANSI C header files... " >&6; }
3684if test "${ac_cv_header_stdc+set}" = set; then :
3685  $as_echo_n "(cached) " >&6
3686else
3687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689#include <stdlib.h>
3690#include <stdarg.h>
3691#include <string.h>
3692#include <float.h>
3693
3694int
3695main ()
3696{
3697
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702if ac_fn_c_try_compile "$LINENO"; then :
3703  ac_cv_header_stdc=yes
3704else
3705  ac_cv_header_stdc=no
3706fi
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708
3709if test $ac_cv_header_stdc = yes; then
3710  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713#include <string.h>
3714
3715_ACEOF
3716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3717  $EGREP "memchr" >/dev/null 2>&1; then :
3718
3719else
3720  ac_cv_header_stdc=no
3721fi
3722rm -f conftest*
3723
3724fi
3725
3726if test $ac_cv_header_stdc = yes; then
3727  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730#include <stdlib.h>
3731
3732_ACEOF
3733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734  $EGREP "free" >/dev/null 2>&1; then :
3735
3736else
3737  ac_cv_header_stdc=no
3738fi
3739rm -f conftest*
3740
3741fi
3742
3743if test $ac_cv_header_stdc = yes; then
3744  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3745  if test "$cross_compiling" = yes; then :
3746  :
3747else
3748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h.  */
3750#include <ctype.h>
3751#include <stdlib.h>
3752#if ((' ' & 0x0FF) == 0x020)
3753# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3754# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3755#else
3756# define ISLOWER(c) \
3757		   (('a' <= (c) && (c) <= 'i') \
3758		     || ('j' <= (c) && (c) <= 'r') \
3759		     || ('s' <= (c) && (c) <= 'z'))
3760# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3761#endif
3762
3763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3764int
3765main ()
3766{
3767  int i;
3768  for (i = 0; i < 256; i++)
3769    if (XOR (islower (i), ISLOWER (i))
3770	|| toupper (i) != TOUPPER (i))
3771      return 2;
3772  return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_run "$LINENO"; then :
3776
3777else
3778  ac_cv_header_stdc=no
3779fi
3780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3781  conftest.$ac_objext conftest.beam conftest.$ac_ext
3782fi
3783
3784fi
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3787$as_echo "$ac_cv_header_stdc" >&6; }
3788if test $ac_cv_header_stdc = yes; then
3789
3790$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3791
3792fi
3793
3794# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3795for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3796		  inttypes.h stdint.h unistd.h
3797do :
3798  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3799ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3800"
3801eval as_val=\$$as_ac_Header
3802   if test "x$as_val" = x""yes; then :
3803  cat >>confdefs.h <<_ACEOF
3804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805_ACEOF
3806
3807fi
3808
3809done
3810
3811
3812
3813
3814if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3815	if test -n "$ac_tool_prefix"; then
3816  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3817set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  case $PKG_CONFIG in
3824  [\\/]* | ?:[\\/]*)
3825  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3826  ;;
3827  *)
3828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831  IFS=$as_save_IFS
3832  test -z "$as_dir" && as_dir=.
3833    for ac_exec_ext in '' $ac_executable_extensions; do
3834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837    break 2
3838  fi
3839done
3840  done
3841IFS=$as_save_IFS
3842
3843  ;;
3844esac
3845fi
3846PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3847if test -n "$PKG_CONFIG"; then
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3849$as_echo "$PKG_CONFIG" >&6; }
3850else
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
3853fi
3854
3855
3856fi
3857if test -z "$ac_cv_path_PKG_CONFIG"; then
3858  ac_pt_PKG_CONFIG=$PKG_CONFIG
3859  # Extract the first word of "pkg-config", so it can be a program name with args.
3860set dummy pkg-config; ac_word=$2
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  case $ac_pt_PKG_CONFIG in
3867  [\\/]* | ?:[\\/]*)
3868  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3869  ;;
3870  *)
3871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874  IFS=$as_save_IFS
3875  test -z "$as_dir" && as_dir=.
3876    for ac_exec_ext in '' $ac_executable_extensions; do
3877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3878    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880    break 2
3881  fi
3882done
3883  done
3884IFS=$as_save_IFS
3885
3886  ;;
3887esac
3888fi
3889ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3890if test -n "$ac_pt_PKG_CONFIG"; then
3891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3892$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3893else
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898  if test "x$ac_pt_PKG_CONFIG" = x; then
3899    PKG_CONFIG=""
3900  else
3901    case $cross_compiling:$ac_tool_warned in
3902yes:)
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3905ac_tool_warned=yes ;;
3906esac
3907    PKG_CONFIG=$ac_pt_PKG_CONFIG
3908  fi
3909else
3910  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3911fi
3912
3913fi
3914if test -n "$PKG_CONFIG"; then
3915	_pkg_min_version=0.9.0
3916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3917$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3918	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920$as_echo "yes" >&6; }
3921	else
3922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924		PKG_CONFIG=""
3925	fi
3926
3927fi
3928# Make sure we can run config.sub.
3929$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3930  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3933$as_echo_n "checking build system type... " >&6; }
3934if test "${ac_cv_build+set}" = set; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  ac_build_alias=$build_alias
3938test "x$ac_build_alias" = x &&
3939  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3940test "x$ac_build_alias" = x &&
3941  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3942ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3943  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3944
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3947$as_echo "$ac_cv_build" >&6; }
3948case $ac_cv_build in
3949*-*-*) ;;
3950*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3951esac
3952build=$ac_cv_build
3953ac_save_IFS=$IFS; IFS='-'
3954set x $ac_cv_build
3955shift
3956build_cpu=$1
3957build_vendor=$2
3958shift; shift
3959# Remember, the first character of IFS is used to create $*,
3960# except with old shells:
3961build_os=$*
3962IFS=$ac_save_IFS
3963case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3964
3965
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3967$as_echo_n "checking host system type... " >&6; }
3968if test "${ac_cv_host+set}" = set; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  if test "x$host_alias" = x; then
3972  ac_cv_host=$ac_cv_build
3973else
3974  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3975    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3976fi
3977
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3980$as_echo "$ac_cv_host" >&6; }
3981case $ac_cv_host in
3982*-*-*) ;;
3983*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3984esac
3985host=$ac_cv_host
3986ac_save_IFS=$IFS; IFS='-'
3987set x $ac_cv_host
3988shift
3989host_cpu=$1
3990host_vendor=$2
3991shift; shift
3992# Remember, the first character of IFS is used to create $*,
3993# except with old shells:
3994host_os=$*
3995IFS=$ac_save_IFS
3996case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3997
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4000$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4001if test "${ac_cv_path_SED+set}" = set; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4005     for ac_i in 1 2 3 4 5 6 7; do
4006       ac_script="$ac_script$as_nl$ac_script"
4007     done
4008     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4009     { ac_script=; unset ac_script;}
4010     if test -z "$SED"; then
4011  ac_path_SED_found=false
4012  # Loop through the user's path and test for each of PROGNAME-LIST
4013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH
4015do
4016  IFS=$as_save_IFS
4017  test -z "$as_dir" && as_dir=.
4018    for ac_prog in sed gsed; do
4019    for ac_exec_ext in '' $ac_executable_extensions; do
4020      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4021      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4022# Check for GNU ac_path_SED and select it if it is found.
4023  # Check for GNU $ac_path_SED
4024case `"$ac_path_SED" --version 2>&1` in
4025*GNU*)
4026  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4027*)
4028  ac_count=0
4029  $as_echo_n 0123456789 >"conftest.in"
4030  while :
4031  do
4032    cat "conftest.in" "conftest.in" >"conftest.tmp"
4033    mv "conftest.tmp" "conftest.in"
4034    cp "conftest.in" "conftest.nl"
4035    $as_echo '' >> "conftest.nl"
4036    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038    as_fn_arith $ac_count + 1 && ac_count=$as_val
4039    if test $ac_count -gt ${ac_path_SED_max-0}; then
4040      # Best one so far, save it but keep looking for a better one
4041      ac_cv_path_SED="$ac_path_SED"
4042      ac_path_SED_max=$ac_count
4043    fi
4044    # 10*(2^10) chars as input seems more than enough
4045    test $ac_count -gt 10 && break
4046  done
4047  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048esac
4049
4050      $ac_path_SED_found && break 3
4051    done
4052  done
4053  done
4054IFS=$as_save_IFS
4055  if test -z "$ac_cv_path_SED"; then
4056    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4057  fi
4058else
4059  ac_cv_path_SED=$SED
4060fi
4061
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4064$as_echo "$ac_cv_path_SED" >&6; }
4065 SED="$ac_cv_path_SED"
4066  rm -f conftest.sed
4067
4068
4069
4070
4071
4072if  test "x$GCC" = xyes ; then
4073    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4074-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4075-Wbad-function-cast -Wformat=2"
4076    case `$CC -dumpversion` in
4077    3.4.* | 4.*)
4078	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4079	;;
4080    esac
4081else
4082    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4083if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4084  SUNCC="yes"
4085else
4086  SUNCC="no"
4087fi
4088
4089    if test "x$SUNCC" = "xyes"; then
4090	CWARNFLAGS="-v"
4091    fi
4092fi
4093
4094
4095
4096# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4097
4098
4099
4100# Check whether --enable-strict-compilation was given.
4101if test "${enable_strict_compilation+set}" = set; then :
4102  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4103else
4104  STRICT_COMPILE=no
4105fi
4106
4107if test "x$STRICT_COMPILE" = "xyes"; then
4108	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4109if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4110  SUNCC="yes"
4111else
4112  SUNCC="no"
4113fi
4114
4115	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4116if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4117  INTELCC="yes"
4118else
4119  INTELCC="no"
4120fi
4121
4122	if test "x$GCC" = xyes ; then
4123		STRICT_CFLAGS="-pedantic -Werror"
4124	elif test "x$SUNCC" = "xyes"; then
4125		STRICT_CFLAGS="-errwarn"
4126    elif test "x$INTELCC" = "xyes"; then
4127		STRICT_CFLAGS="-Werror"
4128	fi
4129fi
4130CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4131
4132
4133
4134
4135cat >>confdefs.h <<_ACEOF
4136#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4137_ACEOF
4138
4139	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4140	if test "x$PVM" = "x"; then
4141		PVM="0"
4142	fi
4143
4144cat >>confdefs.h <<_ACEOF
4145#define PACKAGE_VERSION_MINOR $PVM
4146_ACEOF
4147
4148	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4149	if test "x$PVP" = "x"; then
4150		PVP="0"
4151	fi
4152
4153cat >>confdefs.h <<_ACEOF
4154#define PACKAGE_VERSION_PATCHLEVEL $PVP
4155_ACEOF
4156
4157
4158
4159CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4160mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4161|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4162echo 'git directory not found: installing possibly empty changelog.' >&2)"
4163
4164
4165
4166
4167macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4168INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4169mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4170|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4171echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4172
4173
4174
4175
4176
4177
4178if test x$APP_MAN_SUFFIX = x    ; then
4179    APP_MAN_SUFFIX=1
4180fi
4181if test x$APP_MAN_DIR = x    ; then
4182    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4183fi
4184
4185if test x$LIB_MAN_SUFFIX = x    ; then
4186    LIB_MAN_SUFFIX=3
4187fi
4188if test x$LIB_MAN_DIR = x    ; then
4189    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4190fi
4191
4192if test x$FILE_MAN_SUFFIX = x    ; then
4193    case $host_os in
4194	solaris*)	FILE_MAN_SUFFIX=4  ;;
4195	*)		FILE_MAN_SUFFIX=5  ;;
4196    esac
4197fi
4198if test x$FILE_MAN_DIR = x    ; then
4199    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4200fi
4201
4202if test x$MISC_MAN_SUFFIX = x    ; then
4203    case $host_os in
4204	solaris*)	MISC_MAN_SUFFIX=5  ;;
4205	*)		MISC_MAN_SUFFIX=7  ;;
4206    esac
4207fi
4208if test x$MISC_MAN_DIR = x    ; then
4209    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4210fi
4211
4212if test x$DRIVER_MAN_SUFFIX = x    ; then
4213    case $host_os in
4214	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4215	*)		DRIVER_MAN_SUFFIX=4  ;;
4216    esac
4217fi
4218if test x$DRIVER_MAN_DIR = x    ; then
4219    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4220fi
4221
4222if test x$ADMIN_MAN_SUFFIX = x    ; then
4223    case $host_os in
4224	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4225	*)		ADMIN_MAN_SUFFIX=8  ;;
4226    esac
4227fi
4228if test x$ADMIN_MAN_DIR = x    ; then
4229    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4230fi
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246XORG_MAN_PAGE="X Version 11"
4247
4248MAN_SUBSTS="\
4249	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4250	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4251	-e 's|__xservername__|Xorg|g' \
4252	-e 's|__xconfigfile__|xorg.conf|g' \
4253	-e 's|__projectroot__|\$(prefix)|g' \
4254	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4255	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4256	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4257	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4258	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4259	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4260
4261
4262
4263# Check whether --enable-silent-rules was given.
4264if test "${enable_silent_rules+set}" = set; then :
4265  enableval=$enable_silent_rules;
4266fi
4267
4268case $enable_silent_rules in
4269yes) AM_DEFAULT_VERBOSITY=0;;
4270no)  AM_DEFAULT_VERBOSITY=1;;
4271*)   AM_DEFAULT_VERBOSITY=0;;
4272esac
4273AM_BACKSLASH='\'
4274
4275
4276
4277ac_aux_dir=
4278for ac_dir in . "$srcdir"/.; do
4279  for ac_t in install-sh install.sh shtool; do
4280    if test -f "$ac_dir/$ac_t"; then
4281      ac_aux_dir=$ac_dir
4282      ac_install_sh="$ac_aux_dir/$ac_t -c"
4283      break 2
4284    fi
4285  done
4286done
4287if test -z "$ac_aux_dir"; then
4288  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
4289fi
4290
4291# These three variables are undocumented and unsupported,
4292# and are intended to be withdrawn in a future Autoconf release.
4293# They can cause serious problems if a builder's source tree is in a directory
4294# whose full name contains unusual characters.
4295ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4296ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4297ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4298
4299
4300
4301# Initialize Automake
4302am__api_version='1.11'
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4305$as_echo_n "checking whether build environment is sane... " >&6; }
4306# Just in case
4307sleep 1
4308echo timestamp > conftest.file
4309# Reject unsafe characters in $srcdir or the absolute working directory
4310# name.  Accept space and tab only in the latter.
4311am_lf='
4312'
4313case `pwd` in
4314  *[\\\"\#\$\&\'\`$am_lf]*)
4315    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4316esac
4317case $srcdir in
4318  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4319    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4320esac
4321
4322# Do `set' in a subshell so we don't clobber the current shell's
4323# arguments.  Must try -L first in case configure is actually a
4324# symlink; some systems play weird games with the mod time of symlinks
4325# (eg FreeBSD returns the mod time of the symlink's containing
4326# directory).
4327if (
4328   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4329   if test "$*" = "X"; then
4330      # -L didn't work.
4331      set X `ls -t "$srcdir/configure" conftest.file`
4332   fi
4333   rm -f conftest.file
4334   if test "$*" != "X $srcdir/configure conftest.file" \
4335      && test "$*" != "X conftest.file $srcdir/configure"; then
4336
4337      # If neither matched, then we have a broken ls.  This can happen
4338      # if, for instance, CONFIG_SHELL is bash and it inherits a
4339      # broken ls alias from the environment.  This has actually
4340      # happened.  Such a system could not be considered "sane".
4341      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4342alias in your environment" "$LINENO" 5
4343   fi
4344
4345   test "$2" = conftest.file
4346   )
4347then
4348   # Ok.
4349   :
4350else
4351   as_fn_error "newly created file is older than distributed files!
4352Check your system clock" "$LINENO" 5
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355$as_echo "yes" >&6; }
4356test "$program_prefix" != NONE &&
4357  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4358# Use a double $ so make ignores it.
4359test "$program_suffix" != NONE &&
4360  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4361# Double any \ or $.
4362# By default was `s,x,x', remove it if useless.
4363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4365
4366# expand $ac_aux_dir to an absolute path
4367am_aux_dir=`cd $ac_aux_dir && pwd`
4368
4369if test x"${MISSING+set}" != xset; then
4370  case $am_aux_dir in
4371  *\ * | *\	*)
4372    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4373  *)
4374    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4375  esac
4376fi
4377# Use eval to expand $SHELL
4378if eval "$MISSING --run true"; then
4379  am_missing_run="$MISSING --run "
4380else
4381  am_missing_run=
4382  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4383$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4384fi
4385
4386if test x"${install_sh}" != xset; then
4387  case $am_aux_dir in
4388  *\ * | *\	*)
4389    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4390  *)
4391    install_sh="\${SHELL} $am_aux_dir/install-sh"
4392  esac
4393fi
4394
4395# Installed binaries are usually stripped using `strip' when the user
4396# run `make install-strip'.  However `strip' might not be the right
4397# tool to use in cross-compilation environments, therefore Automake
4398# will honor the `STRIP' environment variable to overrule this program.
4399if test "$cross_compiling" != no; then
4400  if test -n "$ac_tool_prefix"; then
4401  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}strip; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
4405if test "${ac_cv_prog_STRIP+set}" = set; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if test -n "$STRIP"; then
4409  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414  IFS=$as_save_IFS
4415  test -z "$as_dir" && as_dir=.
4416    for ac_exec_ext in '' $ac_executable_extensions; do
4417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420    break 2
4421  fi
4422done
4423  done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428STRIP=$ac_cv_prog_STRIP
4429if test -n "$STRIP"; then
4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4431$as_echo "$STRIP" >&6; }
4432else
4433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436
4437
4438fi
4439if test -z "$ac_cv_prog_STRIP"; then
4440  ac_ct_STRIP=$STRIP
4441  # Extract the first word of "strip", so it can be a program name with args.
4442set dummy strip; ac_word=$2
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
4445if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  if test -n "$ac_ct_STRIP"; then
4449  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454  IFS=$as_save_IFS
4455  test -z "$as_dir" && as_dir=.
4456    for ac_exec_ext in '' $ac_executable_extensions; do
4457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458    ac_cv_prog_ac_ct_STRIP="strip"
4459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460    break 2
4461  fi
4462done
4463  done
4464IFS=$as_save_IFS
4465
4466fi
4467fi
4468ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4469if test -n "$ac_ct_STRIP"; then
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4471$as_echo "$ac_ct_STRIP" >&6; }
4472else
4473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475fi
4476
4477  if test "x$ac_ct_STRIP" = x; then
4478    STRIP=":"
4479  else
4480    case $cross_compiling:$ac_tool_warned in
4481yes:)
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484ac_tool_warned=yes ;;
4485esac
4486    STRIP=$ac_ct_STRIP
4487  fi
4488else
4489  STRIP="$ac_cv_prog_STRIP"
4490fi
4491
4492fi
4493INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4494
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4496$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4497if test -z "$MKDIR_P"; then
4498  if test "${ac_cv_path_mkdir+set}" = set; then :
4499  $as_echo_n "(cached) " >&6
4500else
4501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4503do
4504  IFS=$as_save_IFS
4505  test -z "$as_dir" && as_dir=.
4506    for ac_prog in mkdir gmkdir; do
4507	 for ac_exec_ext in '' $ac_executable_extensions; do
4508	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4509	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4510	     'mkdir (GNU coreutils) '* | \
4511	     'mkdir (coreutils) '* | \
4512	     'mkdir (fileutils) '4.1*)
4513	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4514	       break 3;;
4515	   esac
4516	 done
4517       done
4518  done
4519IFS=$as_save_IFS
4520
4521fi
4522
4523  test -d ./--version && rmdir ./--version
4524  if test "${ac_cv_path_mkdir+set}" = set; then
4525    MKDIR_P="$ac_cv_path_mkdir -p"
4526  else
4527    # As a last resort, use the slow shell script.  Don't cache a
4528    # value for MKDIR_P within a source directory, because that will
4529    # break other packages using the cache if that directory is
4530    # removed, or if the value is a relative name.
4531    MKDIR_P="$ac_install_sh -d"
4532  fi
4533fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4535$as_echo "$MKDIR_P" >&6; }
4536
4537mkdir_p="$MKDIR_P"
4538case $mkdir_p in
4539  [\\/$]* | ?:[\\/]*) ;;
4540  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4541esac
4542
4543for ac_prog in gawk mawk nawk awk
4544do
4545  # Extract the first word of "$ac_prog", so it can be a program name with args.
4546set dummy $ac_prog; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
4549if test "${ac_cv_prog_AWK+set}" = set; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  if test -n "$AWK"; then
4553  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558  IFS=$as_save_IFS
4559  test -z "$as_dir" && as_dir=.
4560    for ac_exec_ext in '' $ac_executable_extensions; do
4561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562    ac_cv_prog_AWK="$ac_prog"
4563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564    break 2
4565  fi
4566done
4567  done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572AWK=$ac_cv_prog_AWK
4573if test -n "$AWK"; then
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4575$as_echo "$AWK" >&6; }
4576else
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582  test -n "$AWK" && break
4583done
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4586$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4587set x ${MAKE-make}
4588ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4589if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  cat >conftest.make <<\_ACEOF
4593SHELL = /bin/sh
4594all:
4595	@echo '@@@%%%=$(MAKE)=@@@%%%'
4596_ACEOF
4597# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4598case `${MAKE-make} -f conftest.make 2>/dev/null` in
4599  *@@@%%%=?*=@@@%%%*)
4600    eval ac_cv_prog_make_${ac_make}_set=yes;;
4601  *)
4602    eval ac_cv_prog_make_${ac_make}_set=no;;
4603esac
4604rm -f conftest.make
4605fi
4606if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4608$as_echo "yes" >&6; }
4609  SET_MAKE=
4610else
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612$as_echo "no" >&6; }
4613  SET_MAKE="MAKE=${MAKE-make}"
4614fi
4615
4616rm -rf .tst 2>/dev/null
4617mkdir .tst 2>/dev/null
4618if test -d .tst; then
4619  am__leading_dot=.
4620else
4621  am__leading_dot=_
4622fi
4623rmdir .tst 2>/dev/null
4624
4625DEPDIR="${am__leading_dot}deps"
4626
4627ac_config_commands="$ac_config_commands depfiles"
4628
4629
4630am_make=${MAKE-make}
4631cat > confinc << 'END'
4632am__doit:
4633	@echo this is the am__doit target
4634.PHONY: am__doit
4635END
4636# If we don't find an include directive, just comment out the code.
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4638$as_echo_n "checking for style of include used by $am_make... " >&6; }
4639am__include="#"
4640am__quote=
4641_am_result=none
4642# First try GNU make style include.
4643echo "include confinc" > confmf
4644# Ignore all kinds of additional output from `make'.
4645case `$am_make -s -f confmf 2> /dev/null` in #(
4646*the\ am__doit\ target*)
4647  am__include=include
4648  am__quote=
4649  _am_result=GNU
4650  ;;
4651esac
4652# Now try BSD make style include.
4653if test "$am__include" = "#"; then
4654   echo '.include "confinc"' > confmf
4655   case `$am_make -s -f confmf 2> /dev/null` in #(
4656   *the\ am__doit\ target*)
4657     am__include=.include
4658     am__quote="\""
4659     _am_result=BSD
4660     ;;
4661   esac
4662fi
4663
4664
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4666$as_echo "$_am_result" >&6; }
4667rm -f confinc confmf
4668
4669# Check whether --enable-dependency-tracking was given.
4670if test "${enable_dependency_tracking+set}" = set; then :
4671  enableval=$enable_dependency_tracking;
4672fi
4673
4674if test "x$enable_dependency_tracking" != xno; then
4675  am_depcomp="$ac_aux_dir/depcomp"
4676  AMDEPBACKSLASH='\'
4677fi
4678 if test "x$enable_dependency_tracking" != xno; then
4679  AMDEP_TRUE=
4680  AMDEP_FALSE='#'
4681else
4682  AMDEP_TRUE='#'
4683  AMDEP_FALSE=
4684fi
4685
4686
4687if test "`cd $srcdir && pwd`" != "`pwd`"; then
4688  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4689  # is not polluted with repeated "-I."
4690  am__isrc=' -I$(srcdir)'
4691  # test to see if srcdir already configured
4692  if test -f $srcdir/config.status; then
4693    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4694  fi
4695fi
4696
4697# test whether we have cygpath
4698if test -z "$CYGPATH_W"; then
4699  if (cygpath --version) >/dev/null 2>/dev/null; then
4700    CYGPATH_W='cygpath -w'
4701  else
4702    CYGPATH_W=echo
4703  fi
4704fi
4705
4706
4707# Define the identity of the package.
4708 PACKAGE='xf86-video-nv'
4709 VERSION='2.1.18'
4710
4711
4712cat >>confdefs.h <<_ACEOF
4713#define PACKAGE "$PACKAGE"
4714_ACEOF
4715
4716
4717cat >>confdefs.h <<_ACEOF
4718#define VERSION "$VERSION"
4719_ACEOF
4720
4721# Some tools Automake needs.
4722
4723ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4724
4725
4726AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4727
4728
4729AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4730
4731
4732AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4733
4734
4735MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4736
4737# We need awk for the "check" target.  The system "awk" is bad on
4738# some platforms.
4739# Always define AMTAR for backward compatibility.
4740
4741AMTAR=${AMTAR-"${am_missing_run}tar"}
4742
4743am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4744
4745
4746
4747
4748depcc="$CC"   am_compiler_list=
4749
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4751$as_echo_n "checking dependency style of $depcc... " >&6; }
4752if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4756  # We make a subdir and do the tests there.  Otherwise we can end up
4757  # making bogus files that we don't know about and never remove.  For
4758  # instance it was reported that on HP-UX the gcc test will end up
4759  # making a dummy file named `D' -- because `-MD' means `put the output
4760  # in D'.
4761  mkdir conftest.dir
4762  # Copy depcomp to subdir because otherwise we won't find it if we're
4763  # using a relative directory.
4764  cp "$am_depcomp" conftest.dir
4765  cd conftest.dir
4766  # We will build objects and dependencies in a subdirectory because
4767  # it helps to detect inapplicable dependency modes.  For instance
4768  # both Tru64's cc and ICC support -MD to output dependencies as a
4769  # side effect of compilation, but ICC will put the dependencies in
4770  # the current directory while Tru64 will put them in the object
4771  # directory.
4772  mkdir sub
4773
4774  am_cv_CC_dependencies_compiler_type=none
4775  if test "$am_compiler_list" = ""; then
4776     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4777  fi
4778  am__universal=false
4779  case " $depcc " in #(
4780     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4781     esac
4782
4783  for depmode in $am_compiler_list; do
4784    # Setup a source with many dependencies, because some compilers
4785    # like to wrap large dependency lists on column 80 (with \), and
4786    # we should not choose a depcomp mode which is confused by this.
4787    #
4788    # We need to recreate these files for each test, as the compiler may
4789    # overwrite some of them when testing with obscure command lines.
4790    # This happens at least with the AIX C compiler.
4791    : > sub/conftest.c
4792    for i in 1 2 3 4 5 6; do
4793      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4794      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4795      # Solaris 8's {/usr,}/bin/sh.
4796      touch sub/conftst$i.h
4797    done
4798    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4799
4800    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4801    # mode.  It turns out that the SunPro C++ compiler does not properly
4802    # handle `-M -o', and we need to detect this.  Also, some Intel
4803    # versions had trouble with output in subdirs
4804    am__obj=sub/conftest.${OBJEXT-o}
4805    am__minus_obj="-o $am__obj"
4806    case $depmode in
4807    gcc)
4808      # This depmode causes a compiler race in universal mode.
4809      test "$am__universal" = false || continue
4810      ;;
4811    nosideeffect)
4812      # after this tag, mechanisms are not by side-effect, so they'll
4813      # only be used when explicitly requested
4814      if test "x$enable_dependency_tracking" = xyes; then
4815	continue
4816      else
4817	break
4818      fi
4819      ;;
4820    msvisualcpp | msvcmsys)
4821      # This compiler won't grok `-c -o', but also, the minuso test has
4822      # not run yet.  These depmodes are late enough in the game, and
4823      # so weak that their functioning should not be impacted.
4824      am__obj=conftest.${OBJEXT-o}
4825      am__minus_obj=
4826      ;;
4827    none) break ;;
4828    esac
4829    if depmode=$depmode \
4830       source=sub/conftest.c object=$am__obj \
4831       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4832       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4833         >/dev/null 2>conftest.err &&
4834       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4835       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4836       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4837       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4838      # icc doesn't choke on unknown options, it will just issue warnings
4839      # or remarks (even with -Werror).  So we grep stderr for any message
4840      # that says an option was ignored or not supported.
4841      # When given -MP, icc 7.0 and 7.1 complain thusly:
4842      #   icc: Command line warning: ignoring option '-M'; no argument required
4843      # The diagnosis changed in icc 8.0:
4844      #   icc: Command line remark: option '-MP' not supported
4845      if (grep 'ignoring option' conftest.err ||
4846          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4847        am_cv_CC_dependencies_compiler_type=$depmode
4848        break
4849      fi
4850    fi
4851  done
4852
4853  cd ..
4854  rm -rf conftest.dir
4855else
4856  am_cv_CC_dependencies_compiler_type=none
4857fi
4858
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4861$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4862CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4863
4864 if
4865  test "x$enable_dependency_tracking" != xno \
4866  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4867  am__fastdepCC_TRUE=
4868  am__fastdepCC_FALSE='#'
4869else
4870  am__fastdepCC_TRUE='#'
4871  am__fastdepCC_FALSE=
4872fi
4873
4874
4875
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4878$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4879    # Check whether --enable-maintainer-mode was given.
4880if test "${enable_maintainer_mode+set}" = set; then :
4881  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4882else
4883  USE_MAINTAINER_MODE=no
4884fi
4885
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4887$as_echo "$USE_MAINTAINER_MODE" >&6; }
4888   if test $USE_MAINTAINER_MODE = yes; then
4889  MAINTAINER_MODE_TRUE=
4890  MAINTAINER_MODE_FALSE='#'
4891else
4892  MAINTAINER_MODE_TRUE='#'
4893  MAINTAINER_MODE_FALSE=
4894fi
4895
4896  MAINT=$MAINTAINER_MODE_TRUE
4897
4898
4899
4900# Initialize libtool
4901# Check whether --enable-static was given.
4902if test "${enable_static+set}" = set; then :
4903  enableval=$enable_static; p=${PACKAGE-default}
4904    case $enableval in
4905    yes) enable_static=yes ;;
4906    no) enable_static=no ;;
4907    *)
4908     enable_static=no
4909      # Look at the argument we got.  We use all the common list separators.
4910      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911      for pkg in $enableval; do
4912	IFS="$lt_save_ifs"
4913	if test "X$pkg" = "X$p"; then
4914	  enable_static=yes
4915	fi
4916      done
4917      IFS="$lt_save_ifs"
4918      ;;
4919    esac
4920else
4921  enable_static=no
4922fi
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932case `pwd` in
4933  *\ * | *\	*)
4934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4935$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4936esac
4937
4938
4939
4940macro_version='2.2.6b'
4941macro_revision='1.3017'
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955ltmain="$ac_aux_dir/ltmain.sh"
4956
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4958$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4959if test "${ac_cv_path_SED+set}" = set; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4963     for ac_i in 1 2 3 4 5 6 7; do
4964       ac_script="$ac_script$as_nl$ac_script"
4965     done
4966     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4967     { ac_script=; unset ac_script;}
4968     if test -z "$SED"; then
4969  ac_path_SED_found=false
4970  # Loop through the user's path and test for each of PROGNAME-LIST
4971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972for as_dir in $PATH
4973do
4974  IFS=$as_save_IFS
4975  test -z "$as_dir" && as_dir=.
4976    for ac_prog in sed gsed; do
4977    for ac_exec_ext in '' $ac_executable_extensions; do
4978      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4979      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4980# Check for GNU ac_path_SED and select it if it is found.
4981  # Check for GNU $ac_path_SED
4982case `"$ac_path_SED" --version 2>&1` in
4983*GNU*)
4984  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4985*)
4986  ac_count=0
4987  $as_echo_n 0123456789 >"conftest.in"
4988  while :
4989  do
4990    cat "conftest.in" "conftest.in" >"conftest.tmp"
4991    mv "conftest.tmp" "conftest.in"
4992    cp "conftest.in" "conftest.nl"
4993    $as_echo '' >> "conftest.nl"
4994    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4995    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996    as_fn_arith $ac_count + 1 && ac_count=$as_val
4997    if test $ac_count -gt ${ac_path_SED_max-0}; then
4998      # Best one so far, save it but keep looking for a better one
4999      ac_cv_path_SED="$ac_path_SED"
5000      ac_path_SED_max=$ac_count
5001    fi
5002    # 10*(2^10) chars as input seems more than enough
5003    test $ac_count -gt 10 && break
5004  done
5005  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006esac
5007
5008      $ac_path_SED_found && break 3
5009    done
5010  done
5011  done
5012IFS=$as_save_IFS
5013  if test -z "$ac_cv_path_SED"; then
5014    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5015  fi
5016else
5017  ac_cv_path_SED=$SED
5018fi
5019
5020fi
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5022$as_echo "$ac_cv_path_SED" >&6; }
5023 SED="$ac_cv_path_SED"
5024  rm -f conftest.sed
5025
5026test -z "$SED" && SED=sed
5027Xsed="$SED -e 1s/^X//"
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5040$as_echo_n "checking for fgrep... " >&6; }
5041if test "${ac_cv_path_FGREP+set}" = set; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5045   then ac_cv_path_FGREP="$GREP -F"
5046   else
5047     if test -z "$FGREP"; then
5048  ac_path_FGREP_found=false
5049  # Loop through the user's path and test for each of PROGNAME-LIST
5050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052do
5053  IFS=$as_save_IFS
5054  test -z "$as_dir" && as_dir=.
5055    for ac_prog in fgrep; do
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5058      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5059# Check for GNU ac_path_FGREP and select it if it is found.
5060  # Check for GNU $ac_path_FGREP
5061case `"$ac_path_FGREP" --version 2>&1` in
5062*GNU*)
5063  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5064*)
5065  ac_count=0
5066  $as_echo_n 0123456789 >"conftest.in"
5067  while :
5068  do
5069    cat "conftest.in" "conftest.in" >"conftest.tmp"
5070    mv "conftest.tmp" "conftest.in"
5071    cp "conftest.in" "conftest.nl"
5072    $as_echo 'FGREP' >> "conftest.nl"
5073    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075    as_fn_arith $ac_count + 1 && ac_count=$as_val
5076    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5077      # Best one so far, save it but keep looking for a better one
5078      ac_cv_path_FGREP="$ac_path_FGREP"
5079      ac_path_FGREP_max=$ac_count
5080    fi
5081    # 10*(2^10) chars as input seems more than enough
5082    test $ac_count -gt 10 && break
5083  done
5084  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085esac
5086
5087      $ac_path_FGREP_found && break 3
5088    done
5089  done
5090  done
5091IFS=$as_save_IFS
5092  if test -z "$ac_cv_path_FGREP"; then
5093    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094  fi
5095else
5096  ac_cv_path_FGREP=$FGREP
5097fi
5098
5099   fi
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5102$as_echo "$ac_cv_path_FGREP" >&6; }
5103 FGREP="$ac_cv_path_FGREP"
5104
5105
5106test -z "$GREP" && GREP=grep
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126# Check whether --with-gnu-ld was given.
5127if test "${with_gnu_ld+set}" = set; then :
5128  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5129else
5130  with_gnu_ld=no
5131fi
5132
5133ac_prog=ld
5134if test "$GCC" = yes; then
5135  # Check if gcc -print-prog-name=ld gives a path.
5136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5137$as_echo_n "checking for ld used by $CC... " >&6; }
5138  case $host in
5139  *-*-mingw*)
5140    # gcc leaves a trailing carriage return which upsets mingw
5141    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5142  *)
5143    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5144  esac
5145  case $ac_prog in
5146    # Accept absolute paths.
5147    [\\/]* | ?:[\\/]*)
5148      re_direlt='/[^/][^/]*/\.\./'
5149      # Canonicalize the pathname of ld
5150      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5151      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5152	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5153      done
5154      test -z "$LD" && LD="$ac_prog"
5155      ;;
5156  "")
5157    # If it fails, then pretend we aren't using GCC.
5158    ac_prog=ld
5159    ;;
5160  *)
5161    # If it is relative, then search for the first ld in PATH.
5162    with_gnu_ld=unknown
5163    ;;
5164  esac
5165elif test "$with_gnu_ld" = yes; then
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5167$as_echo_n "checking for GNU ld... " >&6; }
5168else
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5170$as_echo_n "checking for non-GNU ld... " >&6; }
5171fi
5172if test "${lt_cv_path_LD+set}" = set; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if test -z "$LD"; then
5176  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177  for ac_dir in $PATH; do
5178    IFS="$lt_save_ifs"
5179    test -z "$ac_dir" && ac_dir=.
5180    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181      lt_cv_path_LD="$ac_dir/$ac_prog"
5182      # Check to see if the program is GNU ld.  I'd rather use --version,
5183      # but apparently some variants of GNU ld only accept -v.
5184      # Break only if it was the GNU/non-GNU ld that we prefer.
5185      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5186      *GNU* | *'with BFD'*)
5187	test "$with_gnu_ld" != no && break
5188	;;
5189      *)
5190	test "$with_gnu_ld" != yes && break
5191	;;
5192      esac
5193    fi
5194  done
5195  IFS="$lt_save_ifs"
5196else
5197  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5198fi
5199fi
5200
5201LD="$lt_cv_path_LD"
5202if test -n "$LD"; then
5203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5204$as_echo "$LD" >&6; }
5205else
5206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
5208fi
5209test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5211$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5212if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5213  $as_echo_n "(cached) " >&6
5214else
5215  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5216case `$LD -v 2>&1 </dev/null` in
5217*GNU* | *'with BFD'*)
5218  lt_cv_prog_gnu_ld=yes
5219  ;;
5220*)
5221  lt_cv_prog_gnu_ld=no
5222  ;;
5223esac
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5226$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5227with_gnu_ld=$lt_cv_prog_gnu_ld
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5238$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5239if test "${lt_cv_path_NM+set}" = set; then :
5240  $as_echo_n "(cached) " >&6
5241else
5242  if test -n "$NM"; then
5243  # Let the user override the test.
5244  lt_cv_path_NM="$NM"
5245else
5246  lt_nm_to_check="${ac_tool_prefix}nm"
5247  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5248    lt_nm_to_check="$lt_nm_to_check nm"
5249  fi
5250  for lt_tmp_nm in $lt_nm_to_check; do
5251    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5252    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5253      IFS="$lt_save_ifs"
5254      test -z "$ac_dir" && ac_dir=.
5255      tmp_nm="$ac_dir/$lt_tmp_nm"
5256      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5257	# Check to see if the nm accepts a BSD-compat flag.
5258	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5259	#   nm: unknown option "B" ignored
5260	# Tru64's nm complains that /dev/null is an invalid object file
5261	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5262	*/dev/null* | *'Invalid file or object type'*)
5263	  lt_cv_path_NM="$tmp_nm -B"
5264	  break
5265	  ;;
5266	*)
5267	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5268	  */dev/null*)
5269	    lt_cv_path_NM="$tmp_nm -p"
5270	    break
5271	    ;;
5272	  *)
5273	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5274	    continue # so that we can try to find one that supports BSD flags
5275	    ;;
5276	  esac
5277	  ;;
5278	esac
5279      fi
5280    done
5281    IFS="$lt_save_ifs"
5282  done
5283  : ${lt_cv_path_NM=no}
5284fi
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5287$as_echo "$lt_cv_path_NM" >&6; }
5288if test "$lt_cv_path_NM" != "no"; then
5289  NM="$lt_cv_path_NM"
5290else
5291  # Didn't find any BSD compatible name lister, look for dumpbin.
5292  if test -n "$ac_tool_prefix"; then
5293  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5294  do
5295    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298$as_echo_n "checking for $ac_word... " >&6; }
5299if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  if test -n "$DUMPBIN"; then
5303  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308  IFS=$as_save_IFS
5309  test -z "$as_dir" && as_dir=.
5310    for ac_exec_ext in '' $ac_executable_extensions; do
5311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314    break 2
5315  fi
5316done
5317  done
5318IFS=$as_save_IFS
5319
5320fi
5321fi
5322DUMPBIN=$ac_cv_prog_DUMPBIN
5323if test -n "$DUMPBIN"; then
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5325$as_echo "$DUMPBIN" >&6; }
5326else
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
5329fi
5330
5331
5332    test -n "$DUMPBIN" && break
5333  done
5334fi
5335if test -z "$DUMPBIN"; then
5336  ac_ct_DUMPBIN=$DUMPBIN
5337  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5338do
5339  # Extract the first word of "$ac_prog", so it can be a program name with args.
5340set dummy $ac_prog; ac_word=$2
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342$as_echo_n "checking for $ac_word... " >&6; }
5343if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  if test -n "$ac_ct_DUMPBIN"; then
5347  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352  IFS=$as_save_IFS
5353  test -z "$as_dir" && as_dir=.
5354    for ac_exec_ext in '' $ac_executable_extensions; do
5355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358    break 2
5359  fi
5360done
5361  done
5362IFS=$as_save_IFS
5363
5364fi
5365fi
5366ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5367if test -n "$ac_ct_DUMPBIN"; then
5368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5369$as_echo "$ac_ct_DUMPBIN" >&6; }
5370else
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }
5373fi
5374
5375
5376  test -n "$ac_ct_DUMPBIN" && break
5377done
5378
5379  if test "x$ac_ct_DUMPBIN" = x; then
5380    DUMPBIN=":"
5381  else
5382    case $cross_compiling:$ac_tool_warned in
5383yes:)
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386ac_tool_warned=yes ;;
5387esac
5388    DUMPBIN=$ac_ct_DUMPBIN
5389  fi
5390fi
5391
5392
5393  if test "$DUMPBIN" != ":"; then
5394    NM="$DUMPBIN"
5395  fi
5396fi
5397test -z "$NM" && NM=nm
5398
5399
5400
5401
5402
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5405$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5406if test "${lt_cv_nm_interface+set}" = set; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  lt_cv_nm_interface="BSD nm"
5410  echo "int some_variable = 0;" > conftest.$ac_ext
5411  (eval echo "\"\$as_me:5411: $ac_compile\"" >&5)
5412  (eval "$ac_compile" 2>conftest.err)
5413  cat conftest.err >&5
5414  (eval echo "\"\$as_me:5414: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5415  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5416  cat conftest.err >&5
5417  (eval echo "\"\$as_me:5417: output\"" >&5)
5418  cat conftest.out >&5
5419  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5420    lt_cv_nm_interface="MS dumpbin"
5421  fi
5422  rm -f conftest*
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5425$as_echo "$lt_cv_nm_interface" >&6; }
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5428$as_echo_n "checking whether ln -s works... " >&6; }
5429LN_S=$as_ln_s
5430if test "$LN_S" = "ln -s"; then
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432$as_echo "yes" >&6; }
5433else
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5435$as_echo "no, using $LN_S" >&6; }
5436fi
5437
5438# find the maximum length of command line arguments
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5440$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5441if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444    i=0
5445  teststring="ABCD"
5446
5447  case $build_os in
5448  msdosdjgpp*)
5449    # On DJGPP, this test can blow up pretty badly due to problems in libc
5450    # (any single argument exceeding 2000 bytes causes a buffer overrun
5451    # during glob expansion).  Even if it were fixed, the result of this
5452    # check would be larger than it should be.
5453    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5454    ;;
5455
5456  gnu*)
5457    # Under GNU Hurd, this test is not required because there is
5458    # no limit to the length of command line arguments.
5459    # Libtool will interpret -1 as no limit whatsoever
5460    lt_cv_sys_max_cmd_len=-1;
5461    ;;
5462
5463  cygwin* | mingw* | cegcc*)
5464    # On Win9x/ME, this test blows up -- it succeeds, but takes
5465    # about 5 minutes as the teststring grows exponentially.
5466    # Worse, since 9x/ME are not pre-emptively multitasking,
5467    # you end up with a "frozen" computer, even though with patience
5468    # the test eventually succeeds (with a max line length of 256k).
5469    # Instead, let's just punt: use the minimum linelength reported by
5470    # all of the supported platforms: 8192 (on NT/2K/XP).
5471    lt_cv_sys_max_cmd_len=8192;
5472    ;;
5473
5474  amigaos*)
5475    # On AmigaOS with pdksh, this test takes hours, literally.
5476    # So we just punt and use a minimum line length of 8192.
5477    lt_cv_sys_max_cmd_len=8192;
5478    ;;
5479
5480  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5481    # This has been around since 386BSD, at least.  Likely further.
5482    if test -x /sbin/sysctl; then
5483      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5484    elif test -x /usr/sbin/sysctl; then
5485      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5486    else
5487      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5488    fi
5489    # And add a safety zone
5490    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5491    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5492    ;;
5493
5494  interix*)
5495    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5496    lt_cv_sys_max_cmd_len=196608
5497    ;;
5498
5499  osf*)
5500    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5501    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5502    # nice to cause kernel panics so lets avoid the loop below.
5503    # First set a reasonable default.
5504    lt_cv_sys_max_cmd_len=16384
5505    #
5506    if test -x /sbin/sysconfig; then
5507      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5508        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5509      esac
5510    fi
5511    ;;
5512  sco3.2v5*)
5513    lt_cv_sys_max_cmd_len=102400
5514    ;;
5515  sysv5* | sco5v6* | sysv4.2uw2*)
5516    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5517    if test -n "$kargmax"; then
5518      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5519    else
5520      lt_cv_sys_max_cmd_len=32768
5521    fi
5522    ;;
5523  *)
5524    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5525    if test -n "$lt_cv_sys_max_cmd_len"; then
5526      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5527      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5528    else
5529      # Make teststring a little bigger before we do anything with it.
5530      # a 1K string should be a reasonable start.
5531      for i in 1 2 3 4 5 6 7 8 ; do
5532        teststring=$teststring$teststring
5533      done
5534      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5535      # If test is not a shell built-in, we'll probably end up computing a
5536      # maximum length that is only half of the actual maximum length, but
5537      # we can't tell.
5538      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5539	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5540	      test $i != 17 # 1/2 MB should be enough
5541      do
5542        i=`expr $i + 1`
5543        teststring=$teststring$teststring
5544      done
5545      # Only check the string length outside the loop.
5546      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5547      teststring=
5548      # Add a significant safety factor because C++ compilers can tack on
5549      # massive amounts of additional arguments before passing them to the
5550      # linker.  It appears as though 1/2 is a usable value.
5551      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5552    fi
5553    ;;
5554  esac
5555
5556fi
5557
5558if test -n $lt_cv_sys_max_cmd_len ; then
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5560$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5561else
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5563$as_echo "none" >&6; }
5564fi
5565max_cmd_len=$lt_cv_sys_max_cmd_len
5566
5567
5568
5569
5570
5571
5572: ${CP="cp -f"}
5573: ${MV="mv -f"}
5574: ${RM="rm -f"}
5575
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5577$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5578# Try some XSI features
5579xsi_shell=no
5580( _lt_dummy="a/b/c"
5581  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5582      = c,a/b,, \
5583    && eval 'test $(( 1 + 1 )) -eq 2 \
5584    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5585  && xsi_shell=yes
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5587$as_echo "$xsi_shell" >&6; }
5588
5589
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5591$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5592lt_shell_append=no
5593( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5594    >/dev/null 2>&1 \
5595  && lt_shell_append=yes
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5597$as_echo "$lt_shell_append" >&6; }
5598
5599
5600if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5601  lt_unset=unset
5602else
5603  lt_unset=false
5604fi
5605
5606
5607
5608
5609
5610# test EBCDIC or ASCII
5611case `echo X|tr X '\101'` in
5612 A) # ASCII based system
5613    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5614  lt_SP2NL='tr \040 \012'
5615  lt_NL2SP='tr \015\012 \040\040'
5616  ;;
5617 *) # EBCDIC based system
5618  lt_SP2NL='tr \100 \n'
5619  lt_NL2SP='tr \r\n \100\100'
5620  ;;
5621esac
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5632$as_echo_n "checking for $LD option to reload object files... " >&6; }
5633if test "${lt_cv_ld_reload_flag+set}" = set; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  lt_cv_ld_reload_flag='-r'
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5639$as_echo "$lt_cv_ld_reload_flag" >&6; }
5640reload_flag=$lt_cv_ld_reload_flag
5641case $reload_flag in
5642"" | " "*) ;;
5643*) reload_flag=" $reload_flag" ;;
5644esac
5645reload_cmds='$LD$reload_flag -o $output$reload_objs'
5646case $host_os in
5647  darwin*)
5648    if test "$GCC" = yes; then
5649      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5650    else
5651      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5652    fi
5653    ;;
5654esac
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664if test -n "$ac_tool_prefix"; then
5665  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5666set dummy ${ac_tool_prefix}objdump; ac_word=$2
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668$as_echo_n "checking for $ac_word... " >&6; }
5669if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  if test -n "$OBJDUMP"; then
5673  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678  IFS=$as_save_IFS
5679  test -z "$as_dir" && as_dir=.
5680    for ac_exec_ext in '' $ac_executable_extensions; do
5681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684    break 2
5685  fi
5686done
5687  done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692OBJDUMP=$ac_cv_prog_OBJDUMP
5693if test -n "$OBJDUMP"; then
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5695$as_echo "$OBJDUMP" >&6; }
5696else
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
5699fi
5700
5701
5702fi
5703if test -z "$ac_cv_prog_OBJDUMP"; then
5704  ac_ct_OBJDUMP=$OBJDUMP
5705  # Extract the first word of "objdump", so it can be a program name with args.
5706set dummy objdump; ac_word=$2
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708$as_echo_n "checking for $ac_word... " >&6; }
5709if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5710  $as_echo_n "(cached) " >&6
5711else
5712  if test -n "$ac_ct_OBJDUMP"; then
5713  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718  IFS=$as_save_IFS
5719  test -z "$as_dir" && as_dir=.
5720    for ac_exec_ext in '' $ac_executable_extensions; do
5721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724    break 2
5725  fi
5726done
5727  done
5728IFS=$as_save_IFS
5729
5730fi
5731fi
5732ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5733if test -n "$ac_ct_OBJDUMP"; then
5734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5735$as_echo "$ac_ct_OBJDUMP" >&6; }
5736else
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739fi
5740
5741  if test "x$ac_ct_OBJDUMP" = x; then
5742    OBJDUMP="false"
5743  else
5744    case $cross_compiling:$ac_tool_warned in
5745yes:)
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748ac_tool_warned=yes ;;
5749esac
5750    OBJDUMP=$ac_ct_OBJDUMP
5751  fi
5752else
5753  OBJDUMP="$ac_cv_prog_OBJDUMP"
5754fi
5755
5756test -z "$OBJDUMP" && OBJDUMP=objdump
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5767$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5768if test "${lt_cv_deplibs_check_method+set}" = set; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771  lt_cv_file_magic_cmd='$MAGIC_CMD'
5772lt_cv_file_magic_test_file=
5773lt_cv_deplibs_check_method='unknown'
5774# Need to set the preceding variable on all platforms that support
5775# interlibrary dependencies.
5776# 'none' -- dependencies not supported.
5777# `unknown' -- same as none, but documents that we really don't know.
5778# 'pass_all' -- all dependencies passed with no checks.
5779# 'test_compile' -- check by making test program.
5780# 'file_magic [[regex]]' -- check by looking for files in library path
5781# which responds to the $file_magic_cmd with a given extended regex.
5782# If you have `file' or equivalent on your system and you're not sure
5783# whether `pass_all' will *always* work, you probably want this one.
5784
5785case $host_os in
5786aix[4-9]*)
5787  lt_cv_deplibs_check_method=pass_all
5788  ;;
5789
5790beos*)
5791  lt_cv_deplibs_check_method=pass_all
5792  ;;
5793
5794bsdi[45]*)
5795  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5796  lt_cv_file_magic_cmd='/usr/bin/file -L'
5797  lt_cv_file_magic_test_file=/shlib/libc.so
5798  ;;
5799
5800cygwin*)
5801  # func_win32_libid is a shell function defined in ltmain.sh
5802  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5803  lt_cv_file_magic_cmd='func_win32_libid'
5804  ;;
5805
5806mingw* | pw32*)
5807  # Base MSYS/MinGW do not provide the 'file' command needed by
5808  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5809  # unless we find 'file', for example because we are cross-compiling.
5810  if ( file / ) >/dev/null 2>&1; then
5811    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5812    lt_cv_file_magic_cmd='func_win32_libid'
5813  else
5814    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5815    lt_cv_file_magic_cmd='$OBJDUMP -f'
5816  fi
5817  ;;
5818
5819cegcc)
5820  # use the weaker test based on 'objdump'. See mingw*.
5821  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5822  lt_cv_file_magic_cmd='$OBJDUMP -f'
5823  ;;
5824
5825darwin* | rhapsody*)
5826  lt_cv_deplibs_check_method=pass_all
5827  ;;
5828
5829freebsd* | dragonfly*)
5830  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5831    case $host_cpu in
5832    i*86 )
5833      # Not sure whether the presence of OpenBSD here was a mistake.
5834      # Let's accept both of them until this is cleared up.
5835      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5836      lt_cv_file_magic_cmd=/usr/bin/file
5837      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5838      ;;
5839    esac
5840  else
5841    lt_cv_deplibs_check_method=pass_all
5842  fi
5843  ;;
5844
5845gnu*)
5846  lt_cv_deplibs_check_method=pass_all
5847  ;;
5848
5849hpux10.20* | hpux11*)
5850  lt_cv_file_magic_cmd=/usr/bin/file
5851  case $host_cpu in
5852  ia64*)
5853    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5854    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5855    ;;
5856  hppa*64*)
5857    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]'
5858    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5859    ;;
5860  *)
5861    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5862    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5863    ;;
5864  esac
5865  ;;
5866
5867interix[3-9]*)
5868  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5869  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5870  ;;
5871
5872irix5* | irix6* | nonstopux*)
5873  case $LD in
5874  *-32|*"-32 ") libmagic=32-bit;;
5875  *-n32|*"-n32 ") libmagic=N32;;
5876  *-64|*"-64 ") libmagic=64-bit;;
5877  *) libmagic=never-match;;
5878  esac
5879  lt_cv_deplibs_check_method=pass_all
5880  ;;
5881
5882# This must be Linux ELF.
5883linux* | k*bsd*-gnu | kopensolaris*-gnu)
5884  lt_cv_deplibs_check_method=pass_all
5885  ;;
5886
5887netbsd* | netbsdelf*-gnu)
5888  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5889    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5890  else
5891    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5892  fi
5893  ;;
5894
5895newos6*)
5896  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5897  lt_cv_file_magic_cmd=/usr/bin/file
5898  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5899  ;;
5900
5901*nto* | *qnx*)
5902  lt_cv_deplibs_check_method=pass_all
5903  ;;
5904
5905openbsd*)
5906  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5907    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5908  else
5909    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5910  fi
5911  ;;
5912
5913osf3* | osf4* | osf5*)
5914  lt_cv_deplibs_check_method=pass_all
5915  ;;
5916
5917rdos*)
5918  lt_cv_deplibs_check_method=pass_all
5919  ;;
5920
5921solaris*)
5922  lt_cv_deplibs_check_method=pass_all
5923  ;;
5924
5925sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5926  lt_cv_deplibs_check_method=pass_all
5927  ;;
5928
5929sysv4 | sysv4.3*)
5930  case $host_vendor in
5931  motorola)
5932    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]'
5933    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5934    ;;
5935  ncr)
5936    lt_cv_deplibs_check_method=pass_all
5937    ;;
5938  sequent)
5939    lt_cv_file_magic_cmd='/bin/file'
5940    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5941    ;;
5942  sni)
5943    lt_cv_file_magic_cmd='/bin/file'
5944    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5945    lt_cv_file_magic_test_file=/lib/libc.so
5946    ;;
5947  siemens)
5948    lt_cv_deplibs_check_method=pass_all
5949    ;;
5950  pc)
5951    lt_cv_deplibs_check_method=pass_all
5952    ;;
5953  esac
5954  ;;
5955
5956tpf*)
5957  lt_cv_deplibs_check_method=pass_all
5958  ;;
5959esac
5960
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5963$as_echo "$lt_cv_deplibs_check_method" >&6; }
5964file_magic_cmd=$lt_cv_file_magic_cmd
5965deplibs_check_method=$lt_cv_deplibs_check_method
5966test -z "$deplibs_check_method" && deplibs_check_method=unknown
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979if test -n "$ac_tool_prefix"; then
5980  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5981set dummy ${ac_tool_prefix}ar; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if test "${ac_cv_prog_AR+set}" = set; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  if test -n "$AR"; then
5988  ac_cv_prog_AR="$AR" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_exec_ext in '' $ac_executable_extensions; do
5996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997    ac_cv_prog_AR="${ac_tool_prefix}ar"
5998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002  done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007AR=$ac_cv_prog_AR
6008if test -n "$AR"; then
6009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6010$as_echo "$AR" >&6; }
6011else
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016
6017fi
6018if test -z "$ac_cv_prog_AR"; then
6019  ac_ct_AR=$AR
6020  # Extract the first word of "ar", so it can be a program name with args.
6021set dummy ar; ac_word=$2
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
6024if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  if test -n "$ac_ct_AR"; then
6028  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033  IFS=$as_save_IFS
6034  test -z "$as_dir" && as_dir=.
6035    for ac_exec_ext in '' $ac_executable_extensions; do
6036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037    ac_cv_prog_ac_ct_AR="ar"
6038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039    break 2
6040  fi
6041done
6042  done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047ac_ct_AR=$ac_cv_prog_ac_ct_AR
6048if test -n "$ac_ct_AR"; then
6049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6050$as_echo "$ac_ct_AR" >&6; }
6051else
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056  if test "x$ac_ct_AR" = x; then
6057    AR="false"
6058  else
6059    case $cross_compiling:$ac_tool_warned in
6060yes:)
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063ac_tool_warned=yes ;;
6064esac
6065    AR=$ac_ct_AR
6066  fi
6067else
6068  AR="$ac_cv_prog_AR"
6069fi
6070
6071test -z "$AR" && AR=ar
6072test -z "$AR_FLAGS" && AR_FLAGS=cru
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084if test -n "$ac_tool_prefix"; then
6085  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6086set dummy ${ac_tool_prefix}strip; ac_word=$2
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088$as_echo_n "checking for $ac_word... " >&6; }
6089if test "${ac_cv_prog_STRIP+set}" = set; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  if test -n "$STRIP"; then
6093  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098  IFS=$as_save_IFS
6099  test -z "$as_dir" && as_dir=.
6100    for ac_exec_ext in '' $ac_executable_extensions; do
6101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104    break 2
6105  fi
6106done
6107  done
6108IFS=$as_save_IFS
6109
6110fi
6111fi
6112STRIP=$ac_cv_prog_STRIP
6113if test -n "$STRIP"; then
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6115$as_echo "$STRIP" >&6; }
6116else
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118$as_echo "no" >&6; }
6119fi
6120
6121
6122fi
6123if test -z "$ac_cv_prog_STRIP"; then
6124  ac_ct_STRIP=$STRIP
6125  # Extract the first word of "strip", so it can be a program name with args.
6126set dummy strip; ac_word=$2
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128$as_echo_n "checking for $ac_word... " >&6; }
6129if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$ac_ct_STRIP"; then
6133  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  test -z "$as_dir" && as_dir=.
6140    for ac_exec_ext in '' $ac_executable_extensions; do
6141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142    ac_cv_prog_ac_ct_STRIP="strip"
6143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144    break 2
6145  fi
6146done
6147  done
6148IFS=$as_save_IFS
6149
6150fi
6151fi
6152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6153if test -n "$ac_ct_STRIP"; then
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6155$as_echo "$ac_ct_STRIP" >&6; }
6156else
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158$as_echo "no" >&6; }
6159fi
6160
6161  if test "x$ac_ct_STRIP" = x; then
6162    STRIP=":"
6163  else
6164    case $cross_compiling:$ac_tool_warned in
6165yes:)
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168ac_tool_warned=yes ;;
6169esac
6170    STRIP=$ac_ct_STRIP
6171  fi
6172else
6173  STRIP="$ac_cv_prog_STRIP"
6174fi
6175
6176test -z "$STRIP" && STRIP=:
6177
6178
6179
6180
6181
6182
6183if test -n "$ac_tool_prefix"; then
6184  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6185set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187$as_echo_n "checking for $ac_word... " >&6; }
6188if test "${ac_cv_prog_RANLIB+set}" = set; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  if test -n "$RANLIB"; then
6192  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197  IFS=$as_save_IFS
6198  test -z "$as_dir" && as_dir=.
6199    for ac_exec_ext in '' $ac_executable_extensions; do
6200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203    break 2
6204  fi
6205done
6206  done
6207IFS=$as_save_IFS
6208
6209fi
6210fi
6211RANLIB=$ac_cv_prog_RANLIB
6212if test -n "$RANLIB"; then
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6214$as_echo "$RANLIB" >&6; }
6215else
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217$as_echo "no" >&6; }
6218fi
6219
6220
6221fi
6222if test -z "$ac_cv_prog_RANLIB"; then
6223  ac_ct_RANLIB=$RANLIB
6224  # Extract the first word of "ranlib", so it can be a program name with args.
6225set dummy ranlib; ac_word=$2
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  if test -n "$ac_ct_RANLIB"; then
6232  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237  IFS=$as_save_IFS
6238  test -z "$as_dir" && as_dir=.
6239    for ac_exec_ext in '' $ac_executable_extensions; do
6240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241    ac_cv_prog_ac_ct_RANLIB="ranlib"
6242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243    break 2
6244  fi
6245done
6246  done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6252if test -n "$ac_ct_RANLIB"; then
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6254$as_echo "$ac_ct_RANLIB" >&6; }
6255else
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260  if test "x$ac_ct_RANLIB" = x; then
6261    RANLIB=":"
6262  else
6263    case $cross_compiling:$ac_tool_warned in
6264yes:)
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267ac_tool_warned=yes ;;
6268esac
6269    RANLIB=$ac_ct_RANLIB
6270  fi
6271else
6272  RANLIB="$ac_cv_prog_RANLIB"
6273fi
6274
6275test -z "$RANLIB" && RANLIB=:
6276
6277
6278
6279
6280
6281
6282# Determine commands to create old-style static archives.
6283old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6284old_postinstall_cmds='chmod 644 $oldlib'
6285old_postuninstall_cmds=
6286
6287if test -n "$RANLIB"; then
6288  case $host_os in
6289  openbsd*)
6290    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6291    ;;
6292  *)
6293    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6294    ;;
6295  esac
6296  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6297fi
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332# If no C compiler was specified, use CC.
6333LTCC=${LTCC-"$CC"}
6334
6335# If no C compiler flags were specified, use CFLAGS.
6336LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6337
6338# Allow CC to be a program name with arguments.
6339compiler=$CC
6340
6341
6342# Check for command to grab the raw symbol name followed by C symbol from nm.
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6344$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6345if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348
6349# These are sane defaults that work on at least a few old systems.
6350# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6351
6352# Character class describing NM global symbol codes.
6353symcode='[BCDEGRST]'
6354
6355# Regexp to match symbols that can be accessed directly from C.
6356sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6357
6358# Define system-specific variables.
6359case $host_os in
6360aix*)
6361  symcode='[BCDT]'
6362  ;;
6363cygwin* | mingw* | pw32* | cegcc*)
6364  symcode='[ABCDGISTW]'
6365  ;;
6366hpux*)
6367  if test "$host_cpu" = ia64; then
6368    symcode='[ABCDEGRST]'
6369  fi
6370  ;;
6371irix* | nonstopux*)
6372  symcode='[BCDEGRST]'
6373  ;;
6374osf*)
6375  symcode='[BCDEGQRST]'
6376  ;;
6377solaris*)
6378  symcode='[BDRT]'
6379  ;;
6380sco3.2v5*)
6381  symcode='[DT]'
6382  ;;
6383sysv4.2uw2*)
6384  symcode='[DT]'
6385  ;;
6386sysv5* | sco5v6* | unixware* | OpenUNIX*)
6387  symcode='[ABDT]'
6388  ;;
6389sysv4)
6390  symcode='[DFNSTU]'
6391  ;;
6392esac
6393
6394# If we're using GNU nm, then use its standard symbol codes.
6395case `$NM -V 2>&1` in
6396*GNU* | *'with BFD'*)
6397  symcode='[ABCDGIRSTW]' ;;
6398esac
6399
6400# Transform an extracted symbol line into a proper C declaration.
6401# Some systems (esp. on ia64) link data and code symbols differently,
6402# so use this general approach.
6403lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6404
6405# Transform an extracted symbol line into symbol name and symbol address
6406lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6407lt_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'"
6408
6409# Handle CRLF in mingw tool chain
6410opt_cr=
6411case $build_os in
6412mingw*)
6413  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6414  ;;
6415esac
6416
6417# Try without a prefix underscore, then with it.
6418for ac_symprfx in "" "_"; do
6419
6420  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6421  symxfrm="\\1 $ac_symprfx\\2 \\2"
6422
6423  # Write the raw and C identifiers.
6424  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6425    # Fake it for dumpbin and say T for any non-static function
6426    # and D for any global variable.
6427    # Also find C++ and __fastcall symbols from MSVC++,
6428    # which start with @ or ?.
6429    lt_cv_sys_global_symbol_pipe="$AWK '"\
6430"     {last_section=section; section=\$ 3};"\
6431"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6432"     \$ 0!~/External *\|/{next};"\
6433"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6434"     {if(hide[section]) next};"\
6435"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6436"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6437"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6438"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6439"     ' prfx=^$ac_symprfx"
6440  else
6441    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6442  fi
6443
6444  # Check to see that the pipe works correctly.
6445  pipe_works=no
6446
6447  rm -f conftest*
6448  cat > conftest.$ac_ext <<_LT_EOF
6449#ifdef __cplusplus
6450extern "C" {
6451#endif
6452char nm_test_var;
6453void nm_test_func(void);
6454void nm_test_func(void){}
6455#ifdef __cplusplus
6456}
6457#endif
6458int main(){nm_test_var='a';nm_test_func();return(0);}
6459_LT_EOF
6460
6461  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462  (eval $ac_compile) 2>&5
6463  ac_status=$?
6464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465  test $ac_status = 0; }; then
6466    # Now try to grab the symbols.
6467    nlist=conftest.nm
6468    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6469  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6470  ac_status=$?
6471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472  test $ac_status = 0; } && test -s "$nlist"; then
6473      # Try sorting and uniquifying the output.
6474      if sort "$nlist" | uniq > "$nlist"T; then
6475	mv -f "$nlist"T "$nlist"
6476      else
6477	rm -f "$nlist"T
6478      fi
6479
6480      # Make sure that we snagged all the symbols we need.
6481      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6482	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6483	  cat <<_LT_EOF > conftest.$ac_ext
6484#ifdef __cplusplus
6485extern "C" {
6486#endif
6487
6488_LT_EOF
6489	  # Now generate the symbol file.
6490	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6491
6492	  cat <<_LT_EOF >> conftest.$ac_ext
6493
6494/* The mapping between symbol names and symbols.  */
6495const struct {
6496  const char *name;
6497  void       *address;
6498}
6499lt__PROGRAM__LTX_preloaded_symbols[] =
6500{
6501  { "@PROGRAM@", (void *) 0 },
6502_LT_EOF
6503	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6504	  cat <<\_LT_EOF >> conftest.$ac_ext
6505  {0, (void *) 0}
6506};
6507
6508/* This works around a problem in FreeBSD linker */
6509#ifdef FREEBSD_WORKAROUND
6510static const void *lt_preloaded_setup() {
6511  return lt__PROGRAM__LTX_preloaded_symbols;
6512}
6513#endif
6514
6515#ifdef __cplusplus
6516}
6517#endif
6518_LT_EOF
6519	  # Now try linking the two files.
6520	  mv conftest.$ac_objext conftstm.$ac_objext
6521	  lt_save_LIBS="$LIBS"
6522	  lt_save_CFLAGS="$CFLAGS"
6523	  LIBS="conftstm.$ac_objext"
6524	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6525	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6526  (eval $ac_link) 2>&5
6527  ac_status=$?
6528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6530	    pipe_works=yes
6531	  fi
6532	  LIBS="$lt_save_LIBS"
6533	  CFLAGS="$lt_save_CFLAGS"
6534	else
6535	  echo "cannot find nm_test_func in $nlist" >&5
6536	fi
6537      else
6538	echo "cannot find nm_test_var in $nlist" >&5
6539      fi
6540    else
6541      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6542    fi
6543  else
6544    echo "$progname: failed program was:" >&5
6545    cat conftest.$ac_ext >&5
6546  fi
6547  rm -rf conftest* conftst*
6548
6549  # Do not use the global_symbol_pipe unless it works.
6550  if test "$pipe_works" = yes; then
6551    break
6552  else
6553    lt_cv_sys_global_symbol_pipe=
6554  fi
6555done
6556
6557fi
6558
6559if test -z "$lt_cv_sys_global_symbol_pipe"; then
6560  lt_cv_sys_global_symbol_to_cdecl=
6561fi
6562if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6564$as_echo "failed" >&6; }
6565else
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6567$as_echo "ok" >&6; }
6568fi
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591# Check whether --enable-libtool-lock was given.
6592if test "${enable_libtool_lock+set}" = set; then :
6593  enableval=$enable_libtool_lock;
6594fi
6595
6596test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6597
6598# Some flags need to be propagated to the compiler or linker for good
6599# libtool support.
6600case $host in
6601ia64-*-hpux*)
6602  # Find out which ABI we are using.
6603  echo 'int i;' > conftest.$ac_ext
6604  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605  (eval $ac_compile) 2>&5
6606  ac_status=$?
6607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608  test $ac_status = 0; }; then
6609    case `/usr/bin/file conftest.$ac_objext` in
6610      *ELF-32*)
6611	HPUX_IA64_MODE="32"
6612	;;
6613      *ELF-64*)
6614	HPUX_IA64_MODE="64"
6615	;;
6616    esac
6617  fi
6618  rm -rf conftest*
6619  ;;
6620*-*-irix6*)
6621  # Find out which ABI we are using.
6622  echo '#line 6622 "configure"' > conftest.$ac_ext
6623  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6624  (eval $ac_compile) 2>&5
6625  ac_status=$?
6626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627  test $ac_status = 0; }; then
6628    if test "$lt_cv_prog_gnu_ld" = yes; then
6629      case `/usr/bin/file conftest.$ac_objext` in
6630	*32-bit*)
6631	  LD="${LD-ld} -melf32bsmip"
6632	  ;;
6633	*N32*)
6634	  LD="${LD-ld} -melf32bmipn32"
6635	  ;;
6636	*64-bit*)
6637	  LD="${LD-ld} -melf64bmip"
6638	;;
6639      esac
6640    else
6641      case `/usr/bin/file conftest.$ac_objext` in
6642	*32-bit*)
6643	  LD="${LD-ld} -32"
6644	  ;;
6645	*N32*)
6646	  LD="${LD-ld} -n32"
6647	  ;;
6648	*64-bit*)
6649	  LD="${LD-ld} -64"
6650	  ;;
6651      esac
6652    fi
6653  fi
6654  rm -rf conftest*
6655  ;;
6656
6657x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6658s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6659  # Find out which ABI we are using.
6660  echo 'int i;' > conftest.$ac_ext
6661  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662  (eval $ac_compile) 2>&5
6663  ac_status=$?
6664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665  test $ac_status = 0; }; then
6666    case `/usr/bin/file conftest.o` in
6667      *32-bit*)
6668	case $host in
6669	  x86_64-*kfreebsd*-gnu)
6670	    LD="${LD-ld} -m elf_i386_fbsd"
6671	    ;;
6672	  x86_64-*linux*)
6673	    LD="${LD-ld} -m elf_i386"
6674	    ;;
6675	  ppc64-*linux*|powerpc64-*linux*)
6676	    LD="${LD-ld} -m elf32ppclinux"
6677	    ;;
6678	  s390x-*linux*)
6679	    LD="${LD-ld} -m elf_s390"
6680	    ;;
6681	  sparc64-*linux*)
6682	    LD="${LD-ld} -m elf32_sparc"
6683	    ;;
6684	esac
6685	;;
6686      *64-bit*)
6687	case $host in
6688	  x86_64-*kfreebsd*-gnu)
6689	    LD="${LD-ld} -m elf_x86_64_fbsd"
6690	    ;;
6691	  x86_64-*linux*)
6692	    LD="${LD-ld} -m elf_x86_64"
6693	    ;;
6694	  ppc*-*linux*|powerpc*-*linux*)
6695	    LD="${LD-ld} -m elf64ppc"
6696	    ;;
6697	  s390*-*linux*|s390*-*tpf*)
6698	    LD="${LD-ld} -m elf64_s390"
6699	    ;;
6700	  sparc*-*linux*)
6701	    LD="${LD-ld} -m elf64_sparc"
6702	    ;;
6703	esac
6704	;;
6705    esac
6706  fi
6707  rm -rf conftest*
6708  ;;
6709
6710*-*-sco3.2v5*)
6711  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6712  SAVE_CFLAGS="$CFLAGS"
6713  CFLAGS="$CFLAGS -belf"
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6715$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6716if test "${lt_cv_cc_needs_belf+set}" = set; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  ac_ext=c
6720ac_cpp='$CPP $CPPFLAGS'
6721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723ac_compiler_gnu=$ac_cv_c_compiler_gnu
6724
6725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727
6728int
6729main ()
6730{
6731
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_link "$LINENO"; then :
6737  lt_cv_cc_needs_belf=yes
6738else
6739  lt_cv_cc_needs_belf=no
6740fi
6741rm -f core conftest.err conftest.$ac_objext \
6742    conftest$ac_exeext conftest.$ac_ext
6743     ac_ext=c
6744ac_cpp='$CPP $CPPFLAGS'
6745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747ac_compiler_gnu=$ac_cv_c_compiler_gnu
6748
6749fi
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6751$as_echo "$lt_cv_cc_needs_belf" >&6; }
6752  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6753    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6754    CFLAGS="$SAVE_CFLAGS"
6755  fi
6756  ;;
6757sparc*-*solaris*)
6758  # Find out which ABI we are using.
6759  echo 'int i;' > conftest.$ac_ext
6760  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6761  (eval $ac_compile) 2>&5
6762  ac_status=$?
6763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6764  test $ac_status = 0; }; then
6765    case `/usr/bin/file conftest.o` in
6766    *64-bit*)
6767      case $lt_cv_prog_gnu_ld in
6768      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6769      *)
6770	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6771	  LD="${LD-ld} -64"
6772	fi
6773	;;
6774      esac
6775      ;;
6776    esac
6777  fi
6778  rm -rf conftest*
6779  ;;
6780esac
6781
6782need_locks="$enable_libtool_lock"
6783
6784
6785  case $host_os in
6786    rhapsody* | darwin*)
6787    if test -n "$ac_tool_prefix"; then
6788  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6789set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791$as_echo_n "checking for $ac_word... " >&6; }
6792if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  if test -n "$DSYMUTIL"; then
6796  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803    for ac_exec_ext in '' $ac_executable_extensions; do
6804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810  done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815DSYMUTIL=$ac_cv_prog_DSYMUTIL
6816if test -n "$DSYMUTIL"; then
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6818$as_echo "$DSYMUTIL" >&6; }
6819else
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824
6825fi
6826if test -z "$ac_cv_prog_DSYMUTIL"; then
6827  ac_ct_DSYMUTIL=$DSYMUTIL
6828  # Extract the first word of "dsymutil", so it can be a program name with args.
6829set dummy dsymutil; ac_word=$2
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
6832if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  if test -n "$ac_ct_DSYMUTIL"; then
6836  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843    for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850  done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6856if test -n "$ac_ct_DSYMUTIL"; then
6857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6858$as_echo "$ac_ct_DSYMUTIL" >&6; }
6859else
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864  if test "x$ac_ct_DSYMUTIL" = x; then
6865    DSYMUTIL=":"
6866  else
6867    case $cross_compiling:$ac_tool_warned in
6868yes:)
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871ac_tool_warned=yes ;;
6872esac
6873    DSYMUTIL=$ac_ct_DSYMUTIL
6874  fi
6875else
6876  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6877fi
6878
6879    if test -n "$ac_tool_prefix"; then
6880  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6881set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  if test -n "$NMEDIT"; then
6888  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  test -z "$as_dir" && as_dir=.
6895    for ac_exec_ext in '' $ac_executable_extensions; do
6896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899    break 2
6900  fi
6901done
6902  done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907NMEDIT=$ac_cv_prog_NMEDIT
6908if test -n "$NMEDIT"; then
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6910$as_echo "$NMEDIT" >&6; }
6911else
6912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916
6917fi
6918if test -z "$ac_cv_prog_NMEDIT"; then
6919  ac_ct_NMEDIT=$NMEDIT
6920  # Extract the first word of "nmedit", so it can be a program name with args.
6921set dummy nmedit; ac_word=$2
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923$as_echo_n "checking for $ac_word... " >&6; }
6924if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6925  $as_echo_n "(cached) " >&6
6926else
6927  if test -n "$ac_ct_NMEDIT"; then
6928  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933  IFS=$as_save_IFS
6934  test -z "$as_dir" && as_dir=.
6935    for ac_exec_ext in '' $ac_executable_extensions; do
6936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939    break 2
6940  fi
6941done
6942  done
6943IFS=$as_save_IFS
6944
6945fi
6946fi
6947ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6948if test -n "$ac_ct_NMEDIT"; then
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6950$as_echo "$ac_ct_NMEDIT" >&6; }
6951else
6952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953$as_echo "no" >&6; }
6954fi
6955
6956  if test "x$ac_ct_NMEDIT" = x; then
6957    NMEDIT=":"
6958  else
6959    case $cross_compiling:$ac_tool_warned in
6960yes:)
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963ac_tool_warned=yes ;;
6964esac
6965    NMEDIT=$ac_ct_NMEDIT
6966  fi
6967else
6968  NMEDIT="$ac_cv_prog_NMEDIT"
6969fi
6970
6971    if test -n "$ac_tool_prefix"; then
6972  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6973set dummy ${ac_tool_prefix}lipo; ac_word=$2
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975$as_echo_n "checking for $ac_word... " >&6; }
6976if test "${ac_cv_prog_LIPO+set}" = set; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979  if test -n "$LIPO"; then
6980  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985  IFS=$as_save_IFS
6986  test -z "$as_dir" && as_dir=.
6987    for ac_exec_ext in '' $ac_executable_extensions; do
6988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991    break 2
6992  fi
6993done
6994  done
6995IFS=$as_save_IFS
6996
6997fi
6998fi
6999LIPO=$ac_cv_prog_LIPO
7000if test -n "$LIPO"; then
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7002$as_echo "$LIPO" >&6; }
7003else
7004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006fi
7007
7008
7009fi
7010if test -z "$ac_cv_prog_LIPO"; then
7011  ac_ct_LIPO=$LIPO
7012  # Extract the first word of "lipo", so it can be a program name with args.
7013set dummy lipo; ac_word=$2
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015$as_echo_n "checking for $ac_word... " >&6; }
7016if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7017  $as_echo_n "(cached) " >&6
7018else
7019  if test -n "$ac_ct_LIPO"; then
7020  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025  IFS=$as_save_IFS
7026  test -z "$as_dir" && as_dir=.
7027    for ac_exec_ext in '' $ac_executable_extensions; do
7028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029    ac_cv_prog_ac_ct_LIPO="lipo"
7030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031    break 2
7032  fi
7033done
7034  done
7035IFS=$as_save_IFS
7036
7037fi
7038fi
7039ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7040if test -n "$ac_ct_LIPO"; then
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7042$as_echo "$ac_ct_LIPO" >&6; }
7043else
7044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045$as_echo "no" >&6; }
7046fi
7047
7048  if test "x$ac_ct_LIPO" = x; then
7049    LIPO=":"
7050  else
7051    case $cross_compiling:$ac_tool_warned in
7052yes:)
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055ac_tool_warned=yes ;;
7056esac
7057    LIPO=$ac_ct_LIPO
7058  fi
7059else
7060  LIPO="$ac_cv_prog_LIPO"
7061fi
7062
7063    if test -n "$ac_tool_prefix"; then
7064  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7065set dummy ${ac_tool_prefix}otool; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if test "${ac_cv_prog_OTOOL+set}" = set; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  if test -n "$OTOOL"; then
7072  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077  IFS=$as_save_IFS
7078  test -z "$as_dir" && as_dir=.
7079    for ac_exec_ext in '' $ac_executable_extensions; do
7080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083    break 2
7084  fi
7085done
7086  done
7087IFS=$as_save_IFS
7088
7089fi
7090fi
7091OTOOL=$ac_cv_prog_OTOOL
7092if test -n "$OTOOL"; then
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7094$as_echo "$OTOOL" >&6; }
7095else
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100
7101fi
7102if test -z "$ac_cv_prog_OTOOL"; then
7103  ac_ct_OTOOL=$OTOOL
7104  # Extract the first word of "otool", so it can be a program name with args.
7105set dummy otool; ac_word=$2
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
7108if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  if test -n "$ac_ct_OTOOL"; then
7112  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119    for ac_exec_ext in '' $ac_executable_extensions; do
7120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121    ac_cv_prog_ac_ct_OTOOL="otool"
7122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126  done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7132if test -n "$ac_ct_OTOOL"; then
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7134$as_echo "$ac_ct_OTOOL" >&6; }
7135else
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140  if test "x$ac_ct_OTOOL" = x; then
7141    OTOOL=":"
7142  else
7143    case $cross_compiling:$ac_tool_warned in
7144yes:)
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147ac_tool_warned=yes ;;
7148esac
7149    OTOOL=$ac_ct_OTOOL
7150  fi
7151else
7152  OTOOL="$ac_cv_prog_OTOOL"
7153fi
7154
7155    if test -n "$ac_tool_prefix"; then
7156  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7157set dummy ${ac_tool_prefix}otool64; ac_word=$2
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
7160if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  if test -n "$OTOOL64"; then
7164  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169  IFS=$as_save_IFS
7170  test -z "$as_dir" && as_dir=.
7171    for ac_exec_ext in '' $ac_executable_extensions; do
7172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175    break 2
7176  fi
7177done
7178  done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183OTOOL64=$ac_cv_prog_OTOOL64
7184if test -n "$OTOOL64"; then
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7186$as_echo "$OTOOL64" >&6; }
7187else
7188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192
7193fi
7194if test -z "$ac_cv_prog_OTOOL64"; then
7195  ac_ct_OTOOL64=$OTOOL64
7196  # Extract the first word of "otool64", so it can be a program name with args.
7197set dummy otool64; ac_word=$2
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  if test -n "$ac_ct_OTOOL64"; then
7204  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209  IFS=$as_save_IFS
7210  test -z "$as_dir" && as_dir=.
7211    for ac_exec_ext in '' $ac_executable_extensions; do
7212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213    ac_cv_prog_ac_ct_OTOOL64="otool64"
7214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215    break 2
7216  fi
7217done
7218  done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7224if test -n "$ac_ct_OTOOL64"; then
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7226$as_echo "$ac_ct_OTOOL64" >&6; }
7227else
7228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232  if test "x$ac_ct_OTOOL64" = x; then
7233    OTOOL64=":"
7234  else
7235    case $cross_compiling:$ac_tool_warned in
7236yes:)
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239ac_tool_warned=yes ;;
7240esac
7241    OTOOL64=$ac_ct_OTOOL64
7242  fi
7243else
7244  OTOOL64="$ac_cv_prog_OTOOL64"
7245fi
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7274$as_echo_n "checking for -single_module linker flag... " >&6; }
7275if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  lt_cv_apple_cc_single_mod=no
7279      if test -z "${LT_MULTI_MODULE}"; then
7280	# By default we will add the -single_module flag. You can override
7281	# by either setting the environment variable LT_MULTI_MODULE
7282	# non-empty at configure time, or by adding -multi_module to the
7283	# link flags.
7284	rm -rf libconftest.dylib*
7285	echo "int foo(void){return 1;}" > conftest.c
7286	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7287-dynamiclib -Wl,-single_module conftest.c" >&5
7288	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7290        _lt_result=$?
7291	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7292	  lt_cv_apple_cc_single_mod=yes
7293	else
7294	  cat conftest.err >&5
7295	fi
7296	rm -rf libconftest.dylib*
7297	rm -f conftest.*
7298      fi
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7301$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7303$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7304if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  lt_cv_ld_exported_symbols_list=no
7308      save_LDFLAGS=$LDFLAGS
7309      echo "_main" > conftest.sym
7310      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312/* end confdefs.h.  */
7313
7314int
7315main ()
7316{
7317
7318  ;
7319  return 0;
7320}
7321_ACEOF
7322if ac_fn_c_try_link "$LINENO"; then :
7323  lt_cv_ld_exported_symbols_list=yes
7324else
7325  lt_cv_ld_exported_symbols_list=no
7326fi
7327rm -f core conftest.err conftest.$ac_objext \
7328    conftest$ac_exeext conftest.$ac_ext
7329	LDFLAGS="$save_LDFLAGS"
7330
7331fi
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7333$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7334    case $host_os in
7335    rhapsody* | darwin1.[012])
7336      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7337    darwin1.*)
7338      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7339    darwin*) # darwin 5.x on
7340      # if running on 10.5 or later, the deployment target defaults
7341      # to the OS version, if on x86, and 10.4, the deployment
7342      # target defaults to 10.4. Don't you love it?
7343      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7344	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7345	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7346	10.[012]*)
7347	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7348	10.*)
7349	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7350      esac
7351    ;;
7352  esac
7353    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7354      _lt_dar_single_mod='$single_module'
7355    fi
7356    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7357      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7358    else
7359      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7360    fi
7361    if test "$DSYMUTIL" != ":"; then
7362      _lt_dsymutil='~$DSYMUTIL $lib || :'
7363    else
7364      _lt_dsymutil=
7365    fi
7366    ;;
7367  esac
7368
7369for ac_header in dlfcn.h
7370do :
7371  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7372"
7373if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7374  cat >>confdefs.h <<_ACEOF
7375#define HAVE_DLFCN_H 1
7376_ACEOF
7377
7378fi
7379
7380done
7381
7382
7383
7384# Set options
7385
7386
7387
7388        enable_dlopen=no
7389
7390
7391  enable_win32_dll=no
7392
7393
7394            # Check whether --enable-shared was given.
7395if test "${enable_shared+set}" = set; then :
7396  enableval=$enable_shared; p=${PACKAGE-default}
7397    case $enableval in
7398    yes) enable_shared=yes ;;
7399    no) enable_shared=no ;;
7400    *)
7401      enable_shared=no
7402      # Look at the argument we got.  We use all the common list separators.
7403      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7404      for pkg in $enableval; do
7405	IFS="$lt_save_ifs"
7406	if test "X$pkg" = "X$p"; then
7407	  enable_shared=yes
7408	fi
7409      done
7410      IFS="$lt_save_ifs"
7411      ;;
7412    esac
7413else
7414  enable_shared=yes
7415fi
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427# Check whether --with-pic was given.
7428if test "${with_pic+set}" = set; then :
7429  withval=$with_pic; pic_mode="$withval"
7430else
7431  pic_mode=default
7432fi
7433
7434
7435test -z "$pic_mode" && pic_mode=default
7436
7437
7438
7439
7440
7441
7442
7443  # Check whether --enable-fast-install was given.
7444if test "${enable_fast_install+set}" = set; then :
7445  enableval=$enable_fast_install; p=${PACKAGE-default}
7446    case $enableval in
7447    yes) enable_fast_install=yes ;;
7448    no) enable_fast_install=no ;;
7449    *)
7450      enable_fast_install=no
7451      # Look at the argument we got.  We use all the common list separators.
7452      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7453      for pkg in $enableval; do
7454	IFS="$lt_save_ifs"
7455	if test "X$pkg" = "X$p"; then
7456	  enable_fast_install=yes
7457	fi
7458      done
7459      IFS="$lt_save_ifs"
7460      ;;
7461    esac
7462else
7463  enable_fast_install=yes
7464fi
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476# This can be used to rebuild libtool when needed
7477LIBTOOL_DEPS="$ltmain"
7478
7479# Always use our own libtool.
7480LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506test -z "$LN_S" && LN_S="ln -s"
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521if test -n "${ZSH_VERSION+set}" ; then
7522   setopt NO_GLOB_SUBST
7523fi
7524
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7526$as_echo_n "checking for objdir... " >&6; }
7527if test "${lt_cv_objdir+set}" = set; then :
7528  $as_echo_n "(cached) " >&6
7529else
7530  rm -f .libs 2>/dev/null
7531mkdir .libs 2>/dev/null
7532if test -d .libs; then
7533  lt_cv_objdir=.libs
7534else
7535  # MS-DOS does not allow filenames that begin with a dot.
7536  lt_cv_objdir=_libs
7537fi
7538rmdir .libs 2>/dev/null
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7541$as_echo "$lt_cv_objdir" >&6; }
7542objdir=$lt_cv_objdir
7543
7544
7545
7546
7547
7548cat >>confdefs.h <<_ACEOF
7549#define LT_OBJDIR "$lt_cv_objdir/"
7550_ACEOF
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568case $host_os in
7569aix3*)
7570  # AIX sometimes has problems with the GCC collect2 program.  For some
7571  # reason, if we set the COLLECT_NAMES environment variable, the problems
7572  # vanish in a puff of smoke.
7573  if test "X${COLLECT_NAMES+set}" != Xset; then
7574    COLLECT_NAMES=
7575    export COLLECT_NAMES
7576  fi
7577  ;;
7578esac
7579
7580# Sed substitution that helps us do robust quoting.  It backslashifies
7581# metacharacters that are still active within double-quoted strings.
7582sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7583
7584# Same as above, but do not quote variable references.
7585double_quote_subst='s/\(["`\\]\)/\\\1/g'
7586
7587# Sed substitution to delay expansion of an escaped shell variable in a
7588# double_quote_subst'ed string.
7589delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7590
7591# Sed substitution to delay expansion of an escaped single quote.
7592delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7593
7594# Sed substitution to avoid accidental globbing in evaled expressions
7595no_glob_subst='s/\*/\\\*/g'
7596
7597# Global variables:
7598ofile=libtool
7599can_build_shared=yes
7600
7601# All known linkers require a `.a' archive for static linking (except MSVC,
7602# which needs '.lib').
7603libext=a
7604
7605with_gnu_ld="$lt_cv_prog_gnu_ld"
7606
7607old_CC="$CC"
7608old_CFLAGS="$CFLAGS"
7609
7610# Set sane defaults for various variables
7611test -z "$CC" && CC=cc
7612test -z "$LTCC" && LTCC=$CC
7613test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7614test -z "$LD" && LD=ld
7615test -z "$ac_objext" && ac_objext=o
7616
7617for cc_temp in $compiler""; do
7618  case $cc_temp in
7619    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7620    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7621    \-*) ;;
7622    *) break;;
7623  esac
7624done
7625cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7626
7627
7628# Only perform the check for file, if the check method requires it
7629test -z "$MAGIC_CMD" && MAGIC_CMD=file
7630case $deplibs_check_method in
7631file_magic*)
7632  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7634$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7635if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  case $MAGIC_CMD in
7639[\\/*] |  ?:[\\/]*)
7640  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7641  ;;
7642*)
7643  lt_save_MAGIC_CMD="$MAGIC_CMD"
7644  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7645  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7646  for ac_dir in $ac_dummy; do
7647    IFS="$lt_save_ifs"
7648    test -z "$ac_dir" && ac_dir=.
7649    if test -f $ac_dir/${ac_tool_prefix}file; then
7650      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7651      if test -n "$file_magic_test_file"; then
7652	case $deplibs_check_method in
7653	"file_magic "*)
7654	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7655	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7656	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7657	    $EGREP "$file_magic_regex" > /dev/null; then
7658	    :
7659	  else
7660	    cat <<_LT_EOF 1>&2
7661
7662*** Warning: the command libtool uses to detect shared libraries,
7663*** $file_magic_cmd, produces output that libtool cannot recognize.
7664*** The result is that libtool may fail to recognize shared libraries
7665*** as such.  This will affect the creation of libtool libraries that
7666*** depend on shared libraries, but programs linked with such libtool
7667*** libraries will work regardless of this problem.  Nevertheless, you
7668*** may want to report the problem to your system manager and/or to
7669*** bug-libtool@gnu.org
7670
7671_LT_EOF
7672	  fi ;;
7673	esac
7674      fi
7675      break
7676    fi
7677  done
7678  IFS="$lt_save_ifs"
7679  MAGIC_CMD="$lt_save_MAGIC_CMD"
7680  ;;
7681esac
7682fi
7683
7684MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685if test -n "$MAGIC_CMD"; then
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7687$as_echo "$MAGIC_CMD" >&6; }
7688else
7689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693
7694
7695
7696
7697if test -z "$lt_cv_path_MAGIC_CMD"; then
7698  if test -n "$ac_tool_prefix"; then
7699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7700$as_echo_n "checking for file... " >&6; }
7701if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  case $MAGIC_CMD in
7705[\\/*] |  ?:[\\/]*)
7706  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7707  ;;
7708*)
7709  lt_save_MAGIC_CMD="$MAGIC_CMD"
7710  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7711  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7712  for ac_dir in $ac_dummy; do
7713    IFS="$lt_save_ifs"
7714    test -z "$ac_dir" && ac_dir=.
7715    if test -f $ac_dir/file; then
7716      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7717      if test -n "$file_magic_test_file"; then
7718	case $deplibs_check_method in
7719	"file_magic "*)
7720	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7721	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7722	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7723	    $EGREP "$file_magic_regex" > /dev/null; then
7724	    :
7725	  else
7726	    cat <<_LT_EOF 1>&2
7727
7728*** Warning: the command libtool uses to detect shared libraries,
7729*** $file_magic_cmd, produces output that libtool cannot recognize.
7730*** The result is that libtool may fail to recognize shared libraries
7731*** as such.  This will affect the creation of libtool libraries that
7732*** depend on shared libraries, but programs linked with such libtool
7733*** libraries will work regardless of this problem.  Nevertheless, you
7734*** may want to report the problem to your system manager and/or to
7735*** bug-libtool@gnu.org
7736
7737_LT_EOF
7738	  fi ;;
7739	esac
7740      fi
7741      break
7742    fi
7743  done
7744  IFS="$lt_save_ifs"
7745  MAGIC_CMD="$lt_save_MAGIC_CMD"
7746  ;;
7747esac
7748fi
7749
7750MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751if test -n "$MAGIC_CMD"; then
7752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7753$as_echo "$MAGIC_CMD" >&6; }
7754else
7755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757fi
7758
7759
7760  else
7761    MAGIC_CMD=:
7762  fi
7763fi
7764
7765  fi
7766  ;;
7767esac
7768
7769# Use C for the default configuration in the libtool script
7770
7771lt_save_CC="$CC"
7772ac_ext=c
7773ac_cpp='$CPP $CPPFLAGS'
7774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778
7779# Source file extension for C test sources.
7780ac_ext=c
7781
7782# Object file extension for compiled C test sources.
7783objext=o
7784objext=$objext
7785
7786# Code to be used in simple compile tests
7787lt_simple_compile_test_code="int some_variable = 0;"
7788
7789# Code to be used in simple link tests
7790lt_simple_link_test_code='int main(){return(0);}'
7791
7792
7793
7794
7795
7796
7797
7798# If no C compiler was specified, use CC.
7799LTCC=${LTCC-"$CC"}
7800
7801# If no C compiler flags were specified, use CFLAGS.
7802LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7803
7804# Allow CC to be a program name with arguments.
7805compiler=$CC
7806
7807# Save the default compiler, since it gets overwritten when the other
7808# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7809compiler_DEFAULT=$CC
7810
7811# save warnings/boilerplate of simple test code
7812ac_outfile=conftest.$ac_objext
7813echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7814eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7815_lt_compiler_boilerplate=`cat conftest.err`
7816$RM conftest*
7817
7818ac_outfile=conftest.$ac_objext
7819echo "$lt_simple_link_test_code" >conftest.$ac_ext
7820eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7821_lt_linker_boilerplate=`cat conftest.err`
7822$RM -r conftest*
7823
7824
7825if test -n "$compiler"; then
7826
7827lt_prog_compiler_no_builtin_flag=
7828
7829if test "$GCC" = yes; then
7830  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7831
7832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7833$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7834if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  lt_cv_prog_compiler_rtti_exceptions=no
7838   ac_outfile=conftest.$ac_objext
7839   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7840   lt_compiler_flag="-fno-rtti -fno-exceptions"
7841   # Insert the option either (1) after the last *FLAGS variable, or
7842   # (2) before a word containing "conftest.", or (3) at the end.
7843   # Note that $ac_compile itself does not contain backslashes and begins
7844   # with a dollar sign (not a hyphen), so the echo should work correctly.
7845   # The option is referenced via a variable to avoid confusing sed.
7846   lt_compile=`echo "$ac_compile" | $SED \
7847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849   -e 's:$: $lt_compiler_flag:'`
7850   (eval echo "\"\$as_me:7850: $lt_compile\"" >&5)
7851   (eval "$lt_compile" 2>conftest.err)
7852   ac_status=$?
7853   cat conftest.err >&5
7854   echo "$as_me:7854: \$? = $ac_status" >&5
7855   if (exit $ac_status) && test -s "$ac_outfile"; then
7856     # The compiler can only warn and ignore the option if not recognized
7857     # So say no if there are warnings other than the usual output.
7858     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7859     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7860     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7861       lt_cv_prog_compiler_rtti_exceptions=yes
7862     fi
7863   fi
7864   $RM conftest*
7865
7866fi
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7868$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7869
7870if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7871    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7872else
7873    :
7874fi
7875
7876fi
7877
7878
7879
7880
7881
7882
7883  lt_prog_compiler_wl=
7884lt_prog_compiler_pic=
7885lt_prog_compiler_static=
7886
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7888$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7889
7890  if test "$GCC" = yes; then
7891    lt_prog_compiler_wl='-Wl,'
7892    lt_prog_compiler_static='-static'
7893
7894    case $host_os in
7895      aix*)
7896      # All AIX code is PIC.
7897      if test "$host_cpu" = ia64; then
7898	# AIX 5 now supports IA64 processor
7899	lt_prog_compiler_static='-Bstatic'
7900      fi
7901      ;;
7902
7903    amigaos*)
7904      case $host_cpu in
7905      powerpc)
7906            # see comment about AmigaOS4 .so support
7907            lt_prog_compiler_pic='-fPIC'
7908        ;;
7909      m68k)
7910            # FIXME: we need at least 68020 code to build shared libraries, but
7911            # adding the `-m68020' flag to GCC prevents building anything better,
7912            # like `-m68040'.
7913            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7914        ;;
7915      esac
7916      ;;
7917
7918    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7919      # PIC is the default for these OSes.
7920      ;;
7921
7922    mingw* | cygwin* | pw32* | os2* | cegcc*)
7923      # This hack is so that the source file can tell whether it is being
7924      # built for inclusion in a dll (and should export symbols for example).
7925      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7926      # (--disable-auto-import) libraries
7927      lt_prog_compiler_pic='-DDLL_EXPORT'
7928      ;;
7929
7930    darwin* | rhapsody*)
7931      # PIC is the default on this platform
7932      # Common symbols not allowed in MH_DYLIB files
7933      lt_prog_compiler_pic='-fno-common'
7934      ;;
7935
7936    hpux*)
7937      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7938      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7939      # sets the default TLS model and affects inlining.
7940      case $host_cpu in
7941      hppa*64*)
7942	# +Z the default
7943	;;
7944      *)
7945	lt_prog_compiler_pic='-fPIC'
7946	;;
7947      esac
7948      ;;
7949
7950    interix[3-9]*)
7951      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7952      # Instead, we relocate shared libraries at runtime.
7953      ;;
7954
7955    msdosdjgpp*)
7956      # Just because we use GCC doesn't mean we suddenly get shared libraries
7957      # on systems that don't support them.
7958      lt_prog_compiler_can_build_shared=no
7959      enable_shared=no
7960      ;;
7961
7962    *nto* | *qnx*)
7963      # QNX uses GNU C++, but need to define -shared option too, otherwise
7964      # it will coredump.
7965      lt_prog_compiler_pic='-fPIC -shared'
7966      ;;
7967
7968    sysv4*MP*)
7969      if test -d /usr/nec; then
7970	lt_prog_compiler_pic=-Kconform_pic
7971      fi
7972      ;;
7973
7974    *)
7975      lt_prog_compiler_pic='-fPIC'
7976      ;;
7977    esac
7978  else
7979    # PORTME Check for flag to pass linker flags through the system compiler.
7980    case $host_os in
7981    aix*)
7982      lt_prog_compiler_wl='-Wl,'
7983      if test "$host_cpu" = ia64; then
7984	# AIX 5 now supports IA64 processor
7985	lt_prog_compiler_static='-Bstatic'
7986      else
7987	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7988      fi
7989      ;;
7990
7991    mingw* | cygwin* | pw32* | os2* | cegcc*)
7992      # This hack is so that the source file can tell whether it is being
7993      # built for inclusion in a dll (and should export symbols for example).
7994      lt_prog_compiler_pic='-DDLL_EXPORT'
7995      ;;
7996
7997    hpux9* | hpux10* | hpux11*)
7998      lt_prog_compiler_wl='-Wl,'
7999      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8000      # not for PA HP-UX.
8001      case $host_cpu in
8002      hppa*64*|ia64*)
8003	# +Z the default
8004	;;
8005      *)
8006	lt_prog_compiler_pic='+Z'
8007	;;
8008      esac
8009      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8010      lt_prog_compiler_static='${wl}-a ${wl}archive'
8011      ;;
8012
8013    irix5* | irix6* | nonstopux*)
8014      lt_prog_compiler_wl='-Wl,'
8015      # PIC (with -KPIC) is the default.
8016      lt_prog_compiler_static='-non_shared'
8017      ;;
8018
8019    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8020      case $cc_basename in
8021      # old Intel for x86_64 which still supported -KPIC.
8022      ecc*)
8023	lt_prog_compiler_wl='-Wl,'
8024	lt_prog_compiler_pic='-KPIC'
8025	lt_prog_compiler_static='-static'
8026        ;;
8027      # icc used to be incompatible with GCC.
8028      # ICC 10 doesn't accept -KPIC any more.
8029      icc* | ifort*)
8030	lt_prog_compiler_wl='-Wl,'
8031	lt_prog_compiler_pic='-fPIC'
8032	lt_prog_compiler_static='-static'
8033        ;;
8034      # Lahey Fortran 8.1.
8035      lf95*)
8036	lt_prog_compiler_wl='-Wl,'
8037	lt_prog_compiler_pic='--shared'
8038	lt_prog_compiler_static='--static'
8039	;;
8040      pgcc* | pgf77* | pgf90* | pgf95*)
8041        # Portland Group compilers (*not* the Pentium gcc compiler,
8042	# which looks to be a dead project)
8043	lt_prog_compiler_wl='-Wl,'
8044	lt_prog_compiler_pic='-fpic'
8045	lt_prog_compiler_static='-Bstatic'
8046        ;;
8047      ccc*)
8048        lt_prog_compiler_wl='-Wl,'
8049        # All Alpha code is PIC.
8050        lt_prog_compiler_static='-non_shared'
8051        ;;
8052      xl*)
8053	# IBM XL C 8.0/Fortran 10.1 on PPC
8054	lt_prog_compiler_wl='-Wl,'
8055	lt_prog_compiler_pic='-qpic'
8056	lt_prog_compiler_static='-qstaticlink'
8057	;;
8058      *)
8059	case `$CC -V 2>&1 | sed 5q` in
8060	*Sun\ C*)
8061	  # Sun C 5.9
8062	  lt_prog_compiler_pic='-KPIC'
8063	  lt_prog_compiler_static='-Bstatic'
8064	  lt_prog_compiler_wl='-Wl,'
8065	  ;;
8066	*Sun\ F*)
8067	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8068	  lt_prog_compiler_pic='-KPIC'
8069	  lt_prog_compiler_static='-Bstatic'
8070	  lt_prog_compiler_wl=''
8071	  ;;
8072	esac
8073	;;
8074      esac
8075      ;;
8076
8077    newsos6)
8078      lt_prog_compiler_pic='-KPIC'
8079      lt_prog_compiler_static='-Bstatic'
8080      ;;
8081
8082    *nto* | *qnx*)
8083      # QNX uses GNU C++, but need to define -shared option too, otherwise
8084      # it will coredump.
8085      lt_prog_compiler_pic='-fPIC -shared'
8086      ;;
8087
8088    osf3* | osf4* | osf5*)
8089      lt_prog_compiler_wl='-Wl,'
8090      # All OSF/1 code is PIC.
8091      lt_prog_compiler_static='-non_shared'
8092      ;;
8093
8094    rdos*)
8095      lt_prog_compiler_static='-non_shared'
8096      ;;
8097
8098    solaris*)
8099      lt_prog_compiler_pic='-KPIC'
8100      lt_prog_compiler_static='-Bstatic'
8101      case $cc_basename in
8102      f77* | f90* | f95*)
8103	lt_prog_compiler_wl='-Qoption ld ';;
8104      *)
8105	lt_prog_compiler_wl='-Wl,';;
8106      esac
8107      ;;
8108
8109    sunos4*)
8110      lt_prog_compiler_wl='-Qoption ld '
8111      lt_prog_compiler_pic='-PIC'
8112      lt_prog_compiler_static='-Bstatic'
8113      ;;
8114
8115    sysv4 | sysv4.2uw2* | sysv4.3*)
8116      lt_prog_compiler_wl='-Wl,'
8117      lt_prog_compiler_pic='-KPIC'
8118      lt_prog_compiler_static='-Bstatic'
8119      ;;
8120
8121    sysv4*MP*)
8122      if test -d /usr/nec ;then
8123	lt_prog_compiler_pic='-Kconform_pic'
8124	lt_prog_compiler_static='-Bstatic'
8125      fi
8126      ;;
8127
8128    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8129      lt_prog_compiler_wl='-Wl,'
8130      lt_prog_compiler_pic='-KPIC'
8131      lt_prog_compiler_static='-Bstatic'
8132      ;;
8133
8134    unicos*)
8135      lt_prog_compiler_wl='-Wl,'
8136      lt_prog_compiler_can_build_shared=no
8137      ;;
8138
8139    uts4*)
8140      lt_prog_compiler_pic='-pic'
8141      lt_prog_compiler_static='-Bstatic'
8142      ;;
8143
8144    *)
8145      lt_prog_compiler_can_build_shared=no
8146      ;;
8147    esac
8148  fi
8149
8150case $host_os in
8151  # For platforms which do not support PIC, -DPIC is meaningless:
8152  *djgpp*)
8153    lt_prog_compiler_pic=
8154    ;;
8155  *)
8156    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8157    ;;
8158esac
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8160$as_echo "$lt_prog_compiler_pic" >&6; }
8161
8162
8163
8164
8165
8166
8167#
8168# Check to make sure the PIC flag actually works.
8169#
8170if test -n "$lt_prog_compiler_pic"; then
8171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8172$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8173if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  lt_cv_prog_compiler_pic_works=no
8177   ac_outfile=conftest.$ac_objext
8178   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8180   # Insert the option either (1) after the last *FLAGS variable, or
8181   # (2) before a word containing "conftest.", or (3) at the end.
8182   # Note that $ac_compile itself does not contain backslashes and begins
8183   # with a dollar sign (not a hyphen), so the echo should work correctly.
8184   # The option is referenced via a variable to avoid confusing sed.
8185   lt_compile=`echo "$ac_compile" | $SED \
8186   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188   -e 's:$: $lt_compiler_flag:'`
8189   (eval echo "\"\$as_me:8189: $lt_compile\"" >&5)
8190   (eval "$lt_compile" 2>conftest.err)
8191   ac_status=$?
8192   cat conftest.err >&5
8193   echo "$as_me:8193: \$? = $ac_status" >&5
8194   if (exit $ac_status) && test -s "$ac_outfile"; then
8195     # The compiler can only warn and ignore the option if not recognized
8196     # So say no if there are warnings other than the usual output.
8197     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8198     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8199     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8200       lt_cv_prog_compiler_pic_works=yes
8201     fi
8202   fi
8203   $RM conftest*
8204
8205fi
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8207$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8208
8209if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8210    case $lt_prog_compiler_pic in
8211     "" | " "*) ;;
8212     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8213     esac
8214else
8215    lt_prog_compiler_pic=
8216     lt_prog_compiler_can_build_shared=no
8217fi
8218
8219fi
8220
8221
8222
8223
8224
8225
8226#
8227# Check to make sure the static flag actually works.
8228#
8229wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8231$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8232if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  lt_cv_prog_compiler_static_works=no
8236   save_LDFLAGS="$LDFLAGS"
8237   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8238   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8239   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8240     # The linker can only warn and ignore the option if not recognized
8241     # So say no if there are warnings
8242     if test -s conftest.err; then
8243       # Append any errors to the config.log.
8244       cat conftest.err 1>&5
8245       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8246       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8247       if diff conftest.exp conftest.er2 >/dev/null; then
8248         lt_cv_prog_compiler_static_works=yes
8249       fi
8250     else
8251       lt_cv_prog_compiler_static_works=yes
8252     fi
8253   fi
8254   $RM -r conftest*
8255   LDFLAGS="$save_LDFLAGS"
8256
8257fi
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8259$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8260
8261if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8262    :
8263else
8264    lt_prog_compiler_static=
8265fi
8266
8267
8268
8269
8270
8271
8272
8273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8274$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8275if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  lt_cv_prog_compiler_c_o=no
8279   $RM -r conftest 2>/dev/null
8280   mkdir conftest
8281   cd conftest
8282   mkdir out
8283   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8284
8285   lt_compiler_flag="-o out/conftest2.$ac_objext"
8286   # Insert the option either (1) after the last *FLAGS variable, or
8287   # (2) before a word containing "conftest.", or (3) at the end.
8288   # Note that $ac_compile itself does not contain backslashes and begins
8289   # with a dollar sign (not a hyphen), so the echo should work correctly.
8290   lt_compile=`echo "$ac_compile" | $SED \
8291   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8292   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8293   -e 's:$: $lt_compiler_flag:'`
8294   (eval echo "\"\$as_me:8294: $lt_compile\"" >&5)
8295   (eval "$lt_compile" 2>out/conftest.err)
8296   ac_status=$?
8297   cat out/conftest.err >&5
8298   echo "$as_me:8298: \$? = $ac_status" >&5
8299   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8300   then
8301     # The compiler can only warn and ignore the option if not recognized
8302     # So say no if there are warnings
8303     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8304     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8305     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8306       lt_cv_prog_compiler_c_o=yes
8307     fi
8308   fi
8309   chmod u+w . 2>&5
8310   $RM conftest*
8311   # SGI C++ compiler will create directory out/ii_files/ for
8312   # template instantiation
8313   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8314   $RM out/* && rmdir out
8315   cd ..
8316   $RM -r conftest
8317   $RM conftest*
8318
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8321$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8322
8323
8324
8325
8326
8327
8328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8329$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8330if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8331  $as_echo_n "(cached) " >&6
8332else
8333  lt_cv_prog_compiler_c_o=no
8334   $RM -r conftest 2>/dev/null
8335   mkdir conftest
8336   cd conftest
8337   mkdir out
8338   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339
8340   lt_compiler_flag="-o out/conftest2.$ac_objext"
8341   # Insert the option either (1) after the last *FLAGS variable, or
8342   # (2) before a word containing "conftest.", or (3) at the end.
8343   # Note that $ac_compile itself does not contain backslashes and begins
8344   # with a dollar sign (not a hyphen), so the echo should work correctly.
8345   lt_compile=`echo "$ac_compile" | $SED \
8346   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348   -e 's:$: $lt_compiler_flag:'`
8349   (eval echo "\"\$as_me:8349: $lt_compile\"" >&5)
8350   (eval "$lt_compile" 2>out/conftest.err)
8351   ac_status=$?
8352   cat out/conftest.err >&5
8353   echo "$as_me:8353: \$? = $ac_status" >&5
8354   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8355   then
8356     # The compiler can only warn and ignore the option if not recognized
8357     # So say no if there are warnings
8358     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8359     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8360     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8361       lt_cv_prog_compiler_c_o=yes
8362     fi
8363   fi
8364   chmod u+w . 2>&5
8365   $RM conftest*
8366   # SGI C++ compiler will create directory out/ii_files/ for
8367   # template instantiation
8368   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8369   $RM out/* && rmdir out
8370   cd ..
8371   $RM -r conftest
8372   $RM conftest*
8373
8374fi
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8376$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8377
8378
8379
8380
8381hard_links="nottested"
8382if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8383  # do not overwrite the value of need_locks provided by the user
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8385$as_echo_n "checking if we can lock with hard links... " >&6; }
8386  hard_links=yes
8387  $RM conftest*
8388  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8389  touch conftest.a
8390  ln conftest.a conftest.b 2>&5 || hard_links=no
8391  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8393$as_echo "$hard_links" >&6; }
8394  if test "$hard_links" = no; then
8395    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8396$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8397    need_locks=warn
8398  fi
8399else
8400  need_locks=no
8401fi
8402
8403
8404
8405
8406
8407
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8409$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8410
8411  runpath_var=
8412  allow_undefined_flag=
8413  always_export_symbols=no
8414  archive_cmds=
8415  archive_expsym_cmds=
8416  compiler_needs_object=no
8417  enable_shared_with_static_runtimes=no
8418  export_dynamic_flag_spec=
8419  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8420  hardcode_automatic=no
8421  hardcode_direct=no
8422  hardcode_direct_absolute=no
8423  hardcode_libdir_flag_spec=
8424  hardcode_libdir_flag_spec_ld=
8425  hardcode_libdir_separator=
8426  hardcode_minus_L=no
8427  hardcode_shlibpath_var=unsupported
8428  inherit_rpath=no
8429  link_all_deplibs=unknown
8430  module_cmds=
8431  module_expsym_cmds=
8432  old_archive_from_new_cmds=
8433  old_archive_from_expsyms_cmds=
8434  thread_safe_flag_spec=
8435  whole_archive_flag_spec=
8436  # include_expsyms should be a list of space-separated symbols to be *always*
8437  # included in the symbol list
8438  include_expsyms=
8439  # exclude_expsyms can be an extended regexp of symbols to exclude
8440  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8441  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8442  # as well as any symbol that contains `d'.
8443  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8444  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8445  # platforms (ab)use it in PIC code, but their linkers get confused if
8446  # the symbol is explicitly referenced.  Since portable code cannot
8447  # rely on this symbol name, it's probably fine to never include it in
8448  # preloaded symbol tables.
8449  # Exclude shared library initialization/finalization symbols.
8450  extract_expsyms_cmds=
8451
8452  case $host_os in
8453  cygwin* | mingw* | pw32* | cegcc*)
8454    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8455    # When not using gcc, we currently assume that we are using
8456    # Microsoft Visual C++.
8457    if test "$GCC" != yes; then
8458      with_gnu_ld=no
8459    fi
8460    ;;
8461  interix*)
8462    # we just hope/assume this is gcc and not c89 (= MSVC++)
8463    with_gnu_ld=yes
8464    ;;
8465  openbsd*)
8466    with_gnu_ld=no
8467    ;;
8468  linux* | k*bsd*-gnu)
8469    link_all_deplibs=no
8470    ;;
8471  esac
8472
8473  ld_shlibs=yes
8474  if test "$with_gnu_ld" = yes; then
8475    # If archive_cmds runs LD, not CC, wlarc should be empty
8476    wlarc='${wl}'
8477
8478    # Set some defaults for GNU ld with shared library support. These
8479    # are reset later if shared libraries are not supported. Putting them
8480    # here allows them to be overridden if necessary.
8481    runpath_var=LD_RUN_PATH
8482    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8483    export_dynamic_flag_spec='${wl}--export-dynamic'
8484    # ancient GNU ld didn't support --whole-archive et. al.
8485    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8486      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8487    else
8488      whole_archive_flag_spec=
8489    fi
8490    supports_anon_versioning=no
8491    case `$LD -v 2>&1` in
8492      *GNU\ gold*) supports_anon_versioning=yes ;;
8493      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8494      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8495      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8496      *\ 2.11.*) ;; # other 2.11 versions
8497      *) supports_anon_versioning=yes ;;
8498    esac
8499
8500    # See if GNU ld supports shared libraries.
8501    case $host_os in
8502    aix[3-9]*)
8503      # On AIX/PPC, the GNU linker is very broken
8504      if test "$host_cpu" != ia64; then
8505	ld_shlibs=no
8506	cat <<_LT_EOF 1>&2
8507
8508*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8509*** to be unable to reliably create shared libraries on AIX.
8510*** Therefore, libtool is disabling shared libraries support.  If you
8511*** really care for shared libraries, you may want to modify your PATH
8512*** so that a non-GNU linker is found, and then restart.
8513
8514_LT_EOF
8515      fi
8516      ;;
8517
8518    amigaos*)
8519      case $host_cpu in
8520      powerpc)
8521            # see comment about AmigaOS4 .so support
8522            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523            archive_expsym_cmds=''
8524        ;;
8525      m68k)
8526            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)'
8527            hardcode_libdir_flag_spec='-L$libdir'
8528            hardcode_minus_L=yes
8529        ;;
8530      esac
8531      ;;
8532
8533    beos*)
8534      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8535	allow_undefined_flag=unsupported
8536	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8537	# support --undefined.  This deserves some investigation.  FIXME
8538	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539      else
8540	ld_shlibs=no
8541      fi
8542      ;;
8543
8544    cygwin* | mingw* | pw32* | cegcc*)
8545      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8546      # as there is no search path for DLLs.
8547      hardcode_libdir_flag_spec='-L$libdir'
8548      allow_undefined_flag=unsupported
8549      always_export_symbols=no
8550      enable_shared_with_static_runtimes=yes
8551      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8552
8553      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8554        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8555	# If the export-symbols file already is a .def file (1st line
8556	# is EXPORTS), use it as is; otherwise, prepend...
8557	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8558	  cp $export_symbols $output_objdir/$soname.def;
8559	else
8560	  echo EXPORTS > $output_objdir/$soname.def;
8561	  cat $export_symbols >> $output_objdir/$soname.def;
8562	fi~
8563	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8564      else
8565	ld_shlibs=no
8566      fi
8567      ;;
8568
8569    interix[3-9]*)
8570      hardcode_direct=no
8571      hardcode_shlibpath_var=no
8572      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573      export_dynamic_flag_spec='${wl}-E'
8574      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8575      # Instead, shared libraries are loaded at an image base (0x10000000 by
8576      # default) and relocated if they conflict, which is a slow very memory
8577      # consuming and fragmenting process.  To avoid this, we pick a random,
8578      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8579      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8580      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8581      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'
8582      ;;
8583
8584    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8585      tmp_diet=no
8586      if test "$host_os" = linux-dietlibc; then
8587	case $cc_basename in
8588	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8589	esac
8590      fi
8591      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8592	 && test "$tmp_diet" = no
8593      then
8594	tmp_addflag=
8595	tmp_sharedflag='-shared'
8596	case $cc_basename,$host_cpu in
8597        pgcc*)				# Portland Group C compiler
8598	  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'
8599	  tmp_addflag=' $pic_flag'
8600	  ;;
8601	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8602	  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'
8603	  tmp_addflag=' $pic_flag -Mnomain' ;;
8604	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8605	  tmp_addflag=' -i_dynamic' ;;
8606	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8607	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8608	ifc* | ifort*)			# Intel Fortran compiler
8609	  tmp_addflag=' -nofor_main' ;;
8610	lf95*)				# Lahey Fortran 8.1
8611	  whole_archive_flag_spec=
8612	  tmp_sharedflag='--shared' ;;
8613	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8614	  tmp_sharedflag='-qmkshrobj'
8615	  tmp_addflag= ;;
8616	esac
8617	case `$CC -V 2>&1 | sed 5q` in
8618	*Sun\ C*)			# Sun C 5.9
8619	  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'
8620	  compiler_needs_object=yes
8621	  tmp_sharedflag='-G' ;;
8622	*Sun\ F*)			# Sun Fortran 8.3
8623	  tmp_sharedflag='-G' ;;
8624	esac
8625	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626
8627        if test "x$supports_anon_versioning" = xyes; then
8628          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8629	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8630	    echo "local: *; };" >> $output_objdir/$libname.ver~
8631	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8632        fi
8633
8634	case $cc_basename in
8635	xlf*)
8636	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8637	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8638	  hardcode_libdir_flag_spec=
8639	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8640	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8641	  if test "x$supports_anon_versioning" = xyes; then
8642	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8643	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8644	      echo "local: *; };" >> $output_objdir/$libname.ver~
8645	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8646	  fi
8647	  ;;
8648	esac
8649      else
8650        ld_shlibs=no
8651      fi
8652      ;;
8653
8654    netbsd* | netbsdelf*-gnu)
8655      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8656	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8657	wlarc=
8658      else
8659	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8661      fi
8662      ;;
8663
8664    solaris*)
8665      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8666	ld_shlibs=no
8667	cat <<_LT_EOF 1>&2
8668
8669*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8670*** create shared libraries on Solaris systems.  Therefore, libtool
8671*** is disabling shared libraries support.  We urge you to upgrade GNU
8672*** binutils to release 2.9.1 or newer.  Another option is to modify
8673*** your PATH or compiler configuration so that the native linker is
8674*** used, and then restart.
8675
8676_LT_EOF
8677      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8678	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8680      else
8681	ld_shlibs=no
8682      fi
8683      ;;
8684
8685    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8686      case `$LD -v 2>&1` in
8687        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8688	ld_shlibs=no
8689	cat <<_LT_EOF 1>&2
8690
8691*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8692*** reliably create shared libraries on SCO systems.  Therefore, libtool
8693*** is disabling shared libraries support.  We urge you to upgrade GNU
8694*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8695*** your PATH or compiler configuration so that the native linker is
8696*** used, and then restart.
8697
8698_LT_EOF
8699	;;
8700	*)
8701	  # For security reasons, it is highly recommended that you always
8702	  # use absolute paths for naming shared libraries, and exclude the
8703	  # DT_RUNPATH tag from executables and libraries.  But doing so
8704	  # requires that you compile everything twice, which is a pain.
8705	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8709	  else
8710	    ld_shlibs=no
8711	  fi
8712	;;
8713      esac
8714      ;;
8715
8716    sunos4*)
8717      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8718      wlarc=
8719      hardcode_direct=yes
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    *)
8724      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8727      else
8728	ld_shlibs=no
8729      fi
8730      ;;
8731    esac
8732
8733    if test "$ld_shlibs" = no; then
8734      runpath_var=
8735      hardcode_libdir_flag_spec=
8736      export_dynamic_flag_spec=
8737      whole_archive_flag_spec=
8738    fi
8739  else
8740    # PORTME fill in a description of your system's linker (not GNU ld)
8741    case $host_os in
8742    aix3*)
8743      allow_undefined_flag=unsupported
8744      always_export_symbols=yes
8745      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'
8746      # Note: this linker hardcodes the directories in LIBPATH if there
8747      # are no directories specified by -L.
8748      hardcode_minus_L=yes
8749      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8750	# Neither direct hardcoding nor static linking is supported with a
8751	# broken collect2.
8752	hardcode_direct=unsupported
8753      fi
8754      ;;
8755
8756    aix[4-9]*)
8757      if test "$host_cpu" = ia64; then
8758	# On IA64, the linker does run time linking by default, so we don't
8759	# have to do anything special.
8760	aix_use_runtimelinking=no
8761	exp_sym_flag='-Bexport'
8762	no_entry_flag=""
8763      else
8764	# If we're using GNU nm, then we don't want the "-C" option.
8765	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8766	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8767	  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'
8768	else
8769	  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'
8770	fi
8771	aix_use_runtimelinking=no
8772
8773	# Test if we are trying to use run time linking or normal
8774	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8775	# need to do runtime linking.
8776	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8777	  for ld_flag in $LDFLAGS; do
8778	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8779	    aix_use_runtimelinking=yes
8780	    break
8781	  fi
8782	  done
8783	  ;;
8784	esac
8785
8786	exp_sym_flag='-bexport'
8787	no_entry_flag='-bnoentry'
8788      fi
8789
8790      # When large executables or shared objects are built, AIX ld can
8791      # have problems creating the table of contents.  If linking a library
8792      # or program results in "error TOC overflow" add -mminimal-toc to
8793      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8794      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8795
8796      archive_cmds=''
8797      hardcode_direct=yes
8798      hardcode_direct_absolute=yes
8799      hardcode_libdir_separator=':'
8800      link_all_deplibs=yes
8801      file_list_spec='${wl}-f,'
8802
8803      if test "$GCC" = yes; then
8804	case $host_os in aix4.[012]|aix4.[012].*)
8805	# We only want to do this on AIX 4.2 and lower, the check
8806	# below for broken collect2 doesn't work under 4.3+
8807	  collect2name=`${CC} -print-prog-name=collect2`
8808	  if test -f "$collect2name" &&
8809	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8810	  then
8811	  # We have reworked collect2
8812	  :
8813	  else
8814	  # We have old collect2
8815	  hardcode_direct=unsupported
8816	  # It fails to find uninstalled libraries when the uninstalled
8817	  # path is not listed in the libpath.  Setting hardcode_minus_L
8818	  # to unsupported forces relinking
8819	  hardcode_minus_L=yes
8820	  hardcode_libdir_flag_spec='-L$libdir'
8821	  hardcode_libdir_separator=
8822	  fi
8823	  ;;
8824	esac
8825	shared_flag='-shared'
8826	if test "$aix_use_runtimelinking" = yes; then
8827	  shared_flag="$shared_flag "'${wl}-G'
8828	fi
8829	link_all_deplibs=no
8830      else
8831	# not using gcc
8832	if test "$host_cpu" = ia64; then
8833	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8834	# chokes on -Wl,-G. The following line is correct:
8835	  shared_flag='-G'
8836	else
8837	  if test "$aix_use_runtimelinking" = yes; then
8838	    shared_flag='${wl}-G'
8839	  else
8840	    shared_flag='${wl}-bM:SRE'
8841	  fi
8842	fi
8843      fi
8844
8845      export_dynamic_flag_spec='${wl}-bexpall'
8846      # It seems that -bexpall does not export symbols beginning with
8847      # underscore (_), so it is better to generate a list of symbols to export.
8848      always_export_symbols=yes
8849      if test "$aix_use_runtimelinking" = yes; then
8850	# Warning - without using the other runtime loading flags (-brtl),
8851	# -berok will link without error, but may produce a broken library.
8852	allow_undefined_flag='-berok'
8853        # Determine the default libpath from the value encoded in an
8854        # empty executable.
8855        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857
8858int
8859main ()
8860{
8861
8862  ;
8863  return 0;
8864}
8865_ACEOF
8866if ac_fn_c_try_link "$LINENO"; then :
8867
8868lt_aix_libpath_sed='
8869    /Import File Strings/,/^$/ {
8870	/^0/ {
8871	    s/^0  *\(.*\)$/\1/
8872	    p
8873	}
8874    }'
8875aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876# Check for a 64-bit object if we didn't find anything.
8877if test -z "$aix_libpath"; then
8878  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8879fi
8880fi
8881rm -f core conftest.err conftest.$ac_objext \
8882    conftest$ac_exeext conftest.$ac_ext
8883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8884
8885        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8886        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"
8887      else
8888	if test "$host_cpu" = ia64; then
8889	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8890	  allow_undefined_flag="-z nodefs"
8891	  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"
8892	else
8893	 # Determine the default libpath from the value encoded in an
8894	 # empty executable.
8895	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897
8898int
8899main ()
8900{
8901
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906if ac_fn_c_try_link "$LINENO"; then :
8907
8908lt_aix_libpath_sed='
8909    /Import File Strings/,/^$/ {
8910	/^0/ {
8911	    s/^0  *\(.*\)$/\1/
8912	    p
8913	}
8914    }'
8915aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916# Check for a 64-bit object if we didn't find anything.
8917if test -z "$aix_libpath"; then
8918  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919fi
8920fi
8921rm -f core conftest.err conftest.$ac_objext \
8922    conftest$ac_exeext conftest.$ac_ext
8923if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8924
8925	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8926	  # Warning - without using the other run time loading flags,
8927	  # -berok will link without error, but may produce a broken library.
8928	  no_undefined_flag=' ${wl}-bernotok'
8929	  allow_undefined_flag=' ${wl}-berok'
8930	  # Exported symbols can be pulled into shared objects from archives
8931	  whole_archive_flag_spec='$convenience'
8932	  archive_cmds_need_lc=yes
8933	  # This is similar to how AIX traditionally builds its shared libraries.
8934	  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'
8935	fi
8936      fi
8937      ;;
8938
8939    amigaos*)
8940      case $host_cpu in
8941      powerpc)
8942            # see comment about AmigaOS4 .so support
8943            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944            archive_expsym_cmds=''
8945        ;;
8946      m68k)
8947            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)'
8948            hardcode_libdir_flag_spec='-L$libdir'
8949            hardcode_minus_L=yes
8950        ;;
8951      esac
8952      ;;
8953
8954    bsdi[45]*)
8955      export_dynamic_flag_spec=-rdynamic
8956      ;;
8957
8958    cygwin* | mingw* | pw32* | cegcc*)
8959      # When not using gcc, we currently assume that we are using
8960      # Microsoft Visual C++.
8961      # hardcode_libdir_flag_spec is actually meaningless, as there is
8962      # no search path for DLLs.
8963      hardcode_libdir_flag_spec=' '
8964      allow_undefined_flag=unsupported
8965      # Tell ltmain to make .lib files, not .a files.
8966      libext=lib
8967      # Tell ltmain to make .dll files, not .so files.
8968      shrext_cmds=".dll"
8969      # FIXME: Setting linknames here is a bad hack.
8970      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8971      # The linker will automatically build a .lib file if we build a DLL.
8972      old_archive_from_new_cmds='true'
8973      # FIXME: Should let the user specify the lib program.
8974      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8975      fix_srcfile_path='`cygpath -w "$srcfile"`'
8976      enable_shared_with_static_runtimes=yes
8977      ;;
8978
8979    darwin* | rhapsody*)
8980
8981
8982  archive_cmds_need_lc=no
8983  hardcode_direct=no
8984  hardcode_automatic=yes
8985  hardcode_shlibpath_var=unsupported
8986  whole_archive_flag_spec=''
8987  link_all_deplibs=yes
8988  allow_undefined_flag="$_lt_dar_allow_undefined"
8989  case $cc_basename in
8990     ifort*) _lt_dar_can_shared=yes ;;
8991     *) _lt_dar_can_shared=$GCC ;;
8992  esac
8993  if test "$_lt_dar_can_shared" = "yes"; then
8994    output_verbose_link_cmd=echo
8995    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8996    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8997    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}"
8998    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}"
8999
9000  else
9001  ld_shlibs=no
9002  fi
9003
9004      ;;
9005
9006    dgux*)
9007      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008      hardcode_libdir_flag_spec='-L$libdir'
9009      hardcode_shlibpath_var=no
9010      ;;
9011
9012    freebsd1*)
9013      ld_shlibs=no
9014      ;;
9015
9016    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9017    # support.  Future versions do this automatically, but an explicit c++rt0.o
9018    # does not break anything, and helps significantly (at the cost of a little
9019    # extra space).
9020    freebsd2.2*)
9021      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9022      hardcode_libdir_flag_spec='-R$libdir'
9023      hardcode_direct=yes
9024      hardcode_shlibpath_var=no
9025      ;;
9026
9027    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9028    freebsd2*)
9029      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9030      hardcode_direct=yes
9031      hardcode_minus_L=yes
9032      hardcode_shlibpath_var=no
9033      ;;
9034
9035    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9036    freebsd* | dragonfly*)
9037      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9038      hardcode_libdir_flag_spec='-R$libdir'
9039      hardcode_direct=yes
9040      hardcode_shlibpath_var=no
9041      ;;
9042
9043    hpux9*)
9044      if test "$GCC" = yes; then
9045	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'
9046      else
9047	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'
9048      fi
9049      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9050      hardcode_libdir_separator=:
9051      hardcode_direct=yes
9052
9053      # hardcode_minus_L: Not really in the search PATH,
9054      # but as the default location of the library.
9055      hardcode_minus_L=yes
9056      export_dynamic_flag_spec='${wl}-E'
9057      ;;
9058
9059    hpux10*)
9060      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9061	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9062      else
9063	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9064      fi
9065      if test "$with_gnu_ld" = no; then
9066	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9067	hardcode_libdir_flag_spec_ld='+b $libdir'
9068	hardcode_libdir_separator=:
9069	hardcode_direct=yes
9070	hardcode_direct_absolute=yes
9071	export_dynamic_flag_spec='${wl}-E'
9072	# hardcode_minus_L: Not really in the search PATH,
9073	# but as the default location of the library.
9074	hardcode_minus_L=yes
9075      fi
9076      ;;
9077
9078    hpux11*)
9079      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9080	case $host_cpu in
9081	hppa*64*)
9082	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9083	  ;;
9084	ia64*)
9085	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9086	  ;;
9087	*)
9088	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9089	  ;;
9090	esac
9091      else
9092	case $host_cpu in
9093	hppa*64*)
9094	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9095	  ;;
9096	ia64*)
9097	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9098	  ;;
9099	*)
9100	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9101	  ;;
9102	esac
9103      fi
9104      if test "$with_gnu_ld" = no; then
9105	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9106	hardcode_libdir_separator=:
9107
9108	case $host_cpu in
9109	hppa*64*|ia64*)
9110	  hardcode_direct=no
9111	  hardcode_shlibpath_var=no
9112	  ;;
9113	*)
9114	  hardcode_direct=yes
9115	  hardcode_direct_absolute=yes
9116	  export_dynamic_flag_spec='${wl}-E'
9117
9118	  # hardcode_minus_L: Not really in the search PATH,
9119	  # but as the default location of the library.
9120	  hardcode_minus_L=yes
9121	  ;;
9122	esac
9123      fi
9124      ;;
9125
9126    irix5* | irix6* | nonstopux*)
9127      if test "$GCC" = yes; then
9128	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'
9129	# Try to use the -exported_symbol ld option, if it does not
9130	# work, assume that -exports_file does not work either and
9131	# implicitly export all symbols.
9132        save_LDFLAGS="$LDFLAGS"
9133        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9134        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135/* end confdefs.h.  */
9136int foo(void) {}
9137_ACEOF
9138if ac_fn_c_try_link "$LINENO"; then :
9139  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'
9140
9141fi
9142rm -f core conftest.err conftest.$ac_objext \
9143    conftest$ac_exeext conftest.$ac_ext
9144        LDFLAGS="$save_LDFLAGS"
9145      else
9146	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'
9147	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'
9148      fi
9149      archive_cmds_need_lc='no'
9150      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9151      hardcode_libdir_separator=:
9152      inherit_rpath=yes
9153      link_all_deplibs=yes
9154      ;;
9155
9156    netbsd* | netbsdelf*-gnu)
9157      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9158	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9159      else
9160	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9161      fi
9162      hardcode_libdir_flag_spec='-R$libdir'
9163      hardcode_direct=yes
9164      hardcode_shlibpath_var=no
9165      ;;
9166
9167    newsos6)
9168      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9169      hardcode_direct=yes
9170      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171      hardcode_libdir_separator=:
9172      hardcode_shlibpath_var=no
9173      ;;
9174
9175    *nto* | *qnx*)
9176      ;;
9177
9178    openbsd*)
9179      if test -f /usr/libexec/ld.so; then
9180	hardcode_direct=yes
9181	hardcode_shlibpath_var=no
9182	hardcode_direct_absolute=yes
9183	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9184	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9185	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9186	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9187	  export_dynamic_flag_spec='${wl}-E'
9188	else
9189	  case $host_os in
9190	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9191	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192	     hardcode_libdir_flag_spec='-R$libdir'
9193	     ;;
9194	   *)
9195	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9196	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9197	     ;;
9198	  esac
9199	fi
9200      else
9201	ld_shlibs=no
9202      fi
9203      ;;
9204
9205    os2*)
9206      hardcode_libdir_flag_spec='-L$libdir'
9207      hardcode_minus_L=yes
9208      allow_undefined_flag=unsupported
9209      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'
9210      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9211      ;;
9212
9213    osf3*)
9214      if test "$GCC" = yes; then
9215	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9216	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'
9217      else
9218	allow_undefined_flag=' -expect_unresolved \*'
9219	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'
9220      fi
9221      archive_cmds_need_lc='no'
9222      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9223      hardcode_libdir_separator=:
9224      ;;
9225
9226    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9227      if test "$GCC" = yes; then
9228	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9229	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'
9230	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231      else
9232	allow_undefined_flag=' -expect_unresolved \*'
9233	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'
9234	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~
9235	$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'
9236
9237	# Both c and cxx compiler support -rpath directly
9238	hardcode_libdir_flag_spec='-rpath $libdir'
9239      fi
9240      archive_cmds_need_lc='no'
9241      hardcode_libdir_separator=:
9242      ;;
9243
9244    solaris*)
9245      no_undefined_flag=' -z defs'
9246      if test "$GCC" = yes; then
9247	wlarc='${wl}'
9248	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9249	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9250	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9251      else
9252	case `$CC -V 2>&1` in
9253	*"Compilers 5.0"*)
9254	  wlarc=''
9255	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9256	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9257	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9258	  ;;
9259	*)
9260	  wlarc='${wl}'
9261	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9262	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9263	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9264	  ;;
9265	esac
9266      fi
9267      hardcode_libdir_flag_spec='-R$libdir'
9268      hardcode_shlibpath_var=no
9269      case $host_os in
9270      solaris2.[0-5] | solaris2.[0-5].*) ;;
9271      *)
9272	# The compiler driver will combine and reorder linker options,
9273	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9274	# but is careful enough not to reorder.
9275	# Supported since Solaris 2.6 (maybe 2.5.1?)
9276	if test "$GCC" = yes; then
9277	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9278	else
9279	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9280	fi
9281	;;
9282      esac
9283      link_all_deplibs=yes
9284      ;;
9285
9286    sunos4*)
9287      if test "x$host_vendor" = xsequent; then
9288	# Use $CC to link under sequent, because it throws in some extra .o
9289	# files that make .init and .fini sections work.
9290	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9291      else
9292	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9293      fi
9294      hardcode_libdir_flag_spec='-L$libdir'
9295      hardcode_direct=yes
9296      hardcode_minus_L=yes
9297      hardcode_shlibpath_var=no
9298      ;;
9299
9300    sysv4)
9301      case $host_vendor in
9302	sni)
9303	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304	  hardcode_direct=yes # is this really true???
9305	;;
9306	siemens)
9307	  ## LD is ld it makes a PLAMLIB
9308	  ## CC just makes a GrossModule.
9309	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9310	  reload_cmds='$CC -r -o $output$reload_objs'
9311	  hardcode_direct=no
9312        ;;
9313	motorola)
9314	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9316	;;
9317      esac
9318      runpath_var='LD_RUN_PATH'
9319      hardcode_shlibpath_var=no
9320      ;;
9321
9322    sysv4.3*)
9323      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324      hardcode_shlibpath_var=no
9325      export_dynamic_flag_spec='-Bexport'
9326      ;;
9327
9328    sysv4*MP*)
9329      if test -d /usr/nec; then
9330	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331	hardcode_shlibpath_var=no
9332	runpath_var=LD_RUN_PATH
9333	hardcode_runpath_var=yes
9334	ld_shlibs=yes
9335      fi
9336      ;;
9337
9338    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9339      no_undefined_flag='${wl}-z,text'
9340      archive_cmds_need_lc=no
9341      hardcode_shlibpath_var=no
9342      runpath_var='LD_RUN_PATH'
9343
9344      if test "$GCC" = yes; then
9345	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9346	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9347      else
9348	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9349	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350      fi
9351      ;;
9352
9353    sysv5* | sco3.2v5* | sco5v6*)
9354      # Note: We can NOT use -z defs as we might desire, because we do not
9355      # link with -lc, and that would cause any symbols used from libc to
9356      # always be unresolved, which means just about no library would
9357      # ever link correctly.  If we're not using GNU ld we use -z text
9358      # though, which does catch some bad symbols but isn't as heavy-handed
9359      # as -z defs.
9360      no_undefined_flag='${wl}-z,text'
9361      allow_undefined_flag='${wl}-z,nodefs'
9362      archive_cmds_need_lc=no
9363      hardcode_shlibpath_var=no
9364      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9365      hardcode_libdir_separator=':'
9366      link_all_deplibs=yes
9367      export_dynamic_flag_spec='${wl}-Bexport'
9368      runpath_var='LD_RUN_PATH'
9369
9370      if test "$GCC" = yes; then
9371	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373      else
9374	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9375	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376      fi
9377      ;;
9378
9379    uts4*)
9380      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381      hardcode_libdir_flag_spec='-L$libdir'
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    *)
9386      ld_shlibs=no
9387      ;;
9388    esac
9389
9390    if test x$host_vendor = xsni; then
9391      case $host in
9392      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9393	export_dynamic_flag_spec='${wl}-Blargedynsym'
9394	;;
9395      esac
9396    fi
9397  fi
9398
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9400$as_echo "$ld_shlibs" >&6; }
9401test "$ld_shlibs" = no && can_build_shared=no
9402
9403with_gnu_ld=$with_gnu_ld
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419#
9420# Do we need to explicitly link libc?
9421#
9422case "x$archive_cmds_need_lc" in
9423x|xyes)
9424  # Assume -lc should be added
9425  archive_cmds_need_lc=yes
9426
9427  if test "$enable_shared" = yes && test "$GCC" = yes; then
9428    case $archive_cmds in
9429    *'~'*)
9430      # FIXME: we may have to deal with multi-command sequences.
9431      ;;
9432    '$CC '*)
9433      # Test whether the compiler implicitly links with -lc since on some
9434      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9435      # to ld, don't add -lc before -lgcc.
9436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9437$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9438      $RM conftest*
9439      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9440
9441      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9442  (eval $ac_compile) 2>&5
9443  ac_status=$?
9444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9445  test $ac_status = 0; } 2>conftest.err; then
9446        soname=conftest
9447        lib=conftest
9448        libobjs=conftest.$ac_objext
9449        deplibs=
9450        wl=$lt_prog_compiler_wl
9451	pic_flag=$lt_prog_compiler_pic
9452        compiler_flags=-v
9453        linker_flags=-v
9454        verstring=
9455        output_objdir=.
9456        libname=conftest
9457        lt_save_allow_undefined_flag=$allow_undefined_flag
9458        allow_undefined_flag=
9459        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9460  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9461  ac_status=$?
9462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9463  test $ac_status = 0; }
9464        then
9465	  archive_cmds_need_lc=no
9466        else
9467	  archive_cmds_need_lc=yes
9468        fi
9469        allow_undefined_flag=$lt_save_allow_undefined_flag
9470      else
9471        cat conftest.err 1>&5
9472      fi
9473      $RM conftest*
9474      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9475$as_echo "$archive_cmds_need_lc" >&6; }
9476      ;;
9477    esac
9478  fi
9479  ;;
9480esac
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
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9639$as_echo_n "checking dynamic linker characteristics... " >&6; }
9640
9641if test "$GCC" = yes; then
9642  case $host_os in
9643    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9644    *) lt_awk_arg="/^libraries:/" ;;
9645  esac
9646  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9647  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9648    # if the path contains ";" then we assume it to be the separator
9649    # otherwise default to the standard path separator (i.e. ":") - it is
9650    # assumed that no part of a normal pathname contains ";" but that should
9651    # okay in the real world where ";" in dirpaths is itself problematic.
9652    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9653  else
9654    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9655  fi
9656  # Ok, now we have the path, separated by spaces, we can step through it
9657  # and add multilib dir if necessary.
9658  lt_tmp_lt_search_path_spec=
9659  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9660  for lt_sys_path in $lt_search_path_spec; do
9661    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9662      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9663    else
9664      test -d "$lt_sys_path" && \
9665	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9666    fi
9667  done
9668  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9669BEGIN {RS=" "; FS="/|\n";} {
9670  lt_foo="";
9671  lt_count=0;
9672  for (lt_i = NF; lt_i > 0; lt_i--) {
9673    if ($lt_i != "" && $lt_i != ".") {
9674      if ($lt_i == "..") {
9675        lt_count++;
9676      } else {
9677        if (lt_count == 0) {
9678          lt_foo="/" $lt_i lt_foo;
9679        } else {
9680          lt_count--;
9681        }
9682      }
9683    }
9684  }
9685  if (lt_foo != "") { lt_freq[lt_foo]++; }
9686  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9687}'`
9688  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9689else
9690  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9691fi
9692library_names_spec=
9693libname_spec='lib$name'
9694soname_spec=
9695shrext_cmds=".so"
9696postinstall_cmds=
9697postuninstall_cmds=
9698finish_cmds=
9699finish_eval=
9700shlibpath_var=
9701shlibpath_overrides_runpath=unknown
9702version_type=none
9703dynamic_linker="$host_os ld.so"
9704sys_lib_dlsearch_path_spec="/lib /usr/lib"
9705need_lib_prefix=unknown
9706hardcode_into_libs=no
9707
9708# when you set need_version to no, make sure it does not cause -set_version
9709# flags to be left without arguments
9710need_version=unknown
9711
9712case $host_os in
9713aix3*)
9714  version_type=linux
9715  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9716  shlibpath_var=LIBPATH
9717
9718  # AIX 3 has no versioning support, so we append a major version to the name.
9719  soname_spec='${libname}${release}${shared_ext}$major'
9720  ;;
9721
9722aix[4-9]*)
9723  version_type=linux
9724  need_lib_prefix=no
9725  need_version=no
9726  hardcode_into_libs=yes
9727  if test "$host_cpu" = ia64; then
9728    # AIX 5 supports IA64
9729    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9730    shlibpath_var=LD_LIBRARY_PATH
9731  else
9732    # With GCC up to 2.95.x, collect2 would create an import file
9733    # for dependence libraries.  The import file would start with
9734    # the line `#! .'.  This would cause the generated library to
9735    # depend on `.', always an invalid library.  This was fixed in
9736    # development snapshots of GCC prior to 3.0.
9737    case $host_os in
9738      aix4 | aix4.[01] | aix4.[01].*)
9739      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9740	   echo ' yes '
9741	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9742	:
9743      else
9744	can_build_shared=no
9745      fi
9746      ;;
9747    esac
9748    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9749    # soname into executable. Probably we can add versioning support to
9750    # collect2, so additional links can be useful in future.
9751    if test "$aix_use_runtimelinking" = yes; then
9752      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9753      # instead of lib<name>.a to let people know that these are not
9754      # typical AIX shared libraries.
9755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756    else
9757      # We preserve .a as extension for shared libraries through AIX4.2
9758      # and later when we are not doing run time linking.
9759      library_names_spec='${libname}${release}.a $libname.a'
9760      soname_spec='${libname}${release}${shared_ext}$major'
9761    fi
9762    shlibpath_var=LIBPATH
9763  fi
9764  ;;
9765
9766amigaos*)
9767  case $host_cpu in
9768  powerpc)
9769    # Since July 2007 AmigaOS4 officially supports .so libraries.
9770    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9771    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772    ;;
9773  m68k)
9774    library_names_spec='$libname.ixlibrary $libname.a'
9775    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9776    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'
9777    ;;
9778  esac
9779  ;;
9780
9781beos*)
9782  library_names_spec='${libname}${shared_ext}'
9783  dynamic_linker="$host_os ld.so"
9784  shlibpath_var=LIBRARY_PATH
9785  ;;
9786
9787bsdi[45]*)
9788  version_type=linux
9789  need_version=no
9790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791  soname_spec='${libname}${release}${shared_ext}$major'
9792  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9793  shlibpath_var=LD_LIBRARY_PATH
9794  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9795  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9796  # the default ld.so.conf also contains /usr/contrib/lib and
9797  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9798  # libtool to hard-code these into programs
9799  ;;
9800
9801cygwin* | mingw* | pw32* | cegcc*)
9802  version_type=windows
9803  shrext_cmds=".dll"
9804  need_version=no
9805  need_lib_prefix=no
9806
9807  case $GCC,$host_os in
9808  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9809    library_names_spec='$libname.dll.a'
9810    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9811    postinstall_cmds='base_file=`basename \${file}`~
9812      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9813      dldir=$destdir/`dirname \$dlpath`~
9814      test -d \$dldir || mkdir -p \$dldir~
9815      $install_prog $dir/$dlname \$dldir/$dlname~
9816      chmod a+x \$dldir/$dlname~
9817      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9818        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9819      fi'
9820    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9821      dlpath=$dir/\$dldll~
9822       $RM \$dlpath'
9823    shlibpath_overrides_runpath=yes
9824
9825    case $host_os in
9826    cygwin*)
9827      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9828      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9829      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9830      ;;
9831    mingw* | cegcc*)
9832      # MinGW DLLs use traditional 'lib' prefix
9833      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9834      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9835      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9836        # It is most probably a Windows format PATH printed by
9837        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9838        # path with ; separators, and with drive letters. We can handle the
9839        # drive letters (cygwin fileutils understands them), so leave them,
9840        # especially as we might pass files found there to a mingw objdump,
9841        # which wouldn't understand a cygwinified path. Ahh.
9842        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9843      else
9844        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9845      fi
9846      ;;
9847    pw32*)
9848      # pw32 DLLs use 'pw' prefix rather than 'lib'
9849      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9850      ;;
9851    esac
9852    ;;
9853
9854  *)
9855    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9856    ;;
9857  esac
9858  dynamic_linker='Win32 ld.exe'
9859  # FIXME: first we should search . and the directory the executable is in
9860  shlibpath_var=PATH
9861  ;;
9862
9863darwin* | rhapsody*)
9864  dynamic_linker="$host_os dyld"
9865  version_type=darwin
9866  need_lib_prefix=no
9867  need_version=no
9868  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9869  soname_spec='${libname}${release}${major}$shared_ext'
9870  shlibpath_overrides_runpath=yes
9871  shlibpath_var=DYLD_LIBRARY_PATH
9872  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9873
9874  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9875  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9876  ;;
9877
9878dgux*)
9879  version_type=linux
9880  need_lib_prefix=no
9881  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
9885  ;;
9886
9887freebsd1*)
9888  dynamic_linker=no
9889  ;;
9890
9891freebsd* | dragonfly*)
9892  # DragonFly does not have aout.  When/if they implement a new
9893  # versioning mechanism, adjust this.
9894  if test -x /usr/bin/objformat; then
9895    objformat=`/usr/bin/objformat`
9896  else
9897    case $host_os in
9898    freebsd[123]*) objformat=aout ;;
9899    *) objformat=elf ;;
9900    esac
9901  fi
9902  version_type=freebsd-$objformat
9903  case $version_type in
9904    freebsd-elf*)
9905      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9906      need_version=no
9907      need_lib_prefix=no
9908      ;;
9909    freebsd-*)
9910      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9911      need_version=yes
9912      ;;
9913  esac
9914  shlibpath_var=LD_LIBRARY_PATH
9915  case $host_os in
9916  freebsd2*)
9917    shlibpath_overrides_runpath=yes
9918    ;;
9919  freebsd3.[01]* | freebsdelf3.[01]*)
9920    shlibpath_overrides_runpath=yes
9921    hardcode_into_libs=yes
9922    ;;
9923  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9924  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9925    shlibpath_overrides_runpath=no
9926    hardcode_into_libs=yes
9927    ;;
9928  *) # from 4.6 on, and DragonFly
9929    shlibpath_overrides_runpath=yes
9930    hardcode_into_libs=yes
9931    ;;
9932  esac
9933  ;;
9934
9935gnu*)
9936  version_type=linux
9937  need_lib_prefix=no
9938  need_version=no
9939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9940  soname_spec='${libname}${release}${shared_ext}$major'
9941  shlibpath_var=LD_LIBRARY_PATH
9942  hardcode_into_libs=yes
9943  ;;
9944
9945hpux9* | hpux10* | hpux11*)
9946  # Give a soname corresponding to the major version so that dld.sl refuses to
9947  # link against other versions.
9948  version_type=sunos
9949  need_lib_prefix=no
9950  need_version=no
9951  case $host_cpu in
9952  ia64*)
9953    shrext_cmds='.so'
9954    hardcode_into_libs=yes
9955    dynamic_linker="$host_os dld.so"
9956    shlibpath_var=LD_LIBRARY_PATH
9957    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9958    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959    soname_spec='${libname}${release}${shared_ext}$major'
9960    if test "X$HPUX_IA64_MODE" = X32; then
9961      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9962    else
9963      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9964    fi
9965    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9966    ;;
9967  hppa*64*)
9968    shrext_cmds='.sl'
9969    hardcode_into_libs=yes
9970    dynamic_linker="$host_os dld.sl"
9971    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9972    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974    soname_spec='${libname}${release}${shared_ext}$major'
9975    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9976    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9977    ;;
9978  *)
9979    shrext_cmds='.sl'
9980    dynamic_linker="$host_os dld.sl"
9981    shlibpath_var=SHLIB_PATH
9982    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9983    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984    soname_spec='${libname}${release}${shared_ext}$major'
9985    ;;
9986  esac
9987  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9988  postinstall_cmds='chmod 555 $lib'
9989  ;;
9990
9991interix[3-9]*)
9992  version_type=linux
9993  need_lib_prefix=no
9994  need_version=no
9995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9996  soname_spec='${libname}${release}${shared_ext}$major'
9997  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9998  shlibpath_var=LD_LIBRARY_PATH
9999  shlibpath_overrides_runpath=no
10000  hardcode_into_libs=yes
10001  ;;
10002
10003irix5* | irix6* | nonstopux*)
10004  case $host_os in
10005    nonstopux*) version_type=nonstopux ;;
10006    *)
10007	if test "$lt_cv_prog_gnu_ld" = yes; then
10008		version_type=linux
10009	else
10010		version_type=irix
10011	fi ;;
10012  esac
10013  need_lib_prefix=no
10014  need_version=no
10015  soname_spec='${libname}${release}${shared_ext}$major'
10016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10017  case $host_os in
10018  irix5* | nonstopux*)
10019    libsuff= shlibsuff=
10020    ;;
10021  *)
10022    case $LD in # libtool.m4 will add one of these switches to LD
10023    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10024      libsuff= shlibsuff= libmagic=32-bit;;
10025    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10026      libsuff=32 shlibsuff=N32 libmagic=N32;;
10027    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10028      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10029    *) libsuff= shlibsuff= libmagic=never-match;;
10030    esac
10031    ;;
10032  esac
10033  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10034  shlibpath_overrides_runpath=no
10035  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10036  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10037  hardcode_into_libs=yes
10038  ;;
10039
10040# No shared lib support for Linux oldld, aout, or coff.
10041linux*oldld* | linux*aout* | linux*coff*)
10042  dynamic_linker=no
10043  ;;
10044
10045# This must be Linux ELF.
10046linux* | k*bsd*-gnu | kopensolaris*-gnu)
10047  version_type=linux
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10053  shlibpath_var=LD_LIBRARY_PATH
10054  shlibpath_overrides_runpath=no
10055  # Some binutils ld are patched to set DT_RUNPATH
10056  save_LDFLAGS=$LDFLAGS
10057  save_libdir=$libdir
10058  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10059       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062
10063int
10064main ()
10065{
10066
10067  ;
10068  return 0;
10069}
10070_ACEOF
10071if ac_fn_c_try_link "$LINENO"; then :
10072  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10073  shlibpath_overrides_runpath=yes
10074fi
10075fi
10076rm -f core conftest.err conftest.$ac_objext \
10077    conftest$ac_exeext conftest.$ac_ext
10078  LDFLAGS=$save_LDFLAGS
10079  libdir=$save_libdir
10080
10081  # This implies no fast_install, which is unacceptable.
10082  # Some rework will be needed to allow for fast_install
10083  # before this can be enabled.
10084  hardcode_into_libs=yes
10085
10086  # Append ld.so.conf contents to the search path
10087  if test -f /etc/ld.so.conf; then
10088    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' ' '`
10089    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10090  fi
10091
10092  # We used to test for /lib/ld.so.1 and disable shared libraries on
10093  # powerpc, because MkLinux only supported shared libraries with the
10094  # GNU dynamic linker.  Since this was broken with cross compilers,
10095  # most powerpc-linux boxes support dynamic linking these days and
10096  # people can always --disable-shared, the test was removed, and we
10097  # assume the GNU/Linux dynamic linker is in use.
10098  dynamic_linker='GNU/Linux ld.so'
10099  ;;
10100
10101netbsdelf*-gnu)
10102  version_type=linux
10103  need_lib_prefix=no
10104  need_version=no
10105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10106  soname_spec='${libname}${release}${shared_ext}$major'
10107  shlibpath_var=LD_LIBRARY_PATH
10108  shlibpath_overrides_runpath=no
10109  hardcode_into_libs=yes
10110  dynamic_linker='NetBSD ld.elf_so'
10111  ;;
10112
10113netbsd*)
10114  version_type=sunos
10115  need_lib_prefix=no
10116  need_version=no
10117  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10118    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10119    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10120    dynamic_linker='NetBSD (a.out) ld.so'
10121  else
10122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10123    soname_spec='${libname}${release}${shared_ext}$major'
10124    dynamic_linker='NetBSD ld.elf_so'
10125  fi
10126  shlibpath_var=LD_LIBRARY_PATH
10127  shlibpath_overrides_runpath=yes
10128  hardcode_into_libs=yes
10129  ;;
10130
10131newsos6)
10132  version_type=linux
10133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134  shlibpath_var=LD_LIBRARY_PATH
10135  shlibpath_overrides_runpath=yes
10136  ;;
10137
10138*nto* | *qnx*)
10139  version_type=qnx
10140  need_lib_prefix=no
10141  need_version=no
10142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143  soname_spec='${libname}${release}${shared_ext}$major'
10144  shlibpath_var=LD_LIBRARY_PATH
10145  shlibpath_overrides_runpath=no
10146  hardcode_into_libs=yes
10147  dynamic_linker='ldqnx.so'
10148  ;;
10149
10150openbsd*)
10151  version_type=sunos
10152  sys_lib_dlsearch_path_spec="/usr/lib"
10153  need_lib_prefix=no
10154  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10155  case $host_os in
10156    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10157    *)				need_version=no  ;;
10158  esac
10159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10160  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10161  shlibpath_var=LD_LIBRARY_PATH
10162  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10163    case $host_os in
10164      openbsd2.[89] | openbsd2.[89].*)
10165	shlibpath_overrides_runpath=no
10166	;;
10167      *)
10168	shlibpath_overrides_runpath=yes
10169	;;
10170      esac
10171  else
10172    shlibpath_overrides_runpath=yes
10173  fi
10174  ;;
10175
10176os2*)
10177  libname_spec='$name'
10178  shrext_cmds=".dll"
10179  need_lib_prefix=no
10180  library_names_spec='$libname${shared_ext} $libname.a'
10181  dynamic_linker='OS/2 ld.exe'
10182  shlibpath_var=LIBPATH
10183  ;;
10184
10185osf3* | osf4* | osf5*)
10186  version_type=osf
10187  need_lib_prefix=no
10188  need_version=no
10189  soname_spec='${libname}${release}${shared_ext}$major'
10190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191  shlibpath_var=LD_LIBRARY_PATH
10192  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10193  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10194  ;;
10195
10196rdos*)
10197  dynamic_linker=no
10198  ;;
10199
10200solaris*)
10201  version_type=linux
10202  need_lib_prefix=no
10203  need_version=no
10204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205  soname_spec='${libname}${release}${shared_ext}$major'
10206  shlibpath_var=LD_LIBRARY_PATH
10207  shlibpath_overrides_runpath=yes
10208  hardcode_into_libs=yes
10209  # ldd complains unless libraries are executable
10210  postinstall_cmds='chmod +x $lib'
10211  ;;
10212
10213sunos4*)
10214  version_type=sunos
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10216  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10217  shlibpath_var=LD_LIBRARY_PATH
10218  shlibpath_overrides_runpath=yes
10219  if test "$with_gnu_ld" = yes; then
10220    need_lib_prefix=no
10221  fi
10222  need_version=yes
10223  ;;
10224
10225sysv4 | sysv4.3*)
10226  version_type=linux
10227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228  soname_spec='${libname}${release}${shared_ext}$major'
10229  shlibpath_var=LD_LIBRARY_PATH
10230  case $host_vendor in
10231    sni)
10232      shlibpath_overrides_runpath=no
10233      need_lib_prefix=no
10234      runpath_var=LD_RUN_PATH
10235      ;;
10236    siemens)
10237      need_lib_prefix=no
10238      ;;
10239    motorola)
10240      need_lib_prefix=no
10241      need_version=no
10242      shlibpath_overrides_runpath=no
10243      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10244      ;;
10245  esac
10246  ;;
10247
10248sysv4*MP*)
10249  if test -d /usr/nec ;then
10250    version_type=linux
10251    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10252    soname_spec='$libname${shared_ext}.$major'
10253    shlibpath_var=LD_LIBRARY_PATH
10254  fi
10255  ;;
10256
10257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10258  version_type=freebsd-elf
10259  need_lib_prefix=no
10260  need_version=no
10261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10262  soname_spec='${libname}${release}${shared_ext}$major'
10263  shlibpath_var=LD_LIBRARY_PATH
10264  shlibpath_overrides_runpath=yes
10265  hardcode_into_libs=yes
10266  if test "$with_gnu_ld" = yes; then
10267    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10268  else
10269    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10270    case $host_os in
10271      sco3.2v5*)
10272        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10273	;;
10274    esac
10275  fi
10276  sys_lib_dlsearch_path_spec='/usr/lib'
10277  ;;
10278
10279tpf*)
10280  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10281  version_type=linux
10282  need_lib_prefix=no
10283  need_version=no
10284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285  shlibpath_var=LD_LIBRARY_PATH
10286  shlibpath_overrides_runpath=no
10287  hardcode_into_libs=yes
10288  ;;
10289
10290uts4*)
10291  version_type=linux
10292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293  soname_spec='${libname}${release}${shared_ext}$major'
10294  shlibpath_var=LD_LIBRARY_PATH
10295  ;;
10296
10297*)
10298  dynamic_linker=no
10299  ;;
10300esac
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10302$as_echo "$dynamic_linker" >&6; }
10303test "$dynamic_linker" = no && can_build_shared=no
10304
10305variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10306if test "$GCC" = yes; then
10307  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10308fi
10309
10310if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10311  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10312fi
10313if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10314  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10315fi
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10404$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10405hardcode_action=
10406if test -n "$hardcode_libdir_flag_spec" ||
10407   test -n "$runpath_var" ||
10408   test "X$hardcode_automatic" = "Xyes" ; then
10409
10410  # We can hardcode non-existent directories.
10411  if test "$hardcode_direct" != no &&
10412     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10413     # have to relink, otherwise we might link with an installed library
10414     # when we should be linking with a yet-to-be-installed one
10415     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10416     test "$hardcode_minus_L" != no; then
10417    # Linking always hardcodes the temporary library directory.
10418    hardcode_action=relink
10419  else
10420    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10421    hardcode_action=immediate
10422  fi
10423else
10424  # We cannot hardcode anything, or else we can only hardcode existing
10425  # directories.
10426  hardcode_action=unsupported
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10429$as_echo "$hardcode_action" >&6; }
10430
10431if test "$hardcode_action" = relink ||
10432   test "$inherit_rpath" = yes; then
10433  # Fast installation is not supported
10434  enable_fast_install=no
10435elif test "$shlibpath_overrides_runpath" = yes ||
10436     test "$enable_shared" = no; then
10437  # Fast installation is not necessary
10438  enable_fast_install=needless
10439fi
10440
10441
10442
10443
10444
10445
10446  if test "x$enable_dlopen" != xyes; then
10447  enable_dlopen=unknown
10448  enable_dlopen_self=unknown
10449  enable_dlopen_self_static=unknown
10450else
10451  lt_cv_dlopen=no
10452  lt_cv_dlopen_libs=
10453
10454  case $host_os in
10455  beos*)
10456    lt_cv_dlopen="load_add_on"
10457    lt_cv_dlopen_libs=
10458    lt_cv_dlopen_self=yes
10459    ;;
10460
10461  mingw* | pw32* | cegcc*)
10462    lt_cv_dlopen="LoadLibrary"
10463    lt_cv_dlopen_libs=
10464    ;;
10465
10466  cygwin*)
10467    lt_cv_dlopen="dlopen"
10468    lt_cv_dlopen_libs=
10469    ;;
10470
10471  darwin*)
10472  # if libdl is installed we need to link against it
10473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10474$as_echo_n "checking for dlopen in -ldl... " >&6; }
10475if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10476  $as_echo_n "(cached) " >&6
10477else
10478  ac_check_lib_save_LIBS=$LIBS
10479LIBS="-ldl  $LIBS"
10480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h.  */
10482
10483/* Override any GCC internal prototype to avoid an error.
10484   Use char because int might match the return type of a GCC
10485   builtin and then its argument prototype would still apply.  */
10486#ifdef __cplusplus
10487extern "C"
10488#endif
10489char dlopen ();
10490int
10491main ()
10492{
10493return dlopen ();
10494  ;
10495  return 0;
10496}
10497_ACEOF
10498if ac_fn_c_try_link "$LINENO"; then :
10499  ac_cv_lib_dl_dlopen=yes
10500else
10501  ac_cv_lib_dl_dlopen=no
10502fi
10503rm -f core conftest.err conftest.$ac_objext \
10504    conftest$ac_exeext conftest.$ac_ext
10505LIBS=$ac_check_lib_save_LIBS
10506fi
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10508$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10509if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10510  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10511else
10512
10513    lt_cv_dlopen="dyld"
10514    lt_cv_dlopen_libs=
10515    lt_cv_dlopen_self=yes
10516
10517fi
10518
10519    ;;
10520
10521  *)
10522    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10523if test "x$ac_cv_func_shl_load" = x""yes; then :
10524  lt_cv_dlopen="shl_load"
10525else
10526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10527$as_echo_n "checking for shl_load in -ldld... " >&6; }
10528if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  ac_check_lib_save_LIBS=$LIBS
10532LIBS="-ldld  $LIBS"
10533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534/* end confdefs.h.  */
10535
10536/* Override any GCC internal prototype to avoid an error.
10537   Use char because int might match the return type of a GCC
10538   builtin and then its argument prototype would still apply.  */
10539#ifdef __cplusplus
10540extern "C"
10541#endif
10542char shl_load ();
10543int
10544main ()
10545{
10546return shl_load ();
10547  ;
10548  return 0;
10549}
10550_ACEOF
10551if ac_fn_c_try_link "$LINENO"; then :
10552  ac_cv_lib_dld_shl_load=yes
10553else
10554  ac_cv_lib_dld_shl_load=no
10555fi
10556rm -f core conftest.err conftest.$ac_objext \
10557    conftest$ac_exeext conftest.$ac_ext
10558LIBS=$ac_check_lib_save_LIBS
10559fi
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10561$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10562if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10563  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10564else
10565  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10566if test "x$ac_cv_func_dlopen" = x""yes; then :
10567  lt_cv_dlopen="dlopen"
10568else
10569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10570$as_echo_n "checking for dlopen in -ldl... " >&6; }
10571if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10572  $as_echo_n "(cached) " >&6
10573else
10574  ac_check_lib_save_LIBS=$LIBS
10575LIBS="-ldl  $LIBS"
10576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577/* end confdefs.h.  */
10578
10579/* Override any GCC internal prototype to avoid an error.
10580   Use char because int might match the return type of a GCC
10581   builtin and then its argument prototype would still apply.  */
10582#ifdef __cplusplus
10583extern "C"
10584#endif
10585char dlopen ();
10586int
10587main ()
10588{
10589return dlopen ();
10590  ;
10591  return 0;
10592}
10593_ACEOF
10594if ac_fn_c_try_link "$LINENO"; then :
10595  ac_cv_lib_dl_dlopen=yes
10596else
10597  ac_cv_lib_dl_dlopen=no
10598fi
10599rm -f core conftest.err conftest.$ac_objext \
10600    conftest$ac_exeext conftest.$ac_ext
10601LIBS=$ac_check_lib_save_LIBS
10602fi
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10604$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10605if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10606  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10607else
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10609$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10610if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10611  $as_echo_n "(cached) " >&6
10612else
10613  ac_check_lib_save_LIBS=$LIBS
10614LIBS="-lsvld  $LIBS"
10615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616/* end confdefs.h.  */
10617
10618/* Override any GCC internal prototype to avoid an error.
10619   Use char because int might match the return type of a GCC
10620   builtin and then its argument prototype would still apply.  */
10621#ifdef __cplusplus
10622extern "C"
10623#endif
10624char dlopen ();
10625int
10626main ()
10627{
10628return dlopen ();
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633if ac_fn_c_try_link "$LINENO"; then :
10634  ac_cv_lib_svld_dlopen=yes
10635else
10636  ac_cv_lib_svld_dlopen=no
10637fi
10638rm -f core conftest.err conftest.$ac_objext \
10639    conftest$ac_exeext conftest.$ac_ext
10640LIBS=$ac_check_lib_save_LIBS
10641fi
10642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10643$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10644if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10645  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10646else
10647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10648$as_echo_n "checking for dld_link in -ldld... " >&6; }
10649if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10650  $as_echo_n "(cached) " >&6
10651else
10652  ac_check_lib_save_LIBS=$LIBS
10653LIBS="-ldld  $LIBS"
10654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656
10657/* Override any GCC internal prototype to avoid an error.
10658   Use char because int might match the return type of a GCC
10659   builtin and then its argument prototype would still apply.  */
10660#ifdef __cplusplus
10661extern "C"
10662#endif
10663char dld_link ();
10664int
10665main ()
10666{
10667return dld_link ();
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672if ac_fn_c_try_link "$LINENO"; then :
10673  ac_cv_lib_dld_dld_link=yes
10674else
10675  ac_cv_lib_dld_dld_link=no
10676fi
10677rm -f core conftest.err conftest.$ac_objext \
10678    conftest$ac_exeext conftest.$ac_ext
10679LIBS=$ac_check_lib_save_LIBS
10680fi
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10682$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10683if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10684  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10685fi
10686
10687
10688fi
10689
10690
10691fi
10692
10693
10694fi
10695
10696
10697fi
10698
10699
10700fi
10701
10702    ;;
10703  esac
10704
10705  if test "x$lt_cv_dlopen" != xno; then
10706    enable_dlopen=yes
10707  else
10708    enable_dlopen=no
10709  fi
10710
10711  case $lt_cv_dlopen in
10712  dlopen)
10713    save_CPPFLAGS="$CPPFLAGS"
10714    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10715
10716    save_LDFLAGS="$LDFLAGS"
10717    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10718
10719    save_LIBS="$LIBS"
10720    LIBS="$lt_cv_dlopen_libs $LIBS"
10721
10722    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10723$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10724if test "${lt_cv_dlopen_self+set}" = set; then :
10725  $as_echo_n "(cached) " >&6
10726else
10727  	  if test "$cross_compiling" = yes; then :
10728  lt_cv_dlopen_self=cross
10729else
10730  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10731  lt_status=$lt_dlunknown
10732  cat > conftest.$ac_ext <<_LT_EOF
10733#line 10733 "configure"
10734#include "confdefs.h"
10735
10736#if HAVE_DLFCN_H
10737#include <dlfcn.h>
10738#endif
10739
10740#include <stdio.h>
10741
10742#ifdef RTLD_GLOBAL
10743#  define LT_DLGLOBAL		RTLD_GLOBAL
10744#else
10745#  ifdef DL_GLOBAL
10746#    define LT_DLGLOBAL		DL_GLOBAL
10747#  else
10748#    define LT_DLGLOBAL		0
10749#  endif
10750#endif
10751
10752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10753   find out it does not work in some platform. */
10754#ifndef LT_DLLAZY_OR_NOW
10755#  ifdef RTLD_LAZY
10756#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10757#  else
10758#    ifdef DL_LAZY
10759#      define LT_DLLAZY_OR_NOW		DL_LAZY
10760#    else
10761#      ifdef RTLD_NOW
10762#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10763#      else
10764#        ifdef DL_NOW
10765#          define LT_DLLAZY_OR_NOW	DL_NOW
10766#        else
10767#          define LT_DLLAZY_OR_NOW	0
10768#        endif
10769#      endif
10770#    endif
10771#  endif
10772#endif
10773
10774void fnord() { int i=42;}
10775int main ()
10776{
10777  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10778  int status = $lt_dlunknown;
10779
10780  if (self)
10781    {
10782      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10783      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10784      /* dlclose (self); */
10785    }
10786  else
10787    puts (dlerror ());
10788
10789  return status;
10790}
10791_LT_EOF
10792  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10793  (eval $ac_link) 2>&5
10794  ac_status=$?
10795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10796  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10797    (./conftest; exit; ) >&5 2>/dev/null
10798    lt_status=$?
10799    case x$lt_status in
10800      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10801      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10802      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10803    esac
10804  else :
10805    # compilation failed
10806    lt_cv_dlopen_self=no
10807  fi
10808fi
10809rm -fr conftest*
10810
10811
10812fi
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10814$as_echo "$lt_cv_dlopen_self" >&6; }
10815
10816    if test "x$lt_cv_dlopen_self" = xyes; then
10817      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10818      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10819$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10820if test "${lt_cv_dlopen_self_static+set}" = set; then :
10821  $as_echo_n "(cached) " >&6
10822else
10823  	  if test "$cross_compiling" = yes; then :
10824  lt_cv_dlopen_self_static=cross
10825else
10826  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10827  lt_status=$lt_dlunknown
10828  cat > conftest.$ac_ext <<_LT_EOF
10829#line 10829 "configure"
10830#include "confdefs.h"
10831
10832#if HAVE_DLFCN_H
10833#include <dlfcn.h>
10834#endif
10835
10836#include <stdio.h>
10837
10838#ifdef RTLD_GLOBAL
10839#  define LT_DLGLOBAL		RTLD_GLOBAL
10840#else
10841#  ifdef DL_GLOBAL
10842#    define LT_DLGLOBAL		DL_GLOBAL
10843#  else
10844#    define LT_DLGLOBAL		0
10845#  endif
10846#endif
10847
10848/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10849   find out it does not work in some platform. */
10850#ifndef LT_DLLAZY_OR_NOW
10851#  ifdef RTLD_LAZY
10852#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10853#  else
10854#    ifdef DL_LAZY
10855#      define LT_DLLAZY_OR_NOW		DL_LAZY
10856#    else
10857#      ifdef RTLD_NOW
10858#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10859#      else
10860#        ifdef DL_NOW
10861#          define LT_DLLAZY_OR_NOW	DL_NOW
10862#        else
10863#          define LT_DLLAZY_OR_NOW	0
10864#        endif
10865#      endif
10866#    endif
10867#  endif
10868#endif
10869
10870void fnord() { int i=42;}
10871int main ()
10872{
10873  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10874  int status = $lt_dlunknown;
10875
10876  if (self)
10877    {
10878      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10879      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10880      /* dlclose (self); */
10881    }
10882  else
10883    puts (dlerror ());
10884
10885  return status;
10886}
10887_LT_EOF
10888  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10889  (eval $ac_link) 2>&5
10890  ac_status=$?
10891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10893    (./conftest; exit; ) >&5 2>/dev/null
10894    lt_status=$?
10895    case x$lt_status in
10896      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10897      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10898      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10899    esac
10900  else :
10901    # compilation failed
10902    lt_cv_dlopen_self_static=no
10903  fi
10904fi
10905rm -fr conftest*
10906
10907
10908fi
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10910$as_echo "$lt_cv_dlopen_self_static" >&6; }
10911    fi
10912
10913    CPPFLAGS="$save_CPPFLAGS"
10914    LDFLAGS="$save_LDFLAGS"
10915    LIBS="$save_LIBS"
10916    ;;
10917  esac
10918
10919  case $lt_cv_dlopen_self in
10920  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10921  *) enable_dlopen_self=unknown ;;
10922  esac
10923
10924  case $lt_cv_dlopen_self_static in
10925  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10926  *) enable_dlopen_self_static=unknown ;;
10927  esac
10928fi
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946striplib=
10947old_striplib=
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10949$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10950if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10951  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10952  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954$as_echo "yes" >&6; }
10955else
10956# FIXME - insert some real tests, host_os isn't really good enough
10957  case $host_os in
10958  darwin*)
10959    if test -n "$STRIP" ; then
10960      striplib="$STRIP -x"
10961      old_striplib="$STRIP -S"
10962      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10963$as_echo "yes" >&6; }
10964    else
10965      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
10967    fi
10968    ;;
10969  *)
10970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972    ;;
10973  esac
10974fi
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987  # Report which library types will actually be built
10988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10989$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10991$as_echo "$can_build_shared" >&6; }
10992
10993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10994$as_echo_n "checking whether to build shared libraries... " >&6; }
10995  test "$can_build_shared" = "no" && enable_shared=no
10996
10997  # On AIX, shared libraries and static libraries use the same namespace, and
10998  # are all built from PIC.
10999  case $host_os in
11000  aix3*)
11001    test "$enable_shared" = yes && enable_static=no
11002    if test -n "$RANLIB"; then
11003      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11004      postinstall_cmds='$RANLIB $lib'
11005    fi
11006    ;;
11007
11008  aix[4-9]*)
11009    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11010      test "$enable_shared" = yes && enable_static=no
11011    fi
11012    ;;
11013  esac
11014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11015$as_echo "$enable_shared" >&6; }
11016
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11018$as_echo_n "checking whether to build static libraries... " >&6; }
11019  # Make sure either enable_shared or enable_static is yes.
11020  test "$enable_shared" = yes || enable_static=yes
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11022$as_echo "$enable_static" >&6; }
11023
11024
11025
11026
11027fi
11028ac_ext=c
11029ac_cpp='$CPP $CPPFLAGS'
11030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11032ac_compiler_gnu=$ac_cv_c_compiler_gnu
11033
11034CC="$lt_save_CC"
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048        ac_config_commands="$ac_config_commands libtool"
11049
11050
11051
11052
11053# Only expand once:
11054
11055
11056
11057
11058
11059# Options
11060# Define a configure option for an alternate module directory
11061
11062# Check whether --with-xorg-module-dir was given.
11063if test "${with_xorg_module_dir+set}" = set; then :
11064  withval=$with_xorg_module_dir; moduledir="$withval"
11065else
11066  moduledir="$libdir/xorg/modules"
11067fi
11068
11069
11070# Store the list of server defined optional extensions in REQUIRED_MODULES
11071
11072
11073	SAVE_CFLAGS="$CFLAGS"
11074	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11075	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076/* end confdefs.h.  */
11077
11078#include "xorg-server.h"
11079#if !defined RANDR
11080#error RANDR not defined
11081#endif
11082
11083int
11084main ()
11085{
11086
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091if ac_fn_c_try_compile "$LINENO"; then :
11092  _EXT_CHECK=yes
11093else
11094  _EXT_CHECK=no
11095fi
11096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097	CFLAGS="$SAVE_CFLAGS"
11098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11099$as_echo_n "checking if RANDR is defined... " >&6; }
11100	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11101$as_echo "$_EXT_CHECK" >&6; }
11102	if test "$_EXT_CHECK" != no; then
11103		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11104	fi
11105
11106
11107
11108	SAVE_CFLAGS="$CFLAGS"
11109	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11110	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h.  */
11112
11113#include "xorg-server.h"
11114#if !defined RENDER
11115#error RENDER not defined
11116#endif
11117
11118int
11119main ()
11120{
11121
11122  ;
11123  return 0;
11124}
11125_ACEOF
11126if ac_fn_c_try_compile "$LINENO"; then :
11127  _EXT_CHECK=yes
11128else
11129  _EXT_CHECK=no
11130fi
11131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132	CFLAGS="$SAVE_CFLAGS"
11133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11134$as_echo_n "checking if RENDER is defined... " >&6; }
11135	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11136$as_echo "$_EXT_CHECK" >&6; }
11137	if test "$_EXT_CHECK" != no; then
11138		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11139	fi
11140
11141
11142
11143	SAVE_CFLAGS="$CFLAGS"
11144	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11145	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146/* end confdefs.h.  */
11147
11148#include "xorg-server.h"
11149#if !defined XV
11150#error XV not defined
11151#endif
11152
11153int
11154main ()
11155{
11156
11157  ;
11158  return 0;
11159}
11160_ACEOF
11161if ac_fn_c_try_compile "$LINENO"; then :
11162  _EXT_CHECK=yes
11163else
11164  _EXT_CHECK=no
11165fi
11166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167	CFLAGS="$SAVE_CFLAGS"
11168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
11169$as_echo_n "checking if XV is defined... " >&6; }
11170	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11171$as_echo "$_EXT_CHECK" >&6; }
11172	if test "$_EXT_CHECK" != no; then
11173		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
11174	fi
11175
11176
11177
11178	SAVE_CFLAGS="$CFLAGS"
11179	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11180	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181/* end confdefs.h.  */
11182
11183#include "xorg-server.h"
11184#if !defined DPMSExtension
11185#error DPMSExtension not defined
11186#endif
11187
11188int
11189main ()
11190{
11191
11192  ;
11193  return 0;
11194}
11195_ACEOF
11196if ac_fn_c_try_compile "$LINENO"; then :
11197  _EXT_CHECK=yes
11198else
11199  _EXT_CHECK=no
11200fi
11201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202	CFLAGS="$SAVE_CFLAGS"
11203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11204$as_echo_n "checking if DPMSExtension is defined... " >&6; }
11205	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11206$as_echo "$_EXT_CHECK" >&6; }
11207	if test "$_EXT_CHECK" != no; then
11208		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11209	fi
11210
11211
11212# Obtain compiler/linker options for the driver dependencies
11213
11214pkg_failed=no
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11216$as_echo_n "checking for XORG... " >&6; }
11217
11218if test -n "$PKG_CONFIG"; then
11219    if test -n "$XORG_CFLAGS"; then
11220        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11221    else
11222        if test -n "$PKG_CONFIG" && \
11223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11224  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
11225  ac_status=$?
11226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227  test $ac_status = 0; }; then
11228  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11229else
11230  pkg_failed=yes
11231fi
11232    fi
11233else
11234	pkg_failed=untried
11235fi
11236if test -n "$PKG_CONFIG"; then
11237    if test -n "$XORG_LIBS"; then
11238        pkg_cv_XORG_LIBS="$XORG_LIBS"
11239    else
11240        if test -n "$PKG_CONFIG" && \
11241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11242  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
11243  ac_status=$?
11244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11245  test $ac_status = 0; }; then
11246  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11247else
11248  pkg_failed=yes
11249fi
11250    fi
11251else
11252	pkg_failed=untried
11253fi
11254
11255
11256
11257if test $pkg_failed = yes; then
11258
11259if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11260        _pkg_short_errors_supported=yes
11261else
11262        _pkg_short_errors_supported=no
11263fi
11264        if test $_pkg_short_errors_supported = yes; then
11265	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES"`
11266        else
11267	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES"`
11268        fi
11269	# Put the nasty error message in config.log where it belongs
11270	echo "$XORG_PKG_ERRORS" >&5
11271
11272	as_fn_error "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
11273
11274$XORG_PKG_ERRORS
11275
11276Consider adjusting the PKG_CONFIG_PATH environment variable if you
11277installed software in a non-standard prefix.
11278
11279Alternatively, you may set the environment variables XORG_CFLAGS
11280and XORG_LIBS to avoid the need to call pkg-config.
11281See the pkg-config man page for more details.
11282" "$LINENO" 5
11283elif test $pkg_failed = untried; then
11284	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11286as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11287is in your PATH or set the PKG_CONFIG environment variable to the full
11288path to pkg-config.
11289
11290Alternatively, you may set the environment variables XORG_CFLAGS
11291and XORG_LIBS to avoid the need to call pkg-config.
11292See the pkg-config man page for more details.
11293
11294To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11295See \`config.log' for more details." "$LINENO" 5; }
11296else
11297	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11298	XORG_LIBS=$pkg_cv_XORG_LIBS
11299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11300$as_echo "yes" >&6; }
11301	:
11302fi
11303
11304pkg_failed=no
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
11306$as_echo_n "checking for XEXT... " >&6; }
11307
11308if test -n "$PKG_CONFIG"; then
11309    if test -n "$XEXT_CFLAGS"; then
11310        pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
11311    else
11312        if test -n "$PKG_CONFIG" && \
11313    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11314  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11315  ac_status=$?
11316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11317  test $ac_status = 0; }; then
11318  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
11319else
11320  pkg_failed=yes
11321fi
11322    fi
11323else
11324	pkg_failed=untried
11325fi
11326if test -n "$PKG_CONFIG"; then
11327    if test -n "$XEXT_LIBS"; then
11328        pkg_cv_XEXT_LIBS="$XEXT_LIBS"
11329    else
11330        if test -n "$PKG_CONFIG" && \
11331    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11332  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11333  ac_status=$?
11334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11335  test $ac_status = 0; }; then
11336  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
11337else
11338  pkg_failed=yes
11339fi
11340    fi
11341else
11342	pkg_failed=untried
11343fi
11344
11345
11346
11347if test $pkg_failed = yes; then
11348
11349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11350        _pkg_short_errors_supported=yes
11351else
11352        _pkg_short_errors_supported=no
11353fi
11354        if test $_pkg_short_errors_supported = yes; then
11355	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"`
11356        else
11357	        XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"`
11358        fi
11359	# Put the nasty error message in config.log where it belongs
11360	echo "$XEXT_PKG_ERRORS" >&5
11361
11362	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363$as_echo "no" >&6; }
11364                HAVE_XEXTPROTO_71="no"
11365elif test $pkg_failed = untried; then
11366	HAVE_XEXTPROTO_71="no"
11367else
11368	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
11369	XEXT_LIBS=$pkg_cv_XEXT_LIBS
11370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371$as_echo "yes" >&6; }
11372	HAVE_XEXTPROTO_71="yes";
11373$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
11374
11375fi
11376 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
11377  HAVE_XEXTPROTO_71_TRUE=
11378  HAVE_XEXTPROTO_71_FALSE='#'
11379else
11380  HAVE_XEXTPROTO_71_TRUE='#'
11381  HAVE_XEXTPROTO_71_FALSE=
11382fi
11383
11384
11385# Checks for libraries.
11386
11387
11388save_CFLAGS="$CFLAGS"
11389CFLAGS="$XORG_CFLAGS"
11390
11391# PCI rework
11392ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
11393"
11394if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
11395  XSERVER_LIBPCIACCESS=yes
11396else
11397  XSERVER_LIBPCIACCESS=no
11398fi
11399
11400if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then
11401
11402pkg_failed=no
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
11404$as_echo_n "checking for PCIACCESS... " >&6; }
11405
11406if test -n "$PKG_CONFIG"; then
11407    if test -n "$PCIACCESS_CFLAGS"; then
11408        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
11409    else
11410        if test -n "$PKG_CONFIG" && \
11411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
11412  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
11413  ac_status=$?
11414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415  test $ac_status = 0; }; then
11416  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10.7" 2>/dev/null`
11417else
11418  pkg_failed=yes
11419fi
11420    fi
11421else
11422	pkg_failed=untried
11423fi
11424if test -n "$PKG_CONFIG"; then
11425    if test -n "$PCIACCESS_LIBS"; then
11426        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
11427    else
11428        if test -n "$PKG_CONFIG" && \
11429    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
11430  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
11431  ac_status=$?
11432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11433  test $ac_status = 0; }; then
11434  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10.7" 2>/dev/null`
11435else
11436  pkg_failed=yes
11437fi
11438    fi
11439else
11440	pkg_failed=untried
11441fi
11442
11443
11444
11445if test $pkg_failed = yes; then
11446
11447if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11448        _pkg_short_errors_supported=yes
11449else
11450        _pkg_short_errors_supported=no
11451fi
11452        if test $_pkg_short_errors_supported = yes; then
11453	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10.7"`
11454        else
11455	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10.7"`
11456        fi
11457	# Put the nasty error message in config.log where it belongs
11458	echo "$PCIACCESS_PKG_ERRORS" >&5
11459
11460	as_fn_error "Package requirements (pciaccess >= 0.10.7) were not met:
11461
11462$PCIACCESS_PKG_ERRORS
11463
11464Consider adjusting the PKG_CONFIG_PATH environment variable if you
11465installed software in a non-standard prefix.
11466
11467Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11468and PCIACCESS_LIBS to avoid the need to call pkg-config.
11469See the pkg-config man page for more details.
11470" "$LINENO" 5
11471elif test $pkg_failed = untried; then
11472	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11474as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11475is in your PATH or set the PKG_CONFIG environment variable to the full
11476path to pkg-config.
11477
11478Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11479and PCIACCESS_LIBS to avoid the need to call pkg-config.
11480See the pkg-config man page for more details.
11481
11482To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11483See \`config.log' for more details." "$LINENO" 5; }
11484else
11485	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
11486	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
11487        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11488$as_echo "yes" >&6; }
11489	:
11490fi
11491fi
11492
11493CFLAGS="$save_CFLAGS"
11494
11495# Substitutions
11496
11497
11498DRIVER_NAME=nv
11499
11500
11501ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11502
11503cat >confcache <<\_ACEOF
11504# This file is a shell script that caches the results of configure
11505# tests run on this system so they can be shared between configure
11506# scripts and configure runs, see configure's option --config-cache.
11507# It is not useful on other systems.  If it contains results you don't
11508# want to keep, you may remove or edit it.
11509#
11510# config.status only pays attention to the cache file if you give it
11511# the --recheck option to rerun configure.
11512#
11513# `ac_cv_env_foo' variables (set or unset) will be overridden when
11514# loading this file, other *unset* `ac_cv_foo' will be assigned the
11515# following values.
11516
11517_ACEOF
11518
11519# The following way of writing the cache mishandles newlines in values,
11520# but we know of no workaround that is simple, portable, and efficient.
11521# So, we kill variables containing newlines.
11522# Ultrix sh set writes to stderr and can't be redirected directly,
11523# and sets the high bit in the cache file unless we assign to the vars.
11524(
11525  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11526    eval ac_val=\$$ac_var
11527    case $ac_val in #(
11528    *${as_nl}*)
11529      case $ac_var in #(
11530      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11531$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11532      esac
11533      case $ac_var in #(
11534      _ | IFS | as_nl) ;; #(
11535      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11536      *) { eval $ac_var=; unset $ac_var;} ;;
11537      esac ;;
11538    esac
11539  done
11540
11541  (set) 2>&1 |
11542    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11543    *${as_nl}ac_space=\ *)
11544      # `set' does not quote correctly, so add quotes: double-quote
11545      # substitution turns \\\\ into \\, and sed turns \\ into \.
11546      sed -n \
11547	"s/'/'\\\\''/g;
11548	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11549      ;; #(
11550    *)
11551      # `set' quotes correctly as required by POSIX, so do not add quotes.
11552      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11553      ;;
11554    esac |
11555    sort
11556) |
11557  sed '
11558     /^ac_cv_env_/b end
11559     t clear
11560     :clear
11561     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11562     t end
11563     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11564     :end' >>confcache
11565if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11566  if test -w "$cache_file"; then
11567    test "x$cache_file" != "x/dev/null" &&
11568      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11569$as_echo "$as_me: updating cache $cache_file" >&6;}
11570    cat confcache >$cache_file
11571  else
11572    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11573$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11574  fi
11575fi
11576rm -f confcache
11577
11578test "x$prefix" = xNONE && prefix=$ac_default_prefix
11579# Let make expand exec_prefix.
11580test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11581
11582DEFS=-DHAVE_CONFIG_H
11583
11584ac_libobjs=
11585ac_ltlibobjs=
11586for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11587  # 1. Remove the extension, and $U if already installed.
11588  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11589  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11590  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11591  #    will be set to the directory where LIBOBJS objects are built.
11592  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11593  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11594done
11595LIBOBJS=$ac_libobjs
11596
11597LTLIBOBJS=$ac_ltlibobjs
11598
11599
11600if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11601  as_fn_error "conditional \"AMDEP\" was never defined.
11602Usually this means the macro was only invoked conditionally." "$LINENO" 5
11603fi
11604if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11605  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11606Usually this means the macro was only invoked conditionally." "$LINENO" 5
11607fi
11608 if test -n "$EXEEXT"; then
11609  am__EXEEXT_TRUE=
11610  am__EXEEXT_FALSE='#'
11611else
11612  am__EXEEXT_TRUE='#'
11613  am__EXEEXT_FALSE=
11614fi
11615
11616if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11617  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11618Usually this means the macro was only invoked conditionally." "$LINENO" 5
11619fi
11620if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
11621  as_fn_error "conditional \"HAVE_XEXTPROTO_71\" was never defined.
11622Usually this means the macro was only invoked conditionally." "$LINENO" 5
11623fi
11624
11625: ${CONFIG_STATUS=./config.status}
11626ac_write_fail=0
11627ac_clean_files_save=$ac_clean_files
11628ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11630$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11631as_write_fail=0
11632cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11633#! $SHELL
11634# Generated by $as_me.
11635# Run this file to recreate the current configuration.
11636# Compiler output produced by configure, useful for debugging
11637# configure, is in config.log if it exists.
11638
11639debug=false
11640ac_cs_recheck=false
11641ac_cs_silent=false
11642
11643SHELL=\${CONFIG_SHELL-$SHELL}
11644export SHELL
11645_ASEOF
11646cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11647## -------------------- ##
11648## M4sh Initialization. ##
11649## -------------------- ##
11650
11651# Be more Bourne compatible
11652DUALCASE=1; export DUALCASE # for MKS sh
11653if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11654  emulate sh
11655  NULLCMD=:
11656  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11657  # is contrary to our usage.  Disable this feature.
11658  alias -g '${1+"$@"}'='"$@"'
11659  setopt NO_GLOB_SUBST
11660else
11661  case `(set -o) 2>/dev/null` in #(
11662  *posix*) :
11663    set -o posix ;; #(
11664  *) :
11665     ;;
11666esac
11667fi
11668
11669
11670as_nl='
11671'
11672export as_nl
11673# Printing a long string crashes Solaris 7 /usr/bin/printf.
11674as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11676as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11677# Prefer a ksh shell builtin over an external printf program on Solaris,
11678# but without wasting forks for bash or zsh.
11679if test -z "$BASH_VERSION$ZSH_VERSION" \
11680    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11681  as_echo='print -r --'
11682  as_echo_n='print -rn --'
11683elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11684  as_echo='printf %s\n'
11685  as_echo_n='printf %s'
11686else
11687  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11688    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11689    as_echo_n='/usr/ucb/echo -n'
11690  else
11691    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11692    as_echo_n_body='eval
11693      arg=$1;
11694      case $arg in #(
11695      *"$as_nl"*)
11696	expr "X$arg" : "X\\(.*\\)$as_nl";
11697	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11698      esac;
11699      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11700    '
11701    export as_echo_n_body
11702    as_echo_n='sh -c $as_echo_n_body as_echo'
11703  fi
11704  export as_echo_body
11705  as_echo='sh -c $as_echo_body as_echo'
11706fi
11707
11708# The user is always right.
11709if test "${PATH_SEPARATOR+set}" != set; then
11710  PATH_SEPARATOR=:
11711  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11712    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11713      PATH_SEPARATOR=';'
11714  }
11715fi
11716
11717
11718# IFS
11719# We need space, tab and new line, in precisely that order.  Quoting is
11720# there to prevent editors from complaining about space-tab.
11721# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11722# splitting by setting IFS to empty value.)
11723IFS=" ""	$as_nl"
11724
11725# Find who we are.  Look in the path if we contain no directory separator.
11726case $0 in #((
11727  *[\\/]* ) as_myself=$0 ;;
11728  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729for as_dir in $PATH
11730do
11731  IFS=$as_save_IFS
11732  test -z "$as_dir" && as_dir=.
11733    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11734  done
11735IFS=$as_save_IFS
11736
11737     ;;
11738esac
11739# We did not find ourselves, most probably we were run as `sh COMMAND'
11740# in which case we are not to be found in the path.
11741if test "x$as_myself" = x; then
11742  as_myself=$0
11743fi
11744if test ! -f "$as_myself"; then
11745  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11746  exit 1
11747fi
11748
11749# Unset variables that we do not need and which cause bugs (e.g. in
11750# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11751# suppresses any "Segmentation fault" message there.  '((' could
11752# trigger a bug in pdksh 5.2.14.
11753for as_var in BASH_ENV ENV MAIL MAILPATH
11754do eval test x\${$as_var+set} = xset \
11755  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11756done
11757PS1='$ '
11758PS2='> '
11759PS4='+ '
11760
11761# NLS nuisances.
11762LC_ALL=C
11763export LC_ALL
11764LANGUAGE=C
11765export LANGUAGE
11766
11767# CDPATH.
11768(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11769
11770
11771# as_fn_error ERROR [LINENO LOG_FD]
11772# ---------------------------------
11773# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11774# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11775# script with status $?, using 1 if that was 0.
11776as_fn_error ()
11777{
11778  as_status=$?; test $as_status -eq 0 && as_status=1
11779  if test "$3"; then
11780    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11781    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11782  fi
11783  $as_echo "$as_me: error: $1" >&2
11784  as_fn_exit $as_status
11785} # as_fn_error
11786
11787
11788# as_fn_set_status STATUS
11789# -----------------------
11790# Set $? to STATUS, without forking.
11791as_fn_set_status ()
11792{
11793  return $1
11794} # as_fn_set_status
11795
11796# as_fn_exit STATUS
11797# -----------------
11798# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11799as_fn_exit ()
11800{
11801  set +e
11802  as_fn_set_status $1
11803  exit $1
11804} # as_fn_exit
11805
11806# as_fn_unset VAR
11807# ---------------
11808# Portably unset VAR.
11809as_fn_unset ()
11810{
11811  { eval $1=; unset $1;}
11812}
11813as_unset=as_fn_unset
11814# as_fn_append VAR VALUE
11815# ----------------------
11816# Append the text in VALUE to the end of the definition contained in VAR. Take
11817# advantage of any shell optimizations that allow amortized linear growth over
11818# repeated appends, instead of the typical quadratic growth present in naive
11819# implementations.
11820if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11821  eval 'as_fn_append ()
11822  {
11823    eval $1+=\$2
11824  }'
11825else
11826  as_fn_append ()
11827  {
11828    eval $1=\$$1\$2
11829  }
11830fi # as_fn_append
11831
11832# as_fn_arith ARG...
11833# ------------------
11834# Perform arithmetic evaluation on the ARGs, and store the result in the
11835# global $as_val. Take advantage of shells that can avoid forks. The arguments
11836# must be portable across $(()) and expr.
11837if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11838  eval 'as_fn_arith ()
11839  {
11840    as_val=$(( $* ))
11841  }'
11842else
11843  as_fn_arith ()
11844  {
11845    as_val=`expr "$@" || test $? -eq 1`
11846  }
11847fi # as_fn_arith
11848
11849
11850if expr a : '\(a\)' >/dev/null 2>&1 &&
11851   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11852  as_expr=expr
11853else
11854  as_expr=false
11855fi
11856
11857if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11858  as_basename=basename
11859else
11860  as_basename=false
11861fi
11862
11863if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11864  as_dirname=dirname
11865else
11866  as_dirname=false
11867fi
11868
11869as_me=`$as_basename -- "$0" ||
11870$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11871	 X"$0" : 'X\(//\)$' \| \
11872	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11873$as_echo X/"$0" |
11874    sed '/^.*\/\([^/][^/]*\)\/*$/{
11875	    s//\1/
11876	    q
11877	  }
11878	  /^X\/\(\/\/\)$/{
11879	    s//\1/
11880	    q
11881	  }
11882	  /^X\/\(\/\).*/{
11883	    s//\1/
11884	    q
11885	  }
11886	  s/.*/./; q'`
11887
11888# Avoid depending upon Character Ranges.
11889as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11890as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11891as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11892as_cr_digits='0123456789'
11893as_cr_alnum=$as_cr_Letters$as_cr_digits
11894
11895ECHO_C= ECHO_N= ECHO_T=
11896case `echo -n x` in #(((((
11897-n*)
11898  case `echo 'xy\c'` in
11899  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11900  xy)  ECHO_C='\c';;
11901  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11902       ECHO_T='	';;
11903  esac;;
11904*)
11905  ECHO_N='-n';;
11906esac
11907
11908rm -f conf$$ conf$$.exe conf$$.file
11909if test -d conf$$.dir; then
11910  rm -f conf$$.dir/conf$$.file
11911else
11912  rm -f conf$$.dir
11913  mkdir conf$$.dir 2>/dev/null
11914fi
11915if (echo >conf$$.file) 2>/dev/null; then
11916  if ln -s conf$$.file conf$$ 2>/dev/null; then
11917    as_ln_s='ln -s'
11918    # ... but there are two gotchas:
11919    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11920    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11921    # In both cases, we have to default to `cp -p'.
11922    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11923      as_ln_s='cp -p'
11924  elif ln conf$$.file conf$$ 2>/dev/null; then
11925    as_ln_s=ln
11926  else
11927    as_ln_s='cp -p'
11928  fi
11929else
11930  as_ln_s='cp -p'
11931fi
11932rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11933rmdir conf$$.dir 2>/dev/null
11934
11935
11936# as_fn_mkdir_p
11937# -------------
11938# Create "$as_dir" as a directory, including parents if necessary.
11939as_fn_mkdir_p ()
11940{
11941
11942  case $as_dir in #(
11943  -*) as_dir=./$as_dir;;
11944  esac
11945  test -d "$as_dir" || eval $as_mkdir_p || {
11946    as_dirs=
11947    while :; do
11948      case $as_dir in #(
11949      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11950      *) as_qdir=$as_dir;;
11951      esac
11952      as_dirs="'$as_qdir' $as_dirs"
11953      as_dir=`$as_dirname -- "$as_dir" ||
11954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11955	 X"$as_dir" : 'X\(//\)[^/]' \| \
11956	 X"$as_dir" : 'X\(//\)$' \| \
11957	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11958$as_echo X"$as_dir" |
11959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11960	    s//\1/
11961	    q
11962	  }
11963	  /^X\(\/\/\)[^/].*/{
11964	    s//\1/
11965	    q
11966	  }
11967	  /^X\(\/\/\)$/{
11968	    s//\1/
11969	    q
11970	  }
11971	  /^X\(\/\).*/{
11972	    s//\1/
11973	    q
11974	  }
11975	  s/.*/./; q'`
11976      test -d "$as_dir" && break
11977    done
11978    test -z "$as_dirs" || eval "mkdir $as_dirs"
11979  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11980
11981
11982} # as_fn_mkdir_p
11983if mkdir -p . 2>/dev/null; then
11984  as_mkdir_p='mkdir -p "$as_dir"'
11985else
11986  test -d ./-p && rmdir ./-p
11987  as_mkdir_p=false
11988fi
11989
11990if test -x / >/dev/null 2>&1; then
11991  as_test_x='test -x'
11992else
11993  if ls -dL / >/dev/null 2>&1; then
11994    as_ls_L_option=L
11995  else
11996    as_ls_L_option=
11997  fi
11998  as_test_x='
11999    eval sh -c '\''
12000      if test -d "$1"; then
12001	test -d "$1/.";
12002      else
12003	case $1 in #(
12004	-*)set "./$1";;
12005	esac;
12006	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12007	???[sx]*):;;*)false;;esac;fi
12008    '\'' sh
12009  '
12010fi
12011as_executable_p=$as_test_x
12012
12013# Sed expression to map a string onto a valid CPP name.
12014as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12015
12016# Sed expression to map a string onto a valid variable name.
12017as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12018
12019
12020exec 6>&1
12021## ----------------------------------- ##
12022## Main body of $CONFIG_STATUS script. ##
12023## ----------------------------------- ##
12024_ASEOF
12025test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12026
12027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12028# Save the log message, to keep $0 and so on meaningful, and to
12029# report actual input values of CONFIG_FILES etc. instead of their
12030# values after options handling.
12031ac_log="
12032This file was extended by xf86-video-nv $as_me 2.1.18, which was
12033generated by GNU Autoconf 2.65.  Invocation command line was
12034
12035  CONFIG_FILES    = $CONFIG_FILES
12036  CONFIG_HEADERS  = $CONFIG_HEADERS
12037  CONFIG_LINKS    = $CONFIG_LINKS
12038  CONFIG_COMMANDS = $CONFIG_COMMANDS
12039  $ $0 $@
12040
12041on `(hostname || uname -n) 2>/dev/null | sed 1q`
12042"
12043
12044_ACEOF
12045
12046case $ac_config_files in *"
12047"*) set x $ac_config_files; shift; ac_config_files=$*;;
12048esac
12049
12050case $ac_config_headers in *"
12051"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12052esac
12053
12054
12055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12056# Files that config.status was made for.
12057config_files="$ac_config_files"
12058config_headers="$ac_config_headers"
12059config_commands="$ac_config_commands"
12060
12061_ACEOF
12062
12063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12064ac_cs_usage="\
12065\`$as_me' instantiates files and other configuration actions
12066from templates according to the current configuration.  Unless the files
12067and actions are specified as TAGs, all are instantiated by default.
12068
12069Usage: $0 [OPTION]... [TAG]...
12070
12071  -h, --help       print this help, then exit
12072  -V, --version    print version number and configuration settings, then exit
12073      --config     print configuration, then exit
12074  -q, --quiet, --silent
12075                   do not print progress messages
12076  -d, --debug      don't remove temporary files
12077      --recheck    update $as_me by reconfiguring in the same conditions
12078      --file=FILE[:TEMPLATE]
12079                   instantiate the configuration file FILE
12080      --header=FILE[:TEMPLATE]
12081                   instantiate the configuration header FILE
12082
12083Configuration files:
12084$config_files
12085
12086Configuration headers:
12087$config_headers
12088
12089Configuration commands:
12090$config_commands
12091
12092Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12093
12094_ACEOF
12095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12096ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12097ac_cs_version="\\
12098xf86-video-nv config.status 2.1.18
12099configured by $0, generated by GNU Autoconf 2.65,
12100  with options \\"\$ac_cs_config\\"
12101
12102Copyright (C) 2009 Free Software Foundation, Inc.
12103This config.status script is free software; the Free Software Foundation
12104gives unlimited permission to copy, distribute and modify it."
12105
12106ac_pwd='$ac_pwd'
12107srcdir='$srcdir'
12108INSTALL='$INSTALL'
12109MKDIR_P='$MKDIR_P'
12110AWK='$AWK'
12111test -n "\$AWK" || AWK=awk
12112_ACEOF
12113
12114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115# The default lists apply if the user does not specify any file.
12116ac_need_defaults=:
12117while test $# != 0
12118do
12119  case $1 in
12120  --*=*)
12121    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12122    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12123    ac_shift=:
12124    ;;
12125  *)
12126    ac_option=$1
12127    ac_optarg=$2
12128    ac_shift=shift
12129    ;;
12130  esac
12131
12132  case $ac_option in
12133  # Handling of the options.
12134  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12135    ac_cs_recheck=: ;;
12136  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12137    $as_echo "$ac_cs_version"; exit ;;
12138  --config | --confi | --conf | --con | --co | --c )
12139    $as_echo "$ac_cs_config"; exit ;;
12140  --debug | --debu | --deb | --de | --d | -d )
12141    debug=: ;;
12142  --file | --fil | --fi | --f )
12143    $ac_shift
12144    case $ac_optarg in
12145    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12146    esac
12147    as_fn_append CONFIG_FILES " '$ac_optarg'"
12148    ac_need_defaults=false;;
12149  --header | --heade | --head | --hea )
12150    $ac_shift
12151    case $ac_optarg in
12152    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12153    esac
12154    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12155    ac_need_defaults=false;;
12156  --he | --h)
12157    # Conflict between --help and --header
12158    as_fn_error "ambiguous option: \`$1'
12159Try \`$0 --help' for more information.";;
12160  --help | --hel | -h )
12161    $as_echo "$ac_cs_usage"; exit ;;
12162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12163  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12164    ac_cs_silent=: ;;
12165
12166  # This is an error.
12167  -*) as_fn_error "unrecognized option: \`$1'
12168Try \`$0 --help' for more information." ;;
12169
12170  *) as_fn_append ac_config_targets " $1"
12171     ac_need_defaults=false ;;
12172
12173  esac
12174  shift
12175done
12176
12177ac_configure_extra_args=
12178
12179if $ac_cs_silent; then
12180  exec 6>/dev/null
12181  ac_configure_extra_args="$ac_configure_extra_args --silent"
12182fi
12183
12184_ACEOF
12185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12186if \$ac_cs_recheck; then
12187  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12188  shift
12189  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12190  CONFIG_SHELL='$SHELL'
12191  export CONFIG_SHELL
12192  exec "\$@"
12193fi
12194
12195_ACEOF
12196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12197exec 5>>config.log
12198{
12199  echo
12200  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12201## Running $as_me. ##
12202_ASBOX
12203  $as_echo "$ac_log"
12204} >&5
12205
12206_ACEOF
12207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12208#
12209# INIT-COMMANDS
12210#
12211AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12212
12213
12214# The HP-UX ksh and POSIX shell print the target directory to stdout
12215# if CDPATH is set.
12216(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12217
12218sed_quote_subst='$sed_quote_subst'
12219double_quote_subst='$double_quote_subst'
12220delay_variable_subst='$delay_variable_subst'
12221enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12222macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12223macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12224enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12225pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12226enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12227host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12228host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12229host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12230build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12231build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12232build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12233SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12234Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12235GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12236EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12237FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12238LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12239NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12240LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12241max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12242ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12243exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12244lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12245lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12246lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12247reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12248reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12249OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12250deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12251file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12252AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12253AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12254STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12255RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12256old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12257old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12258old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12259CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12260CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12261compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12262GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12263lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12264lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12265lt_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"`'
12266lt_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"`'
12267objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12268SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12269ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12270MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12271lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12272lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12273lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12274lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12275lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12276need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12277DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12278NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12279LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12280OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12281OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12282libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12283shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12284extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12286enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12287export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12288whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12289compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12290old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12291old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12292archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12293archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12294module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12295module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12296with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12297allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12298no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12299hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12300hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12301hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12302hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12303hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12304hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12305hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12306hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12307inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12308link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12309fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12310always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12311export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12312exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12313include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12314prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12315file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12316variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12317need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12318need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12319version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12320runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12321shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12322shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12323libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12324library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12325soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12326postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12328finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12329finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12330hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12331sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12332sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12333hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12334enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12335enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12336enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12337old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12338striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12339
12340LTCC='$LTCC'
12341LTCFLAGS='$LTCFLAGS'
12342compiler='$compiler_DEFAULT'
12343
12344# Quote evaled strings.
12345for var in SED \
12346GREP \
12347EGREP \
12348FGREP \
12349LD \
12350NM \
12351LN_S \
12352lt_SP2NL \
12353lt_NL2SP \
12354reload_flag \
12355OBJDUMP \
12356deplibs_check_method \
12357file_magic_cmd \
12358AR \
12359AR_FLAGS \
12360STRIP \
12361RANLIB \
12362CC \
12363CFLAGS \
12364compiler \
12365lt_cv_sys_global_symbol_pipe \
12366lt_cv_sys_global_symbol_to_cdecl \
12367lt_cv_sys_global_symbol_to_c_name_address \
12368lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12369SHELL \
12370ECHO \
12371lt_prog_compiler_no_builtin_flag \
12372lt_prog_compiler_wl \
12373lt_prog_compiler_pic \
12374lt_prog_compiler_static \
12375lt_cv_prog_compiler_c_o \
12376need_locks \
12377DSYMUTIL \
12378NMEDIT \
12379LIPO \
12380OTOOL \
12381OTOOL64 \
12382shrext_cmds \
12383export_dynamic_flag_spec \
12384whole_archive_flag_spec \
12385compiler_needs_object \
12386with_gnu_ld \
12387allow_undefined_flag \
12388no_undefined_flag \
12389hardcode_libdir_flag_spec \
12390hardcode_libdir_flag_spec_ld \
12391hardcode_libdir_separator \
12392fix_srcfile_path \
12393exclude_expsyms \
12394include_expsyms \
12395file_list_spec \
12396variables_saved_for_relink \
12397libname_spec \
12398library_names_spec \
12399soname_spec \
12400finish_eval \
12401old_striplib \
12402striplib; do
12403    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12404    *[\\\\\\\`\\"\\\$]*)
12405      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12406      ;;
12407    *)
12408      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12409      ;;
12410    esac
12411done
12412
12413# Double-quote double-evaled strings.
12414for var in reload_cmds \
12415old_postinstall_cmds \
12416old_postuninstall_cmds \
12417old_archive_cmds \
12418extract_expsyms_cmds \
12419old_archive_from_new_cmds \
12420old_archive_from_expsyms_cmds \
12421archive_cmds \
12422archive_expsym_cmds \
12423module_cmds \
12424module_expsym_cmds \
12425export_symbols_cmds \
12426prelink_cmds \
12427postinstall_cmds \
12428postuninstall_cmds \
12429finish_cmds \
12430sys_lib_search_path_spec \
12431sys_lib_dlsearch_path_spec; do
12432    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12433    *[\\\\\\\`\\"\\\$]*)
12434      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12435      ;;
12436    *)
12437      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12438      ;;
12439    esac
12440done
12441
12442# Fix-up fallback echo if it was mangled by the above quoting rules.
12443case \$lt_ECHO in
12444*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12445  ;;
12446esac
12447
12448ac_aux_dir='$ac_aux_dir'
12449xsi_shell='$xsi_shell'
12450lt_shell_append='$lt_shell_append'
12451
12452# See if we are running on zsh, and set the options which allow our
12453# commands through without removal of \ escapes INIT.
12454if test -n "\${ZSH_VERSION+set}" ; then
12455   setopt NO_GLOB_SUBST
12456fi
12457
12458
12459    PACKAGE='$PACKAGE'
12460    VERSION='$VERSION'
12461    TIMESTAMP='$TIMESTAMP'
12462    RM='$RM'
12463    ofile='$ofile'
12464
12465
12466
12467
12468_ACEOF
12469
12470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471
12472# Handling of arguments.
12473for ac_config_target in $ac_config_targets
12474do
12475  case $ac_config_target in
12476    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12477    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12478    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12479    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12480    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12481    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12482
12483  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12484  esac
12485done
12486
12487
12488# If the user did not use the arguments to specify the items to instantiate,
12489# then the envvar interface is used.  Set only those that are not.
12490# We use the long form for the default assignment because of an extremely
12491# bizarre bug on SunOS 4.1.3.
12492if $ac_need_defaults; then
12493  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12494  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12495  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12496fi
12497
12498# Have a temporary directory for convenience.  Make it in the build tree
12499# simply because there is no reason against having it here, and in addition,
12500# creating and moving files from /tmp can sometimes cause problems.
12501# Hook for its removal unless debugging.
12502# Note that there is a small window in which the directory will not be cleaned:
12503# after its creation but before its name has been assigned to `$tmp'.
12504$debug ||
12505{
12506  tmp=
12507  trap 'exit_status=$?
12508  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12509' 0
12510  trap 'as_fn_exit 1' 1 2 13 15
12511}
12512# Create a (secure) tmp directory for tmp files.
12513
12514{
12515  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12516  test -n "$tmp" && test -d "$tmp"
12517}  ||
12518{
12519  tmp=./conf$$-$RANDOM
12520  (umask 077 && mkdir "$tmp")
12521} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12522
12523# Set up the scripts for CONFIG_FILES section.
12524# No need to generate them if there are no CONFIG_FILES.
12525# This happens for instance with `./config.status config.h'.
12526if test -n "$CONFIG_FILES"; then
12527
12528
12529ac_cr=`echo X | tr X '\015'`
12530# On cygwin, bash can eat \r inside `` if the user requested igncr.
12531# But we know of no other shell where ac_cr would be empty at this
12532# point, so we can use a bashism as a fallback.
12533if test "x$ac_cr" = x; then
12534  eval ac_cr=\$\'\\r\'
12535fi
12536ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12537if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12538  ac_cs_awk_cr='\r'
12539else
12540  ac_cs_awk_cr=$ac_cr
12541fi
12542
12543echo 'BEGIN {' >"$tmp/subs1.awk" &&
12544_ACEOF
12545
12546
12547{
12548  echo "cat >conf$$subs.awk <<_ACEOF" &&
12549  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12550  echo "_ACEOF"
12551} >conf$$subs.sh ||
12552  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12553ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12554ac_delim='%!_!# '
12555for ac_last_try in false false false false false :; do
12556  . ./conf$$subs.sh ||
12557    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12558
12559  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12560  if test $ac_delim_n = $ac_delim_num; then
12561    break
12562  elif $ac_last_try; then
12563    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12564  else
12565    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12566  fi
12567done
12568rm -f conf$$subs.sh
12569
12570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12571cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12572_ACEOF
12573sed -n '
12574h
12575s/^/S["/; s/!.*/"]=/
12576p
12577g
12578s/^[^!]*!//
12579:repl
12580t repl
12581s/'"$ac_delim"'$//
12582t delim
12583:nl
12584h
12585s/\(.\{148\}\)..*/\1/
12586t more1
12587s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12588p
12589n
12590b repl
12591:more1
12592s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12593p
12594g
12595s/.\{148\}//
12596t nl
12597:delim
12598h
12599s/\(.\{148\}\)..*/\1/
12600t more2
12601s/["\\]/\\&/g; s/^/"/; s/$/"/
12602p
12603b
12604:more2
12605s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12606p
12607g
12608s/.\{148\}//
12609t delim
12610' <conf$$subs.awk | sed '
12611/^[^""]/{
12612  N
12613  s/\n//
12614}
12615' >>$CONFIG_STATUS || ac_write_fail=1
12616rm -f conf$$subs.awk
12617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12618_ACAWK
12619cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12620  for (key in S) S_is_set[key] = 1
12621  FS = ""
12622
12623}
12624{
12625  line = $ 0
12626  nfields = split(line, field, "@")
12627  substed = 0
12628  len = length(field[1])
12629  for (i = 2; i < nfields; i++) {
12630    key = field[i]
12631    keylen = length(key)
12632    if (S_is_set[key]) {
12633      value = S[key]
12634      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12635      len += length(value) + length(field[++i])
12636      substed = 1
12637    } else
12638      len += 1 + keylen
12639  }
12640
12641  print line
12642}
12643
12644_ACAWK
12645_ACEOF
12646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12647if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12648  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12649else
12650  cat
12651fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12652  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12653_ACEOF
12654
12655# VPATH may cause trouble with some makes, so we remove $(srcdir),
12656# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12657# trailing colons and then remove the whole line if VPATH becomes empty
12658# (actually we leave an empty line to preserve line numbers).
12659if test "x$srcdir" = x.; then
12660  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12661s/:*\$(srcdir):*/:/
12662s/:*\${srcdir}:*/:/
12663s/:*@srcdir@:*/:/
12664s/^\([^=]*=[	 ]*\):*/\1/
12665s/:*$//
12666s/^[^=]*=[	 ]*$//
12667}'
12668fi
12669
12670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12671fi # test -n "$CONFIG_FILES"
12672
12673# Set up the scripts for CONFIG_HEADERS section.
12674# No need to generate them if there are no CONFIG_HEADERS.
12675# This happens for instance with `./config.status Makefile'.
12676if test -n "$CONFIG_HEADERS"; then
12677cat >"$tmp/defines.awk" <<\_ACAWK ||
12678BEGIN {
12679_ACEOF
12680
12681# Transform confdefs.h into an awk script `defines.awk', embedded as
12682# here-document in config.status, that substitutes the proper values into
12683# config.h.in to produce config.h.
12684
12685# Create a delimiter string that does not exist in confdefs.h, to ease
12686# handling of long lines.
12687ac_delim='%!_!# '
12688for ac_last_try in false false :; do
12689  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12690  if test -z "$ac_t"; then
12691    break
12692  elif $ac_last_try; then
12693    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12694  else
12695    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12696  fi
12697done
12698
12699# For the awk script, D is an array of macro values keyed by name,
12700# likewise P contains macro parameters if any.  Preserve backslash
12701# newline sequences.
12702
12703ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12704sed -n '
12705s/.\{148\}/&'"$ac_delim"'/g
12706t rset
12707:rset
12708s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12709t def
12710d
12711:def
12712s/\\$//
12713t bsnl
12714s/["\\]/\\&/g
12715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12716D["\1"]=" \3"/p
12717s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12718d
12719:bsnl
12720s/["\\]/\\&/g
12721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12722D["\1"]=" \3\\\\\\n"\\/p
12723t cont
12724s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12725t cont
12726d
12727:cont
12728n
12729s/.\{148\}/&'"$ac_delim"'/g
12730t clear
12731:clear
12732s/\\$//
12733t bsnlc
12734s/["\\]/\\&/g; s/^/"/; s/$/"/p
12735d
12736:bsnlc
12737s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12738b cont
12739' <confdefs.h | sed '
12740s/'"$ac_delim"'/"\\\
12741"/g' >>$CONFIG_STATUS || ac_write_fail=1
12742
12743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12744  for (key in D) D_is_set[key] = 1
12745  FS = ""
12746}
12747/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12748  line = \$ 0
12749  split(line, arg, " ")
12750  if (arg[1] == "#") {
12751    defundef = arg[2]
12752    mac1 = arg[3]
12753  } else {
12754    defundef = substr(arg[1], 2)
12755    mac1 = arg[2]
12756  }
12757  split(mac1, mac2, "(") #)
12758  macro = mac2[1]
12759  prefix = substr(line, 1, index(line, defundef) - 1)
12760  if (D_is_set[macro]) {
12761    # Preserve the white space surrounding the "#".
12762    print prefix "define", macro P[macro] D[macro]
12763    next
12764  } else {
12765    # Replace #undef with comments.  This is necessary, for example,
12766    # in the case of _POSIX_SOURCE, which is predefined and required
12767    # on some systems where configure will not decide to define it.
12768    if (defundef == "undef") {
12769      print "/*", prefix defundef, macro, "*/"
12770      next
12771    }
12772  }
12773}
12774{ print }
12775_ACAWK
12776_ACEOF
12777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12778  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12779fi # test -n "$CONFIG_HEADERS"
12780
12781
12782eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12783shift
12784for ac_tag
12785do
12786  case $ac_tag in
12787  :[FHLC]) ac_mode=$ac_tag; continue;;
12788  esac
12789  case $ac_mode$ac_tag in
12790  :[FHL]*:*);;
12791  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12792  :[FH]-) ac_tag=-:-;;
12793  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12794  esac
12795  ac_save_IFS=$IFS
12796  IFS=:
12797  set x $ac_tag
12798  IFS=$ac_save_IFS
12799  shift
12800  ac_file=$1
12801  shift
12802
12803  case $ac_mode in
12804  :L) ac_source=$1;;
12805  :[FH])
12806    ac_file_inputs=
12807    for ac_f
12808    do
12809      case $ac_f in
12810      -) ac_f="$tmp/stdin";;
12811      *) # Look for the file first in the build tree, then in the source tree
12812	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12813	 # because $ac_f cannot contain `:'.
12814	 test -f "$ac_f" ||
12815	   case $ac_f in
12816	   [\\/$]*) false;;
12817	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12818	   esac ||
12819	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12820      esac
12821      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12822      as_fn_append ac_file_inputs " '$ac_f'"
12823    done
12824
12825    # Let's still pretend it is `configure' which instantiates (i.e., don't
12826    # use $as_me), people would be surprised to read:
12827    #    /* config.h.  Generated by config.status.  */
12828    configure_input='Generated from '`
12829	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12830	`' by configure.'
12831    if test x"$ac_file" != x-; then
12832      configure_input="$ac_file.  $configure_input"
12833      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12834$as_echo "$as_me: creating $ac_file" >&6;}
12835    fi
12836    # Neutralize special characters interpreted by sed in replacement strings.
12837    case $configure_input in #(
12838    *\&* | *\|* | *\\* )
12839       ac_sed_conf_input=`$as_echo "$configure_input" |
12840       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12841    *) ac_sed_conf_input=$configure_input;;
12842    esac
12843
12844    case $ac_tag in
12845    *:-:* | *:-) cat >"$tmp/stdin" \
12846      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12847    esac
12848    ;;
12849  esac
12850
12851  ac_dir=`$as_dirname -- "$ac_file" ||
12852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12853	 X"$ac_file" : 'X\(//\)[^/]' \| \
12854	 X"$ac_file" : 'X\(//\)$' \| \
12855	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12856$as_echo X"$ac_file" |
12857    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12858	    s//\1/
12859	    q
12860	  }
12861	  /^X\(\/\/\)[^/].*/{
12862	    s//\1/
12863	    q
12864	  }
12865	  /^X\(\/\/\)$/{
12866	    s//\1/
12867	    q
12868	  }
12869	  /^X\(\/\).*/{
12870	    s//\1/
12871	    q
12872	  }
12873	  s/.*/./; q'`
12874  as_dir="$ac_dir"; as_fn_mkdir_p
12875  ac_builddir=.
12876
12877case "$ac_dir" in
12878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12879*)
12880  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12881  # A ".." for each directory in $ac_dir_suffix.
12882  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12883  case $ac_top_builddir_sub in
12884  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12885  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12886  esac ;;
12887esac
12888ac_abs_top_builddir=$ac_pwd
12889ac_abs_builddir=$ac_pwd$ac_dir_suffix
12890# for backward compatibility:
12891ac_top_builddir=$ac_top_build_prefix
12892
12893case $srcdir in
12894  .)  # We are building in place.
12895    ac_srcdir=.
12896    ac_top_srcdir=$ac_top_builddir_sub
12897    ac_abs_top_srcdir=$ac_pwd ;;
12898  [\\/]* | ?:[\\/]* )  # Absolute name.
12899    ac_srcdir=$srcdir$ac_dir_suffix;
12900    ac_top_srcdir=$srcdir
12901    ac_abs_top_srcdir=$srcdir ;;
12902  *) # Relative name.
12903    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12904    ac_top_srcdir=$ac_top_build_prefix$srcdir
12905    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12906esac
12907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12908
12909
12910  case $ac_mode in
12911  :F)
12912  #
12913  # CONFIG_FILE
12914  #
12915
12916  case $INSTALL in
12917  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12918  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12919  esac
12920  ac_MKDIR_P=$MKDIR_P
12921  case $MKDIR_P in
12922  [\\/$]* | ?:[\\/]* ) ;;
12923  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12924  esac
12925_ACEOF
12926
12927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928# If the template does not know about datarootdir, expand it.
12929# FIXME: This hack should be removed a few years after 2.60.
12930ac_datarootdir_hack=; ac_datarootdir_seen=
12931ac_sed_dataroot='
12932/datarootdir/ {
12933  p
12934  q
12935}
12936/@datadir@/p
12937/@docdir@/p
12938/@infodir@/p
12939/@localedir@/p
12940/@mandir@/p'
12941case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12942*datarootdir*) ac_datarootdir_seen=yes;;
12943*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12944  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12945$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12946_ACEOF
12947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12948  ac_datarootdir_hack='
12949  s&@datadir@&$datadir&g
12950  s&@docdir@&$docdir&g
12951  s&@infodir@&$infodir&g
12952  s&@localedir@&$localedir&g
12953  s&@mandir@&$mandir&g
12954  s&\\\${datarootdir}&$datarootdir&g' ;;
12955esac
12956_ACEOF
12957
12958# Neutralize VPATH when `$srcdir' = `.'.
12959# Shell code in configure.ac might set extrasub.
12960# FIXME: do we really want to maintain this feature?
12961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12962ac_sed_extra="$ac_vpsub
12963$extrasub
12964_ACEOF
12965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12966:t
12967/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12968s|@configure_input@|$ac_sed_conf_input|;t t
12969s&@top_builddir@&$ac_top_builddir_sub&;t t
12970s&@top_build_prefix@&$ac_top_build_prefix&;t t
12971s&@srcdir@&$ac_srcdir&;t t
12972s&@abs_srcdir@&$ac_abs_srcdir&;t t
12973s&@top_srcdir@&$ac_top_srcdir&;t t
12974s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12975s&@builddir@&$ac_builddir&;t t
12976s&@abs_builddir@&$ac_abs_builddir&;t t
12977s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12978s&@INSTALL@&$ac_INSTALL&;t t
12979s&@MKDIR_P@&$ac_MKDIR_P&;t t
12980$ac_datarootdir_hack
12981"
12982eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12983  || as_fn_error "could not create $ac_file" "$LINENO" 5
12984
12985test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12986  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12987  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12989which seems to be undefined.  Please make sure it is defined." >&5
12990$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12991which seems to be undefined.  Please make sure it is defined." >&2;}
12992
12993  rm -f "$tmp/stdin"
12994  case $ac_file in
12995  -) cat "$tmp/out" && rm -f "$tmp/out";;
12996  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12997  esac \
12998  || as_fn_error "could not create $ac_file" "$LINENO" 5
12999 ;;
13000  :H)
13001  #
13002  # CONFIG_HEADER
13003  #
13004  if test x"$ac_file" != x-; then
13005    {
13006      $as_echo "/* $configure_input  */" \
13007      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13008    } >"$tmp/config.h" \
13009      || as_fn_error "could not create $ac_file" "$LINENO" 5
13010    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13011      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13012$as_echo "$as_me: $ac_file is unchanged" >&6;}
13013    else
13014      rm -f "$ac_file"
13015      mv "$tmp/config.h" "$ac_file" \
13016	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13017    fi
13018  else
13019    $as_echo "/* $configure_input  */" \
13020      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13021      || as_fn_error "could not create -" "$LINENO" 5
13022  fi
13023# Compute "$ac_file"'s index in $config_headers.
13024_am_arg="$ac_file"
13025_am_stamp_count=1
13026for _am_header in $config_headers :; do
13027  case $_am_header in
13028    $_am_arg | $_am_arg:* )
13029      break ;;
13030    * )
13031      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13032  esac
13033done
13034echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13035$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13037	 X"$_am_arg" : 'X\(//\)$' \| \
13038	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13039$as_echo X"$_am_arg" |
13040    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13041	    s//\1/
13042	    q
13043	  }
13044	  /^X\(\/\/\)[^/].*/{
13045	    s//\1/
13046	    q
13047	  }
13048	  /^X\(\/\/\)$/{
13049	    s//\1/
13050	    q
13051	  }
13052	  /^X\(\/\).*/{
13053	    s//\1/
13054	    q
13055	  }
13056	  s/.*/./; q'`/stamp-h$_am_stamp_count
13057 ;;
13058
13059  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13060$as_echo "$as_me: executing $ac_file commands" >&6;}
13061 ;;
13062  esac
13063
13064
13065  case $ac_file$ac_mode in
13066    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13067  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13068  # are listed without --file.  Let's play safe and only enable the eval
13069  # if we detect the quoting.
13070  case $CONFIG_FILES in
13071  *\'*) eval set x "$CONFIG_FILES" ;;
13072  *)   set x $CONFIG_FILES ;;
13073  esac
13074  shift
13075  for mf
13076  do
13077    # Strip MF so we end up with the name of the file.
13078    mf=`echo "$mf" | sed -e 's/:.*$//'`
13079    # Check whether this is an Automake generated Makefile or not.
13080    # We used to match only the files named `Makefile.in', but
13081    # some people rename them; so instead we look at the file content.
13082    # Grep'ing the first line is not enough: some people post-process
13083    # each Makefile.in and add a new line on top of each file to say so.
13084    # Grep'ing the whole file is not good either: AIX grep has a line
13085    # limit of 2048, but all sed's we know have understand at least 4000.
13086    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13087      dirpart=`$as_dirname -- "$mf" ||
13088$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13089	 X"$mf" : 'X\(//\)[^/]' \| \
13090	 X"$mf" : 'X\(//\)$' \| \
13091	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13092$as_echo X"$mf" |
13093    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13094	    s//\1/
13095	    q
13096	  }
13097	  /^X\(\/\/\)[^/].*/{
13098	    s//\1/
13099	    q
13100	  }
13101	  /^X\(\/\/\)$/{
13102	    s//\1/
13103	    q
13104	  }
13105	  /^X\(\/\).*/{
13106	    s//\1/
13107	    q
13108	  }
13109	  s/.*/./; q'`
13110    else
13111      continue
13112    fi
13113    # Extract the definition of DEPDIR, am__include, and am__quote
13114    # from the Makefile without running `make'.
13115    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13116    test -z "$DEPDIR" && continue
13117    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13118    test -z "am__include" && continue
13119    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13120    # When using ansi2knr, U may be empty or an underscore; expand it
13121    U=`sed -n 's/^U = //p' < "$mf"`
13122    # Find all dependency output files, they are included files with
13123    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13124    # simplest approach to changing $(DEPDIR) to its actual value in the
13125    # expansion.
13126    for file in `sed -n "
13127      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13128	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13129      # Make sure the directory exists.
13130      test -f "$dirpart/$file" && continue
13131      fdir=`$as_dirname -- "$file" ||
13132$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133	 X"$file" : 'X\(//\)[^/]' \| \
13134	 X"$file" : 'X\(//\)$' \| \
13135	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13136$as_echo X"$file" |
13137    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13138	    s//\1/
13139	    q
13140	  }
13141	  /^X\(\/\/\)[^/].*/{
13142	    s//\1/
13143	    q
13144	  }
13145	  /^X\(\/\/\)$/{
13146	    s//\1/
13147	    q
13148	  }
13149	  /^X\(\/\).*/{
13150	    s//\1/
13151	    q
13152	  }
13153	  s/.*/./; q'`
13154      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13155      # echo "creating $dirpart/$file"
13156      echo '# dummy' > "$dirpart/$file"
13157    done
13158  done
13159}
13160 ;;
13161    "libtool":C)
13162
13163    # See if we are running on zsh, and set the options which allow our
13164    # commands through without removal of \ escapes.
13165    if test -n "${ZSH_VERSION+set}" ; then
13166      setopt NO_GLOB_SUBST
13167    fi
13168
13169    cfgfile="${ofile}T"
13170    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13171    $RM "$cfgfile"
13172
13173    cat <<_LT_EOF >> "$cfgfile"
13174#! $SHELL
13175
13176# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13177# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13178# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13179# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13180#
13181#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13182#                 2006, 2007, 2008 Free Software Foundation, Inc.
13183#   Written by Gordon Matzigkeit, 1996
13184#
13185#   This file is part of GNU Libtool.
13186#
13187# GNU Libtool is free software; you can redistribute it and/or
13188# modify it under the terms of the GNU General Public License as
13189# published by the Free Software Foundation; either version 2 of
13190# the License, or (at your option) any later version.
13191#
13192# As a special exception to the GNU General Public License,
13193# if you distribute this file as part of a program or library that
13194# is built using GNU Libtool, you may include this file under the
13195# same distribution terms that you use for the rest of that program.
13196#
13197# GNU Libtool is distributed in the hope that it will be useful,
13198# but WITHOUT ANY WARRANTY; without even the implied warranty of
13199# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13200# GNU General Public License for more details.
13201#
13202# You should have received a copy of the GNU General Public License
13203# along with GNU Libtool; see the file COPYING.  If not, a copy
13204# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13205# obtained by writing to the Free Software Foundation, Inc.,
13206# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13207
13208
13209# The names of the tagged configurations supported by this script.
13210available_tags=""
13211
13212# ### BEGIN LIBTOOL CONFIG
13213
13214# Whether or not to build static libraries.
13215build_old_libs=$enable_static
13216
13217# Which release of libtool.m4 was used?
13218macro_version=$macro_version
13219macro_revision=$macro_revision
13220
13221# Whether or not to build shared libraries.
13222build_libtool_libs=$enable_shared
13223
13224# What type of objects to build.
13225pic_mode=$pic_mode
13226
13227# Whether or not to optimize for fast installation.
13228fast_install=$enable_fast_install
13229
13230# The host system.
13231host_alias=$host_alias
13232host=$host
13233host_os=$host_os
13234
13235# The build system.
13236build_alias=$build_alias
13237build=$build
13238build_os=$build_os
13239
13240# A sed program that does not truncate output.
13241SED=$lt_SED
13242
13243# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13244Xsed="\$SED -e 1s/^X//"
13245
13246# A grep program that handles long lines.
13247GREP=$lt_GREP
13248
13249# An ERE matcher.
13250EGREP=$lt_EGREP
13251
13252# A literal string matcher.
13253FGREP=$lt_FGREP
13254
13255# A BSD- or MS-compatible name lister.
13256NM=$lt_NM
13257
13258# Whether we need soft or hard links.
13259LN_S=$lt_LN_S
13260
13261# What is the maximum length of a command?
13262max_cmd_len=$max_cmd_len
13263
13264# Object file suffix (normally "o").
13265objext=$ac_objext
13266
13267# Executable file suffix (normally "").
13268exeext=$exeext
13269
13270# whether the shell understands "unset".
13271lt_unset=$lt_unset
13272
13273# turn spaces into newlines.
13274SP2NL=$lt_lt_SP2NL
13275
13276# turn newlines into spaces.
13277NL2SP=$lt_lt_NL2SP
13278
13279# How to create reloadable object files.
13280reload_flag=$lt_reload_flag
13281reload_cmds=$lt_reload_cmds
13282
13283# An object symbol dumper.
13284OBJDUMP=$lt_OBJDUMP
13285
13286# Method to check whether dependent libraries are shared objects.
13287deplibs_check_method=$lt_deplibs_check_method
13288
13289# Command to use when deplibs_check_method == "file_magic".
13290file_magic_cmd=$lt_file_magic_cmd
13291
13292# The archiver.
13293AR=$lt_AR
13294AR_FLAGS=$lt_AR_FLAGS
13295
13296# A symbol stripping program.
13297STRIP=$lt_STRIP
13298
13299# Commands used to install an old-style archive.
13300RANLIB=$lt_RANLIB
13301old_postinstall_cmds=$lt_old_postinstall_cmds
13302old_postuninstall_cmds=$lt_old_postuninstall_cmds
13303
13304# A C compiler.
13305LTCC=$lt_CC
13306
13307# LTCC compiler flags.
13308LTCFLAGS=$lt_CFLAGS
13309
13310# Take the output of nm and produce a listing of raw symbols and C names.
13311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13312
13313# Transform the output of nm in a proper C declaration.
13314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13315
13316# Transform the output of nm in a C name address pair.
13317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13318
13319# Transform the output of nm in a C name address pair when lib prefix is needed.
13320global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13321
13322# The name of the directory that contains temporary libtool files.
13323objdir=$objdir
13324
13325# Shell to use when invoking shell scripts.
13326SHELL=$lt_SHELL
13327
13328# An echo program that does not interpret backslashes.
13329ECHO=$lt_ECHO
13330
13331# Used to examine libraries when file_magic_cmd begins with "file".
13332MAGIC_CMD=$MAGIC_CMD
13333
13334# Must we lock files when doing compilation?
13335need_locks=$lt_need_locks
13336
13337# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13338DSYMUTIL=$lt_DSYMUTIL
13339
13340# Tool to change global to local symbols on Mac OS X.
13341NMEDIT=$lt_NMEDIT
13342
13343# Tool to manipulate fat objects and archives on Mac OS X.
13344LIPO=$lt_LIPO
13345
13346# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13347OTOOL=$lt_OTOOL
13348
13349# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13350OTOOL64=$lt_OTOOL64
13351
13352# Old archive suffix (normally "a").
13353libext=$libext
13354
13355# Shared library suffix (normally ".so").
13356shrext_cmds=$lt_shrext_cmds
13357
13358# The commands to extract the exported symbol list from a shared archive.
13359extract_expsyms_cmds=$lt_extract_expsyms_cmds
13360
13361# Variables whose values should be saved in libtool wrapper scripts and
13362# restored at link time.
13363variables_saved_for_relink=$lt_variables_saved_for_relink
13364
13365# Do we need the "lib" prefix for modules?
13366need_lib_prefix=$need_lib_prefix
13367
13368# Do we need a version for libraries?
13369need_version=$need_version
13370
13371# Library versioning type.
13372version_type=$version_type
13373
13374# Shared library runtime path variable.
13375runpath_var=$runpath_var
13376
13377# Shared library path variable.
13378shlibpath_var=$shlibpath_var
13379
13380# Is shlibpath searched before the hard-coded library search path?
13381shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13382
13383# Format of library name prefix.
13384libname_spec=$lt_libname_spec
13385
13386# List of archive names.  First name is the real one, the rest are links.
13387# The last name is the one that the linker finds with -lNAME
13388library_names_spec=$lt_library_names_spec
13389
13390# The coded name of the library, if different from the real name.
13391soname_spec=$lt_soname_spec
13392
13393# Command to use after installation of a shared archive.
13394postinstall_cmds=$lt_postinstall_cmds
13395
13396# Command to use after uninstallation of a shared archive.
13397postuninstall_cmds=$lt_postuninstall_cmds
13398
13399# Commands used to finish a libtool library installation in a directory.
13400finish_cmds=$lt_finish_cmds
13401
13402# As "finish_cmds", except a single script fragment to be evaled but
13403# not shown.
13404finish_eval=$lt_finish_eval
13405
13406# Whether we should hardcode library paths into libraries.
13407hardcode_into_libs=$hardcode_into_libs
13408
13409# Compile-time system search path for libraries.
13410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13411
13412# Run-time system search path for libraries.
13413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13414
13415# Whether dlopen is supported.
13416dlopen_support=$enable_dlopen
13417
13418# Whether dlopen of programs is supported.
13419dlopen_self=$enable_dlopen_self
13420
13421# Whether dlopen of statically linked programs is supported.
13422dlopen_self_static=$enable_dlopen_self_static
13423
13424# Commands to strip libraries.
13425old_striplib=$lt_old_striplib
13426striplib=$lt_striplib
13427
13428
13429# The linker used to build libraries.
13430LD=$lt_LD
13431
13432# Commands used to build an old-style archive.
13433old_archive_cmds=$lt_old_archive_cmds
13434
13435# A language specific compiler.
13436CC=$lt_compiler
13437
13438# Is the compiler the GNU compiler?
13439with_gcc=$GCC
13440
13441# Compiler flag to turn off builtin functions.
13442no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13443
13444# How to pass a linker flag through the compiler.
13445wl=$lt_lt_prog_compiler_wl
13446
13447# Additional compiler flags for building library objects.
13448pic_flag=$lt_lt_prog_compiler_pic
13449
13450# Compiler flag to prevent dynamic linking.
13451link_static_flag=$lt_lt_prog_compiler_static
13452
13453# Does compiler simultaneously support -c and -o options?
13454compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13455
13456# Whether or not to add -lc for building shared libraries.
13457build_libtool_need_lc=$archive_cmds_need_lc
13458
13459# Whether or not to disallow shared libs when runtime libs are static.
13460allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13461
13462# Compiler flag to allow reflexive dlopens.
13463export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13464
13465# Compiler flag to generate shared objects directly from archives.
13466whole_archive_flag_spec=$lt_whole_archive_flag_spec
13467
13468# Whether the compiler copes with passing no objects directly.
13469compiler_needs_object=$lt_compiler_needs_object
13470
13471# Create an old-style archive from a shared archive.
13472old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13473
13474# Create a temporary old-style archive to link instead of a shared archive.
13475old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13476
13477# Commands used to build a shared archive.
13478archive_cmds=$lt_archive_cmds
13479archive_expsym_cmds=$lt_archive_expsym_cmds
13480
13481# Commands used to build a loadable module if different from building
13482# a shared archive.
13483module_cmds=$lt_module_cmds
13484module_expsym_cmds=$lt_module_expsym_cmds
13485
13486# Whether we are building with GNU ld or not.
13487with_gnu_ld=$lt_with_gnu_ld
13488
13489# Flag that allows shared libraries with undefined symbols to be built.
13490allow_undefined_flag=$lt_allow_undefined_flag
13491
13492# Flag that enforces no undefined symbols.
13493no_undefined_flag=$lt_no_undefined_flag
13494
13495# Flag to hardcode \$libdir into a binary during linking.
13496# This must work even if \$libdir does not exist
13497hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13498
13499# If ld is used when linking, flag to hardcode \$libdir into a binary
13500# during linking.  This must work even if \$libdir does not exist.
13501hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13502
13503# Whether we need a single "-rpath" flag with a separated argument.
13504hardcode_libdir_separator=$lt_hardcode_libdir_separator
13505
13506# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13507# DIR into the resulting binary.
13508hardcode_direct=$hardcode_direct
13509
13510# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13511# DIR into the resulting binary and the resulting library dependency is
13512# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13513# library is relocated.
13514hardcode_direct_absolute=$hardcode_direct_absolute
13515
13516# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13517# into the resulting binary.
13518hardcode_minus_L=$hardcode_minus_L
13519
13520# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13521# into the resulting binary.
13522hardcode_shlibpath_var=$hardcode_shlibpath_var
13523
13524# Set to "yes" if building a shared library automatically hardcodes DIR
13525# into the library and all subsequent libraries and executables linked
13526# against it.
13527hardcode_automatic=$hardcode_automatic
13528
13529# Set to yes if linker adds runtime paths of dependent libraries
13530# to runtime path list.
13531inherit_rpath=$inherit_rpath
13532
13533# Whether libtool must link a program against all its dependency libraries.
13534link_all_deplibs=$link_all_deplibs
13535
13536# Fix the shell variable \$srcfile for the compiler.
13537fix_srcfile_path=$lt_fix_srcfile_path
13538
13539# Set to "yes" if exported symbols are required.
13540always_export_symbols=$always_export_symbols
13541
13542# The commands to list exported symbols.
13543export_symbols_cmds=$lt_export_symbols_cmds
13544
13545# Symbols that should not be listed in the preloaded symbols.
13546exclude_expsyms=$lt_exclude_expsyms
13547
13548# Symbols that must always be exported.
13549include_expsyms=$lt_include_expsyms
13550
13551# Commands necessary for linking programs (against libraries) with templates.
13552prelink_cmds=$lt_prelink_cmds
13553
13554# Specify filename containing input files.
13555file_list_spec=$lt_file_list_spec
13556
13557# How to hardcode a shared library path into an executable.
13558hardcode_action=$hardcode_action
13559
13560# ### END LIBTOOL CONFIG
13561
13562_LT_EOF
13563
13564  case $host_os in
13565  aix3*)
13566    cat <<\_LT_EOF >> "$cfgfile"
13567# AIX sometimes has problems with the GCC collect2 program.  For some
13568# reason, if we set the COLLECT_NAMES environment variable, the problems
13569# vanish in a puff of smoke.
13570if test "X${COLLECT_NAMES+set}" != Xset; then
13571  COLLECT_NAMES=
13572  export COLLECT_NAMES
13573fi
13574_LT_EOF
13575    ;;
13576  esac
13577
13578
13579ltmain="$ac_aux_dir/ltmain.sh"
13580
13581
13582  # We use sed instead of cat because bash on DJGPP gets confused if
13583  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13584  # text mode, it properly converts lines to CR/LF.  This bash problem
13585  # is reportedly fixed, but why not run on old versions too?
13586  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13587    || (rm -f "$cfgfile"; exit 1)
13588
13589  case $xsi_shell in
13590  yes)
13591    cat << \_LT_EOF >> "$cfgfile"
13592
13593# func_dirname file append nondir_replacement
13594# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13595# otherwise set result to NONDIR_REPLACEMENT.
13596func_dirname ()
13597{
13598  case ${1} in
13599    */*) func_dirname_result="${1%/*}${2}" ;;
13600    *  ) func_dirname_result="${3}" ;;
13601  esac
13602}
13603
13604# func_basename file
13605func_basename ()
13606{
13607  func_basename_result="${1##*/}"
13608}
13609
13610# func_dirname_and_basename file append nondir_replacement
13611# perform func_basename and func_dirname in a single function
13612# call:
13613#   dirname:  Compute the dirname of FILE.  If nonempty,
13614#             add APPEND to the result, otherwise set result
13615#             to NONDIR_REPLACEMENT.
13616#             value returned in "$func_dirname_result"
13617#   basename: Compute filename of FILE.
13618#             value retuned in "$func_basename_result"
13619# Implementation must be kept synchronized with func_dirname
13620# and func_basename. For efficiency, we do not delegate to
13621# those functions but instead duplicate the functionality here.
13622func_dirname_and_basename ()
13623{
13624  case ${1} in
13625    */*) func_dirname_result="${1%/*}${2}" ;;
13626    *  ) func_dirname_result="${3}" ;;
13627  esac
13628  func_basename_result="${1##*/}"
13629}
13630
13631# func_stripname prefix suffix name
13632# strip PREFIX and SUFFIX off of NAME.
13633# PREFIX and SUFFIX must not contain globbing or regex special
13634# characters, hashes, percent signs, but SUFFIX may contain a leading
13635# dot (in which case that matches only a dot).
13636func_stripname ()
13637{
13638  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13639  # positional parameters, so assign one to ordinary parameter first.
13640  func_stripname_result=${3}
13641  func_stripname_result=${func_stripname_result#"${1}"}
13642  func_stripname_result=${func_stripname_result%"${2}"}
13643}
13644
13645# func_opt_split
13646func_opt_split ()
13647{
13648  func_opt_split_opt=${1%%=*}
13649  func_opt_split_arg=${1#*=}
13650}
13651
13652# func_lo2o object
13653func_lo2o ()
13654{
13655  case ${1} in
13656    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13657    *)    func_lo2o_result=${1} ;;
13658  esac
13659}
13660
13661# func_xform libobj-or-source
13662func_xform ()
13663{
13664  func_xform_result=${1%.*}.lo
13665}
13666
13667# func_arith arithmetic-term...
13668func_arith ()
13669{
13670  func_arith_result=$(( $* ))
13671}
13672
13673# func_len string
13674# STRING may not start with a hyphen.
13675func_len ()
13676{
13677  func_len_result=${#1}
13678}
13679
13680_LT_EOF
13681    ;;
13682  *) # Bourne compatible functions.
13683    cat << \_LT_EOF >> "$cfgfile"
13684
13685# func_dirname file append nondir_replacement
13686# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13687# otherwise set result to NONDIR_REPLACEMENT.
13688func_dirname ()
13689{
13690  # Extract subdirectory from the argument.
13691  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13692  if test "X$func_dirname_result" = "X${1}"; then
13693    func_dirname_result="${3}"
13694  else
13695    func_dirname_result="$func_dirname_result${2}"
13696  fi
13697}
13698
13699# func_basename file
13700func_basename ()
13701{
13702  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13703}
13704
13705
13706# func_stripname prefix suffix name
13707# strip PREFIX and SUFFIX off of NAME.
13708# PREFIX and SUFFIX must not contain globbing or regex special
13709# characters, hashes, percent signs, but SUFFIX may contain a leading
13710# dot (in which case that matches only a dot).
13711# func_strip_suffix prefix name
13712func_stripname ()
13713{
13714  case ${2} in
13715    .*) func_stripname_result=`$ECHO "X${3}" \
13716           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13717    *)  func_stripname_result=`$ECHO "X${3}" \
13718           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13719  esac
13720}
13721
13722# sed scripts:
13723my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13724my_sed_long_arg='1s/^-[^=]*=//'
13725
13726# func_opt_split
13727func_opt_split ()
13728{
13729  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13730  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13731}
13732
13733# func_lo2o object
13734func_lo2o ()
13735{
13736  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13737}
13738
13739# func_xform libobj-or-source
13740func_xform ()
13741{
13742  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13743}
13744
13745# func_arith arithmetic-term...
13746func_arith ()
13747{
13748  func_arith_result=`expr "$@"`
13749}
13750
13751# func_len string
13752# STRING may not start with a hyphen.
13753func_len ()
13754{
13755  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13756}
13757
13758_LT_EOF
13759esac
13760
13761case $lt_shell_append in
13762  yes)
13763    cat << \_LT_EOF >> "$cfgfile"
13764
13765# func_append var value
13766# Append VALUE to the end of shell variable VAR.
13767func_append ()
13768{
13769  eval "$1+=\$2"
13770}
13771_LT_EOF
13772    ;;
13773  *)
13774    cat << \_LT_EOF >> "$cfgfile"
13775
13776# func_append var value
13777# Append VALUE to the end of shell variable VAR.
13778func_append ()
13779{
13780  eval "$1=\$$1\$2"
13781}
13782
13783_LT_EOF
13784    ;;
13785  esac
13786
13787
13788  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13789    || (rm -f "$cfgfile"; exit 1)
13790
13791  mv -f "$cfgfile" "$ofile" ||
13792    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13793  chmod +x "$ofile"
13794
13795 ;;
13796
13797  esac
13798done # for ac_tag
13799
13800
13801as_fn_exit 0
13802_ACEOF
13803ac_clean_files=$ac_clean_files_save
13804
13805test $ac_write_fail = 0 ||
13806  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13807
13808
13809# configure is writing to config.log, and then calls config.status.
13810# config.status does its own redirection, appending to config.log.
13811# Unfortunately, on DOS this fails, as config.log is still kept open
13812# by configure, so config.status won't be able to write to it; its
13813# output is simply discarded.  So we exec the FD to /dev/null,
13814# effectively closing config.log, so it can be properly (re)opened and
13815# appended to by config.status.  When coming back to configure, we
13816# need to make the FD available again.
13817if test "$no_create" != yes; then
13818  ac_cs_success=:
13819  ac_config_status_args=
13820  test "$silent" = yes &&
13821    ac_config_status_args="$ac_config_status_args --quiet"
13822  exec 5>/dev/null
13823  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13824  exec 5>>config.log
13825  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13826  # would make configure fail if this is the last instruction.
13827  $ac_cs_success || as_fn_exit $?
13828fi
13829if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13830  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13831$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13832fi
13833
13834