configure revision 86dafe34
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-cirrus 1.3.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='xf86-video-cirrus'
747PACKAGE_TARNAME='xf86-video-cirrus'
748PACKAGE_VERSION='1.3.1'
749PACKAGE_STRING='xf86-video-cirrus 1.3.1'
750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752ac_unique_file="Makefile.am"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='LTLIBOBJS
790LIBOBJS
791distcleancheck_listfiles
792CHANGELOG_CMD
793ADMIN_MAN_DIR
794DRIVER_MAN_DIR
795MISC_MAN_DIR
796FILE_MAN_DIR
797LIB_MAN_DIR
798APP_MAN_DIR
799ADMIN_MAN_SUFFIX
800DRIVER_MAN_SUFFIX
801MISC_MAN_SUFFIX
802FILE_MAN_SUFFIX
803LIB_MAN_SUFFIX
804APP_MAN_SUFFIX
805DRIVER_NAME
806moduledir
807XSERVER_LIBPCIACCESS_FALSE
808XSERVER_LIBPCIACCESS_TRUE
809PCIACCESS_LIBS
810PCIACCESS_CFLAGS
811XORG_LIBS
812XORG_CFLAGS
813PKG_CONFIG
814CWARNFLAGS
815CPP
816OTOOL64
817OTOOL
818LIPO
819NMEDIT
820DSYMUTIL
821lt_ECHO
822RANLIB
823AR
824OBJDUMP
825LN_S
826NM
827ac_ct_DUMPBIN
828DUMPBIN
829LD
830FGREP
831EGREP
832GREP
833SED
834am__fastdepCC_FALSE
835am__fastdepCC_TRUE
836CCDEPMODE
837AMDEPBACKSLASH
838AMDEP_FALSE
839AMDEP_TRUE
840am__quote
841am__include
842DEPDIR
843OBJEXT
844EXEEXT
845ac_ct_CC
846CPPFLAGS
847LDFLAGS
848CFLAGS
849CC
850host_os
851host_vendor
852host_cpu
853host
854build_os
855build_vendor
856build_cpu
857build
858LIBTOOL
859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
862am__untar
863am__tar
864AMTAR
865am__leading_dot
866SET_MAKE
867AWK
868mkdir_p
869MKDIR_P
870INSTALL_STRIP_PROGRAM
871STRIP
872install_sh
873MAKEINFO
874AUTOHEADER
875AUTOMAKE
876AUTOCONF
877ACLOCAL
878VERSION
879PACKAGE
880CYGPATH_W
881am__isrc
882INSTALL_DATA
883INSTALL_SCRIPT
884INSTALL_PROGRAM
885target_alias
886host_alias
887build_alias
888LIBS
889ECHO_T
890ECHO_N
891ECHO_C
892DEFS
893mandir
894localedir
895libdir
896psdir
897pdfdir
898dvidir
899htmldir
900infodir
901docdir
902oldincludedir
903includedir
904localstatedir
905sharedstatedir
906sysconfdir
907datadir
908datarootdir
909libexecdir
910sbindir
911bindir
912program_transform_name
913prefix
914exec_prefix
915PACKAGE_BUGREPORT
916PACKAGE_STRING
917PACKAGE_VERSION
918PACKAGE_TARNAME
919PACKAGE_NAME
920PATH_SEPARATOR
921SHELL'
922ac_subst_files=''
923ac_user_opts='
924enable_option_checking
925enable_maintainer_mode
926enable_static
927enable_shared
928with_pic
929enable_fast_install
930enable_dependency_tracking
931with_gnu_ld
932enable_libtool_lock
933with_xorg_module_dir
934with_release_version
935'
936      ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942LIBS
943CPPFLAGS
944CPP
945PKG_CONFIG
946XORG_CFLAGS
947XORG_LIBS
948PCIACCESS_CFLAGS
949PCIACCESS_LIBS'
950
951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955ac_unrecognized_opts=
956ac_unrecognized_sep=
957# The variables have the same names as the options, with
958# dashes changed to underlines.
959cache_file=/dev/null
960exec_prefix=NONE
961no_create=
962no_recursion=
963prefix=NONE
964program_prefix=NONE
965program_suffix=NONE
966program_transform_name=s,x,x,
967silent=
968site=
969srcdir=
970verbose=
971x_includes=NONE
972x_libraries=NONE
973
974# Installation directory options.
975# These are left unexpanded so users can "make install exec_prefix=/foo"
976# and all the variables that are supposed to be based on exec_prefix
977# by default will actually change.
978# Use braces instead of parens because sh, perl, etc. also accept them.
979# (The list follows the same order as the GNU Coding Standards.)
980bindir='${exec_prefix}/bin'
981sbindir='${exec_prefix}/sbin'
982libexecdir='${exec_prefix}/libexec'
983datarootdir='${prefix}/share'
984datadir='${datarootdir}'
985sysconfdir='${prefix}/etc'
986sharedstatedir='${prefix}/com'
987localstatedir='${prefix}/var'
988includedir='${prefix}/include'
989oldincludedir='/usr/include'
990docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991infodir='${datarootdir}/info'
992htmldir='${docdir}'
993dvidir='${docdir}'
994pdfdir='${docdir}'
995psdir='${docdir}'
996libdir='${exec_prefix}/lib'
997localedir='${datarootdir}/locale'
998mandir='${datarootdir}/man'
999
1000ac_prev=
1001ac_dashdash=
1002for ac_option
1003do
1004  # If the previous option needs an argument, assign it.
1005  if test -n "$ac_prev"; then
1006    eval $ac_prev=\$ac_option
1007    ac_prev=
1008    continue
1009  fi
1010
1011  case $ac_option in
1012  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013  *)	ac_optarg=yes ;;
1014  esac
1015
1016  # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018  case $ac_dashdash$ac_option in
1019  --)
1020    ac_dashdash=yes ;;
1021
1022  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023    ac_prev=bindir ;;
1024  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025    bindir=$ac_optarg ;;
1026
1027  -build | --build | --buil | --bui | --bu)
1028    ac_prev=build_alias ;;
1029  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030    build_alias=$ac_optarg ;;
1031
1032  -cache-file | --cache-file | --cache-fil | --cache-fi \
1033  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034    ac_prev=cache_file ;;
1035  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037    cache_file=$ac_optarg ;;
1038
1039  --config-cache | -C)
1040    cache_file=config.cache ;;
1041
1042  -datadir | --datadir | --datadi | --datad)
1043    ac_prev=datadir ;;
1044  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045    datadir=$ac_optarg ;;
1046
1047  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048  | --dataroo | --dataro | --datar)
1049    ac_prev=datarootdir ;;
1050  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052    datarootdir=$ac_optarg ;;
1053
1054  -disable-* | --disable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1059   { (exit 1); exit 1; }; }
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=no ;;
1070
1071  -docdir | --docdir | --docdi | --doc | --do)
1072    ac_prev=docdir ;;
1073  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074    docdir=$ac_optarg ;;
1075
1076  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077    ac_prev=dvidir ;;
1078  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079    dvidir=$ac_optarg ;;
1080
1081  -enable-* | --enable-*)
1082    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1086   { (exit 1); exit 1; }; }
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"enable_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval enable_$ac_useropt=\$ac_optarg ;;
1097
1098  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100  | --exec | --exe | --ex)
1101    ac_prev=exec_prefix ;;
1102  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104  | --exec=* | --exe=* | --ex=*)
1105    exec_prefix=$ac_optarg ;;
1106
1107  -gas | --gas | --ga | --g)
1108    # Obsolete; use --with-gas.
1109    with_gas=yes ;;
1110
1111  -help | --help | --hel | --he | -h)
1112    ac_init_help=long ;;
1113  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114    ac_init_help=recursive ;;
1115  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116    ac_init_help=short ;;
1117
1118  -host | --host | --hos | --ho)
1119    ac_prev=host_alias ;;
1120  -host=* | --host=* | --hos=* | --ho=*)
1121    host_alias=$ac_optarg ;;
1122
1123  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124    ac_prev=htmldir ;;
1125  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126  | --ht=*)
1127    htmldir=$ac_optarg ;;
1128
1129  -includedir | --includedir | --includedi | --included | --include \
1130  | --includ | --inclu | --incl | --inc)
1131    ac_prev=includedir ;;
1132  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133  | --includ=* | --inclu=* | --incl=* | --inc=*)
1134    includedir=$ac_optarg ;;
1135
1136  -infodir | --infodir | --infodi | --infod | --info | --inf)
1137    ac_prev=infodir ;;
1138  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139    infodir=$ac_optarg ;;
1140
1141  -libdir | --libdir | --libdi | --libd)
1142    ac_prev=libdir ;;
1143  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144    libdir=$ac_optarg ;;
1145
1146  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147  | --libexe | --libex | --libe)
1148    ac_prev=libexecdir ;;
1149  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150  | --libexe=* | --libex=* | --libe=*)
1151    libexecdir=$ac_optarg ;;
1152
1153  -localedir | --localedir | --localedi | --localed | --locale)
1154    ac_prev=localedir ;;
1155  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156    localedir=$ac_optarg ;;
1157
1158  -localstatedir | --localstatedir | --localstatedi | --localstated \
1159  | --localstate | --localstat | --localsta | --localst | --locals)
1160    ac_prev=localstatedir ;;
1161  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163    localstatedir=$ac_optarg ;;
1164
1165  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166    ac_prev=mandir ;;
1167  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168    mandir=$ac_optarg ;;
1169
1170  -nfp | --nfp | --nf)
1171    # Obsolete; use --without-fp.
1172    with_fp=no ;;
1173
1174  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175  | --no-cr | --no-c | -n)
1176    no_create=yes ;;
1177
1178  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180    no_recursion=yes ;;
1181
1182  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184  | --oldin | --oldi | --old | --ol | --o)
1185    ac_prev=oldincludedir ;;
1186  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189    oldincludedir=$ac_optarg ;;
1190
1191  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192    ac_prev=prefix ;;
1193  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194    prefix=$ac_optarg ;;
1195
1196  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197  | --program-pre | --program-pr | --program-p)
1198    ac_prev=program_prefix ;;
1199  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201    program_prefix=$ac_optarg ;;
1202
1203  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204  | --program-suf | --program-su | --program-s)
1205    ac_prev=program_suffix ;;
1206  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208    program_suffix=$ac_optarg ;;
1209
1210  -program-transform-name | --program-transform-name \
1211  | --program-transform-nam | --program-transform-na \
1212  | --program-transform-n | --program-transform- \
1213  | --program-transform | --program-transfor \
1214  | --program-transfo | --program-transf \
1215  | --program-trans | --program-tran \
1216  | --progr-tra | --program-tr | --program-t)
1217    ac_prev=program_transform_name ;;
1218  -program-transform-name=* | --program-transform-name=* \
1219  | --program-transform-nam=* | --program-transform-na=* \
1220  | --program-transform-n=* | --program-transform-=* \
1221  | --program-transform=* | --program-transfor=* \
1222  | --program-transfo=* | --program-transf=* \
1223  | --program-trans=* | --program-tran=* \
1224  | --progr-tra=* | --program-tr=* | --program-t=*)
1225    program_transform_name=$ac_optarg ;;
1226
1227  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228    ac_prev=pdfdir ;;
1229  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230    pdfdir=$ac_optarg ;;
1231
1232  -psdir | --psdir | --psdi | --psd | --ps)
1233    ac_prev=psdir ;;
1234  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235    psdir=$ac_optarg ;;
1236
1237  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238  | -silent | --silent | --silen | --sile | --sil)
1239    silent=yes ;;
1240
1241  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242    ac_prev=sbindir ;;
1243  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244  | --sbi=* | --sb=*)
1245    sbindir=$ac_optarg ;;
1246
1247  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249  | --sharedst | --shareds | --shared | --share | --shar \
1250  | --sha | --sh)
1251    ac_prev=sharedstatedir ;;
1252  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255  | --sha=* | --sh=*)
1256    sharedstatedir=$ac_optarg ;;
1257
1258  -site | --site | --sit)
1259    ac_prev=site ;;
1260  -site=* | --site=* | --sit=*)
1261    site=$ac_optarg ;;
1262
1263  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264    ac_prev=srcdir ;;
1265  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266    srcdir=$ac_optarg ;;
1267
1268  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269  | --syscon | --sysco | --sysc | --sys | --sy)
1270    ac_prev=sysconfdir ;;
1271  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273    sysconfdir=$ac_optarg ;;
1274
1275  -target | --target | --targe | --targ | --tar | --ta | --t)
1276    ac_prev=target_alias ;;
1277  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278    target_alias=$ac_optarg ;;
1279
1280  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281    verbose=yes ;;
1282
1283  -version | --version | --versio | --versi | --vers | -V)
1284    ac_init_version=: ;;
1285
1286  -with-* | --with-*)
1287    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288    # Reject names that are not valid shell variable names.
1289    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1291   { (exit 1); exit 1; }; }
1292    ac_useropt_orig=$ac_useropt
1293    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294    case $ac_user_opts in
1295      *"
1296"with_$ac_useropt"
1297"*) ;;
1298      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299	 ac_unrecognized_sep=', ';;
1300    esac
1301    eval with_$ac_useropt=\$ac_optarg ;;
1302
1303  -without-* | --without-*)
1304    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305    # Reject names that are not valid shell variable names.
1306    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1308   { (exit 1); exit 1; }; }
1309    ac_useropt_orig=$ac_useropt
1310    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311    case $ac_user_opts in
1312      *"
1313"with_$ac_useropt"
1314"*) ;;
1315      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316	 ac_unrecognized_sep=', ';;
1317    esac
1318    eval with_$ac_useropt=no ;;
1319
1320  --x)
1321    # Obsolete; use --with-x.
1322    with_x=yes ;;
1323
1324  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325  | --x-incl | --x-inc | --x-in | --x-i)
1326    ac_prev=x_includes ;;
1327  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329    x_includes=$ac_optarg ;;
1330
1331  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333    ac_prev=x_libraries ;;
1334  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336    x_libraries=$ac_optarg ;;
1337
1338  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1339Try \`$0 --help' for more information." >&2
1340   { (exit 1); exit 1; }; }
1341    ;;
1342
1343  *=*)
1344    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345    # Reject names that are not valid shell variable names.
1346    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1347      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1348   { (exit 1); exit 1; }; }
1349    eval $ac_envvar=\$ac_optarg
1350    export $ac_envvar ;;
1351
1352  *)
1353    # FIXME: should be removed in autoconf 3.0.
1354    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358    ;;
1359
1360  esac
1361done
1362
1363if test -n "$ac_prev"; then
1364  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1366   { (exit 1); exit 1; }; }
1367fi
1368
1369if test -n "$ac_unrecognized_opts"; then
1370  case $enable_option_checking in
1371    no) ;;
1372    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1373   { (exit 1); exit 1; }; } ;;
1374    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375  esac
1376fi
1377
1378# Check all directory arguments for consistency.
1379for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380		datadir sysconfdir sharedstatedir localstatedir includedir \
1381		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382		libdir localedir mandir
1383do
1384  eval ac_val=\$$ac_var
1385  # Remove trailing slashes.
1386  case $ac_val in
1387    */ )
1388      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389      eval $ac_var=\$ac_val;;
1390  esac
1391  # Be sure to have absolute directory names.
1392  case $ac_val in
1393    [\\/$]* | ?:[\\/]* )  continue;;
1394    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395  esac
1396  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1397   { (exit 1); exit 1; }; }
1398done
1399
1400# There might be people who depend on the old broken behavior: `$host'
1401# used to hold the argument of --host etc.
1402# FIXME: To remove some day.
1403build=$build_alias
1404host=$host_alias
1405target=$target_alias
1406
1407# FIXME: To remove some day.
1408if test "x$host_alias" != x; then
1409  if test "x$build_alias" = x; then
1410    cross_compiling=maybe
1411    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412    If a cross compiler is detected then cross compile mode will be used." >&2
1413  elif test "x$build_alias" != "x$host_alias"; then
1414    cross_compiling=yes
1415  fi
1416fi
1417
1418ac_tool_prefix=
1419test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421test "$silent" = yes && exec 6>/dev/null
1422
1423
1424ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425ac_ls_di=`ls -di .` &&
1426ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1428   { (exit 1); exit 1; }; }
1429test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1431   { (exit 1); exit 1; }; }
1432
1433
1434# Find the source files, if location was not specified.
1435if test -z "$srcdir"; then
1436  ac_srcdir_defaulted=yes
1437  # Try the directory containing this script, then the parent directory.
1438  ac_confdir=`$as_dirname -- "$as_myself" ||
1439$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440	 X"$as_myself" : 'X\(//\)[^/]' \| \
1441	 X"$as_myself" : 'X\(//\)$' \| \
1442	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443$as_echo X"$as_myself" |
1444    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445	    s//\1/
1446	    q
1447	  }
1448	  /^X\(\/\/\)[^/].*/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)$/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\).*/{
1457	    s//\1/
1458	    q
1459	  }
1460	  s/.*/./; q'`
1461  srcdir=$ac_confdir
1462  if test ! -r "$srcdir/$ac_unique_file"; then
1463    srcdir=..
1464  fi
1465else
1466  ac_srcdir_defaulted=no
1467fi
1468if test ! -r "$srcdir/$ac_unique_file"; then
1469  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1471   { (exit 1); exit 1; }; }
1472fi
1473ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474ac_abs_confdir=`(
1475	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1476   { (exit 1); exit 1; }; }
1477	pwd)`
1478# When building in place, set srcdir=.
1479if test "$ac_abs_confdir" = "$ac_pwd"; then
1480  srcdir=.
1481fi
1482# Remove unnecessary trailing slashes from srcdir.
1483# Double slashes in file names in object file debugging info
1484# mess up M-x gdb in Emacs.
1485case $srcdir in
1486*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487esac
1488for ac_var in $ac_precious_vars; do
1489  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490  eval ac_env_${ac_var}_value=\$${ac_var}
1491  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493done
1494
1495#
1496# Report the --help message.
1497#
1498if test "$ac_init_help" = "long"; then
1499  # Omit some internal or obsolete options to make the list less imposing.
1500  # This message is too long to be a string in the A/UX 3.1 sh.
1501  cat <<_ACEOF
1502\`configure' configures xf86-video-cirrus 1.3.1 to adapt to many kinds of systems.
1503
1504Usage: $0 [OPTION]... [VAR=VALUE]...
1505
1506To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507VAR=VALUE.  See below for descriptions of some of the useful variables.
1508
1509Defaults for the options are specified in brackets.
1510
1511Configuration:
1512  -h, --help              display this help and exit
1513      --help=short        display options specific to this package
1514      --help=recursive    display the short help of all the included packages
1515  -V, --version           display version information and exit
1516  -q, --quiet, --silent   do not print \`checking...' messages
1517      --cache-file=FILE   cache test results in FILE [disabled]
1518  -C, --config-cache      alias for \`--cache-file=config.cache'
1519  -n, --no-create         do not create output files
1520      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1521
1522Installation directories:
1523  --prefix=PREFIX         install architecture-independent files in PREFIX
1524                          [$ac_default_prefix]
1525  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1526                          [PREFIX]
1527
1528By default, \`make install' will install all the files in
1529\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1530an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531for instance \`--prefix=\$HOME'.
1532
1533For better control, use the options below.
1534
1535Fine tuning of the installation directories:
1536  --bindir=DIR            user executables [EPREFIX/bin]
1537  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1538  --libexecdir=DIR        program executables [EPREFIX/libexec]
1539  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1540  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1541  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1542  --libdir=DIR            object code libraries [EPREFIX/lib]
1543  --includedir=DIR        C header files [PREFIX/include]
1544  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1545  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1546  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1547  --infodir=DIR           info documentation [DATAROOTDIR/info]
1548  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1549  --mandir=DIR            man documentation [DATAROOTDIR/man]
1550  --docdir=DIR            documentation root
1551                          [DATAROOTDIR/doc/xf86-video-cirrus]
1552  --htmldir=DIR           html documentation [DOCDIR]
1553  --dvidir=DIR            dvi documentation [DOCDIR]
1554  --pdfdir=DIR            pdf documentation [DOCDIR]
1555  --psdir=DIR             ps documentation [DOCDIR]
1556_ACEOF
1557
1558  cat <<\_ACEOF
1559
1560Program names:
1561  --program-prefix=PREFIX            prepend PREFIX to installed program names
1562  --program-suffix=SUFFIX            append SUFFIX to installed program names
1563  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1564
1565System types:
1566  --build=BUILD     configure for building on BUILD [guessed]
1567  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572  case $ac_init_help in
1573     short | recursive ) echo "Configuration of xf86-video-cirrus 1.3.1:";;
1574   esac
1575  cat <<\_ACEOF
1576
1577Optional Features:
1578  --disable-option-checking  ignore unrecognized --enable/--with options
1579  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581  --enable-maintainer-mode  enable make rules and dependencies not useful
1582			  (and sometimes confusing) to the casual installer
1583  --enable-static[=PKGS]  build static libraries [default=no]
1584  --enable-shared[=PKGS]  build shared libraries [default=yes]
1585  --enable-fast-install[=PKGS]
1586                          optimize for fast installation [default=yes]
1587  --disable-dependency-tracking  speeds up one-time build
1588  --enable-dependency-tracking   do not reject slow dependency extractors
1589  --disable-libtool-lock  avoid locking (might break parallel builds)
1590
1591Optional Packages:
1592  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1593  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1594  --with-pic              try to use only PIC/non-PIC objects [default=use
1595                          both]
1596  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1597  --with-xorg-module-dir=DIR
1598                          Default xorg module directory
1599                          [default=$libdir/xorg/modules]
1600  --with-release-version=STRING
1601                          Use release version string in package name
1602
1603Some influential environment variables:
1604  CC          C compiler command
1605  CFLAGS      C compiler flags
1606  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1607              nonstandard directory <lib dir>
1608  LIBS        libraries to pass to the linker, e.g. -l<library>
1609  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610              you have headers in a nonstandard directory <include dir>
1611  CPP         C preprocessor
1612  PKG_CONFIG  path to pkg-config utility
1613  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1614  XORG_LIBS   linker flags for XORG, overriding pkg-config
1615  PCIACCESS_CFLAGS
1616              C compiler flags for PCIACCESS, overriding pkg-config
1617  PCIACCESS_LIBS
1618              linker flags for PCIACCESS, overriding pkg-config
1619
1620Use these variables to override the choices made by `configure' or to help
1621it to find libraries and programs with nonstandard names/locations.
1622
1623Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1624_ACEOF
1625ac_status=$?
1626fi
1627
1628if test "$ac_init_help" = "recursive"; then
1629  # If there are subdirs, report their specific --help.
1630  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631    test -d "$ac_dir" ||
1632      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633      continue
1634    ac_builddir=.
1635
1636case "$ac_dir" in
1637.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638*)
1639  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640  # A ".." for each directory in $ac_dir_suffix.
1641  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642  case $ac_top_builddir_sub in
1643  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645  esac ;;
1646esac
1647ac_abs_top_builddir=$ac_pwd
1648ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649# for backward compatibility:
1650ac_top_builddir=$ac_top_build_prefix
1651
1652case $srcdir in
1653  .)  # We are building in place.
1654    ac_srcdir=.
1655    ac_top_srcdir=$ac_top_builddir_sub
1656    ac_abs_top_srcdir=$ac_pwd ;;
1657  [\\/]* | ?:[\\/]* )  # Absolute name.
1658    ac_srcdir=$srcdir$ac_dir_suffix;
1659    ac_top_srcdir=$srcdir
1660    ac_abs_top_srcdir=$srcdir ;;
1661  *) # Relative name.
1662    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663    ac_top_srcdir=$ac_top_build_prefix$srcdir
1664    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665esac
1666ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668    cd "$ac_dir" || { ac_status=$?; continue; }
1669    # Check for guested configure.
1670    if test -f "$ac_srcdir/configure.gnu"; then
1671      echo &&
1672      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673    elif test -f "$ac_srcdir/configure"; then
1674      echo &&
1675      $SHELL "$ac_srcdir/configure" --help=recursive
1676    else
1677      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678    fi || ac_status=$?
1679    cd "$ac_pwd" || { ac_status=$?; break; }
1680  done
1681fi
1682
1683test -n "$ac_init_help" && exit $ac_status
1684if $ac_init_version; then
1685  cat <<\_ACEOF
1686xf86-video-cirrus configure 1.3.1
1687generated by GNU Autoconf 2.63
1688
1689Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16902002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1691This configure script is free software; the Free Software Foundation
1692gives unlimited permission to copy, distribute and modify it.
1693_ACEOF
1694  exit
1695fi
1696cat >config.log <<_ACEOF
1697This file contains any messages produced by compilers while
1698running configure, to aid debugging if configure makes a mistake.
1699
1700It was created by xf86-video-cirrus $as_me 1.3.1, which was
1701generated by GNU Autoconf 2.63.  Invocation command line was
1702
1703  $ $0 $@
1704
1705_ACEOF
1706exec 5>>config.log
1707{
1708cat <<_ASUNAME
1709## --------- ##
1710## Platform. ##
1711## --------- ##
1712
1713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1721
1722/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1723/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1726/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1727/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1728/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1729
1730_ASUNAME
1731
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735  IFS=$as_save_IFS
1736  test -z "$as_dir" && as_dir=.
1737  $as_echo "PATH: $as_dir"
1738done
1739IFS=$as_save_IFS
1740
1741} >&5
1742
1743cat >&5 <<_ACEOF
1744
1745
1746## ----------- ##
1747## Core tests. ##
1748## ----------- ##
1749
1750_ACEOF
1751
1752
1753# Keep a trace of the command line.
1754# Strip out --no-create and --no-recursion so they do not pile up.
1755# Strip out --silent because we don't want to record it for future runs.
1756# Also quote any args containing shell meta-characters.
1757# Make two passes to allow for proper duplicate-argument suppression.
1758ac_configure_args=
1759ac_configure_args0=
1760ac_configure_args1=
1761ac_must_keep_next=false
1762for ac_pass in 1 2
1763do
1764  for ac_arg
1765  do
1766    case $ac_arg in
1767    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769    | -silent | --silent | --silen | --sile | --sil)
1770      continue ;;
1771    *\'*)
1772      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773    esac
1774    case $ac_pass in
1775    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776    2)
1777      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778      if test $ac_must_keep_next = true; then
1779	ac_must_keep_next=false # Got value, back to normal.
1780      else
1781	case $ac_arg in
1782	  *=* | --config-cache | -C | -disable-* | --disable-* \
1783	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785	  | -with-* | --with-* | -without-* | --without-* | --x)
1786	    case "$ac_configure_args0 " in
1787	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788	    esac
1789	    ;;
1790	  -* ) ac_must_keep_next=true ;;
1791	esac
1792      fi
1793      ac_configure_args="$ac_configure_args '$ac_arg'"
1794      ;;
1795    esac
1796  done
1797done
1798$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801# When interrupted or exit'd, cleanup temporary files, and complete
1802# config.log.  We remove comments because anyway the quotes in there
1803# would cause problems or look ugly.
1804# WARNING: Use '\'' to represent an apostrophe within the trap.
1805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806trap 'exit_status=$?
1807  # Save into config.log some information that might help in debugging.
1808  {
1809    echo
1810
1811    cat <<\_ASBOX
1812## ---------------- ##
1813## Cache variables. ##
1814## ---------------- ##
1815_ASBOX
1816    echo
1817    # The following way of writing the cache mishandles newlines in values,
1818(
1819  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820    eval ac_val=\$$ac_var
1821    case $ac_val in #(
1822    *${as_nl}*)
1823      case $ac_var in #(
1824      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1825$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1826      esac
1827      case $ac_var in #(
1828      _ | IFS | as_nl) ;; #(
1829      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1830      *) $as_unset $ac_var ;;
1831      esac ;;
1832    esac
1833  done
1834  (set) 2>&1 |
1835    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836    *${as_nl}ac_space=\ *)
1837      sed -n \
1838	"s/'\''/'\''\\\\'\'''\''/g;
1839	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840      ;; #(
1841    *)
1842      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843      ;;
1844    esac |
1845    sort
1846)
1847    echo
1848
1849    cat <<\_ASBOX
1850## ----------------- ##
1851## Output variables. ##
1852## ----------------- ##
1853_ASBOX
1854    echo
1855    for ac_var in $ac_subst_vars
1856    do
1857      eval ac_val=\$$ac_var
1858      case $ac_val in
1859      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860      esac
1861      $as_echo "$ac_var='\''$ac_val'\''"
1862    done | sort
1863    echo
1864
1865    if test -n "$ac_subst_files"; then
1866      cat <<\_ASBOX
1867## ------------------- ##
1868## File substitutions. ##
1869## ------------------- ##
1870_ASBOX
1871      echo
1872      for ac_var in $ac_subst_files
1873      do
1874	eval ac_val=\$$ac_var
1875	case $ac_val in
1876	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877	esac
1878	$as_echo "$ac_var='\''$ac_val'\''"
1879      done | sort
1880      echo
1881    fi
1882
1883    if test -s confdefs.h; then
1884      cat <<\_ASBOX
1885## ----------- ##
1886## confdefs.h. ##
1887## ----------- ##
1888_ASBOX
1889      echo
1890      cat confdefs.h
1891      echo
1892    fi
1893    test "$ac_signal" != 0 &&
1894      $as_echo "$as_me: caught signal $ac_signal"
1895    $as_echo "$as_me: exit $exit_status"
1896  } >&5
1897  rm -f core *.core core.conftest.* &&
1898    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899    exit $exit_status
1900' 0
1901for ac_signal in 1 2 13 15; do
1902  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903done
1904ac_signal=0
1905
1906# confdefs.h avoids OS command line length limits that DEFS can exceed.
1907rm -f -r conftest* confdefs.h
1908
1909# Predefined preprocessor variables.
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_NAME "$PACKAGE_NAME"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_VERSION "$PACKAGE_VERSION"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_STRING "$PACKAGE_STRING"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933_ACEOF
1934
1935
1936# Let the site file select an alternate cache file if it wants to.
1937# Prefer an explicitly selected file to automatically selected ones.
1938ac_site_file1=NONE
1939ac_site_file2=NONE
1940if test -n "$CONFIG_SITE"; then
1941  ac_site_file1=$CONFIG_SITE
1942elif test "x$prefix" != xNONE; then
1943  ac_site_file1=$prefix/share/config.site
1944  ac_site_file2=$prefix/etc/config.site
1945else
1946  ac_site_file1=$ac_default_prefix/share/config.site
1947  ac_site_file2=$ac_default_prefix/etc/config.site
1948fi
1949for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950do
1951  test "x$ac_site_file" = xNONE && continue
1952  if test -r "$ac_site_file"; then
1953    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1954$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1955    sed 's/^/| /' "$ac_site_file" >&5
1956    . "$ac_site_file"
1957  fi
1958done
1959
1960if test -r "$cache_file"; then
1961  # Some versions of bash will fail to source /dev/null (special
1962  # files actually), so we avoid doing that.
1963  if test -f "$cache_file"; then
1964    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1965$as_echo "$as_me: loading cache $cache_file" >&6;}
1966    case $cache_file in
1967      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1968      *)                      . "./$cache_file";;
1969    esac
1970  fi
1971else
1972  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1973$as_echo "$as_me: creating cache $cache_file" >&6;}
1974  >$cache_file
1975fi
1976
1977# Check that the precious variables saved in the cache have kept the same
1978# value.
1979ac_cache_corrupted=false
1980for ac_var in $ac_precious_vars; do
1981  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1982  eval ac_new_set=\$ac_env_${ac_var}_set
1983  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1984  eval ac_new_val=\$ac_env_${ac_var}_value
1985  case $ac_old_set,$ac_new_set in
1986    set,)
1987      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1988$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1989      ac_cache_corrupted=: ;;
1990    ,set)
1991      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1992$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1993      ac_cache_corrupted=: ;;
1994    ,);;
1995    *)
1996      if test "x$ac_old_val" != "x$ac_new_val"; then
1997	# differences in whitespace do not lead to failure.
1998	ac_old_val_w=`echo x $ac_old_val`
1999	ac_new_val_w=`echo x $ac_new_val`
2000	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2001	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2002$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003	  ac_cache_corrupted=:
2004	else
2005	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2006$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2007	  eval $ac_var=\$ac_old_val
2008	fi
2009	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2010$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2011	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2012$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2013      fi;;
2014  esac
2015  # Pass precious variables to config.status.
2016  if test "$ac_new_set" = set; then
2017    case $ac_new_val in
2018    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019    *) ac_arg=$ac_var=$ac_new_val ;;
2020    esac
2021    case " $ac_configure_args " in
2022      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2023      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2024    esac
2025  fi
2026done
2027if $ac_cache_corrupted; then
2028  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2030  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2031$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2032  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2033$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2034   { (exit 1); exit 1; }; }
2035fi
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061ac_ext=c
2062ac_cpp='$CPP $CPPFLAGS'
2063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066
2067
2068
2069
2070ac_config_headers="$ac_config_headers config.h"
2071
2072ac_aux_dir=
2073for ac_dir in . "$srcdir"/.; do
2074  if test -f "$ac_dir/install-sh"; then
2075    ac_aux_dir=$ac_dir
2076    ac_install_sh="$ac_aux_dir/install-sh -c"
2077    break
2078  elif test -f "$ac_dir/install.sh"; then
2079    ac_aux_dir=$ac_dir
2080    ac_install_sh="$ac_aux_dir/install.sh -c"
2081    break
2082  elif test -f "$ac_dir/shtool"; then
2083    ac_aux_dir=$ac_dir
2084    ac_install_sh="$ac_aux_dir/shtool install -c"
2085    break
2086  fi
2087done
2088if test -z "$ac_aux_dir"; then
2089  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2090$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2091   { (exit 1); exit 1; }; }
2092fi
2093
2094# These three variables are undocumented and unsupported,
2095# and are intended to be withdrawn in a future Autoconf release.
2096# They can cause serious problems if a builder's source tree is in a directory
2097# whose full name contains unusual characters.
2098ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2099ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2100ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2101
2102
2103
2104am__api_version='1.10'
2105
2106# Find a good install program.  We prefer a C program (faster),
2107# so one script is as good as another.  But avoid the broken or
2108# incompatible versions:
2109# SysV /etc/install, /usr/sbin/install
2110# SunOS /usr/etc/install
2111# IRIX /sbin/install
2112# AIX /bin/install
2113# AmigaOS /C/install, which installs bootblocks on floppy discs
2114# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117# OS/2's system install, which has a completely different semantic
2118# ./install, which can be erroneously created by make from ./install.sh.
2119# Reject install programs that cannot install multiple files.
2120{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2121$as_echo_n "checking for a BSD-compatible install... " >&6; }
2122if test -z "$INSTALL"; then
2123if test "${ac_cv_path_install+set}" = set; then
2124  $as_echo_n "(cached) " >&6
2125else
2126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  # Account for people who put trailing slashes in PATH elements.
2132case $as_dir/ in
2133  ./ | .// | /cC/* | \
2134  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2135  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2136  /usr/ucb/* ) ;;
2137  *)
2138    # OSF1 and SCO ODT 3.0 have their own names for install.
2139    # Don't use installbsd from OSF since it installs stuff as root
2140    # by default.
2141    for ac_prog in ginstall scoinst install; do
2142      for ac_exec_ext in '' $ac_executable_extensions; do
2143	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2144	  if test $ac_prog = install &&
2145	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146	    # AIX install.  It has an incompatible calling convention.
2147	    :
2148	  elif test $ac_prog = install &&
2149	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150	    # program-specific install script used by HP pwplus--don't use.
2151	    :
2152	  else
2153	    rm -rf conftest.one conftest.two conftest.dir
2154	    echo one > conftest.one
2155	    echo two > conftest.two
2156	    mkdir conftest.dir
2157	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2158	      test -s conftest.one && test -s conftest.two &&
2159	      test -s conftest.dir/conftest.one &&
2160	      test -s conftest.dir/conftest.two
2161	    then
2162	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2163	      break 3
2164	    fi
2165	  fi
2166	fi
2167      done
2168    done
2169    ;;
2170esac
2171
2172done
2173IFS=$as_save_IFS
2174
2175rm -rf conftest.one conftest.two conftest.dir
2176
2177fi
2178  if test "${ac_cv_path_install+set}" = set; then
2179    INSTALL=$ac_cv_path_install
2180  else
2181    # As a last resort, use the slow shell script.  Don't cache a
2182    # value for INSTALL within a source directory, because that will
2183    # break other packages using the cache if that directory is
2184    # removed, or if the value is a relative name.
2185    INSTALL=$ac_install_sh
2186  fi
2187fi
2188{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2189$as_echo "$INSTALL" >&6; }
2190
2191# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2192# It thinks the first close brace ends the variable substitution.
2193test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2194
2195test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2196
2197test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2198
2199{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2200$as_echo_n "checking whether build environment is sane... " >&6; }
2201# Just in case
2202sleep 1
2203echo timestamp > conftest.file
2204# Do `set' in a subshell so we don't clobber the current shell's
2205# arguments.  Must try -L first in case configure is actually a
2206# symlink; some systems play weird games with the mod time of symlinks
2207# (eg FreeBSD returns the mod time of the symlink's containing
2208# directory).
2209if (
2210   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2211   if test "$*" = "X"; then
2212      # -L didn't work.
2213      set X `ls -t $srcdir/configure conftest.file`
2214   fi
2215   rm -f conftest.file
2216   if test "$*" != "X $srcdir/configure conftest.file" \
2217      && test "$*" != "X conftest.file $srcdir/configure"; then
2218
2219      # If neither matched, then we have a broken ls.  This can happen
2220      # if, for instance, CONFIG_SHELL is bash and it inherits a
2221      # broken ls alias from the environment.  This has actually
2222      # happened.  Such a system could not be considered "sane".
2223      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2224alias in your environment" >&5
2225$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2226alias in your environment" >&2;}
2227   { (exit 1); exit 1; }; }
2228   fi
2229
2230   test "$2" = conftest.file
2231   )
2232then
2233   # Ok.
2234   :
2235else
2236   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2237Check your system clock" >&5
2238$as_echo "$as_me: error: newly created file is older than distributed files!
2239Check your system clock" >&2;}
2240   { (exit 1); exit 1; }; }
2241fi
2242{ $as_echo "$as_me:$LINENO: result: yes" >&5
2243$as_echo "yes" >&6; }
2244test "$program_prefix" != NONE &&
2245  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2246# Use a double $ so make ignores it.
2247test "$program_suffix" != NONE &&
2248  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2249# Double any \ or $.
2250# By default was `s,x,x', remove it if useless.
2251ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2252program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2253
2254# expand $ac_aux_dir to an absolute path
2255am_aux_dir=`cd $ac_aux_dir && pwd`
2256
2257test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2258# Use eval to expand $SHELL
2259if eval "$MISSING --run true"; then
2260  am_missing_run="$MISSING --run "
2261else
2262  am_missing_run=
2263  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2264$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2265fi
2266
2267{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2268$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2269if test -z "$MKDIR_P"; then
2270  if test "${ac_cv_path_mkdir+set}" = set; then
2271  $as_echo_n "(cached) " >&6
2272else
2273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2275do
2276  IFS=$as_save_IFS
2277  test -z "$as_dir" && as_dir=.
2278  for ac_prog in mkdir gmkdir; do
2279	 for ac_exec_ext in '' $ac_executable_extensions; do
2280	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2281	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2282	     'mkdir (GNU coreutils) '* | \
2283	     'mkdir (coreutils) '* | \
2284	     'mkdir (fileutils) '4.1*)
2285	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2286	       break 3;;
2287	   esac
2288	 done
2289       done
2290done
2291IFS=$as_save_IFS
2292
2293fi
2294
2295  if test "${ac_cv_path_mkdir+set}" = set; then
2296    MKDIR_P="$ac_cv_path_mkdir -p"
2297  else
2298    # As a last resort, use the slow shell script.  Don't cache a
2299    # value for MKDIR_P within a source directory, because that will
2300    # break other packages using the cache if that directory is
2301    # removed, or if the value is a relative name.
2302    test -d ./--version && rmdir ./--version
2303    MKDIR_P="$ac_install_sh -d"
2304  fi
2305fi
2306{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2307$as_echo "$MKDIR_P" >&6; }
2308
2309mkdir_p="$MKDIR_P"
2310case $mkdir_p in
2311  [\\/$]* | ?:[\\/]*) ;;
2312  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2313esac
2314
2315for ac_prog in gawk mawk nawk awk
2316do
2317  # Extract the first word of "$ac_prog", so it can be a program name with args.
2318set dummy $ac_prog; ac_word=$2
2319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2320$as_echo_n "checking for $ac_word... " >&6; }
2321if test "${ac_cv_prog_AWK+set}" = set; then
2322  $as_echo_n "(cached) " >&6
2323else
2324  if test -n "$AWK"; then
2325  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2326else
2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328for as_dir in $PATH
2329do
2330  IFS=$as_save_IFS
2331  test -z "$as_dir" && as_dir=.
2332  for ac_exec_ext in '' $ac_executable_extensions; do
2333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334    ac_cv_prog_AWK="$ac_prog"
2335    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336    break 2
2337  fi
2338done
2339done
2340IFS=$as_save_IFS
2341
2342fi
2343fi
2344AWK=$ac_cv_prog_AWK
2345if test -n "$AWK"; then
2346  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2347$as_echo "$AWK" >&6; }
2348else
2349  { $as_echo "$as_me:$LINENO: result: no" >&5
2350$as_echo "no" >&6; }
2351fi
2352
2353
2354  test -n "$AWK" && break
2355done
2356
2357{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2358$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2359set x ${MAKE-make}
2360ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2361if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2362  $as_echo_n "(cached) " >&6
2363else
2364  cat >conftest.make <<\_ACEOF
2365SHELL = /bin/sh
2366all:
2367	@echo '@@@%%%=$(MAKE)=@@@%%%'
2368_ACEOF
2369# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2370case `${MAKE-make} -f conftest.make 2>/dev/null` in
2371  *@@@%%%=?*=@@@%%%*)
2372    eval ac_cv_prog_make_${ac_make}_set=yes;;
2373  *)
2374    eval ac_cv_prog_make_${ac_make}_set=no;;
2375esac
2376rm -f conftest.make
2377fi
2378if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2379  { $as_echo "$as_me:$LINENO: result: yes" >&5
2380$as_echo "yes" >&6; }
2381  SET_MAKE=
2382else
2383  { $as_echo "$as_me:$LINENO: result: no" >&5
2384$as_echo "no" >&6; }
2385  SET_MAKE="MAKE=${MAKE-make}"
2386fi
2387
2388rm -rf .tst 2>/dev/null
2389mkdir .tst 2>/dev/null
2390if test -d .tst; then
2391  am__leading_dot=.
2392else
2393  am__leading_dot=_
2394fi
2395rmdir .tst 2>/dev/null
2396
2397if test "`cd $srcdir && pwd`" != "`pwd`"; then
2398  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2399  # is not polluted with repeated "-I."
2400  am__isrc=' -I$(srcdir)'
2401  # test to see if srcdir already configured
2402  if test -f $srcdir/config.status; then
2403    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2404$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2405   { (exit 1); exit 1; }; }
2406  fi
2407fi
2408
2409# test whether we have cygpath
2410if test -z "$CYGPATH_W"; then
2411  if (cygpath --version) >/dev/null 2>/dev/null; then
2412    CYGPATH_W='cygpath -w'
2413  else
2414    CYGPATH_W=echo
2415  fi
2416fi
2417
2418
2419# Define the identity of the package.
2420 PACKAGE='xf86-video-cirrus'
2421 VERSION='1.3.1'
2422
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE "$PACKAGE"
2426_ACEOF
2427
2428
2429cat >>confdefs.h <<_ACEOF
2430#define VERSION "$VERSION"
2431_ACEOF
2432
2433# Some tools Automake needs.
2434
2435ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2436
2437
2438AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2439
2440
2441AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2442
2443
2444AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2445
2446
2447MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2448
2449install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2450
2451# Installed binaries are usually stripped using `strip' when the user
2452# run `make install-strip'.  However `strip' might not be the right
2453# tool to use in cross-compilation environments, therefore Automake
2454# will honor the `STRIP' environment variable to overrule this program.
2455if test "$cross_compiling" != no; then
2456  if test -n "$ac_tool_prefix"; then
2457  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2458set dummy ${ac_tool_prefix}strip; ac_word=$2
2459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2460$as_echo_n "checking for $ac_word... " >&6; }
2461if test "${ac_cv_prog_STRIP+set}" = set; then
2462  $as_echo_n "(cached) " >&6
2463else
2464  if test -n "$STRIP"; then
2465  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470  IFS=$as_save_IFS
2471  test -z "$as_dir" && as_dir=.
2472  for ac_exec_ext in '' $ac_executable_extensions; do
2473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2475    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476    break 2
2477  fi
2478done
2479done
2480IFS=$as_save_IFS
2481
2482fi
2483fi
2484STRIP=$ac_cv_prog_STRIP
2485if test -n "$STRIP"; then
2486  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2487$as_echo "$STRIP" >&6; }
2488else
2489  { $as_echo "$as_me:$LINENO: result: no" >&5
2490$as_echo "no" >&6; }
2491fi
2492
2493
2494fi
2495if test -z "$ac_cv_prog_STRIP"; then
2496  ac_ct_STRIP=$STRIP
2497  # Extract the first word of "strip", so it can be a program name with args.
2498set dummy strip; ac_word=$2
2499{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
2501if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2502  $as_echo_n "(cached) " >&6
2503else
2504  if test -n "$ac_ct_STRIP"; then
2505  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510  IFS=$as_save_IFS
2511  test -z "$as_dir" && as_dir=.
2512  for ac_exec_ext in '' $ac_executable_extensions; do
2513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514    ac_cv_prog_ac_ct_STRIP="strip"
2515    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516    break 2
2517  fi
2518done
2519done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2525if test -n "$ac_ct_STRIP"; then
2526  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2527$as_echo "$ac_ct_STRIP" >&6; }
2528else
2529  { $as_echo "$as_me:$LINENO: result: no" >&5
2530$as_echo "no" >&6; }
2531fi
2532
2533  if test "x$ac_ct_STRIP" = x; then
2534    STRIP=":"
2535  else
2536    case $cross_compiling:$ac_tool_warned in
2537yes:)
2538{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2540ac_tool_warned=yes ;;
2541esac
2542    STRIP=$ac_ct_STRIP
2543  fi
2544else
2545  STRIP="$ac_cv_prog_STRIP"
2546fi
2547
2548fi
2549INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2550
2551# We need awk for the "check" target.  The system "awk" is bad on
2552# some platforms.
2553# Always define AMTAR for backward compatibility.
2554
2555AMTAR=${AMTAR-"${am_missing_run}tar"}
2556
2557am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2558
2559
2560
2561
2562
2563
2564{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2565$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2566    # Check whether --enable-maintainer-mode was given.
2567if test "${enable_maintainer_mode+set}" = set; then
2568  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2569else
2570  USE_MAINTAINER_MODE=no
2571fi
2572
2573  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2574$as_echo "$USE_MAINTAINER_MODE" >&6; }
2575   if test $USE_MAINTAINER_MODE = yes; then
2576  MAINTAINER_MODE_TRUE=
2577  MAINTAINER_MODE_FALSE='#'
2578else
2579  MAINTAINER_MODE_TRUE='#'
2580  MAINTAINER_MODE_FALSE=
2581fi
2582
2583  MAINT=$MAINTAINER_MODE_TRUE
2584
2585
2586
2587# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2588
2589
2590	XORG_MACROS_needed_version=1.2
2591	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2592	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2593	{ $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2594$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2595	XORG_MACROS_version=1.2.1
2596	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2597	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2598	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2599		{ { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2600$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2601   { (exit 1); exit 1; }; }
2602	fi
2603	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2604		{ { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2605$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2606   { (exit 1); exit 1; }; }
2607	fi
2608	{ $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2609$as_echo "yes, $XORG_MACROS_version" >&6; }
2610
2611
2612# Checks for programs.
2613# Check whether --enable-static was given.
2614if test "${enable_static+set}" = set; then
2615  enableval=$enable_static; p=${PACKAGE-default}
2616    case $enableval in
2617    yes) enable_static=yes ;;
2618    no) enable_static=no ;;
2619    *)
2620     enable_static=no
2621      # Look at the argument we got.  We use all the common list separators.
2622      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2623      for pkg in $enableval; do
2624	IFS="$lt_save_ifs"
2625	if test "X$pkg" = "X$p"; then
2626	  enable_static=yes
2627	fi
2628      done
2629      IFS="$lt_save_ifs"
2630      ;;
2631    esac
2632else
2633  enable_static=no
2634fi
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644case `pwd` in
2645  *\ * | *\	*)
2646    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2647$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2648esac
2649
2650
2651
2652macro_version='2.2.6'
2653macro_revision='1.3012'
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667ltmain="$ac_aux_dir/ltmain.sh"
2668
2669# Make sure we can run config.sub.
2670$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2671  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2672$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2673   { (exit 1); exit 1; }; }
2674
2675{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2676$as_echo_n "checking build system type... " >&6; }
2677if test "${ac_cv_build+set}" = set; then
2678  $as_echo_n "(cached) " >&6
2679else
2680  ac_build_alias=$build_alias
2681test "x$ac_build_alias" = x &&
2682  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2683test "x$ac_build_alias" = x &&
2684  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2685$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2686   { (exit 1); exit 1; }; }
2687ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2688  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2689$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2690   { (exit 1); exit 1; }; }
2691
2692fi
2693{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2694$as_echo "$ac_cv_build" >&6; }
2695case $ac_cv_build in
2696*-*-*) ;;
2697*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2698$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2699   { (exit 1); exit 1; }; };;
2700esac
2701build=$ac_cv_build
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_build
2704shift
2705build_cpu=$1
2706build_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710build_os=$*
2711IFS=$ac_save_IFS
2712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2713
2714
2715{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2716$as_echo_n "checking host system type... " >&6; }
2717if test "${ac_cv_host+set}" = set; then
2718  $as_echo_n "(cached) " >&6
2719else
2720  if test "x$host_alias" = x; then
2721  ac_cv_host=$ac_cv_build
2722else
2723  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2724    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2725$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2726   { (exit 1); exit 1; }; }
2727fi
2728
2729fi
2730{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2731$as_echo "$ac_cv_host" >&6; }
2732case $ac_cv_host in
2733*-*-*) ;;
2734*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2735$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2736   { (exit 1); exit 1; }; };;
2737esac
2738host=$ac_cv_host
2739ac_save_IFS=$IFS; IFS='-'
2740set x $ac_cv_host
2741shift
2742host_cpu=$1
2743host_vendor=$2
2744shift; shift
2745# Remember, the first character of IFS is used to create $*,
2746# except with old shells:
2747host_os=$*
2748IFS=$ac_save_IFS
2749case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2750
2751
2752DEPDIR="${am__leading_dot}deps"
2753
2754ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757am_make=${MAKE-make}
2758cat > confinc << 'END'
2759am__doit:
2760	@echo done
2761.PHONY: am__doit
2762END
2763# If we don't find an include directive, just comment out the code.
2764{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765$as_echo_n "checking for style of include used by $am_make... " >&6; }
2766am__include="#"
2767am__quote=
2768_am_result=none
2769# First try GNU make style include.
2770echo "include confinc" > confmf
2771# We grep out `Entering directory' and `Leaving directory'
2772# messages which can occur if `w' ends up in MAKEFLAGS.
2773# In particular we don't look at `^make:' because GNU make might
2774# be invoked under some other name (usually "gmake"), in which
2775# case it prints its new name instead of `make'.
2776if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777   am__include=include
2778   am__quote=
2779   _am_result=GNU
2780fi
2781# Now try BSD make style include.
2782if test "$am__include" = "#"; then
2783   echo '.include "confinc"' > confmf
2784   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785      am__include=.include
2786      am__quote="\""
2787      _am_result=BSD
2788   fi
2789fi
2790
2791
2792{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2793$as_echo "$_am_result" >&6; }
2794rm -f confinc confmf
2795
2796# Check whether --enable-dependency-tracking was given.
2797if test "${enable_dependency_tracking+set}" = set; then
2798  enableval=$enable_dependency_tracking;
2799fi
2800
2801if test "x$enable_dependency_tracking" != xno; then
2802  am_depcomp="$ac_aux_dir/depcomp"
2803  AMDEPBACKSLASH='\'
2804fi
2805 if test "x$enable_dependency_tracking" != xno; then
2806  AMDEP_TRUE=
2807  AMDEP_FALSE='#'
2808else
2809  AMDEP_TRUE='#'
2810  AMDEP_FALSE=
2811fi
2812
2813
2814ac_ext=c
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if test "${ac_cv_prog_CC+set}" = set; then
2825  $as_echo_n "(cached) " >&6
2826else
2827  if test -n "$CC"; then
2828  ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833  IFS=$as_save_IFS
2834  test -z "$as_dir" && as_dir=.
2835  for ac_exec_ext in '' $ac_executable_extensions; do
2836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847CC=$ac_cv_prog_CC
2848if test -n "$CC"; then
2849  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2850$as_echo "$CC" >&6; }
2851else
2852  { $as_echo "$as_me:$LINENO: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856
2857fi
2858if test -z "$ac_cv_prog_CC"; then
2859  ac_ct_CC=$CC
2860  # Extract the first word of "gcc", so it can be a program name with args.
2861set dummy gcc; ac_word=$2
2862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2863$as_echo_n "checking for $ac_word... " >&6; }
2864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test -n "$ac_ct_CC"; then
2868  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875  for ac_exec_ext in '' $ac_executable_extensions; do
2876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877    ac_cv_prog_ac_ct_CC="gcc"
2878    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882done
2883IFS=$as_save_IFS
2884
2885fi
2886fi
2887ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888if test -n "$ac_ct_CC"; then
2889  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890$as_echo "$ac_ct_CC" >&6; }
2891else
2892  { $as_echo "$as_me:$LINENO: result: no" >&5
2893$as_echo "no" >&6; }
2894fi
2895
2896  if test "x$ac_ct_CC" = x; then
2897    CC=""
2898  else
2899    case $cross_compiling:$ac_tool_warned in
2900yes:)
2901{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903ac_tool_warned=yes ;;
2904esac
2905    CC=$ac_ct_CC
2906  fi
2907else
2908  CC="$ac_cv_prog_CC"
2909fi
2910
2911if test -z "$CC"; then
2912          if test -n "$ac_tool_prefix"; then
2913    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2914set dummy ${ac_tool_prefix}cc; ac_word=$2
2915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2916$as_echo_n "checking for $ac_word... " >&6; }
2917if test "${ac_cv_prog_CC+set}" = set; then
2918  $as_echo_n "(cached) " >&6
2919else
2920  if test -n "$CC"; then
2921  ac_cv_prog_CC="$CC" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928  for ac_exec_ext in '' $ac_executable_extensions; do
2929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930    ac_cv_prog_CC="${ac_tool_prefix}cc"
2931    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940CC=$ac_cv_prog_CC
2941if test -n "$CC"; then
2942  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2943$as_echo "$CC" >&6; }
2944else
2945  { $as_echo "$as_me:$LINENO: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949
2950  fi
2951fi
2952if test -z "$CC"; then
2953  # Extract the first word of "cc", so it can be a program name with args.
2954set dummy cc; ac_word=$2
2955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if test "${ac_cv_prog_CC+set}" = set; then
2958  $as_echo_n "(cached) " >&6
2959else
2960  if test -n "$CC"; then
2961  ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
2963  ac_prog_rejected=no
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969  for ac_exec_ext in '' $ac_executable_extensions; do
2970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2972       ac_prog_rejected=yes
2973       continue
2974     fi
2975    ac_cv_prog_CC="cc"
2976    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980done
2981IFS=$as_save_IFS
2982
2983if test $ac_prog_rejected = yes; then
2984  # We found a bogon in the path, so make sure we never use it.
2985  set dummy $ac_cv_prog_CC
2986  shift
2987  if test $# != 0; then
2988    # We chose a different compiler from the bogus one.
2989    # However, it has the same basename, so the bogon will be chosen
2990    # first if we set CC to just the basename; use the full file name.
2991    shift
2992    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2993  fi
2994fi
2995fi
2996fi
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002  { $as_echo "$as_me:$LINENO: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007fi
3008if test -z "$CC"; then
3009  if test -n "$ac_tool_prefix"; then
3010  for ac_prog in cl.exe
3011  do
3012    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if test "${ac_cv_prog_CC+set}" = set; then
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$CC"; then
3020  ac_cv_prog_CC="$CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027  for ac_exec_ext in '' $ac_executable_extensions; do
3028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
3041  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3042$as_echo "$CC" >&6; }
3043else
3044  { $as_echo "$as_me:$LINENO: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049    test -n "$CC" && break
3050  done
3051fi
3052if test -z "$CC"; then
3053  ac_ct_CC=$CC
3054  for ac_prog in cl.exe
3055do
3056  # Extract the first word of "$ac_prog", so it can be a program name with args.
3057set dummy $ac_prog; ac_word=$2
3058{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$ac_ct_CC"; then
3064  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071  for ac_exec_ext in '' $ac_executable_extensions; do
3072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073    ac_cv_prog_ac_ct_CC="$ac_prog"
3074    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084if test -n "$ac_ct_CC"; then
3085  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086$as_echo "$ac_ct_CC" >&6; }
3087else
3088  { $as_echo "$as_me:$LINENO: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093  test -n "$ac_ct_CC" && break
3094done
3095
3096  if test "x$ac_ct_CC" = x; then
3097    CC=""
3098  else
3099    case $cross_compiling:$ac_tool_warned in
3100yes:)
3101{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103ac_tool_warned=yes ;;
3104esac
3105    CC=$ac_ct_CC
3106  fi
3107fi
3108
3109fi
3110
3111
3112test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115See \`config.log' for more details." >&5
3116$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3117See \`config.log' for more details." >&2;}
3118   { (exit 1); exit 1; }; }; }
3119
3120# Provide some information about the compiler.
3121$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3122set X $ac_compile
3123ac_compiler=$2
3124{ (ac_try="$ac_compiler --version >&5"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130$as_echo "$ac_try_echo") >&5
3131  (eval "$ac_compiler --version >&5") 2>&5
3132  ac_status=$?
3133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }
3135{ (ac_try="$ac_compiler -v >&5"
3136case "(($ac_try" in
3137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138  *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141$as_echo "$ac_try_echo") >&5
3142  (eval "$ac_compiler -v >&5") 2>&5
3143  ac_status=$?
3144  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }
3146{ (ac_try="$ac_compiler -V >&5"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152$as_echo "$ac_try_echo") >&5
3153  (eval "$ac_compiler -V >&5") 2>&5
3154  ac_status=$?
3155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }
3157
3158cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173ac_clean_files_save=$ac_clean_files
3174ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3175# Try to create an executable without -o first, disregard a.out.
3176# It will help us diagnose broken compilers, and finding out an intuition
3177# of exeext.
3178{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3179$as_echo_n "checking for C compiler default output file name... " >&6; }
3180ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3181
3182# The possible output files:
3183ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3184
3185ac_rmfiles=
3186for ac_file in $ac_files
3187do
3188  case $ac_file in
3189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191  esac
3192done
3193rm -f $ac_rmfiles
3194
3195if { (ac_try="$ac_link_default"
3196case "(($ac_try" in
3197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198  *) ac_try_echo=$ac_try;;
3199esac
3200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201$as_echo "$ac_try_echo") >&5
3202  (eval "$ac_link_default") 2>&5
3203  ac_status=$?
3204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; then
3206  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3209# so that the user can short-circuit this test for compilers unknown to
3210# Autoconf.
3211for ac_file in $ac_files ''
3212do
3213  test -f "$ac_file" || continue
3214  case $ac_file in
3215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3216	;;
3217    [ab].out )
3218	# We found the default executable, but exeext='' is most
3219	# certainly right.
3220	break;;
3221    *.* )
3222        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223	then :; else
3224	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225	fi
3226	# We set ac_cv_exeext here because the later test for it is not
3227	# safe: cross compilers may not add the suffix if given an `-o'
3228	# argument, so we may need to know it at that point already.
3229	# Even if this section looks crufty: it has the advantage of
3230	# actually working.
3231	break;;
3232    * )
3233	break;;
3234  esac
3235done
3236test "$ac_cv_exeext" = no && ac_cv_exeext=
3237
3238else
3239  ac_file=''
3240fi
3241
3242{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3243$as_echo "$ac_file" >&6; }
3244if test -z "$ac_file"; then
3245  $as_echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3251See \`config.log' for more details." >&5
3252$as_echo "$as_me: error: C compiler cannot create executables
3253See \`config.log' for more details." >&2;}
3254   { (exit 77); exit 77; }; }; }
3255fi
3256
3257ac_exeext=$ac_cv_exeext
3258
3259# Check that the compiler produces executables we can run.  If not, either
3260# the compiler is broken, or we cross compile.
3261{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3262$as_echo_n "checking whether the C compiler works... " >&6; }
3263# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3264# If not cross compiling, check that we can run a simple program.
3265if test "$cross_compiling" != yes; then
3266  if { ac_try='./$ac_file'
3267  { (case "(($ac_try" in
3268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269  *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272$as_echo "$ac_try_echo") >&5
3273  (eval "$ac_try") 2>&5
3274  ac_status=$?
3275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; }; then
3277    cross_compiling=no
3278  else
3279    if test "$cross_compiling" = maybe; then
3280	cross_compiling=yes
3281    else
3282	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3285If you meant to cross compile, use \`--host'.
3286See \`config.log' for more details." >&5
3287$as_echo "$as_me: error: cannot run C compiled programs.
3288If you meant to cross compile, use \`--host'.
3289See \`config.log' for more details." >&2;}
3290   { (exit 1); exit 1; }; }; }
3291    fi
3292  fi
3293fi
3294{ $as_echo "$as_me:$LINENO: result: yes" >&5
3295$as_echo "yes" >&6; }
3296
3297rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3298ac_clean_files=$ac_clean_files_save
3299# Check that the compiler produces executables we can run.  If not, either
3300# the compiler is broken, or we cross compile.
3301{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3302$as_echo_n "checking whether we are cross compiling... " >&6; }
3303{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3304$as_echo "$cross_compiling" >&6; }
3305
3306{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3307$as_echo_n "checking for suffix of executables... " >&6; }
3308if { (ac_try="$ac_link"
3309case "(($ac_try" in
3310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311  *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3314$as_echo "$ac_try_echo") >&5
3315  (eval "$ac_link") 2>&5
3316  ac_status=$?
3317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); }; then
3319  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3321# work properly (i.e., refer to `conftest.exe'), while it won't with
3322# `rm'.
3323for ac_file in conftest.exe conftest conftest.*; do
3324  test -f "$ac_file" || continue
3325  case $ac_file in
3326    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328	  break;;
3329    * ) break;;
3330  esac
3331done
3332else
3333  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3336See \`config.log' for more details." >&5
3337$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3338See \`config.log' for more details." >&2;}
3339   { (exit 1); exit 1; }; }; }
3340fi
3341
3342rm -f conftest$ac_cv_exeext
3343{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3344$as_echo "$ac_cv_exeext" >&6; }
3345
3346rm -f conftest.$ac_ext
3347EXEEXT=$ac_cv_exeext
3348ac_exeext=$EXEEXT
3349{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3350$as_echo_n "checking for suffix of object files... " >&6; }
3351if test "${ac_cv_objext+set}" = set; then
3352  $as_echo_n "(cached) " >&6
3353else
3354  cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h.  */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369rm -f conftest.o conftest.obj
3370if { (ac_try="$ac_compile"
3371case "(($ac_try" in
3372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373  *) ac_try_echo=$ac_try;;
3374esac
3375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376$as_echo "$ac_try_echo") >&5
3377  (eval "$ac_compile") 2>&5
3378  ac_status=$?
3379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); }; then
3381  for ac_file in conftest.o conftest.obj conftest.*; do
3382  test -f "$ac_file" || continue;
3383  case $ac_file in
3384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3385    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3386       break;;
3387  esac
3388done
3389else
3390  $as_echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3396See \`config.log' for more details." >&5
3397$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3398See \`config.log' for more details." >&2;}
3399   { (exit 1); exit 1; }; }; }
3400fi
3401
3402rm -f conftest.$ac_cv_objext conftest.$ac_ext
3403fi
3404{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3405$as_echo "$ac_cv_objext" >&6; }
3406OBJEXT=$ac_cv_objext
3407ac_objext=$OBJEXT
3408{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3409$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3410if test "${ac_cv_c_compiler_gnu+set}" = set; then
3411  $as_echo_n "(cached) " >&6
3412else
3413  cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h.  */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423#ifndef __GNUC__
3424       choke me
3425#endif
3426
3427  ;
3428  return 0;
3429}
3430_ACEOF
3431rm -f conftest.$ac_objext
3432if { (ac_try="$ac_compile"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438$as_echo "$ac_try_echo") >&5
3439  (eval "$ac_compile") 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } && {
3446	 test -z "$ac_c_werror_flag" ||
3447	 test ! -s conftest.err
3448       } && test -s conftest.$ac_objext; then
3449  ac_compiler_gnu=yes
3450else
3451  $as_echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
3454	ac_compiler_gnu=no
3455fi
3456
3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458ac_cv_c_compiler_gnu=$ac_compiler_gnu
3459
3460fi
3461{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3462$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3463if test $ac_compiler_gnu = yes; then
3464  GCC=yes
3465else
3466  GCC=
3467fi
3468ac_test_CFLAGS=${CFLAGS+set}
3469ac_save_CFLAGS=$CFLAGS
3470{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3471$as_echo_n "checking whether $CC accepts -g... " >&6; }
3472if test "${ac_cv_prog_cc_g+set}" = set; then
3473  $as_echo_n "(cached) " >&6
3474else
3475  ac_save_c_werror_flag=$ac_c_werror_flag
3476   ac_c_werror_flag=yes
3477   ac_cv_prog_cc_g=no
3478   CFLAGS="-g"
3479   cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485
3486int
3487main ()
3488{
3489
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext
3495if { (ac_try="$ac_compile"
3496case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3501$as_echo "$ac_try_echo") >&5
3502  (eval "$ac_compile") 2>conftest.er1
3503  ac_status=$?
3504  grep -v '^ *+' conftest.er1 >conftest.err
3505  rm -f conftest.er1
3506  cat conftest.err >&5
3507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); } && {
3509	 test -z "$ac_c_werror_flag" ||
3510	 test ! -s conftest.err
3511       } && test -s conftest.$ac_objext; then
3512  ac_cv_prog_cc_g=yes
3513else
3514  $as_echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517	CFLAGS=""
3518      cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h.  */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (ac_try="$ac_compile"
3535case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540$as_echo "$ac_try_echo") >&5
3541  (eval "$ac_compile") 2>conftest.er1
3542  ac_status=$?
3543  grep -v '^ *+' conftest.er1 >conftest.err
3544  rm -f conftest.er1
3545  cat conftest.err >&5
3546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); } && {
3548	 test -z "$ac_c_werror_flag" ||
3549	 test ! -s conftest.err
3550       } && test -s conftest.$ac_objext; then
3551  :
3552else
3553  $as_echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556	ac_c_werror_flag=$ac_save_c_werror_flag
3557	 CFLAGS="-g"
3558	 cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h.  */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573rm -f conftest.$ac_objext
3574if { (ac_try="$ac_compile"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580$as_echo "$ac_try_echo") >&5
3581  (eval "$ac_compile") 2>conftest.er1
3582  ac_status=$?
3583  grep -v '^ *+' conftest.er1 >conftest.err
3584  rm -f conftest.er1
3585  cat conftest.err >&5
3586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } && {
3588	 test -z "$ac_c_werror_flag" ||
3589	 test ! -s conftest.err
3590       } && test -s conftest.$ac_objext; then
3591  ac_cv_prog_cc_g=yes
3592else
3593  $as_echo "$as_me: failed program was:" >&5
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
3596
3597fi
3598
3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600fi
3601
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603fi
3604
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606   ac_c_werror_flag=$ac_save_c_werror_flag
3607fi
3608{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3609$as_echo "$ac_cv_prog_cc_g" >&6; }
3610if test "$ac_test_CFLAGS" = set; then
3611  CFLAGS=$ac_save_CFLAGS
3612elif test $ac_cv_prog_cc_g = yes; then
3613  if test "$GCC" = yes; then
3614    CFLAGS="-g -O2"
3615  else
3616    CFLAGS="-g"
3617  fi
3618else
3619  if test "$GCC" = yes; then
3620    CFLAGS="-O2"
3621  else
3622    CFLAGS=
3623  fi
3624fi
3625{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3626$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3627if test "${ac_cv_prog_cc_c89+set}" = set; then
3628  $as_echo_n "(cached) " >&6
3629else
3630  ac_cv_prog_cc_c89=no
3631ac_save_CC=$CC
3632cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h.  */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h.  */
3638#include <stdarg.h>
3639#include <stdio.h>
3640#include <sys/types.h>
3641#include <sys/stat.h>
3642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3643struct buf { int x; };
3644FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645static char *e (p, i)
3646     char **p;
3647     int i;
3648{
3649  return p[i];
3650}
3651static char *f (char * (*g) (char **, int), char **p, ...)
3652{
3653  char *s;
3654  va_list v;
3655  va_start (v,p);
3656  s = g (p, va_arg (v,int));
3657  va_end (v);
3658  return s;
3659}
3660
3661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3662   function prototypes and stuff, but not '\xHH' hex character constants.
3663   These don't provoke an error unfortunately, instead are silently treated
3664   as 'x'.  The following induces an error, until -std is added to get
3665   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3666   array size at least.  It's necessary to write '\x00'==0 to get something
3667   that's true only with -std.  */
3668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669
3670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671   inside strings and character constants.  */
3672#define FOO(x) 'x'
3673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3674
3675int test (int i, double x);
3676struct s1 {int (*f) (int a);};
3677struct s2 {int (*f) (double a);};
3678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679int argc;
3680char **argv;
3681int
3682main ()
3683{
3684return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3691do
3692  CC="$ac_save_CC $ac_arg"
3693  rm -f conftest.$ac_objext
3694if { (ac_try="$ac_compile"
3695case "(($ac_try" in
3696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697  *) ac_try_echo=$ac_try;;
3698esac
3699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700$as_echo "$ac_try_echo") >&5
3701  (eval "$ac_compile") 2>conftest.er1
3702  ac_status=$?
3703  grep -v '^ *+' conftest.er1 >conftest.err
3704  rm -f conftest.er1
3705  cat conftest.err >&5
3706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } && {
3708	 test -z "$ac_c_werror_flag" ||
3709	 test ! -s conftest.err
3710       } && test -s conftest.$ac_objext; then
3711  ac_cv_prog_cc_c89=$ac_arg
3712else
3713  $as_echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716
3717fi
3718
3719rm -f core conftest.err conftest.$ac_objext
3720  test "x$ac_cv_prog_cc_c89" != "xno" && break
3721done
3722rm -f conftest.$ac_ext
3723CC=$ac_save_CC
3724
3725fi
3726# AC_CACHE_VAL
3727case "x$ac_cv_prog_cc_c89" in
3728  x)
3729    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3730$as_echo "none needed" >&6; } ;;
3731  xno)
3732    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3733$as_echo "unsupported" >&6; } ;;
3734  *)
3735    CC="$CC $ac_cv_prog_cc_c89"
3736    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3737$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3738esac
3739
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747depcc="$CC"   am_compiler_list=
3748
3749{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3750$as_echo_n "checking dependency style of $depcc... " >&6; }
3751if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3755  # We make a subdir and do the tests there.  Otherwise we can end up
3756  # making bogus files that we don't know about and never remove.  For
3757  # instance it was reported that on HP-UX the gcc test will end up
3758  # making a dummy file named `D' -- because `-MD' means `put the output
3759  # in D'.
3760  mkdir conftest.dir
3761  # Copy depcomp to subdir because otherwise we won't find it if we're
3762  # using a relative directory.
3763  cp "$am_depcomp" conftest.dir
3764  cd conftest.dir
3765  # We will build objects and dependencies in a subdirectory because
3766  # it helps to detect inapplicable dependency modes.  For instance
3767  # both Tru64's cc and ICC support -MD to output dependencies as a
3768  # side effect of compilation, but ICC will put the dependencies in
3769  # the current directory while Tru64 will put them in the object
3770  # directory.
3771  mkdir sub
3772
3773  am_cv_CC_dependencies_compiler_type=none
3774  if test "$am_compiler_list" = ""; then
3775     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3776  fi
3777  for depmode in $am_compiler_list; do
3778    # Setup a source with many dependencies, because some compilers
3779    # like to wrap large dependency lists on column 80 (with \), and
3780    # we should not choose a depcomp mode which is confused by this.
3781    #
3782    # We need to recreate these files for each test, as the compiler may
3783    # overwrite some of them when testing with obscure command lines.
3784    # This happens at least with the AIX C compiler.
3785    : > sub/conftest.c
3786    for i in 1 2 3 4 5 6; do
3787      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3788      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3789      # Solaris 8's {/usr,}/bin/sh.
3790      touch sub/conftst$i.h
3791    done
3792    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
3794    case $depmode in
3795    nosideeffect)
3796      # after this tag, mechanisms are not by side-effect, so they'll
3797      # only be used when explicitly requested
3798      if test "x$enable_dependency_tracking" = xyes; then
3799	continue
3800      else
3801	break
3802      fi
3803      ;;
3804    none) break ;;
3805    esac
3806    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3807    # mode.  It turns out that the SunPro C++ compiler does not properly
3808    # handle `-M -o', and we need to detect this.
3809    if depmode=$depmode \
3810       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3811       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3812       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3813         >/dev/null 2>conftest.err &&
3814       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3815       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3816       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3817       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3818      # icc doesn't choke on unknown options, it will just issue warnings
3819      # or remarks (even with -Werror).  So we grep stderr for any message
3820      # that says an option was ignored or not supported.
3821      # When given -MP, icc 7.0 and 7.1 complain thusly:
3822      #   icc: Command line warning: ignoring option '-M'; no argument required
3823      # The diagnosis changed in icc 8.0:
3824      #   icc: Command line remark: option '-MP' not supported
3825      if (grep 'ignoring option' conftest.err ||
3826          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3827        am_cv_CC_dependencies_compiler_type=$depmode
3828        break
3829      fi
3830    fi
3831  done
3832
3833  cd ..
3834  rm -rf conftest.dir
3835else
3836  am_cv_CC_dependencies_compiler_type=none
3837fi
3838
3839fi
3840{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3841$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3842CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3843
3844 if
3845  test "x$enable_dependency_tracking" != xno \
3846  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3847  am__fastdepCC_TRUE=
3848  am__fastdepCC_FALSE='#'
3849else
3850  am__fastdepCC_TRUE='#'
3851  am__fastdepCC_FALSE=
3852fi
3853
3854
3855{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3856$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3857if test "${ac_cv_path_SED+set}" = set; then
3858  $as_echo_n "(cached) " >&6
3859else
3860            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3861     for ac_i in 1 2 3 4 5 6 7; do
3862       ac_script="$ac_script$as_nl$ac_script"
3863     done
3864     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3865     $as_unset ac_script || ac_script=
3866     if test -z "$SED"; then
3867  ac_path_SED_found=false
3868  # Loop through the user's path and test for each of PROGNAME-LIST
3869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872  IFS=$as_save_IFS
3873  test -z "$as_dir" && as_dir=.
3874  for ac_prog in sed gsed; do
3875    for ac_exec_ext in '' $ac_executable_extensions; do
3876      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3877      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3878# Check for GNU ac_path_SED and select it if it is found.
3879  # Check for GNU $ac_path_SED
3880case `"$ac_path_SED" --version 2>&1` in
3881*GNU*)
3882  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3883*)
3884  ac_count=0
3885  $as_echo_n 0123456789 >"conftest.in"
3886  while :
3887  do
3888    cat "conftest.in" "conftest.in" >"conftest.tmp"
3889    mv "conftest.tmp" "conftest.in"
3890    cp "conftest.in" "conftest.nl"
3891    $as_echo '' >> "conftest.nl"
3892    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894    ac_count=`expr $ac_count + 1`
3895    if test $ac_count -gt ${ac_path_SED_max-0}; then
3896      # Best one so far, save it but keep looking for a better one
3897      ac_cv_path_SED="$ac_path_SED"
3898      ac_path_SED_max=$ac_count
3899    fi
3900    # 10*(2^10) chars as input seems more than enough
3901    test $ac_count -gt 10 && break
3902  done
3903  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904esac
3905
3906      $ac_path_SED_found && break 3
3907    done
3908  done
3909done
3910IFS=$as_save_IFS
3911  if test -z "$ac_cv_path_SED"; then
3912    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3913$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3914   { (exit 1); exit 1; }; }
3915  fi
3916else
3917  ac_cv_path_SED=$SED
3918fi
3919
3920fi
3921{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3922$as_echo "$ac_cv_path_SED" >&6; }
3923 SED="$ac_cv_path_SED"
3924  rm -f conftest.sed
3925
3926test -z "$SED" && SED=sed
3927Xsed="$SED -e 1s/^X//"
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3940$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3941if test "${ac_cv_path_GREP+set}" = set; then
3942  $as_echo_n "(cached) " >&6
3943else
3944  if test -z "$GREP"; then
3945  ac_path_GREP_found=false
3946  # Loop through the user's path and test for each of PROGNAME-LIST
3947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949do
3950  IFS=$as_save_IFS
3951  test -z "$as_dir" && as_dir=.
3952  for ac_prog in grep ggrep; do
3953    for ac_exec_ext in '' $ac_executable_extensions; do
3954      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3955      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3956# Check for GNU ac_path_GREP and select it if it is found.
3957  # Check for GNU $ac_path_GREP
3958case `"$ac_path_GREP" --version 2>&1` in
3959*GNU*)
3960  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3961*)
3962  ac_count=0
3963  $as_echo_n 0123456789 >"conftest.in"
3964  while :
3965  do
3966    cat "conftest.in" "conftest.in" >"conftest.tmp"
3967    mv "conftest.tmp" "conftest.in"
3968    cp "conftest.in" "conftest.nl"
3969    $as_echo 'GREP' >> "conftest.nl"
3970    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972    ac_count=`expr $ac_count + 1`
3973    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3974      # Best one so far, save it but keep looking for a better one
3975      ac_cv_path_GREP="$ac_path_GREP"
3976      ac_path_GREP_max=$ac_count
3977    fi
3978    # 10*(2^10) chars as input seems more than enough
3979    test $ac_count -gt 10 && break
3980  done
3981  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982esac
3983
3984      $ac_path_GREP_found && break 3
3985    done
3986  done
3987done
3988IFS=$as_save_IFS
3989  if test -z "$ac_cv_path_GREP"; then
3990    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992   { (exit 1); exit 1; }; }
3993  fi
3994else
3995  ac_cv_path_GREP=$GREP
3996fi
3997
3998fi
3999{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4000$as_echo "$ac_cv_path_GREP" >&6; }
4001 GREP="$ac_cv_path_GREP"
4002
4003
4004{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4005$as_echo_n "checking for egrep... " >&6; }
4006if test "${ac_cv_path_EGREP+set}" = set; then
4007  $as_echo_n "(cached) " >&6
4008else
4009  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4010   then ac_cv_path_EGREP="$GREP -E"
4011   else
4012     if test -z "$EGREP"; then
4013  ac_path_EGREP_found=false
4014  # Loop through the user's path and test for each of PROGNAME-LIST
4015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4017do
4018  IFS=$as_save_IFS
4019  test -z "$as_dir" && as_dir=.
4020  for ac_prog in egrep; do
4021    for ac_exec_ext in '' $ac_executable_extensions; do
4022      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4023      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4024# Check for GNU ac_path_EGREP and select it if it is found.
4025  # Check for GNU $ac_path_EGREP
4026case `"$ac_path_EGREP" --version 2>&1` in
4027*GNU*)
4028  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4029*)
4030  ac_count=0
4031  $as_echo_n 0123456789 >"conftest.in"
4032  while :
4033  do
4034    cat "conftest.in" "conftest.in" >"conftest.tmp"
4035    mv "conftest.tmp" "conftest.in"
4036    cp "conftest.in" "conftest.nl"
4037    $as_echo 'EGREP' >> "conftest.nl"
4038    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4039    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4040    ac_count=`expr $ac_count + 1`
4041    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4042      # Best one so far, save it but keep looking for a better one
4043      ac_cv_path_EGREP="$ac_path_EGREP"
4044      ac_path_EGREP_max=$ac_count
4045    fi
4046    # 10*(2^10) chars as input seems more than enough
4047    test $ac_count -gt 10 && break
4048  done
4049  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4050esac
4051
4052      $ac_path_EGREP_found && break 3
4053    done
4054  done
4055done
4056IFS=$as_save_IFS
4057  if test -z "$ac_cv_path_EGREP"; then
4058    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4059$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4060   { (exit 1); exit 1; }; }
4061  fi
4062else
4063  ac_cv_path_EGREP=$EGREP
4064fi
4065
4066   fi
4067fi
4068{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4069$as_echo "$ac_cv_path_EGREP" >&6; }
4070 EGREP="$ac_cv_path_EGREP"
4071
4072
4073{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4074$as_echo_n "checking for fgrep... " >&6; }
4075if test "${ac_cv_path_FGREP+set}" = set; then
4076  $as_echo_n "(cached) " >&6
4077else
4078  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4079   then ac_cv_path_FGREP="$GREP -F"
4080   else
4081     if test -z "$FGREP"; then
4082  ac_path_FGREP_found=false
4083  # Loop through the user's path and test for each of PROGNAME-LIST
4084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086do
4087  IFS=$as_save_IFS
4088  test -z "$as_dir" && as_dir=.
4089  for ac_prog in fgrep; do
4090    for ac_exec_ext in '' $ac_executable_extensions; do
4091      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4092      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4093# Check for GNU ac_path_FGREP and select it if it is found.
4094  # Check for GNU $ac_path_FGREP
4095case `"$ac_path_FGREP" --version 2>&1` in
4096*GNU*)
4097  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4098*)
4099  ac_count=0
4100  $as_echo_n 0123456789 >"conftest.in"
4101  while :
4102  do
4103    cat "conftest.in" "conftest.in" >"conftest.tmp"
4104    mv "conftest.tmp" "conftest.in"
4105    cp "conftest.in" "conftest.nl"
4106    $as_echo 'FGREP' >> "conftest.nl"
4107    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109    ac_count=`expr $ac_count + 1`
4110    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4111      # Best one so far, save it but keep looking for a better one
4112      ac_cv_path_FGREP="$ac_path_FGREP"
4113      ac_path_FGREP_max=$ac_count
4114    fi
4115    # 10*(2^10) chars as input seems more than enough
4116    test $ac_count -gt 10 && break
4117  done
4118  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119esac
4120
4121      $ac_path_FGREP_found && break 3
4122    done
4123  done
4124done
4125IFS=$as_save_IFS
4126  if test -z "$ac_cv_path_FGREP"; then
4127    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4128$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4129   { (exit 1); exit 1; }; }
4130  fi
4131else
4132  ac_cv_path_FGREP=$FGREP
4133fi
4134
4135   fi
4136fi
4137{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4138$as_echo "$ac_cv_path_FGREP" >&6; }
4139 FGREP="$ac_cv_path_FGREP"
4140
4141
4142test -z "$GREP" && GREP=grep
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162# Check whether --with-gnu-ld was given.
4163if test "${with_gnu_ld+set}" = set; then
4164  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4165else
4166  with_gnu_ld=no
4167fi
4168
4169ac_prog=ld
4170if test "$GCC" = yes; then
4171  # Check if gcc -print-prog-name=ld gives a path.
4172  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4173$as_echo_n "checking for ld used by $CC... " >&6; }
4174  case $host in
4175  *-*-mingw*)
4176    # gcc leaves a trailing carriage return which upsets mingw
4177    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4178  *)
4179    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4180  esac
4181  case $ac_prog in
4182    # Accept absolute paths.
4183    [\\/]* | ?:[\\/]*)
4184      re_direlt='/[^/][^/]*/\.\./'
4185      # Canonicalize the pathname of ld
4186      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4187      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4188	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4189      done
4190      test -z "$LD" && LD="$ac_prog"
4191      ;;
4192  "")
4193    # If it fails, then pretend we aren't using GCC.
4194    ac_prog=ld
4195    ;;
4196  *)
4197    # If it is relative, then search for the first ld in PATH.
4198    with_gnu_ld=unknown
4199    ;;
4200  esac
4201elif test "$with_gnu_ld" = yes; then
4202  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4203$as_echo_n "checking for GNU ld... " >&6; }
4204else
4205  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4206$as_echo_n "checking for non-GNU ld... " >&6; }
4207fi
4208if test "${lt_cv_path_LD+set}" = set; then
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -z "$LD"; then
4212  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4213  for ac_dir in $PATH; do
4214    IFS="$lt_save_ifs"
4215    test -z "$ac_dir" && ac_dir=.
4216    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4217      lt_cv_path_LD="$ac_dir/$ac_prog"
4218      # Check to see if the program is GNU ld.  I'd rather use --version,
4219      # but apparently some variants of GNU ld only accept -v.
4220      # Break only if it was the GNU/non-GNU ld that we prefer.
4221      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4222      *GNU* | *'with BFD'*)
4223	test "$with_gnu_ld" != no && break
4224	;;
4225      *)
4226	test "$with_gnu_ld" != yes && break
4227	;;
4228      esac
4229    fi
4230  done
4231  IFS="$lt_save_ifs"
4232else
4233  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4234fi
4235fi
4236
4237LD="$lt_cv_path_LD"
4238if test -n "$LD"; then
4239  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4240$as_echo "$LD" >&6; }
4241else
4242  { $as_echo "$as_me:$LINENO: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4246$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4247   { (exit 1); exit 1; }; }
4248{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4249$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4250if test "${lt_cv_prog_gnu_ld+set}" = set; then
4251  $as_echo_n "(cached) " >&6
4252else
4253  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4254case `$LD -v 2>&1 </dev/null` in
4255*GNU* | *'with BFD'*)
4256  lt_cv_prog_gnu_ld=yes
4257  ;;
4258*)
4259  lt_cv_prog_gnu_ld=no
4260  ;;
4261esac
4262fi
4263{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4264$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4265with_gnu_ld=$lt_cv_prog_gnu_ld
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4276$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4277if test "${lt_cv_path_NM+set}" = set; then
4278  $as_echo_n "(cached) " >&6
4279else
4280  if test -n "$NM"; then
4281  # Let the user override the test.
4282  lt_cv_path_NM="$NM"
4283else
4284  lt_nm_to_check="${ac_tool_prefix}nm"
4285  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4286    lt_nm_to_check="$lt_nm_to_check nm"
4287  fi
4288  for lt_tmp_nm in $lt_nm_to_check; do
4289    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4290    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4291      IFS="$lt_save_ifs"
4292      test -z "$ac_dir" && ac_dir=.
4293      tmp_nm="$ac_dir/$lt_tmp_nm"
4294      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4295	# Check to see if the nm accepts a BSD-compat flag.
4296	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4297	#   nm: unknown option "B" ignored
4298	# Tru64's nm complains that /dev/null is an invalid object file
4299	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4300	*/dev/null* | *'Invalid file or object type'*)
4301	  lt_cv_path_NM="$tmp_nm -B"
4302	  break
4303	  ;;
4304	*)
4305	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4306	  */dev/null*)
4307	    lt_cv_path_NM="$tmp_nm -p"
4308	    break
4309	    ;;
4310	  *)
4311	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4312	    continue # so that we can try to find one that supports BSD flags
4313	    ;;
4314	  esac
4315	  ;;
4316	esac
4317      fi
4318    done
4319    IFS="$lt_save_ifs"
4320  done
4321  : ${lt_cv_path_NM=no}
4322fi
4323fi
4324{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4325$as_echo "$lt_cv_path_NM" >&6; }
4326if test "$lt_cv_path_NM" != "no"; then
4327  NM="$lt_cv_path_NM"
4328else
4329  # Didn't find any BSD compatible name lister, look for dumpbin.
4330  if test -n "$ac_tool_prefix"; then
4331  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4332  do
4333    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4336$as_echo_n "checking for $ac_word... " >&6; }
4337if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4338  $as_echo_n "(cached) " >&6
4339else
4340  if test -n "$DUMPBIN"; then
4341  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348  for ac_exec_ext in '' $ac_executable_extensions; do
4349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4351    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352    break 2
4353  fi
4354done
4355done
4356IFS=$as_save_IFS
4357
4358fi
4359fi
4360DUMPBIN=$ac_cv_prog_DUMPBIN
4361if test -n "$DUMPBIN"; then
4362  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4363$as_echo "$DUMPBIN" >&6; }
4364else
4365  { $as_echo "$as_me:$LINENO: result: no" >&5
4366$as_echo "no" >&6; }
4367fi
4368
4369
4370    test -n "$DUMPBIN" && break
4371  done
4372fi
4373if test -z "$DUMPBIN"; then
4374  ac_ct_DUMPBIN=$DUMPBIN
4375  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4376do
4377  # Extract the first word of "$ac_prog", so it can be a program name with args.
4378set dummy $ac_prog; ac_word=$2
4379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4380$as_echo_n "checking for $ac_word... " >&6; }
4381if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4382  $as_echo_n "(cached) " >&6
4383else
4384  if test -n "$ac_ct_DUMPBIN"; then
4385  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390  IFS=$as_save_IFS
4391  test -z "$as_dir" && as_dir=.
4392  for ac_exec_ext in '' $ac_executable_extensions; do
4393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4395    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396    break 2
4397  fi
4398done
4399done
4400IFS=$as_save_IFS
4401
4402fi
4403fi
4404ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4405if test -n "$ac_ct_DUMPBIN"; then
4406  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4407$as_echo "$ac_ct_DUMPBIN" >&6; }
4408else
4409  { $as_echo "$as_me:$LINENO: result: no" >&5
4410$as_echo "no" >&6; }
4411fi
4412
4413
4414  test -n "$ac_ct_DUMPBIN" && break
4415done
4416
4417  if test "x$ac_ct_DUMPBIN" = x; then
4418    DUMPBIN=":"
4419  else
4420    case $cross_compiling:$ac_tool_warned in
4421yes:)
4422{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424ac_tool_warned=yes ;;
4425esac
4426    DUMPBIN=$ac_ct_DUMPBIN
4427  fi
4428fi
4429
4430
4431  if test "$DUMPBIN" != ":"; then
4432    NM="$DUMPBIN"
4433  fi
4434fi
4435test -z "$NM" && NM=nm
4436
4437
4438
4439
4440
4441
4442{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4443$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4444if test "${lt_cv_nm_interface+set}" = set; then
4445  $as_echo_n "(cached) " >&6
4446else
4447  lt_cv_nm_interface="BSD nm"
4448  echo "int some_variable = 0;" > conftest.$ac_ext
4449  (eval echo "\"\$as_me:4449: $ac_compile\"" >&5)
4450  (eval "$ac_compile" 2>conftest.err)
4451  cat conftest.err >&5
4452  (eval echo "\"\$as_me:4452: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4453  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4454  cat conftest.err >&5
4455  (eval echo "\"\$as_me:4455: output\"" >&5)
4456  cat conftest.out >&5
4457  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4458    lt_cv_nm_interface="MS dumpbin"
4459  fi
4460  rm -f conftest*
4461fi
4462{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4463$as_echo "$lt_cv_nm_interface" >&6; }
4464
4465{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4466$as_echo_n "checking whether ln -s works... " >&6; }
4467LN_S=$as_ln_s
4468if test "$LN_S" = "ln -s"; then
4469  { $as_echo "$as_me:$LINENO: result: yes" >&5
4470$as_echo "yes" >&6; }
4471else
4472  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4473$as_echo "no, using $LN_S" >&6; }
4474fi
4475
4476# find the maximum length of command line arguments
4477{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4478$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4479if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4480  $as_echo_n "(cached) " >&6
4481else
4482    i=0
4483  teststring="ABCD"
4484
4485  case $build_os in
4486  msdosdjgpp*)
4487    # On DJGPP, this test can blow up pretty badly due to problems in libc
4488    # (any single argument exceeding 2000 bytes causes a buffer overrun
4489    # during glob expansion).  Even if it were fixed, the result of this
4490    # check would be larger than it should be.
4491    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4492    ;;
4493
4494  gnu*)
4495    # Under GNU Hurd, this test is not required because there is
4496    # no limit to the length of command line arguments.
4497    # Libtool will interpret -1 as no limit whatsoever
4498    lt_cv_sys_max_cmd_len=-1;
4499    ;;
4500
4501  cygwin* | mingw* | cegcc*)
4502    # On Win9x/ME, this test blows up -- it succeeds, but takes
4503    # about 5 minutes as the teststring grows exponentially.
4504    # Worse, since 9x/ME are not pre-emptively multitasking,
4505    # you end up with a "frozen" computer, even though with patience
4506    # the test eventually succeeds (with a max line length of 256k).
4507    # Instead, let's just punt: use the minimum linelength reported by
4508    # all of the supported platforms: 8192 (on NT/2K/XP).
4509    lt_cv_sys_max_cmd_len=8192;
4510    ;;
4511
4512  amigaos*)
4513    # On AmigaOS with pdksh, this test takes hours, literally.
4514    # So we just punt and use a minimum line length of 8192.
4515    lt_cv_sys_max_cmd_len=8192;
4516    ;;
4517
4518  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4519    # This has been around since 386BSD, at least.  Likely further.
4520    if test -x /sbin/sysctl; then
4521      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4522    elif test -x /usr/sbin/sysctl; then
4523      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4524    else
4525      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4526    fi
4527    # And add a safety zone
4528    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4529    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4530    ;;
4531
4532  interix*)
4533    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4534    lt_cv_sys_max_cmd_len=196608
4535    ;;
4536
4537  osf*)
4538    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4539    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4540    # nice to cause kernel panics so lets avoid the loop below.
4541    # First set a reasonable default.
4542    lt_cv_sys_max_cmd_len=16384
4543    #
4544    if test -x /sbin/sysconfig; then
4545      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4546        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4547      esac
4548    fi
4549    ;;
4550  sco3.2v5*)
4551    lt_cv_sys_max_cmd_len=102400
4552    ;;
4553  sysv5* | sco5v6* | sysv4.2uw2*)
4554    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4555    if test -n "$kargmax"; then
4556      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4557    else
4558      lt_cv_sys_max_cmd_len=32768
4559    fi
4560    ;;
4561  *)
4562    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4563    if test -n "$lt_cv_sys_max_cmd_len"; then
4564      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4565      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4566    else
4567      # Make teststring a little bigger before we do anything with it.
4568      # a 1K string should be a reasonable start.
4569      for i in 1 2 3 4 5 6 7 8 ; do
4570        teststring=$teststring$teststring
4571      done
4572      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4573      # If test is not a shell built-in, we'll probably end up computing a
4574      # maximum length that is only half of the actual maximum length, but
4575      # we can't tell.
4576      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4577	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4578	      test $i != 17 # 1/2 MB should be enough
4579      do
4580        i=`expr $i + 1`
4581        teststring=$teststring$teststring
4582      done
4583      # Only check the string length outside the loop.
4584      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4585      teststring=
4586      # Add a significant safety factor because C++ compilers can tack on
4587      # massive amounts of additional arguments before passing them to the
4588      # linker.  It appears as though 1/2 is a usable value.
4589      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4590    fi
4591    ;;
4592  esac
4593
4594fi
4595
4596if test -n $lt_cv_sys_max_cmd_len ; then
4597  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4598$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4599else
4600  { $as_echo "$as_me:$LINENO: result: none" >&5
4601$as_echo "none" >&6; }
4602fi
4603max_cmd_len=$lt_cv_sys_max_cmd_len
4604
4605
4606
4607
4608
4609
4610: ${CP="cp -f"}
4611: ${MV="mv -f"}
4612: ${RM="rm -f"}
4613
4614{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4615$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4616# Try some XSI features
4617xsi_shell=no
4618( _lt_dummy="a/b/c"
4619  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4620      = c,a/b,, \
4621    && eval 'test $(( 1 + 1 )) -eq 2 \
4622    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4623  && xsi_shell=yes
4624{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4625$as_echo "$xsi_shell" >&6; }
4626
4627
4628{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4629$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4630lt_shell_append=no
4631( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4632    >/dev/null 2>&1 \
4633  && lt_shell_append=yes
4634{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4635$as_echo "$lt_shell_append" >&6; }
4636
4637
4638if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4639  lt_unset=unset
4640else
4641  lt_unset=false
4642fi
4643
4644
4645
4646
4647
4648# test EBCDIC or ASCII
4649case `echo X|tr X '\101'` in
4650 A) # ASCII based system
4651    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4652  lt_SP2NL='tr \040 \012'
4653  lt_NL2SP='tr \015\012 \040\040'
4654  ;;
4655 *) # EBCDIC based system
4656  lt_SP2NL='tr \100 \n'
4657  lt_NL2SP='tr \r\n \100\100'
4658  ;;
4659esac
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4670$as_echo_n "checking for $LD option to reload object files... " >&6; }
4671if test "${lt_cv_ld_reload_flag+set}" = set; then
4672  $as_echo_n "(cached) " >&6
4673else
4674  lt_cv_ld_reload_flag='-r'
4675fi
4676{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4677$as_echo "$lt_cv_ld_reload_flag" >&6; }
4678reload_flag=$lt_cv_ld_reload_flag
4679case $reload_flag in
4680"" | " "*) ;;
4681*) reload_flag=" $reload_flag" ;;
4682esac
4683reload_cmds='$LD$reload_flag -o $output$reload_objs'
4684case $host_os in
4685  darwin*)
4686    if test "$GCC" = yes; then
4687      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4688    else
4689      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4690    fi
4691    ;;
4692esac
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702if test -n "$ac_tool_prefix"; then
4703  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4704set dummy ${ac_tool_prefix}objdump; ac_word=$2
4705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4706$as_echo_n "checking for $ac_word... " >&6; }
4707if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4708  $as_echo_n "(cached) " >&6
4709else
4710  if test -n "$OBJDUMP"; then
4711  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716  IFS=$as_save_IFS
4717  test -z "$as_dir" && as_dir=.
4718  for ac_exec_ext in '' $ac_executable_extensions; do
4719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4721    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722    break 2
4723  fi
4724done
4725done
4726IFS=$as_save_IFS
4727
4728fi
4729fi
4730OBJDUMP=$ac_cv_prog_OBJDUMP
4731if test -n "$OBJDUMP"; then
4732  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4733$as_echo "$OBJDUMP" >&6; }
4734else
4735  { $as_echo "$as_me:$LINENO: result: no" >&5
4736$as_echo "no" >&6; }
4737fi
4738
4739
4740fi
4741if test -z "$ac_cv_prog_OBJDUMP"; then
4742  ac_ct_OBJDUMP=$OBJDUMP
4743  # Extract the first word of "objdump", so it can be a program name with args.
4744set dummy objdump; ac_word=$2
4745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4748  $as_echo_n "(cached) " >&6
4749else
4750  if test -n "$ac_ct_OBJDUMP"; then
4751  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756  IFS=$as_save_IFS
4757  test -z "$as_dir" && as_dir=.
4758  for ac_exec_ext in '' $ac_executable_extensions; do
4759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4761    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762    break 2
4763  fi
4764done
4765done
4766IFS=$as_save_IFS
4767
4768fi
4769fi
4770ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4771if test -n "$ac_ct_OBJDUMP"; then
4772  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4773$as_echo "$ac_ct_OBJDUMP" >&6; }
4774else
4775  { $as_echo "$as_me:$LINENO: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779  if test "x$ac_ct_OBJDUMP" = x; then
4780    OBJDUMP="false"
4781  else
4782    case $cross_compiling:$ac_tool_warned in
4783yes:)
4784{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786ac_tool_warned=yes ;;
4787esac
4788    OBJDUMP=$ac_ct_OBJDUMP
4789  fi
4790else
4791  OBJDUMP="$ac_cv_prog_OBJDUMP"
4792fi
4793
4794test -z "$OBJDUMP" && OBJDUMP=objdump
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4805$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4806if test "${lt_cv_deplibs_check_method+set}" = set; then
4807  $as_echo_n "(cached) " >&6
4808else
4809  lt_cv_file_magic_cmd='$MAGIC_CMD'
4810lt_cv_file_magic_test_file=
4811lt_cv_deplibs_check_method='unknown'
4812# Need to set the preceding variable on all platforms that support
4813# interlibrary dependencies.
4814# 'none' -- dependencies not supported.
4815# `unknown' -- same as none, but documents that we really don't know.
4816# 'pass_all' -- all dependencies passed with no checks.
4817# 'test_compile' -- check by making test program.
4818# 'file_magic [[regex]]' -- check by looking for files in library path
4819# which responds to the $file_magic_cmd with a given extended regex.
4820# If you have `file' or equivalent on your system and you're not sure
4821# whether `pass_all' will *always* work, you probably want this one.
4822
4823case $host_os in
4824aix[4-9]*)
4825  lt_cv_deplibs_check_method=pass_all
4826  ;;
4827
4828beos*)
4829  lt_cv_deplibs_check_method=pass_all
4830  ;;
4831
4832bsdi[45]*)
4833  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4834  lt_cv_file_magic_cmd='/usr/bin/file -L'
4835  lt_cv_file_magic_test_file=/shlib/libc.so
4836  ;;
4837
4838cygwin*)
4839  # func_win32_libid is a shell function defined in ltmain.sh
4840  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4841  lt_cv_file_magic_cmd='func_win32_libid'
4842  ;;
4843
4844mingw* | pw32*)
4845  # Base MSYS/MinGW do not provide the 'file' command needed by
4846  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4847  # unless we find 'file', for example because we are cross-compiling.
4848  if ( file / ) >/dev/null 2>&1; then
4849    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4850    lt_cv_file_magic_cmd='func_win32_libid'
4851  else
4852    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4853    lt_cv_file_magic_cmd='$OBJDUMP -f'
4854  fi
4855  ;;
4856
4857cegcc)
4858  # use the weaker test based on 'objdump'. See mingw*.
4859  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4860  lt_cv_file_magic_cmd='$OBJDUMP -f'
4861  ;;
4862
4863darwin* | rhapsody*)
4864  lt_cv_deplibs_check_method=pass_all
4865  ;;
4866
4867freebsd* | dragonfly*)
4868  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4869    case $host_cpu in
4870    i*86 )
4871      # Not sure whether the presence of OpenBSD here was a mistake.
4872      # Let's accept both of them until this is cleared up.
4873      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4874      lt_cv_file_magic_cmd=/usr/bin/file
4875      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4876      ;;
4877    esac
4878  else
4879    lt_cv_deplibs_check_method=pass_all
4880  fi
4881  ;;
4882
4883gnu*)
4884  lt_cv_deplibs_check_method=pass_all
4885  ;;
4886
4887hpux10.20* | hpux11*)
4888  lt_cv_file_magic_cmd=/usr/bin/file
4889  case $host_cpu in
4890  ia64*)
4891    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4892    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4893    ;;
4894  hppa*64*)
4895    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]'
4896    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4897    ;;
4898  *)
4899    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4900    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4901    ;;
4902  esac
4903  ;;
4904
4905interix[3-9]*)
4906  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4907  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4908  ;;
4909
4910irix5* | irix6* | nonstopux*)
4911  case $LD in
4912  *-32|*"-32 ") libmagic=32-bit;;
4913  *-n32|*"-n32 ") libmagic=N32;;
4914  *-64|*"-64 ") libmagic=64-bit;;
4915  *) libmagic=never-match;;
4916  esac
4917  lt_cv_deplibs_check_method=pass_all
4918  ;;
4919
4920# This must be Linux ELF.
4921linux* | k*bsd*-gnu)
4922  lt_cv_deplibs_check_method=pass_all
4923  ;;
4924
4925netbsd*)
4926  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4927    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4928  else
4929    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4930  fi
4931  ;;
4932
4933newos6*)
4934  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4935  lt_cv_file_magic_cmd=/usr/bin/file
4936  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4937  ;;
4938
4939*nto* | *qnx*)
4940  lt_cv_deplibs_check_method=pass_all
4941  ;;
4942
4943openbsd*)
4944  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4945    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4946  else
4947    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4948  fi
4949  ;;
4950
4951osf3* | osf4* | osf5*)
4952  lt_cv_deplibs_check_method=pass_all
4953  ;;
4954
4955rdos*)
4956  lt_cv_deplibs_check_method=pass_all
4957  ;;
4958
4959solaris*)
4960  lt_cv_deplibs_check_method=pass_all
4961  ;;
4962
4963sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4964  lt_cv_deplibs_check_method=pass_all
4965  ;;
4966
4967sysv4 | sysv4.3*)
4968  case $host_vendor in
4969  motorola)
4970    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]'
4971    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4972    ;;
4973  ncr)
4974    lt_cv_deplibs_check_method=pass_all
4975    ;;
4976  sequent)
4977    lt_cv_file_magic_cmd='/bin/file'
4978    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4979    ;;
4980  sni)
4981    lt_cv_file_magic_cmd='/bin/file'
4982    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4983    lt_cv_file_magic_test_file=/lib/libc.so
4984    ;;
4985  siemens)
4986    lt_cv_deplibs_check_method=pass_all
4987    ;;
4988  pc)
4989    lt_cv_deplibs_check_method=pass_all
4990    ;;
4991  esac
4992  ;;
4993
4994tpf*)
4995  lt_cv_deplibs_check_method=pass_all
4996  ;;
4997esac
4998
4999fi
5000{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5001$as_echo "$lt_cv_deplibs_check_method" >&6; }
5002file_magic_cmd=$lt_cv_file_magic_cmd
5003deplibs_check_method=$lt_cv_deplibs_check_method
5004test -z "$deplibs_check_method" && deplibs_check_method=unknown
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017if test -n "$ac_tool_prefix"; then
5018  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5019set dummy ${ac_tool_prefix}ar; ac_word=$2
5020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if test "${ac_cv_prog_AR+set}" = set; then
5023  $as_echo_n "(cached) " >&6
5024else
5025  if test -n "$AR"; then
5026  ac_cv_prog_AR="$AR" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033  for ac_exec_ext in '' $ac_executable_extensions; do
5034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035    ac_cv_prog_AR="${ac_tool_prefix}ar"
5036    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037    break 2
5038  fi
5039done
5040done
5041IFS=$as_save_IFS
5042
5043fi
5044fi
5045AR=$ac_cv_prog_AR
5046if test -n "$AR"; then
5047  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5048$as_echo "$AR" >&6; }
5049else
5050  { $as_echo "$as_me:$LINENO: result: no" >&5
5051$as_echo "no" >&6; }
5052fi
5053
5054
5055fi
5056if test -z "$ac_cv_prog_AR"; then
5057  ac_ct_AR=$AR
5058  # Extract the first word of "ar", so it can be a program name with args.
5059set dummy ar; ac_word=$2
5060{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5061$as_echo_n "checking for $ac_word... " >&6; }
5062if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5063  $as_echo_n "(cached) " >&6
5064else
5065  if test -n "$ac_ct_AR"; then
5066  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5067else
5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071  IFS=$as_save_IFS
5072  test -z "$as_dir" && as_dir=.
5073  for ac_exec_ext in '' $ac_executable_extensions; do
5074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075    ac_cv_prog_ac_ct_AR="ar"
5076    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077    break 2
5078  fi
5079done
5080done
5081IFS=$as_save_IFS
5082
5083fi
5084fi
5085ac_ct_AR=$ac_cv_prog_ac_ct_AR
5086if test -n "$ac_ct_AR"; then
5087  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5088$as_echo "$ac_ct_AR" >&6; }
5089else
5090  { $as_echo "$as_me:$LINENO: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093
5094  if test "x$ac_ct_AR" = x; then
5095    AR="false"
5096  else
5097    case $cross_compiling:$ac_tool_warned in
5098yes:)
5099{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5101ac_tool_warned=yes ;;
5102esac
5103    AR=$ac_ct_AR
5104  fi
5105else
5106  AR="$ac_cv_prog_AR"
5107fi
5108
5109test -z "$AR" && AR=ar
5110test -z "$AR_FLAGS" && AR_FLAGS=cru
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122if test -n "$ac_tool_prefix"; then
5123  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}strip; ac_word=$2
5125{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if test "${ac_cv_prog_STRIP+set}" = set; then
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -n "$STRIP"; then
5131  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138  for ac_exec_ext in '' $ac_executable_extensions; do
5139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5141    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150STRIP=$ac_cv_prog_STRIP
5151if test -n "$STRIP"; then
5152  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5153$as_echo "$STRIP" >&6; }
5154else
5155  { $as_echo "$as_me:$LINENO: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160fi
5161if test -z "$ac_cv_prog_STRIP"; then
5162  ac_ct_STRIP=$STRIP
5163  # Extract the first word of "strip", so it can be a program name with args.
5164set dummy strip; ac_word=$2
5165{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5166$as_echo_n "checking for $ac_word... " >&6; }
5167if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5168  $as_echo_n "(cached) " >&6
5169else
5170  if test -n "$ac_ct_STRIP"; then
5171  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176  IFS=$as_save_IFS
5177  test -z "$as_dir" && as_dir=.
5178  for ac_exec_ext in '' $ac_executable_extensions; do
5179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180    ac_cv_prog_ac_ct_STRIP="strip"
5181    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182    break 2
5183  fi
5184done
5185done
5186IFS=$as_save_IFS
5187
5188fi
5189fi
5190ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5191if test -n "$ac_ct_STRIP"; then
5192  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5193$as_echo "$ac_ct_STRIP" >&6; }
5194else
5195  { $as_echo "$as_me:$LINENO: result: no" >&5
5196$as_echo "no" >&6; }
5197fi
5198
5199  if test "x$ac_ct_STRIP" = x; then
5200    STRIP=":"
5201  else
5202    case $cross_compiling:$ac_tool_warned in
5203yes:)
5204{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206ac_tool_warned=yes ;;
5207esac
5208    STRIP=$ac_ct_STRIP
5209  fi
5210else
5211  STRIP="$ac_cv_prog_STRIP"
5212fi
5213
5214test -z "$STRIP" && STRIP=:
5215
5216
5217
5218
5219
5220
5221if test -n "$ac_tool_prefix"; then
5222  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5223set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5225$as_echo_n "checking for $ac_word... " >&6; }
5226if test "${ac_cv_prog_RANLIB+set}" = set; then
5227  $as_echo_n "(cached) " >&6
5228else
5229  if test -n "$RANLIB"; then
5230  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235  IFS=$as_save_IFS
5236  test -z "$as_dir" && as_dir=.
5237  for ac_exec_ext in '' $ac_executable_extensions; do
5238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5240    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241    break 2
5242  fi
5243done
5244done
5245IFS=$as_save_IFS
5246
5247fi
5248fi
5249RANLIB=$ac_cv_prog_RANLIB
5250if test -n "$RANLIB"; then
5251  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5252$as_echo "$RANLIB" >&6; }
5253else
5254  { $as_echo "$as_me:$LINENO: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257
5258
5259fi
5260if test -z "$ac_cv_prog_RANLIB"; then
5261  ac_ct_RANLIB=$RANLIB
5262  # Extract the first word of "ranlib", so it can be a program name with args.
5263set dummy ranlib; ac_word=$2
5264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
5266if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5267  $as_echo_n "(cached) " >&6
5268else
5269  if test -n "$ac_ct_RANLIB"; then
5270  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275  IFS=$as_save_IFS
5276  test -z "$as_dir" && as_dir=.
5277  for ac_exec_ext in '' $ac_executable_extensions; do
5278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279    ac_cv_prog_ac_ct_RANLIB="ranlib"
5280    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281    break 2
5282  fi
5283done
5284done
5285IFS=$as_save_IFS
5286
5287fi
5288fi
5289ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5290if test -n "$ac_ct_RANLIB"; then
5291  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5292$as_echo "$ac_ct_RANLIB" >&6; }
5293else
5294  { $as_echo "$as_me:$LINENO: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298  if test "x$ac_ct_RANLIB" = x; then
5299    RANLIB=":"
5300  else
5301    case $cross_compiling:$ac_tool_warned in
5302yes:)
5303{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305ac_tool_warned=yes ;;
5306esac
5307    RANLIB=$ac_ct_RANLIB
5308  fi
5309else
5310  RANLIB="$ac_cv_prog_RANLIB"
5311fi
5312
5313test -z "$RANLIB" && RANLIB=:
5314
5315
5316
5317
5318
5319
5320# Determine commands to create old-style static archives.
5321old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5322old_postinstall_cmds='chmod 644 $oldlib'
5323old_postuninstall_cmds=
5324
5325if test -n "$RANLIB"; then
5326  case $host_os in
5327  openbsd*)
5328    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5329    ;;
5330  *)
5331    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5332    ;;
5333  esac
5334  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5335fi
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370# If no C compiler was specified, use CC.
5371LTCC=${LTCC-"$CC"}
5372
5373# If no C compiler flags were specified, use CFLAGS.
5374LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5375
5376# Allow CC to be a program name with arguments.
5377compiler=$CC
5378
5379
5380# Check for command to grab the raw symbol name followed by C symbol from nm.
5381{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5382$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5383if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5384  $as_echo_n "(cached) " >&6
5385else
5386
5387# These are sane defaults that work on at least a few old systems.
5388# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5389
5390# Character class describing NM global symbol codes.
5391symcode='[BCDEGRST]'
5392
5393# Regexp to match symbols that can be accessed directly from C.
5394sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5395
5396# Define system-specific variables.
5397case $host_os in
5398aix*)
5399  symcode='[BCDT]'
5400  ;;
5401cygwin* | mingw* | pw32* | cegcc*)
5402  symcode='[ABCDGISTW]'
5403  ;;
5404hpux*)
5405  if test "$host_cpu" = ia64; then
5406    symcode='[ABCDEGRST]'
5407  fi
5408  ;;
5409irix* | nonstopux*)
5410  symcode='[BCDEGRST]'
5411  ;;
5412osf*)
5413  symcode='[BCDEGQRST]'
5414  ;;
5415solaris*)
5416  symcode='[BDRT]'
5417  ;;
5418sco3.2v5*)
5419  symcode='[DT]'
5420  ;;
5421sysv4.2uw2*)
5422  symcode='[DT]'
5423  ;;
5424sysv5* | sco5v6* | unixware* | OpenUNIX*)
5425  symcode='[ABDT]'
5426  ;;
5427sysv4)
5428  symcode='[DFNSTU]'
5429  ;;
5430esac
5431
5432# If we're using GNU nm, then use its standard symbol codes.
5433case `$NM -V 2>&1` in
5434*GNU* | *'with BFD'*)
5435  symcode='[ABCDGIRSTW]' ;;
5436esac
5437
5438# Transform an extracted symbol line into a proper C declaration.
5439# Some systems (esp. on ia64) link data and code symbols differently,
5440# so use this general approach.
5441lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5442
5443# Transform an extracted symbol line into symbol name and symbol address
5444lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5445lt_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'"
5446
5447# Handle CRLF in mingw tool chain
5448opt_cr=
5449case $build_os in
5450mingw*)
5451  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5452  ;;
5453esac
5454
5455# Try without a prefix underscore, then with it.
5456for ac_symprfx in "" "_"; do
5457
5458  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5459  symxfrm="\\1 $ac_symprfx\\2 \\2"
5460
5461  # Write the raw and C identifiers.
5462  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5463    # Fake it for dumpbin and say T for any non-static function
5464    # and D for any global variable.
5465    # Also find C++ and __fastcall symbols from MSVC++,
5466    # which start with @ or ?.
5467    lt_cv_sys_global_symbol_pipe="$AWK '"\
5468"     {last_section=section; section=\$ 3};"\
5469"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5470"     \$ 0!~/External *\|/{next};"\
5471"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5472"     {if(hide[section]) next};"\
5473"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5474"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5475"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5476"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5477"     ' prfx=^$ac_symprfx"
5478  else
5479    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5480  fi
5481
5482  # Check to see that the pipe works correctly.
5483  pipe_works=no
5484
5485  rm -f conftest*
5486  cat > conftest.$ac_ext <<_LT_EOF
5487#ifdef __cplusplus
5488extern "C" {
5489#endif
5490char nm_test_var;
5491void nm_test_func(void);
5492void nm_test_func(void){}
5493#ifdef __cplusplus
5494}
5495#endif
5496int main(){nm_test_var='a';nm_test_func();return(0);}
5497_LT_EOF
5498
5499  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500  (eval $ac_compile) 2>&5
5501  ac_status=$?
5502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); }; then
5504    # Now try to grab the symbols.
5505    nlist=conftest.nm
5506    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5507  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5508  ac_status=$?
5509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); } && test -s "$nlist"; then
5511      # Try sorting and uniquifying the output.
5512      if sort "$nlist" | uniq > "$nlist"T; then
5513	mv -f "$nlist"T "$nlist"
5514      else
5515	rm -f "$nlist"T
5516      fi
5517
5518      # Make sure that we snagged all the symbols we need.
5519      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5520	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5521	  cat <<_LT_EOF > conftest.$ac_ext
5522#ifdef __cplusplus
5523extern "C" {
5524#endif
5525
5526_LT_EOF
5527	  # Now generate the symbol file.
5528	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5529
5530	  cat <<_LT_EOF >> conftest.$ac_ext
5531
5532/* The mapping between symbol names and symbols.  */
5533const struct {
5534  const char *name;
5535  void       *address;
5536}
5537lt__PROGRAM__LTX_preloaded_symbols[] =
5538{
5539  { "@PROGRAM@", (void *) 0 },
5540_LT_EOF
5541	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5542	  cat <<\_LT_EOF >> conftest.$ac_ext
5543  {0, (void *) 0}
5544};
5545
5546/* This works around a problem in FreeBSD linker */
5547#ifdef FREEBSD_WORKAROUND
5548static const void *lt_preloaded_setup() {
5549  return lt__PROGRAM__LTX_preloaded_symbols;
5550}
5551#endif
5552
5553#ifdef __cplusplus
5554}
5555#endif
5556_LT_EOF
5557	  # Now try linking the two files.
5558	  mv conftest.$ac_objext conftstm.$ac_objext
5559	  lt_save_LIBS="$LIBS"
5560	  lt_save_CFLAGS="$CFLAGS"
5561	  LIBS="conftstm.$ac_objext"
5562	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5563	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5564  (eval $ac_link) 2>&5
5565  ac_status=$?
5566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5568	    pipe_works=yes
5569	  fi
5570	  LIBS="$lt_save_LIBS"
5571	  CFLAGS="$lt_save_CFLAGS"
5572	else
5573	  echo "cannot find nm_test_func in $nlist" >&5
5574	fi
5575      else
5576	echo "cannot find nm_test_var in $nlist" >&5
5577      fi
5578    else
5579      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5580    fi
5581  else
5582    echo "$progname: failed program was:" >&5
5583    cat conftest.$ac_ext >&5
5584  fi
5585  rm -rf conftest* conftst*
5586
5587  # Do not use the global_symbol_pipe unless it works.
5588  if test "$pipe_works" = yes; then
5589    break
5590  else
5591    lt_cv_sys_global_symbol_pipe=
5592  fi
5593done
5594
5595fi
5596
5597if test -z "$lt_cv_sys_global_symbol_pipe"; then
5598  lt_cv_sys_global_symbol_to_cdecl=
5599fi
5600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5601  { $as_echo "$as_me:$LINENO: result: failed" >&5
5602$as_echo "failed" >&6; }
5603else
5604  { $as_echo "$as_me:$LINENO: result: ok" >&5
5605$as_echo "ok" >&6; }
5606fi
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630# Check whether --enable-libtool-lock was given.
5631if test "${enable_libtool_lock+set}" = set; then
5632  enableval=$enable_libtool_lock;
5633fi
5634
5635test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5636
5637# Some flags need to be propagated to the compiler or linker for good
5638# libtool support.
5639case $host in
5640ia64-*-hpux*)
5641  # Find out which ABI we are using.
5642  echo 'int i;' > conftest.$ac_ext
5643  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644  (eval $ac_compile) 2>&5
5645  ac_status=$?
5646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); }; then
5648    case `/usr/bin/file conftest.$ac_objext` in
5649      *ELF-32*)
5650	HPUX_IA64_MODE="32"
5651	;;
5652      *ELF-64*)
5653	HPUX_IA64_MODE="64"
5654	;;
5655    esac
5656  fi
5657  rm -rf conftest*
5658  ;;
5659*-*-irix6*)
5660  # Find out which ABI we are using.
5661  echo '#line 5661 "configure"' > conftest.$ac_ext
5662  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663  (eval $ac_compile) 2>&5
5664  ac_status=$?
5665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); }; then
5667    if test "$lt_cv_prog_gnu_ld" = yes; then
5668      case `/usr/bin/file conftest.$ac_objext` in
5669	*32-bit*)
5670	  LD="${LD-ld} -melf32bsmip"
5671	  ;;
5672	*N32*)
5673	  LD="${LD-ld} -melf32bmipn32"
5674	  ;;
5675	*64-bit*)
5676	  LD="${LD-ld} -melf64bmip"
5677	;;
5678      esac
5679    else
5680      case `/usr/bin/file conftest.$ac_objext` in
5681	*32-bit*)
5682	  LD="${LD-ld} -32"
5683	  ;;
5684	*N32*)
5685	  LD="${LD-ld} -n32"
5686	  ;;
5687	*64-bit*)
5688	  LD="${LD-ld} -64"
5689	  ;;
5690      esac
5691    fi
5692  fi
5693  rm -rf conftest*
5694  ;;
5695
5696x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5697s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5698  # Find out which ABI we are using.
5699  echo 'int i;' > conftest.$ac_ext
5700  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701  (eval $ac_compile) 2>&5
5702  ac_status=$?
5703  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); }; then
5705    case `/usr/bin/file conftest.o` in
5706      *32-bit*)
5707	case $host in
5708	  x86_64-*kfreebsd*-gnu)
5709	    LD="${LD-ld} -m elf_i386_fbsd"
5710	    ;;
5711	  x86_64-*linux*)
5712	    LD="${LD-ld} -m elf_i386"
5713	    ;;
5714	  ppc64-*linux*|powerpc64-*linux*)
5715	    LD="${LD-ld} -m elf32ppclinux"
5716	    ;;
5717	  s390x-*linux*)
5718	    LD="${LD-ld} -m elf_s390"
5719	    ;;
5720	  sparc64-*linux*)
5721	    LD="${LD-ld} -m elf32_sparc"
5722	    ;;
5723	esac
5724	;;
5725      *64-bit*)
5726	case $host in
5727	  x86_64-*kfreebsd*-gnu)
5728	    LD="${LD-ld} -m elf_x86_64_fbsd"
5729	    ;;
5730	  x86_64-*linux*)
5731	    LD="${LD-ld} -m elf_x86_64"
5732	    ;;
5733	  ppc*-*linux*|powerpc*-*linux*)
5734	    LD="${LD-ld} -m elf64ppc"
5735	    ;;
5736	  s390*-*linux*|s390*-*tpf*)
5737	    LD="${LD-ld} -m elf64_s390"
5738	    ;;
5739	  sparc*-*linux*)
5740	    LD="${LD-ld} -m elf64_sparc"
5741	    ;;
5742	esac
5743	;;
5744    esac
5745  fi
5746  rm -rf conftest*
5747  ;;
5748
5749*-*-sco3.2v5*)
5750  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5751  SAVE_CFLAGS="$CFLAGS"
5752  CFLAGS="$CFLAGS -belf"
5753  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5754$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5755if test "${lt_cv_cc_needs_belf+set}" = set; then
5756  $as_echo_n "(cached) " >&6
5757else
5758  ac_ext=c
5759ac_cpp='$CPP $CPPFLAGS'
5760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764     cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h.  */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h.  */
5770
5771int
5772main ()
5773{
5774
5775  ;
5776  return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext conftest$ac_exeext
5780if { (ac_try="$ac_link"
5781case "(($ac_try" in
5782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783  *) ac_try_echo=$ac_try;;
5784esac
5785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786$as_echo "$ac_try_echo") >&5
5787  (eval "$ac_link") 2>conftest.er1
5788  ac_status=$?
5789  grep -v '^ *+' conftest.er1 >conftest.err
5790  rm -f conftest.er1
5791  cat conftest.err >&5
5792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); } && {
5794	 test -z "$ac_c_werror_flag" ||
5795	 test ! -s conftest.err
5796       } && test -s conftest$ac_exeext && {
5797	 test "$cross_compiling" = yes ||
5798	 $as_test_x conftest$ac_exeext
5799       }; then
5800  lt_cv_cc_needs_belf=yes
5801else
5802  $as_echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805	lt_cv_cc_needs_belf=no
5806fi
5807
5808rm -rf conftest.dSYM
5809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5810      conftest$ac_exeext conftest.$ac_ext
5811     ac_ext=c
5812ac_cpp='$CPP $CPPFLAGS'
5813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816
5817fi
5818{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5819$as_echo "$lt_cv_cc_needs_belf" >&6; }
5820  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5821    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5822    CFLAGS="$SAVE_CFLAGS"
5823  fi
5824  ;;
5825sparc*-*solaris*)
5826  # Find out which ABI we are using.
5827  echo 'int i;' > conftest.$ac_ext
5828  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829  (eval $ac_compile) 2>&5
5830  ac_status=$?
5831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832  (exit $ac_status); }; then
5833    case `/usr/bin/file conftest.o` in
5834    *64-bit*)
5835      case $lt_cv_prog_gnu_ld in
5836      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5837      *)
5838	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5839	  LD="${LD-ld} -64"
5840	fi
5841	;;
5842      esac
5843      ;;
5844    esac
5845  fi
5846  rm -rf conftest*
5847  ;;
5848esac
5849
5850need_locks="$enable_libtool_lock"
5851
5852
5853  case $host_os in
5854    rhapsody* | darwin*)
5855    if test -n "$ac_tool_prefix"; then
5856  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5857set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5858{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
5860if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5861  $as_echo_n "(cached) " >&6
5862else
5863  if test -n "$DSYMUTIL"; then
5864  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871  for ac_exec_ext in '' $ac_executable_extensions; do
5872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5874    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883DSYMUTIL=$ac_cv_prog_DSYMUTIL
5884if test -n "$DSYMUTIL"; then
5885  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5886$as_echo "$DSYMUTIL" >&6; }
5887else
5888  { $as_echo "$as_me:$LINENO: result: no" >&5
5889$as_echo "no" >&6; }
5890fi
5891
5892
5893fi
5894if test -z "$ac_cv_prog_DSYMUTIL"; then
5895  ac_ct_DSYMUTIL=$DSYMUTIL
5896  # Extract the first word of "dsymutil", so it can be a program name with args.
5897set dummy dsymutil; ac_word=$2
5898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
5900if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5901  $as_echo_n "(cached) " >&6
5902else
5903  if test -n "$ac_ct_DSYMUTIL"; then
5904  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911  for ac_exec_ext in '' $ac_executable_extensions; do
5912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5914    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5924if test -n "$ac_ct_DSYMUTIL"; then
5925  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5926$as_echo "$ac_ct_DSYMUTIL" >&6; }
5927else
5928  { $as_echo "$as_me:$LINENO: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932  if test "x$ac_ct_DSYMUTIL" = x; then
5933    DSYMUTIL=":"
5934  else
5935    case $cross_compiling:$ac_tool_warned in
5936yes:)
5937{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939ac_tool_warned=yes ;;
5940esac
5941    DSYMUTIL=$ac_ct_DSYMUTIL
5942  fi
5943else
5944  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5945fi
5946
5947    if test -n "$ac_tool_prefix"; then
5948  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5949set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5950{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
5952if test "${ac_cv_prog_NMEDIT+set}" = set; then
5953  $as_echo_n "(cached) " >&6
5954else
5955  if test -n "$NMEDIT"; then
5956  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961  IFS=$as_save_IFS
5962  test -z "$as_dir" && as_dir=.
5963  for ac_exec_ext in '' $ac_executable_extensions; do
5964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5966    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967    break 2
5968  fi
5969done
5970done
5971IFS=$as_save_IFS
5972
5973fi
5974fi
5975NMEDIT=$ac_cv_prog_NMEDIT
5976if test -n "$NMEDIT"; then
5977  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5978$as_echo "$NMEDIT" >&6; }
5979else
5980  { $as_echo "$as_me:$LINENO: result: no" >&5
5981$as_echo "no" >&6; }
5982fi
5983
5984
5985fi
5986if test -z "$ac_cv_prog_NMEDIT"; then
5987  ac_ct_NMEDIT=$NMEDIT
5988  # Extract the first word of "nmedit", so it can be a program name with args.
5989set dummy nmedit; ac_word=$2
5990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
5992if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5993  $as_echo_n "(cached) " >&6
5994else
5995  if test -n "$ac_ct_NMEDIT"; then
5996  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001  IFS=$as_save_IFS
6002  test -z "$as_dir" && as_dir=.
6003  for ac_exec_ext in '' $ac_executable_extensions; do
6004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6006    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007    break 2
6008  fi
6009done
6010done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6016if test -n "$ac_ct_NMEDIT"; then
6017  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6018$as_echo "$ac_ct_NMEDIT" >&6; }
6019else
6020  { $as_echo "$as_me:$LINENO: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024  if test "x$ac_ct_NMEDIT" = x; then
6025    NMEDIT=":"
6026  else
6027    case $cross_compiling:$ac_tool_warned in
6028yes:)
6029{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6031ac_tool_warned=yes ;;
6032esac
6033    NMEDIT=$ac_ct_NMEDIT
6034  fi
6035else
6036  NMEDIT="$ac_cv_prog_NMEDIT"
6037fi
6038
6039    if test -n "$ac_tool_prefix"; then
6040  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6041set dummy ${ac_tool_prefix}lipo; ac_word=$2
6042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6043$as_echo_n "checking for $ac_word... " >&6; }
6044if test "${ac_cv_prog_LIPO+set}" = set; then
6045  $as_echo_n "(cached) " >&6
6046else
6047  if test -n "$LIPO"; then
6048  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053  IFS=$as_save_IFS
6054  test -z "$as_dir" && as_dir=.
6055  for ac_exec_ext in '' $ac_executable_extensions; do
6056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6058    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059    break 2
6060  fi
6061done
6062done
6063IFS=$as_save_IFS
6064
6065fi
6066fi
6067LIPO=$ac_cv_prog_LIPO
6068if test -n "$LIPO"; then
6069  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6070$as_echo "$LIPO" >&6; }
6071else
6072  { $as_echo "$as_me:$LINENO: result: no" >&5
6073$as_echo "no" >&6; }
6074fi
6075
6076
6077fi
6078if test -z "$ac_cv_prog_LIPO"; then
6079  ac_ct_LIPO=$LIPO
6080  # Extract the first word of "lipo", so it can be a program name with args.
6081set dummy lipo; ac_word=$2
6082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
6084if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6085  $as_echo_n "(cached) " >&6
6086else
6087  if test -n "$ac_ct_LIPO"; then
6088  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093  IFS=$as_save_IFS
6094  test -z "$as_dir" && as_dir=.
6095  for ac_exec_ext in '' $ac_executable_extensions; do
6096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097    ac_cv_prog_ac_ct_LIPO="lipo"
6098    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099    break 2
6100  fi
6101done
6102done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6108if test -n "$ac_ct_LIPO"; then
6109  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6110$as_echo "$ac_ct_LIPO" >&6; }
6111else
6112  { $as_echo "$as_me:$LINENO: result: no" >&5
6113$as_echo "no" >&6; }
6114fi
6115
6116  if test "x$ac_ct_LIPO" = x; then
6117    LIPO=":"
6118  else
6119    case $cross_compiling:$ac_tool_warned in
6120yes:)
6121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6123ac_tool_warned=yes ;;
6124esac
6125    LIPO=$ac_ct_LIPO
6126  fi
6127else
6128  LIPO="$ac_cv_prog_LIPO"
6129fi
6130
6131    if test -n "$ac_tool_prefix"; then
6132  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6133set dummy ${ac_tool_prefix}otool; ac_word=$2
6134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if test "${ac_cv_prog_OTOOL+set}" = set; then
6137  $as_echo_n "(cached) " >&6
6138else
6139  if test -n "$OTOOL"; then
6140  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147  for ac_exec_ext in '' $ac_executable_extensions; do
6148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6150    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159OTOOL=$ac_cv_prog_OTOOL
6160if test -n "$OTOOL"; then
6161  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6162$as_echo "$OTOOL" >&6; }
6163else
6164  { $as_echo "$as_me:$LINENO: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168
6169fi
6170if test -z "$ac_cv_prog_OTOOL"; then
6171  ac_ct_OTOOL=$OTOOL
6172  # Extract the first word of "otool", so it can be a program name with args.
6173set dummy otool; ac_word=$2
6174{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6175$as_echo_n "checking for $ac_word... " >&6; }
6176if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6177  $as_echo_n "(cached) " >&6
6178else
6179  if test -n "$ac_ct_OTOOL"; then
6180  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185  IFS=$as_save_IFS
6186  test -z "$as_dir" && as_dir=.
6187  for ac_exec_ext in '' $ac_executable_extensions; do
6188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189    ac_cv_prog_ac_ct_OTOOL="otool"
6190    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191    break 2
6192  fi
6193done
6194done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6200if test -n "$ac_ct_OTOOL"; then
6201  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6202$as_echo "$ac_ct_OTOOL" >&6; }
6203else
6204  { $as_echo "$as_me:$LINENO: result: no" >&5
6205$as_echo "no" >&6; }
6206fi
6207
6208  if test "x$ac_ct_OTOOL" = x; then
6209    OTOOL=":"
6210  else
6211    case $cross_compiling:$ac_tool_warned in
6212yes:)
6213{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215ac_tool_warned=yes ;;
6216esac
6217    OTOOL=$ac_ct_OTOOL
6218  fi
6219else
6220  OTOOL="$ac_cv_prog_OTOOL"
6221fi
6222
6223    if test -n "$ac_tool_prefix"; then
6224  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6225set dummy ${ac_tool_prefix}otool64; ac_word=$2
6226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if test "${ac_cv_prog_OTOOL64+set}" = set; then
6229  $as_echo_n "(cached) " >&6
6230else
6231  if test -n "$OTOOL64"; then
6232  ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
6242    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243    break 2
6244  fi
6245done
6246done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251OTOOL64=$ac_cv_prog_OTOOL64
6252if test -n "$OTOOL64"; then
6253  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6254$as_echo "$OTOOL64" >&6; }
6255else
6256  { $as_echo "$as_me:$LINENO: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260
6261fi
6262if test -z "$ac_cv_prog_OTOOL64"; then
6263  ac_ct_OTOOL64=$OTOOL64
6264  # Extract the first word of "otool64", so it can be a program name with args.
6265set dummy otool64; ac_word=$2
6266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6267$as_echo_n "checking for $ac_word... " >&6; }
6268if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6269  $as_echo_n "(cached) " >&6
6270else
6271  if test -n "$ac_ct_OTOOL64"; then
6272  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277  IFS=$as_save_IFS
6278  test -z "$as_dir" && as_dir=.
6279  for ac_exec_ext in '' $ac_executable_extensions; do
6280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281    ac_cv_prog_ac_ct_OTOOL64="otool64"
6282    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283    break 2
6284  fi
6285done
6286done
6287IFS=$as_save_IFS
6288
6289fi
6290fi
6291ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6292if test -n "$ac_ct_OTOOL64"; then
6293  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6294$as_echo "$ac_ct_OTOOL64" >&6; }
6295else
6296  { $as_echo "$as_me:$LINENO: result: no" >&5
6297$as_echo "no" >&6; }
6298fi
6299
6300  if test "x$ac_ct_OTOOL64" = x; then
6301    OTOOL64=":"
6302  else
6303    case $cross_compiling:$ac_tool_warned in
6304yes:)
6305{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307ac_tool_warned=yes ;;
6308esac
6309    OTOOL64=$ac_ct_OTOOL64
6310  fi
6311else
6312  OTOOL64="$ac_cv_prog_OTOOL64"
6313fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6342$as_echo_n "checking for -single_module linker flag... " >&6; }
6343if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6344  $as_echo_n "(cached) " >&6
6345else
6346  lt_cv_apple_cc_single_mod=no
6347      if test -z "${LT_MULTI_MODULE}"; then
6348	# By default we will add the -single_module flag. You can override
6349	# by either setting the environment variable LT_MULTI_MODULE
6350	# non-empty at configure time, or by adding -multi_module to the
6351	# link flags.
6352	rm -rf libconftest.dylib*
6353	echo "int foo(void){return 1;}" > conftest.c
6354	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6355-dynamiclib -Wl,-single_module conftest.c" >&5
6356	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6357	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6358        _lt_result=$?
6359	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6360	  lt_cv_apple_cc_single_mod=yes
6361	else
6362	  cat conftest.err >&5
6363	fi
6364	rm -rf libconftest.dylib*
6365	rm -f conftest.*
6366      fi
6367fi
6368{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6369$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6370    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6371$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6372if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6373  $as_echo_n "(cached) " >&6
6374else
6375  lt_cv_ld_exported_symbols_list=no
6376      save_LDFLAGS=$LDFLAGS
6377      echo "_main" > conftest.sym
6378      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6379      cat >conftest.$ac_ext <<_ACEOF
6380/* confdefs.h.  */
6381_ACEOF
6382cat confdefs.h >>conftest.$ac_ext
6383cat >>conftest.$ac_ext <<_ACEOF
6384/* end confdefs.h.  */
6385
6386int
6387main ()
6388{
6389
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext conftest$ac_exeext
6395if { (ac_try="$ac_link"
6396case "(($ac_try" in
6397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398  *) ac_try_echo=$ac_try;;
6399esac
6400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401$as_echo "$ac_try_echo") >&5
6402  (eval "$ac_link") 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } && {
6409	 test -z "$ac_c_werror_flag" ||
6410	 test ! -s conftest.err
6411       } && test -s conftest$ac_exeext && {
6412	 test "$cross_compiling" = yes ||
6413	 $as_test_x conftest$ac_exeext
6414       }; then
6415  lt_cv_ld_exported_symbols_list=yes
6416else
6417  $as_echo "$as_me: failed program was:" >&5
6418sed 's/^/| /' conftest.$ac_ext >&5
6419
6420	lt_cv_ld_exported_symbols_list=no
6421fi
6422
6423rm -rf conftest.dSYM
6424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6425      conftest$ac_exeext conftest.$ac_ext
6426	LDFLAGS="$save_LDFLAGS"
6427
6428fi
6429{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6430$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6431    case $host_os in
6432    rhapsody* | darwin1.[012])
6433      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6434    darwin1.*)
6435      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6436    darwin*) # darwin 5.x on
6437      # if running on 10.5 or later, the deployment target defaults
6438      # to the OS version, if on x86, and 10.4, the deployment
6439      # target defaults to 10.4. Don't you love it?
6440      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6441	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6442	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6443	10.[012]*)
6444	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6445	10.*)
6446	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6447      esac
6448    ;;
6449  esac
6450    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6451      _lt_dar_single_mod='$single_module'
6452    fi
6453    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6454      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6455    else
6456      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6457    fi
6458    if test "$DSYMUTIL" != ":"; then
6459      _lt_dsymutil='~$DSYMUTIL $lib || :'
6460    else
6461      _lt_dsymutil=
6462    fi
6463    ;;
6464  esac
6465
6466ac_ext=c
6467ac_cpp='$CPP $CPPFLAGS'
6468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6470ac_compiler_gnu=$ac_cv_c_compiler_gnu
6471{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6472$as_echo_n "checking how to run the C preprocessor... " >&6; }
6473# On Suns, sometimes $CPP names a directory.
6474if test -n "$CPP" && test -d "$CPP"; then
6475  CPP=
6476fi
6477if test -z "$CPP"; then
6478  if test "${ac_cv_prog_CPP+set}" = set; then
6479  $as_echo_n "(cached) " >&6
6480else
6481      # Double quotes because CPP needs to be expanded
6482    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6483    do
6484      ac_preproc_ok=false
6485for ac_c_preproc_warn_flag in '' yes
6486do
6487  # Use a header file that comes with gcc, so configuring glibc
6488  # with a fresh cross-compiler works.
6489  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6490  # <limits.h> exists even on freestanding compilers.
6491  # On the NeXT, cc -E runs the code through the compiler's parser,
6492  # not just through cpp. "Syntax error" is here to catch this case.
6493  cat >conftest.$ac_ext <<_ACEOF
6494/* confdefs.h.  */
6495_ACEOF
6496cat confdefs.h >>conftest.$ac_ext
6497cat >>conftest.$ac_ext <<_ACEOF
6498/* end confdefs.h.  */
6499#ifdef __STDC__
6500# include <limits.h>
6501#else
6502# include <assert.h>
6503#endif
6504		     Syntax error
6505_ACEOF
6506if { (ac_try="$ac_cpp conftest.$ac_ext"
6507case "(($ac_try" in
6508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509  *) ac_try_echo=$ac_try;;
6510esac
6511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6512$as_echo "$ac_try_echo") >&5
6513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6514  ac_status=$?
6515  grep -v '^ *+' conftest.er1 >conftest.err
6516  rm -f conftest.er1
6517  cat conftest.err >&5
6518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); } >/dev/null && {
6520	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6521	 test ! -s conftest.err
6522       }; then
6523  :
6524else
6525  $as_echo "$as_me: failed program was:" >&5
6526sed 's/^/| /' conftest.$ac_ext >&5
6527
6528  # Broken: fails on valid input.
6529continue
6530fi
6531
6532rm -f conftest.err conftest.$ac_ext
6533
6534  # OK, works on sane cases.  Now check whether nonexistent headers
6535  # can be detected and how.
6536  cat >conftest.$ac_ext <<_ACEOF
6537/* confdefs.h.  */
6538_ACEOF
6539cat confdefs.h >>conftest.$ac_ext
6540cat >>conftest.$ac_ext <<_ACEOF
6541/* end confdefs.h.  */
6542#include <ac_nonexistent.h>
6543_ACEOF
6544if { (ac_try="$ac_cpp conftest.$ac_ext"
6545case "(($ac_try" in
6546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547  *) ac_try_echo=$ac_try;;
6548esac
6549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6550$as_echo "$ac_try_echo") >&5
6551  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6552  ac_status=$?
6553  grep -v '^ *+' conftest.er1 >conftest.err
6554  rm -f conftest.er1
6555  cat conftest.err >&5
6556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557  (exit $ac_status); } >/dev/null && {
6558	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6559	 test ! -s conftest.err
6560       }; then
6561  # Broken: success on invalid input.
6562continue
6563else
6564  $as_echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567  # Passes both tests.
6568ac_preproc_ok=:
6569break
6570fi
6571
6572rm -f conftest.err conftest.$ac_ext
6573
6574done
6575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6576rm -f conftest.err conftest.$ac_ext
6577if $ac_preproc_ok; then
6578  break
6579fi
6580
6581    done
6582    ac_cv_prog_CPP=$CPP
6583
6584fi
6585  CPP=$ac_cv_prog_CPP
6586else
6587  ac_cv_prog_CPP=$CPP
6588fi
6589{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6590$as_echo "$CPP" >&6; }
6591ac_preproc_ok=false
6592for ac_c_preproc_warn_flag in '' yes
6593do
6594  # Use a header file that comes with gcc, so configuring glibc
6595  # with a fresh cross-compiler works.
6596  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6597  # <limits.h> exists even on freestanding compilers.
6598  # On the NeXT, cc -E runs the code through the compiler's parser,
6599  # not just through cpp. "Syntax error" is here to catch this case.
6600  cat >conftest.$ac_ext <<_ACEOF
6601/* confdefs.h.  */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h.  */
6606#ifdef __STDC__
6607# include <limits.h>
6608#else
6609# include <assert.h>
6610#endif
6611		     Syntax error
6612_ACEOF
6613if { (ac_try="$ac_cpp conftest.$ac_ext"
6614case "(($ac_try" in
6615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616  *) ac_try_echo=$ac_try;;
6617esac
6618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6619$as_echo "$ac_try_echo") >&5
6620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6621  ac_status=$?
6622  grep -v '^ *+' conftest.er1 >conftest.err
6623  rm -f conftest.er1
6624  cat conftest.err >&5
6625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); } >/dev/null && {
6627	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6628	 test ! -s conftest.err
6629       }; then
6630  :
6631else
6632  $as_echo "$as_me: failed program was:" >&5
6633sed 's/^/| /' conftest.$ac_ext >&5
6634
6635  # Broken: fails on valid input.
6636continue
6637fi
6638
6639rm -f conftest.err conftest.$ac_ext
6640
6641  # OK, works on sane cases.  Now check whether nonexistent headers
6642  # can be detected and how.
6643  cat >conftest.$ac_ext <<_ACEOF
6644/* confdefs.h.  */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
6648/* end confdefs.h.  */
6649#include <ac_nonexistent.h>
6650_ACEOF
6651if { (ac_try="$ac_cpp conftest.$ac_ext"
6652case "(($ac_try" in
6653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654  *) ac_try_echo=$ac_try;;
6655esac
6656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6657$as_echo "$ac_try_echo") >&5
6658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6659  ac_status=$?
6660  grep -v '^ *+' conftest.er1 >conftest.err
6661  rm -f conftest.er1
6662  cat conftest.err >&5
6663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); } >/dev/null && {
6665	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6666	 test ! -s conftest.err
6667       }; then
6668  # Broken: success on invalid input.
6669continue
6670else
6671  $as_echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674  # Passes both tests.
6675ac_preproc_ok=:
6676break
6677fi
6678
6679rm -f conftest.err conftest.$ac_ext
6680
6681done
6682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6683rm -f conftest.err conftest.$ac_ext
6684if $ac_preproc_ok; then
6685  :
6686else
6687  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6689{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6690See \`config.log' for more details." >&5
6691$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6692See \`config.log' for more details." >&2;}
6693   { (exit 1); exit 1; }; }; }
6694fi
6695
6696ac_ext=c
6697ac_cpp='$CPP $CPPFLAGS'
6698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702
6703{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6704$as_echo_n "checking for ANSI C header files... " >&6; }
6705if test "${ac_cv_header_stdc+set}" = set; then
6706  $as_echo_n "(cached) " >&6
6707else
6708  cat >conftest.$ac_ext <<_ACEOF
6709/* confdefs.h.  */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h.  */
6714#include <stdlib.h>
6715#include <stdarg.h>
6716#include <string.h>
6717#include <float.h>
6718
6719int
6720main ()
6721{
6722
6723  ;
6724  return 0;
6725}
6726_ACEOF
6727rm -f conftest.$ac_objext
6728if { (ac_try="$ac_compile"
6729case "(($ac_try" in
6730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731  *) ac_try_echo=$ac_try;;
6732esac
6733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6734$as_echo "$ac_try_echo") >&5
6735  (eval "$ac_compile") 2>conftest.er1
6736  ac_status=$?
6737  grep -v '^ *+' conftest.er1 >conftest.err
6738  rm -f conftest.er1
6739  cat conftest.err >&5
6740  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741  (exit $ac_status); } && {
6742	 test -z "$ac_c_werror_flag" ||
6743	 test ! -s conftest.err
6744       } && test -s conftest.$ac_objext; then
6745  ac_cv_header_stdc=yes
6746else
6747  $as_echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750	ac_cv_header_stdc=no
6751fi
6752
6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754
6755if test $ac_cv_header_stdc = yes; then
6756  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6757  cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h.  */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h.  */
6763#include <string.h>
6764
6765_ACEOF
6766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767  $EGREP "memchr" >/dev/null 2>&1; then
6768  :
6769else
6770  ac_cv_header_stdc=no
6771fi
6772rm -f conftest*
6773
6774fi
6775
6776if test $ac_cv_header_stdc = yes; then
6777  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6778  cat >conftest.$ac_ext <<_ACEOF
6779/* confdefs.h.  */
6780_ACEOF
6781cat confdefs.h >>conftest.$ac_ext
6782cat >>conftest.$ac_ext <<_ACEOF
6783/* end confdefs.h.  */
6784#include <stdlib.h>
6785
6786_ACEOF
6787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788  $EGREP "free" >/dev/null 2>&1; then
6789  :
6790else
6791  ac_cv_header_stdc=no
6792fi
6793rm -f conftest*
6794
6795fi
6796
6797if test $ac_cv_header_stdc = yes; then
6798  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6799  if test "$cross_compiling" = yes; then
6800  :
6801else
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808#include <ctype.h>
6809#include <stdlib.h>
6810#if ((' ' & 0x0FF) == 0x020)
6811# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6812# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6813#else
6814# define ISLOWER(c) \
6815		   (('a' <= (c) && (c) <= 'i') \
6816		     || ('j' <= (c) && (c) <= 'r') \
6817		     || ('s' <= (c) && (c) <= 'z'))
6818# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6819#endif
6820
6821#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6822int
6823main ()
6824{
6825  int i;
6826  for (i = 0; i < 256; i++)
6827    if (XOR (islower (i), ISLOWER (i))
6828	|| toupper (i) != TOUPPER (i))
6829      return 2;
6830  return 0;
6831}
6832_ACEOF
6833rm -f conftest$ac_exeext
6834if { (ac_try="$ac_link"
6835case "(($ac_try" in
6836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837  *) ac_try_echo=$ac_try;;
6838esac
6839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840$as_echo "$ac_try_echo") >&5
6841  (eval "$ac_link") 2>&5
6842  ac_status=$?
6843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6845  { (case "(($ac_try" in
6846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847  *) ac_try_echo=$ac_try;;
6848esac
6849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850$as_echo "$ac_try_echo") >&5
6851  (eval "$ac_try") 2>&5
6852  ac_status=$?
6853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854  (exit $ac_status); }; }; then
6855  :
6856else
6857  $as_echo "$as_me: program exited with status $ac_status" >&5
6858$as_echo "$as_me: failed program was:" >&5
6859sed 's/^/| /' conftest.$ac_ext >&5
6860
6861( exit $ac_status )
6862ac_cv_header_stdc=no
6863fi
6864rm -rf conftest.dSYM
6865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6866fi
6867
6868
6869fi
6870fi
6871{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6872$as_echo "$ac_cv_header_stdc" >&6; }
6873if test $ac_cv_header_stdc = yes; then
6874
6875cat >>confdefs.h <<\_ACEOF
6876#define STDC_HEADERS 1
6877_ACEOF
6878
6879fi
6880
6881# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6892		  inttypes.h stdint.h unistd.h
6893do
6894as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6895{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6896$as_echo_n "checking for $ac_header... " >&6; }
6897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6898  $as_echo_n "(cached) " >&6
6899else
6900  cat >conftest.$ac_ext <<_ACEOF
6901/* confdefs.h.  */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
6905/* end confdefs.h.  */
6906$ac_includes_default
6907
6908#include <$ac_header>
6909_ACEOF
6910rm -f conftest.$ac_objext
6911if { (ac_try="$ac_compile"
6912case "(($ac_try" in
6913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914  *) ac_try_echo=$ac_try;;
6915esac
6916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6917$as_echo "$ac_try_echo") >&5
6918  (eval "$ac_compile") 2>conftest.er1
6919  ac_status=$?
6920  grep -v '^ *+' conftest.er1 >conftest.err
6921  rm -f conftest.er1
6922  cat conftest.err >&5
6923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); } && {
6925	 test -z "$ac_c_werror_flag" ||
6926	 test ! -s conftest.err
6927       } && test -s conftest.$ac_objext; then
6928  eval "$as_ac_Header=yes"
6929else
6930  $as_echo "$as_me: failed program was:" >&5
6931sed 's/^/| /' conftest.$ac_ext >&5
6932
6933	eval "$as_ac_Header=no"
6934fi
6935
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937fi
6938ac_res=`eval 'as_val=${'$as_ac_Header'}
6939		 $as_echo "$as_val"'`
6940	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6941$as_echo "$ac_res" >&6; }
6942as_val=`eval 'as_val=${'$as_ac_Header'}
6943		 $as_echo "$as_val"'`
6944   if test "x$as_val" = x""yes; then
6945  cat >>confdefs.h <<_ACEOF
6946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6947_ACEOF
6948
6949fi
6950
6951done
6952
6953
6954
6955for ac_header in dlfcn.h
6956do
6957as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6959$as_echo_n "checking for $ac_header... " >&6; }
6960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6961  $as_echo_n "(cached) " >&6
6962else
6963  cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h.  */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h.  */
6969$ac_includes_default
6970
6971#include <$ac_header>
6972_ACEOF
6973rm -f conftest.$ac_objext
6974if { (ac_try="$ac_compile"
6975case "(($ac_try" in
6976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977  *) ac_try_echo=$ac_try;;
6978esac
6979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980$as_echo "$ac_try_echo") >&5
6981  (eval "$ac_compile") 2>conftest.er1
6982  ac_status=$?
6983  grep -v '^ *+' conftest.er1 >conftest.err
6984  rm -f conftest.er1
6985  cat conftest.err >&5
6986  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987  (exit $ac_status); } && {
6988	 test -z "$ac_c_werror_flag" ||
6989	 test ! -s conftest.err
6990       } && test -s conftest.$ac_objext; then
6991  eval "$as_ac_Header=yes"
6992else
6993  $as_echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996	eval "$as_ac_Header=no"
6997fi
6998
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000fi
7001ac_res=`eval 'as_val=${'$as_ac_Header'}
7002		 $as_echo "$as_val"'`
7003	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7004$as_echo "$ac_res" >&6; }
7005as_val=`eval 'as_val=${'$as_ac_Header'}
7006		 $as_echo "$as_val"'`
7007   if test "x$as_val" = x""yes; then
7008  cat >>confdefs.h <<_ACEOF
7009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7010_ACEOF
7011
7012fi
7013
7014done
7015
7016
7017
7018# Set options
7019
7020
7021
7022        enable_dlopen=no
7023
7024
7025  enable_win32_dll=no
7026
7027
7028            # Check whether --enable-shared was given.
7029if test "${enable_shared+set}" = set; then
7030  enableval=$enable_shared; p=${PACKAGE-default}
7031    case $enableval in
7032    yes) enable_shared=yes ;;
7033    no) enable_shared=no ;;
7034    *)
7035      enable_shared=no
7036      # Look at the argument we got.  We use all the common list separators.
7037      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7038      for pkg in $enableval; do
7039	IFS="$lt_save_ifs"
7040	if test "X$pkg" = "X$p"; then
7041	  enable_shared=yes
7042	fi
7043      done
7044      IFS="$lt_save_ifs"
7045      ;;
7046    esac
7047else
7048  enable_shared=yes
7049fi
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061# Check whether --with-pic was given.
7062if test "${with_pic+set}" = set; then
7063  withval=$with_pic; pic_mode="$withval"
7064else
7065  pic_mode=default
7066fi
7067
7068
7069test -z "$pic_mode" && pic_mode=default
7070
7071
7072
7073
7074
7075
7076
7077  # Check whether --enable-fast-install was given.
7078if test "${enable_fast_install+set}" = set; then
7079  enableval=$enable_fast_install; p=${PACKAGE-default}
7080    case $enableval in
7081    yes) enable_fast_install=yes ;;
7082    no) enable_fast_install=no ;;
7083    *)
7084      enable_fast_install=no
7085      # Look at the argument we got.  We use all the common list separators.
7086      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7087      for pkg in $enableval; do
7088	IFS="$lt_save_ifs"
7089	if test "X$pkg" = "X$p"; then
7090	  enable_fast_install=yes
7091	fi
7092      done
7093      IFS="$lt_save_ifs"
7094      ;;
7095    esac
7096else
7097  enable_fast_install=yes
7098fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110# This can be used to rebuild libtool when needed
7111LIBTOOL_DEPS="$ltmain"
7112
7113# Always use our own libtool.
7114LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140test -z "$LN_S" && LN_S="ln -s"
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155if test -n "${ZSH_VERSION+set}" ; then
7156   setopt NO_GLOB_SUBST
7157fi
7158
7159{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7160$as_echo_n "checking for objdir... " >&6; }
7161if test "${lt_cv_objdir+set}" = set; then
7162  $as_echo_n "(cached) " >&6
7163else
7164  rm -f .libs 2>/dev/null
7165mkdir .libs 2>/dev/null
7166if test -d .libs; then
7167  lt_cv_objdir=.libs
7168else
7169  # MS-DOS does not allow filenames that begin with a dot.
7170  lt_cv_objdir=_libs
7171fi
7172rmdir .libs 2>/dev/null
7173fi
7174{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7175$as_echo "$lt_cv_objdir" >&6; }
7176objdir=$lt_cv_objdir
7177
7178
7179
7180
7181
7182cat >>confdefs.h <<_ACEOF
7183#define LT_OBJDIR "$lt_cv_objdir/"
7184_ACEOF
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202case $host_os in
7203aix3*)
7204  # AIX sometimes has problems with the GCC collect2 program.  For some
7205  # reason, if we set the COLLECT_NAMES environment variable, the problems
7206  # vanish in a puff of smoke.
7207  if test "X${COLLECT_NAMES+set}" != Xset; then
7208    COLLECT_NAMES=
7209    export COLLECT_NAMES
7210  fi
7211  ;;
7212esac
7213
7214# Sed substitution that helps us do robust quoting.  It backslashifies
7215# metacharacters that are still active within double-quoted strings.
7216sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7217
7218# Same as above, but do not quote variable references.
7219double_quote_subst='s/\(["`\\]\)/\\\1/g'
7220
7221# Sed substitution to delay expansion of an escaped shell variable in a
7222# double_quote_subst'ed string.
7223delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7224
7225# Sed substitution to delay expansion of an escaped single quote.
7226delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7227
7228# Sed substitution to avoid accidental globbing in evaled expressions
7229no_glob_subst='s/\*/\\\*/g'
7230
7231# Global variables:
7232ofile=libtool
7233can_build_shared=yes
7234
7235# All known linkers require a `.a' archive for static linking (except MSVC,
7236# which needs '.lib').
7237libext=a
7238
7239with_gnu_ld="$lt_cv_prog_gnu_ld"
7240
7241old_CC="$CC"
7242old_CFLAGS="$CFLAGS"
7243
7244# Set sane defaults for various variables
7245test -z "$CC" && CC=cc
7246test -z "$LTCC" && LTCC=$CC
7247test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7248test -z "$LD" && LD=ld
7249test -z "$ac_objext" && ac_objext=o
7250
7251for cc_temp in $compiler""; do
7252  case $cc_temp in
7253    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7254    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7255    \-*) ;;
7256    *) break;;
7257  esac
7258done
7259cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7260
7261
7262# Only perform the check for file, if the check method requires it
7263test -z "$MAGIC_CMD" && MAGIC_CMD=file
7264case $deplibs_check_method in
7265file_magic*)
7266  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7267    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7268$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7269if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7270  $as_echo_n "(cached) " >&6
7271else
7272  case $MAGIC_CMD in
7273[\\/*] |  ?:[\\/]*)
7274  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7275  ;;
7276*)
7277  lt_save_MAGIC_CMD="$MAGIC_CMD"
7278  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7279  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7280  for ac_dir in $ac_dummy; do
7281    IFS="$lt_save_ifs"
7282    test -z "$ac_dir" && ac_dir=.
7283    if test -f $ac_dir/${ac_tool_prefix}file; then
7284      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7285      if test -n "$file_magic_test_file"; then
7286	case $deplibs_check_method in
7287	"file_magic "*)
7288	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7289	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7290	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7291	    $EGREP "$file_magic_regex" > /dev/null; then
7292	    :
7293	  else
7294	    cat <<_LT_EOF 1>&2
7295
7296*** Warning: the command libtool uses to detect shared libraries,
7297*** $file_magic_cmd, produces output that libtool cannot recognize.
7298*** The result is that libtool may fail to recognize shared libraries
7299*** as such.  This will affect the creation of libtool libraries that
7300*** depend on shared libraries, but programs linked with such libtool
7301*** libraries will work regardless of this problem.  Nevertheless, you
7302*** may want to report the problem to your system manager and/or to
7303*** bug-libtool@gnu.org
7304
7305_LT_EOF
7306	  fi ;;
7307	esac
7308      fi
7309      break
7310    fi
7311  done
7312  IFS="$lt_save_ifs"
7313  MAGIC_CMD="$lt_save_MAGIC_CMD"
7314  ;;
7315esac
7316fi
7317
7318MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7319if test -n "$MAGIC_CMD"; then
7320  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7321$as_echo "$MAGIC_CMD" >&6; }
7322else
7323  { $as_echo "$as_me:$LINENO: result: no" >&5
7324$as_echo "no" >&6; }
7325fi
7326
7327
7328
7329
7330
7331if test -z "$lt_cv_path_MAGIC_CMD"; then
7332  if test -n "$ac_tool_prefix"; then
7333    { $as_echo "$as_me:$LINENO: checking for file" >&5
7334$as_echo_n "checking for file... " >&6; }
7335if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7336  $as_echo_n "(cached) " >&6
7337else
7338  case $MAGIC_CMD in
7339[\\/*] |  ?:[\\/]*)
7340  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7341  ;;
7342*)
7343  lt_save_MAGIC_CMD="$MAGIC_CMD"
7344  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7345  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7346  for ac_dir in $ac_dummy; do
7347    IFS="$lt_save_ifs"
7348    test -z "$ac_dir" && ac_dir=.
7349    if test -f $ac_dir/file; then
7350      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7351      if test -n "$file_magic_test_file"; then
7352	case $deplibs_check_method in
7353	"file_magic "*)
7354	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7355	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7356	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7357	    $EGREP "$file_magic_regex" > /dev/null; then
7358	    :
7359	  else
7360	    cat <<_LT_EOF 1>&2
7361
7362*** Warning: the command libtool uses to detect shared libraries,
7363*** $file_magic_cmd, produces output that libtool cannot recognize.
7364*** The result is that libtool may fail to recognize shared libraries
7365*** as such.  This will affect the creation of libtool libraries that
7366*** depend on shared libraries, but programs linked with such libtool
7367*** libraries will work regardless of this problem.  Nevertheless, you
7368*** may want to report the problem to your system manager and/or to
7369*** bug-libtool@gnu.org
7370
7371_LT_EOF
7372	  fi ;;
7373	esac
7374      fi
7375      break
7376    fi
7377  done
7378  IFS="$lt_save_ifs"
7379  MAGIC_CMD="$lt_save_MAGIC_CMD"
7380  ;;
7381esac
7382fi
7383
7384MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7385if test -n "$MAGIC_CMD"; then
7386  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7387$as_echo "$MAGIC_CMD" >&6; }
7388else
7389  { $as_echo "$as_me:$LINENO: result: no" >&5
7390$as_echo "no" >&6; }
7391fi
7392
7393
7394  else
7395    MAGIC_CMD=:
7396  fi
7397fi
7398
7399  fi
7400  ;;
7401esac
7402
7403# Use C for the default configuration in the libtool script
7404
7405lt_save_CC="$CC"
7406ac_ext=c
7407ac_cpp='$CPP $CPPFLAGS'
7408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411
7412
7413# Source file extension for C test sources.
7414ac_ext=c
7415
7416# Object file extension for compiled C test sources.
7417objext=o
7418objext=$objext
7419
7420# Code to be used in simple compile tests
7421lt_simple_compile_test_code="int some_variable = 0;"
7422
7423# Code to be used in simple link tests
7424lt_simple_link_test_code='int main(){return(0);}'
7425
7426
7427
7428
7429
7430
7431
7432# If no C compiler was specified, use CC.
7433LTCC=${LTCC-"$CC"}
7434
7435# If no C compiler flags were specified, use CFLAGS.
7436LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7437
7438# Allow CC to be a program name with arguments.
7439compiler=$CC
7440
7441# Save the default compiler, since it gets overwritten when the other
7442# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7443compiler_DEFAULT=$CC
7444
7445# save warnings/boilerplate of simple test code
7446ac_outfile=conftest.$ac_objext
7447echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7448eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449_lt_compiler_boilerplate=`cat conftest.err`
7450$RM conftest*
7451
7452ac_outfile=conftest.$ac_objext
7453echo "$lt_simple_link_test_code" >conftest.$ac_ext
7454eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7455_lt_linker_boilerplate=`cat conftest.err`
7456$RM -r conftest*
7457
7458
7459if test -n "$compiler"; then
7460
7461lt_prog_compiler_no_builtin_flag=
7462
7463if test "$GCC" = yes; then
7464  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7465
7466  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7467$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7468if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7469  $as_echo_n "(cached) " >&6
7470else
7471  lt_cv_prog_compiler_rtti_exceptions=no
7472   ac_outfile=conftest.$ac_objext
7473   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7474   lt_compiler_flag="-fno-rtti -fno-exceptions"
7475   # Insert the option either (1) after the last *FLAGS variable, or
7476   # (2) before a word containing "conftest.", or (3) at the end.
7477   # Note that $ac_compile itself does not contain backslashes and begins
7478   # with a dollar sign (not a hyphen), so the echo should work correctly.
7479   # The option is referenced via a variable to avoid confusing sed.
7480   lt_compile=`echo "$ac_compile" | $SED \
7481   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7483   -e 's:$: $lt_compiler_flag:'`
7484   (eval echo "\"\$as_me:7484: $lt_compile\"" >&5)
7485   (eval "$lt_compile" 2>conftest.err)
7486   ac_status=$?
7487   cat conftest.err >&5
7488   echo "$as_me:7488: \$? = $ac_status" >&5
7489   if (exit $ac_status) && test -s "$ac_outfile"; then
7490     # The compiler can only warn and ignore the option if not recognized
7491     # So say no if there are warnings other than the usual output.
7492     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7493     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7494     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7495       lt_cv_prog_compiler_rtti_exceptions=yes
7496     fi
7497   fi
7498   $RM conftest*
7499
7500fi
7501{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7502$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7503
7504if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7505    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7506else
7507    :
7508fi
7509
7510fi
7511
7512
7513
7514
7515
7516
7517  lt_prog_compiler_wl=
7518lt_prog_compiler_pic=
7519lt_prog_compiler_static=
7520
7521{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7522$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7523
7524  if test "$GCC" = yes; then
7525    lt_prog_compiler_wl='-Wl,'
7526    lt_prog_compiler_static='-static'
7527
7528    case $host_os in
7529      aix*)
7530      # All AIX code is PIC.
7531      if test "$host_cpu" = ia64; then
7532	# AIX 5 now supports IA64 processor
7533	lt_prog_compiler_static='-Bstatic'
7534      fi
7535      ;;
7536
7537    amigaos*)
7538      case $host_cpu in
7539      powerpc)
7540            # see comment about AmigaOS4 .so support
7541            lt_prog_compiler_pic='-fPIC'
7542        ;;
7543      m68k)
7544            # FIXME: we need at least 68020 code to build shared libraries, but
7545            # adding the `-m68020' flag to GCC prevents building anything better,
7546            # like `-m68040'.
7547            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7548        ;;
7549      esac
7550      ;;
7551
7552    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7553      # PIC is the default for these OSes.
7554      ;;
7555
7556    mingw* | cygwin* | pw32* | os2* | cegcc*)
7557      # This hack is so that the source file can tell whether it is being
7558      # built for inclusion in a dll (and should export symbols for example).
7559      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7560      # (--disable-auto-import) libraries
7561      lt_prog_compiler_pic='-DDLL_EXPORT'
7562      ;;
7563
7564    darwin* | rhapsody*)
7565      # PIC is the default on this platform
7566      # Common symbols not allowed in MH_DYLIB files
7567      lt_prog_compiler_pic='-fno-common'
7568      ;;
7569
7570    hpux*)
7571      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7572      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7573      # sets the default TLS model and affects inlining.
7574      case $host_cpu in
7575      hppa*64*)
7576	# +Z the default
7577	;;
7578      *)
7579	lt_prog_compiler_pic='-fPIC'
7580	;;
7581      esac
7582      ;;
7583
7584    interix[3-9]*)
7585      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7586      # Instead, we relocate shared libraries at runtime.
7587      ;;
7588
7589    msdosdjgpp*)
7590      # Just because we use GCC doesn't mean we suddenly get shared libraries
7591      # on systems that don't support them.
7592      lt_prog_compiler_can_build_shared=no
7593      enable_shared=no
7594      ;;
7595
7596    *nto* | *qnx*)
7597      # QNX uses GNU C++, but need to define -shared option too, otherwise
7598      # it will coredump.
7599      lt_prog_compiler_pic='-fPIC -shared'
7600      ;;
7601
7602    sysv4*MP*)
7603      if test -d /usr/nec; then
7604	lt_prog_compiler_pic=-Kconform_pic
7605      fi
7606      ;;
7607
7608    *)
7609      lt_prog_compiler_pic='-fPIC'
7610      ;;
7611    esac
7612  else
7613    # PORTME Check for flag to pass linker flags through the system compiler.
7614    case $host_os in
7615    aix*)
7616      lt_prog_compiler_wl='-Wl,'
7617      if test "$host_cpu" = ia64; then
7618	# AIX 5 now supports IA64 processor
7619	lt_prog_compiler_static='-Bstatic'
7620      else
7621	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7622      fi
7623      ;;
7624
7625    mingw* | cygwin* | pw32* | os2* | cegcc*)
7626      # This hack is so that the source file can tell whether it is being
7627      # built for inclusion in a dll (and should export symbols for example).
7628      lt_prog_compiler_pic='-DDLL_EXPORT'
7629      ;;
7630
7631    hpux9* | hpux10* | hpux11*)
7632      lt_prog_compiler_wl='-Wl,'
7633      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7634      # not for PA HP-UX.
7635      case $host_cpu in
7636      hppa*64*|ia64*)
7637	# +Z the default
7638	;;
7639      *)
7640	lt_prog_compiler_pic='+Z'
7641	;;
7642      esac
7643      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7644      lt_prog_compiler_static='${wl}-a ${wl}archive'
7645      ;;
7646
7647    irix5* | irix6* | nonstopux*)
7648      lt_prog_compiler_wl='-Wl,'
7649      # PIC (with -KPIC) is the default.
7650      lt_prog_compiler_static='-non_shared'
7651      ;;
7652
7653    linux* | k*bsd*-gnu)
7654      case $cc_basename in
7655      # old Intel for x86_64 which still supported -KPIC.
7656      ecc*)
7657	lt_prog_compiler_wl='-Wl,'
7658	lt_prog_compiler_pic='-KPIC'
7659	lt_prog_compiler_static='-static'
7660        ;;
7661      # icc used to be incompatible with GCC.
7662      # ICC 10 doesn't accept -KPIC any more.
7663      icc* | ifort*)
7664	lt_prog_compiler_wl='-Wl,'
7665	lt_prog_compiler_pic='-fPIC'
7666	lt_prog_compiler_static='-static'
7667        ;;
7668      # Lahey Fortran 8.1.
7669      lf95*)
7670	lt_prog_compiler_wl='-Wl,'
7671	lt_prog_compiler_pic='--shared'
7672	lt_prog_compiler_static='--static'
7673	;;
7674      pgcc* | pgf77* | pgf90* | pgf95*)
7675        # Portland Group compilers (*not* the Pentium gcc compiler,
7676	# which looks to be a dead project)
7677	lt_prog_compiler_wl='-Wl,'
7678	lt_prog_compiler_pic='-fpic'
7679	lt_prog_compiler_static='-Bstatic'
7680        ;;
7681      ccc*)
7682        lt_prog_compiler_wl='-Wl,'
7683        # All Alpha code is PIC.
7684        lt_prog_compiler_static='-non_shared'
7685        ;;
7686      xl*)
7687	# IBM XL C 8.0/Fortran 10.1 on PPC
7688	lt_prog_compiler_wl='-Wl,'
7689	lt_prog_compiler_pic='-qpic'
7690	lt_prog_compiler_static='-qstaticlink'
7691	;;
7692      *)
7693	case `$CC -V 2>&1 | sed 5q` in
7694	*Sun\ C*)
7695	  # Sun C 5.9
7696	  lt_prog_compiler_pic='-KPIC'
7697	  lt_prog_compiler_static='-Bstatic'
7698	  lt_prog_compiler_wl='-Wl,'
7699	  ;;
7700	*Sun\ F*)
7701	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7702	  lt_prog_compiler_pic='-KPIC'
7703	  lt_prog_compiler_static='-Bstatic'
7704	  lt_prog_compiler_wl=''
7705	  ;;
7706	esac
7707	;;
7708      esac
7709      ;;
7710
7711    newsos6)
7712      lt_prog_compiler_pic='-KPIC'
7713      lt_prog_compiler_static='-Bstatic'
7714      ;;
7715
7716    *nto* | *qnx*)
7717      # QNX uses GNU C++, but need to define -shared option too, otherwise
7718      # it will coredump.
7719      lt_prog_compiler_pic='-fPIC -shared'
7720      ;;
7721
7722    osf3* | osf4* | osf5*)
7723      lt_prog_compiler_wl='-Wl,'
7724      # All OSF/1 code is PIC.
7725      lt_prog_compiler_static='-non_shared'
7726      ;;
7727
7728    rdos*)
7729      lt_prog_compiler_static='-non_shared'
7730      ;;
7731
7732    solaris*)
7733      lt_prog_compiler_pic='-KPIC'
7734      lt_prog_compiler_static='-Bstatic'
7735      case $cc_basename in
7736      f77* | f90* | f95*)
7737	lt_prog_compiler_wl='-Qoption ld ';;
7738      *)
7739	lt_prog_compiler_wl='-Wl,';;
7740      esac
7741      ;;
7742
7743    sunos4*)
7744      lt_prog_compiler_wl='-Qoption ld '
7745      lt_prog_compiler_pic='-PIC'
7746      lt_prog_compiler_static='-Bstatic'
7747      ;;
7748
7749    sysv4 | sysv4.2uw2* | sysv4.3*)
7750      lt_prog_compiler_wl='-Wl,'
7751      lt_prog_compiler_pic='-KPIC'
7752      lt_prog_compiler_static='-Bstatic'
7753      ;;
7754
7755    sysv4*MP*)
7756      if test -d /usr/nec ;then
7757	lt_prog_compiler_pic='-Kconform_pic'
7758	lt_prog_compiler_static='-Bstatic'
7759      fi
7760      ;;
7761
7762    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7763      lt_prog_compiler_wl='-Wl,'
7764      lt_prog_compiler_pic='-KPIC'
7765      lt_prog_compiler_static='-Bstatic'
7766      ;;
7767
7768    unicos*)
7769      lt_prog_compiler_wl='-Wl,'
7770      lt_prog_compiler_can_build_shared=no
7771      ;;
7772
7773    uts4*)
7774      lt_prog_compiler_pic='-pic'
7775      lt_prog_compiler_static='-Bstatic'
7776      ;;
7777
7778    *)
7779      lt_prog_compiler_can_build_shared=no
7780      ;;
7781    esac
7782  fi
7783
7784case $host_os in
7785  # For platforms which do not support PIC, -DPIC is meaningless:
7786  *djgpp*)
7787    lt_prog_compiler_pic=
7788    ;;
7789  *)
7790    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7791    ;;
7792esac
7793{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7794$as_echo "$lt_prog_compiler_pic" >&6; }
7795
7796
7797
7798
7799
7800
7801#
7802# Check to make sure the PIC flag actually works.
7803#
7804if test -n "$lt_prog_compiler_pic"; then
7805  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7806$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7807if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7808  $as_echo_n "(cached) " >&6
7809else
7810  lt_cv_prog_compiler_pic_works=no
7811   ac_outfile=conftest.$ac_objext
7812   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7813   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7814   # Insert the option either (1) after the last *FLAGS variable, or
7815   # (2) before a word containing "conftest.", or (3) at the end.
7816   # Note that $ac_compile itself does not contain backslashes and begins
7817   # with a dollar sign (not a hyphen), so the echo should work correctly.
7818   # The option is referenced via a variable to avoid confusing sed.
7819   lt_compile=`echo "$ac_compile" | $SED \
7820   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7821   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7822   -e 's:$: $lt_compiler_flag:'`
7823   (eval echo "\"\$as_me:7823: $lt_compile\"" >&5)
7824   (eval "$lt_compile" 2>conftest.err)
7825   ac_status=$?
7826   cat conftest.err >&5
7827   echo "$as_me:7827: \$? = $ac_status" >&5
7828   if (exit $ac_status) && test -s "$ac_outfile"; then
7829     # The compiler can only warn and ignore the option if not recognized
7830     # So say no if there are warnings other than the usual output.
7831     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7832     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7833     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7834       lt_cv_prog_compiler_pic_works=yes
7835     fi
7836   fi
7837   $RM conftest*
7838
7839fi
7840{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7841$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7842
7843if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7844    case $lt_prog_compiler_pic in
7845     "" | " "*) ;;
7846     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7847     esac
7848else
7849    lt_prog_compiler_pic=
7850     lt_prog_compiler_can_build_shared=no
7851fi
7852
7853fi
7854
7855
7856
7857
7858
7859
7860#
7861# Check to make sure the static flag actually works.
7862#
7863wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7864{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7865$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7866if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7867  $as_echo_n "(cached) " >&6
7868else
7869  lt_cv_prog_compiler_static_works=no
7870   save_LDFLAGS="$LDFLAGS"
7871   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7872   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7873   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7874     # The linker can only warn and ignore the option if not recognized
7875     # So say no if there are warnings
7876     if test -s conftest.err; then
7877       # Append any errors to the config.log.
7878       cat conftest.err 1>&5
7879       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7880       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7881       if diff conftest.exp conftest.er2 >/dev/null; then
7882         lt_cv_prog_compiler_static_works=yes
7883       fi
7884     else
7885       lt_cv_prog_compiler_static_works=yes
7886     fi
7887   fi
7888   $RM -r conftest*
7889   LDFLAGS="$save_LDFLAGS"
7890
7891fi
7892{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7893$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7894
7895if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7896    :
7897else
7898    lt_prog_compiler_static=
7899fi
7900
7901
7902
7903
7904
7905
7906
7907  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7909if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7910  $as_echo_n "(cached) " >&6
7911else
7912  lt_cv_prog_compiler_c_o=no
7913   $RM -r conftest 2>/dev/null
7914   mkdir conftest
7915   cd conftest
7916   mkdir out
7917   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7918
7919   lt_compiler_flag="-o out/conftest2.$ac_objext"
7920   # Insert the option either (1) after the last *FLAGS variable, or
7921   # (2) before a word containing "conftest.", or (3) at the end.
7922   # Note that $ac_compile itself does not contain backslashes and begins
7923   # with a dollar sign (not a hyphen), so the echo should work correctly.
7924   lt_compile=`echo "$ac_compile" | $SED \
7925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7927   -e 's:$: $lt_compiler_flag:'`
7928   (eval echo "\"\$as_me:7928: $lt_compile\"" >&5)
7929   (eval "$lt_compile" 2>out/conftest.err)
7930   ac_status=$?
7931   cat out/conftest.err >&5
7932   echo "$as_me:7932: \$? = $ac_status" >&5
7933   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7934   then
7935     # The compiler can only warn and ignore the option if not recognized
7936     # So say no if there are warnings
7937     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7938     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7939     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7940       lt_cv_prog_compiler_c_o=yes
7941     fi
7942   fi
7943   chmod u+w . 2>&5
7944   $RM conftest*
7945   # SGI C++ compiler will create directory out/ii_files/ for
7946   # template instantiation
7947   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7948   $RM out/* && rmdir out
7949   cd ..
7950   $RM -r conftest
7951   $RM conftest*
7952
7953fi
7954{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7955$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7956
7957
7958
7959
7960
7961
7962  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7964if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7965  $as_echo_n "(cached) " >&6
7966else
7967  lt_cv_prog_compiler_c_o=no
7968   $RM -r conftest 2>/dev/null
7969   mkdir conftest
7970   cd conftest
7971   mkdir out
7972   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7973
7974   lt_compiler_flag="-o out/conftest2.$ac_objext"
7975   # Insert the option either (1) after the last *FLAGS variable, or
7976   # (2) before a word containing "conftest.", or (3) at the end.
7977   # Note that $ac_compile itself does not contain backslashes and begins
7978   # with a dollar sign (not a hyphen), so the echo should work correctly.
7979   lt_compile=`echo "$ac_compile" | $SED \
7980   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982   -e 's:$: $lt_compiler_flag:'`
7983   (eval echo "\"\$as_me:7983: $lt_compile\"" >&5)
7984   (eval "$lt_compile" 2>out/conftest.err)
7985   ac_status=$?
7986   cat out/conftest.err >&5
7987   echo "$as_me:7987: \$? = $ac_status" >&5
7988   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7989   then
7990     # The compiler can only warn and ignore the option if not recognized
7991     # So say no if there are warnings
7992     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7993     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7994     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7995       lt_cv_prog_compiler_c_o=yes
7996     fi
7997   fi
7998   chmod u+w . 2>&5
7999   $RM conftest*
8000   # SGI C++ compiler will create directory out/ii_files/ for
8001   # template instantiation
8002   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8003   $RM out/* && rmdir out
8004   cd ..
8005   $RM -r conftest
8006   $RM conftest*
8007
8008fi
8009{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8010$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8011
8012
8013
8014
8015hard_links="nottested"
8016if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8017  # do not overwrite the value of need_locks provided by the user
8018  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8019$as_echo_n "checking if we can lock with hard links... " >&6; }
8020  hard_links=yes
8021  $RM conftest*
8022  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8023  touch conftest.a
8024  ln conftest.a conftest.b 2>&5 || hard_links=no
8025  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8026  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8027$as_echo "$hard_links" >&6; }
8028  if test "$hard_links" = no; then
8029    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8030$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8031    need_locks=warn
8032  fi
8033else
8034  need_locks=no
8035fi
8036
8037
8038
8039
8040
8041
8042  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8043$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8044
8045  runpath_var=
8046  allow_undefined_flag=
8047  always_export_symbols=no
8048  archive_cmds=
8049  archive_expsym_cmds=
8050  compiler_needs_object=no
8051  enable_shared_with_static_runtimes=no
8052  export_dynamic_flag_spec=
8053  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8054  hardcode_automatic=no
8055  hardcode_direct=no
8056  hardcode_direct_absolute=no
8057  hardcode_libdir_flag_spec=
8058  hardcode_libdir_flag_spec_ld=
8059  hardcode_libdir_separator=
8060  hardcode_minus_L=no
8061  hardcode_shlibpath_var=unsupported
8062  inherit_rpath=no
8063  link_all_deplibs=unknown
8064  module_cmds=
8065  module_expsym_cmds=
8066  old_archive_from_new_cmds=
8067  old_archive_from_expsyms_cmds=
8068  thread_safe_flag_spec=
8069  whole_archive_flag_spec=
8070  # include_expsyms should be a list of space-separated symbols to be *always*
8071  # included in the symbol list
8072  include_expsyms=
8073  # exclude_expsyms can be an extended regexp of symbols to exclude
8074  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076  # as well as any symbol that contains `d'.
8077  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8078  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079  # platforms (ab)use it in PIC code, but their linkers get confused if
8080  # the symbol is explicitly referenced.  Since portable code cannot
8081  # rely on this symbol name, it's probably fine to never include it in
8082  # preloaded symbol tables.
8083  # Exclude shared library initialization/finalization symbols.
8084  extract_expsyms_cmds=
8085
8086  case $host_os in
8087  cygwin* | mingw* | pw32* | cegcc*)
8088    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8089    # When not using gcc, we currently assume that we are using
8090    # Microsoft Visual C++.
8091    if test "$GCC" != yes; then
8092      with_gnu_ld=no
8093    fi
8094    ;;
8095  interix*)
8096    # we just hope/assume this is gcc and not c89 (= MSVC++)
8097    with_gnu_ld=yes
8098    ;;
8099  openbsd*)
8100    with_gnu_ld=no
8101    ;;
8102  esac
8103
8104  ld_shlibs=yes
8105  if test "$with_gnu_ld" = yes; then
8106    # If archive_cmds runs LD, not CC, wlarc should be empty
8107    wlarc='${wl}'
8108
8109    # Set some defaults for GNU ld with shared library support. These
8110    # are reset later if shared libraries are not supported. Putting them
8111    # here allows them to be overridden if necessary.
8112    runpath_var=LD_RUN_PATH
8113    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8114    export_dynamic_flag_spec='${wl}--export-dynamic'
8115    # ancient GNU ld didn't support --whole-archive et. al.
8116    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8117      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8118    else
8119      whole_archive_flag_spec=
8120    fi
8121    supports_anon_versioning=no
8122    case `$LD -v 2>&1` in
8123      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8124      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8125      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8126      *\ 2.11.*) ;; # other 2.11 versions
8127      *) supports_anon_versioning=yes ;;
8128    esac
8129
8130    # See if GNU ld supports shared libraries.
8131    case $host_os in
8132    aix[3-9]*)
8133      # On AIX/PPC, the GNU linker is very broken
8134      if test "$host_cpu" != ia64; then
8135	ld_shlibs=no
8136	cat <<_LT_EOF 1>&2
8137
8138*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8139*** to be unable to reliably create shared libraries on AIX.
8140*** Therefore, libtool is disabling shared libraries support.  If you
8141*** really care for shared libraries, you may want to modify your PATH
8142*** so that a non-GNU linker is found, and then restart.
8143
8144_LT_EOF
8145      fi
8146      ;;
8147
8148    amigaos*)
8149      case $host_cpu in
8150      powerpc)
8151            # see comment about AmigaOS4 .so support
8152            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153            archive_expsym_cmds=''
8154        ;;
8155      m68k)
8156            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)'
8157            hardcode_libdir_flag_spec='-L$libdir'
8158            hardcode_minus_L=yes
8159        ;;
8160      esac
8161      ;;
8162
8163    beos*)
8164      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8165	allow_undefined_flag=unsupported
8166	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8167	# support --undefined.  This deserves some investigation.  FIXME
8168	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8169      else
8170	ld_shlibs=no
8171      fi
8172      ;;
8173
8174    cygwin* | mingw* | pw32* | cegcc*)
8175      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8176      # as there is no search path for DLLs.
8177      hardcode_libdir_flag_spec='-L$libdir'
8178      allow_undefined_flag=unsupported
8179      always_export_symbols=no
8180      enable_shared_with_static_runtimes=yes
8181      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8182
8183      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8184        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8185	# If the export-symbols file already is a .def file (1st line
8186	# is EXPORTS), use it as is; otherwise, prepend...
8187	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8188	  cp $export_symbols $output_objdir/$soname.def;
8189	else
8190	  echo EXPORTS > $output_objdir/$soname.def;
8191	  cat $export_symbols >> $output_objdir/$soname.def;
8192	fi~
8193	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8194      else
8195	ld_shlibs=no
8196      fi
8197      ;;
8198
8199    interix[3-9]*)
8200      hardcode_direct=no
8201      hardcode_shlibpath_var=no
8202      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8203      export_dynamic_flag_spec='${wl}-E'
8204      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8205      # Instead, shared libraries are loaded at an image base (0x10000000 by
8206      # default) and relocated if they conflict, which is a slow very memory
8207      # consuming and fragmenting process.  To avoid this, we pick a random,
8208      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8209      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8210      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8211      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'
8212      ;;
8213
8214    gnu* | linux* | tpf* | k*bsd*-gnu)
8215      tmp_diet=no
8216      if test "$host_os" = linux-dietlibc; then
8217	case $cc_basename in
8218	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8219	esac
8220      fi
8221      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8222	 && test "$tmp_diet" = no
8223      then
8224	tmp_addflag=
8225	tmp_sharedflag='-shared'
8226	case $cc_basename,$host_cpu in
8227        pgcc*)				# Portland Group C compiler
8228	  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'
8229	  tmp_addflag=' $pic_flag'
8230	  ;;
8231	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8232	  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'
8233	  tmp_addflag=' $pic_flag -Mnomain' ;;
8234	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8235	  tmp_addflag=' -i_dynamic' ;;
8236	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8237	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8238	ifc* | ifort*)			# Intel Fortran compiler
8239	  tmp_addflag=' -nofor_main' ;;
8240	lf95*)				# Lahey Fortran 8.1
8241	  whole_archive_flag_spec=
8242	  tmp_sharedflag='--shared' ;;
8243	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8244	  tmp_sharedflag='-qmkshrobj'
8245	  tmp_addflag= ;;
8246	esac
8247	case `$CC -V 2>&1 | sed 5q` in
8248	*Sun\ C*)			# Sun C 5.9
8249	  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'
8250	  compiler_needs_object=yes
8251	  tmp_sharedflag='-G' ;;
8252	*Sun\ F*)			# Sun Fortran 8.3
8253	  tmp_sharedflag='-G' ;;
8254	esac
8255	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256
8257        if test "x$supports_anon_versioning" = xyes; then
8258          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8259	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8260	    echo "local: *; };" >> $output_objdir/$libname.ver~
8261	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8262        fi
8263
8264	case $cc_basename in
8265	xlf*)
8266	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8267	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8268	  hardcode_libdir_flag_spec=
8269	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8270	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8271	  if test "x$supports_anon_versioning" = xyes; then
8272	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8273	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8274	      echo "local: *; };" >> $output_objdir/$libname.ver~
8275	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8276	  fi
8277	  ;;
8278	esac
8279      else
8280        ld_shlibs=no
8281      fi
8282      ;;
8283
8284    netbsd*)
8285      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8286	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8287	wlarc=
8288      else
8289	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291      fi
8292      ;;
8293
8294    solaris*)
8295      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8296	ld_shlibs=no
8297	cat <<_LT_EOF 1>&2
8298
8299*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8300*** create shared libraries on Solaris systems.  Therefore, libtool
8301*** is disabling shared libraries support.  We urge you to upgrade GNU
8302*** binutils to release 2.9.1 or newer.  Another option is to modify
8303*** your PATH or compiler configuration so that the native linker is
8304*** used, and then restart.
8305
8306_LT_EOF
8307      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8308	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8310      else
8311	ld_shlibs=no
8312      fi
8313      ;;
8314
8315    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8316      case `$LD -v 2>&1` in
8317        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8318	ld_shlibs=no
8319	cat <<_LT_EOF 1>&2
8320
8321*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8322*** reliably create shared libraries on SCO systems.  Therefore, libtool
8323*** is disabling shared libraries support.  We urge you to upgrade GNU
8324*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8325*** your PATH or compiler configuration so that the native linker is
8326*** used, and then restart.
8327
8328_LT_EOF
8329	;;
8330	*)
8331	  # For security reasons, it is highly recommended that you always
8332	  # use absolute paths for naming shared libraries, and exclude the
8333	  # DT_RUNPATH tag from executables and libraries.  But doing so
8334	  # requires that you compile everything twice, which is a pain.
8335	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8336	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339	  else
8340	    ld_shlibs=no
8341	  fi
8342	;;
8343      esac
8344      ;;
8345
8346    sunos4*)
8347      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8348      wlarc=
8349      hardcode_direct=yes
8350      hardcode_shlibpath_var=no
8351      ;;
8352
8353    *)
8354      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8355	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357      else
8358	ld_shlibs=no
8359      fi
8360      ;;
8361    esac
8362
8363    if test "$ld_shlibs" = no; then
8364      runpath_var=
8365      hardcode_libdir_flag_spec=
8366      export_dynamic_flag_spec=
8367      whole_archive_flag_spec=
8368    fi
8369  else
8370    # PORTME fill in a description of your system's linker (not GNU ld)
8371    case $host_os in
8372    aix3*)
8373      allow_undefined_flag=unsupported
8374      always_export_symbols=yes
8375      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'
8376      # Note: this linker hardcodes the directories in LIBPATH if there
8377      # are no directories specified by -L.
8378      hardcode_minus_L=yes
8379      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8380	# Neither direct hardcoding nor static linking is supported with a
8381	# broken collect2.
8382	hardcode_direct=unsupported
8383      fi
8384      ;;
8385
8386    aix[4-9]*)
8387      if test "$host_cpu" = ia64; then
8388	# On IA64, the linker does run time linking by default, so we don't
8389	# have to do anything special.
8390	aix_use_runtimelinking=no
8391	exp_sym_flag='-Bexport'
8392	no_entry_flag=""
8393      else
8394	# If we're using GNU nm, then we don't want the "-C" option.
8395	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8396	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8397	  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'
8398	else
8399	  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'
8400	fi
8401	aix_use_runtimelinking=no
8402
8403	# Test if we are trying to use run time linking or normal
8404	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8405	# need to do runtime linking.
8406	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8407	  for ld_flag in $LDFLAGS; do
8408	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8409	    aix_use_runtimelinking=yes
8410	    break
8411	  fi
8412	  done
8413	  ;;
8414	esac
8415
8416	exp_sym_flag='-bexport'
8417	no_entry_flag='-bnoentry'
8418      fi
8419
8420      # When large executables or shared objects are built, AIX ld can
8421      # have problems creating the table of contents.  If linking a library
8422      # or program results in "error TOC overflow" add -mminimal-toc to
8423      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8424      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8425
8426      archive_cmds=''
8427      hardcode_direct=yes
8428      hardcode_direct_absolute=yes
8429      hardcode_libdir_separator=':'
8430      link_all_deplibs=yes
8431      file_list_spec='${wl}-f,'
8432
8433      if test "$GCC" = yes; then
8434	case $host_os in aix4.[012]|aix4.[012].*)
8435	# We only want to do this on AIX 4.2 and lower, the check
8436	# below for broken collect2 doesn't work under 4.3+
8437	  collect2name=`${CC} -print-prog-name=collect2`
8438	  if test -f "$collect2name" &&
8439	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8440	  then
8441	  # We have reworked collect2
8442	  :
8443	  else
8444	  # We have old collect2
8445	  hardcode_direct=unsupported
8446	  # It fails to find uninstalled libraries when the uninstalled
8447	  # path is not listed in the libpath.  Setting hardcode_minus_L
8448	  # to unsupported forces relinking
8449	  hardcode_minus_L=yes
8450	  hardcode_libdir_flag_spec='-L$libdir'
8451	  hardcode_libdir_separator=
8452	  fi
8453	  ;;
8454	esac
8455	shared_flag='-shared'
8456	if test "$aix_use_runtimelinking" = yes; then
8457	  shared_flag="$shared_flag "'${wl}-G'
8458	fi
8459      else
8460	# not using gcc
8461	if test "$host_cpu" = ia64; then
8462	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8463	# chokes on -Wl,-G. The following line is correct:
8464	  shared_flag='-G'
8465	else
8466	  if test "$aix_use_runtimelinking" = yes; then
8467	    shared_flag='${wl}-G'
8468	  else
8469	    shared_flag='${wl}-bM:SRE'
8470	  fi
8471	fi
8472      fi
8473
8474      export_dynamic_flag_spec='${wl}-bexpall'
8475      # It seems that -bexpall does not export symbols beginning with
8476      # underscore (_), so it is better to generate a list of symbols to export.
8477      always_export_symbols=yes
8478      if test "$aix_use_runtimelinking" = yes; then
8479	# Warning - without using the other runtime loading flags (-brtl),
8480	# -berok will link without error, but may produce a broken library.
8481	allow_undefined_flag='-berok'
8482        # Determine the default libpath from the value encoded in an
8483        # empty executable.
8484        cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h.  */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h.  */
8490
8491int
8492main ()
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (ac_try="$ac_link"
8501case "(($ac_try" in
8502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503  *) ac_try_echo=$ac_try;;
8504esac
8505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506$as_echo "$ac_try_echo") >&5
8507  (eval "$ac_link") 2>conftest.er1
8508  ac_status=$?
8509  grep -v '^ *+' conftest.er1 >conftest.err
8510  rm -f conftest.er1
8511  cat conftest.err >&5
8512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); } && {
8514	 test -z "$ac_c_werror_flag" ||
8515	 test ! -s conftest.err
8516       } && test -s conftest$ac_exeext && {
8517	 test "$cross_compiling" = yes ||
8518	 $as_test_x conftest$ac_exeext
8519       }; then
8520
8521lt_aix_libpath_sed='
8522    /Import File Strings/,/^$/ {
8523	/^0/ {
8524	    s/^0  *\(.*\)$/\1/
8525	    p
8526	}
8527    }'
8528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8529# Check for a 64-bit object if we didn't find anything.
8530if test -z "$aix_libpath"; then
8531  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8532fi
8533else
8534  $as_echo "$as_me: failed program was:" >&5
8535sed 's/^/| /' conftest.$ac_ext >&5
8536
8537
8538fi
8539
8540rm -rf conftest.dSYM
8541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542      conftest$ac_exeext conftest.$ac_ext
8543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8544
8545        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8546        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"
8547      else
8548	if test "$host_cpu" = ia64; then
8549	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8550	  allow_undefined_flag="-z nodefs"
8551	  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"
8552	else
8553	 # Determine the default libpath from the value encoded in an
8554	 # empty executable.
8555	 cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h.  */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h.  */
8561
8562int
8563main ()
8564{
8565
8566  ;
8567  return 0;
8568}
8569_ACEOF
8570rm -f conftest.$ac_objext conftest$ac_exeext
8571if { (ac_try="$ac_link"
8572case "(($ac_try" in
8573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574  *) ac_try_echo=$ac_try;;
8575esac
8576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8577$as_echo "$ac_try_echo") >&5
8578  (eval "$ac_link") 2>conftest.er1
8579  ac_status=$?
8580  grep -v '^ *+' conftest.er1 >conftest.err
8581  rm -f conftest.er1
8582  cat conftest.err >&5
8583  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584  (exit $ac_status); } && {
8585	 test -z "$ac_c_werror_flag" ||
8586	 test ! -s conftest.err
8587       } && test -s conftest$ac_exeext && {
8588	 test "$cross_compiling" = yes ||
8589	 $as_test_x conftest$ac_exeext
8590       }; then
8591
8592lt_aix_libpath_sed='
8593    /Import File Strings/,/^$/ {
8594	/^0/ {
8595	    s/^0  *\(.*\)$/\1/
8596	    p
8597	}
8598    }'
8599aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8600# Check for a 64-bit object if we didn't find anything.
8601if test -z "$aix_libpath"; then
8602  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8603fi
8604else
8605  $as_echo "$as_me: failed program was:" >&5
8606sed 's/^/| /' conftest.$ac_ext >&5
8607
8608
8609fi
8610
8611rm -rf conftest.dSYM
8612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8613      conftest$ac_exeext conftest.$ac_ext
8614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8615
8616	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8617	  # Warning - without using the other run time loading flags,
8618	  # -berok will link without error, but may produce a broken library.
8619	  no_undefined_flag=' ${wl}-bernotok'
8620	  allow_undefined_flag=' ${wl}-berok'
8621	  # Exported symbols can be pulled into shared objects from archives
8622	  whole_archive_flag_spec='$convenience'
8623	  archive_cmds_need_lc=yes
8624	  # This is similar to how AIX traditionally builds its shared libraries.
8625	  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'
8626	fi
8627      fi
8628      ;;
8629
8630    amigaos*)
8631      case $host_cpu in
8632      powerpc)
8633            # see comment about AmigaOS4 .so support
8634            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635            archive_expsym_cmds=''
8636        ;;
8637      m68k)
8638            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)'
8639            hardcode_libdir_flag_spec='-L$libdir'
8640            hardcode_minus_L=yes
8641        ;;
8642      esac
8643      ;;
8644
8645    bsdi[45]*)
8646      export_dynamic_flag_spec=-rdynamic
8647      ;;
8648
8649    cygwin* | mingw* | pw32* | cegcc*)
8650      # When not using gcc, we currently assume that we are using
8651      # Microsoft Visual C++.
8652      # hardcode_libdir_flag_spec is actually meaningless, as there is
8653      # no search path for DLLs.
8654      hardcode_libdir_flag_spec=' '
8655      allow_undefined_flag=unsupported
8656      # Tell ltmain to make .lib files, not .a files.
8657      libext=lib
8658      # Tell ltmain to make .dll files, not .so files.
8659      shrext_cmds=".dll"
8660      # FIXME: Setting linknames here is a bad hack.
8661      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8662      # The linker will automatically build a .lib file if we build a DLL.
8663      old_archive_from_new_cmds='true'
8664      # FIXME: Should let the user specify the lib program.
8665      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8666      fix_srcfile_path='`cygpath -w "$srcfile"`'
8667      enable_shared_with_static_runtimes=yes
8668      ;;
8669
8670    darwin* | rhapsody*)
8671
8672
8673  archive_cmds_need_lc=no
8674  hardcode_direct=no
8675  hardcode_automatic=yes
8676  hardcode_shlibpath_var=unsupported
8677  whole_archive_flag_spec=''
8678  link_all_deplibs=yes
8679  allow_undefined_flag="$_lt_dar_allow_undefined"
8680  case $cc_basename in
8681     ifort*) _lt_dar_can_shared=yes ;;
8682     *) _lt_dar_can_shared=$GCC ;;
8683  esac
8684  if test "$_lt_dar_can_shared" = "yes"; then
8685    output_verbose_link_cmd=echo
8686    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8687    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8688    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}"
8689    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}"
8690
8691  else
8692  ld_shlibs=no
8693  fi
8694
8695      ;;
8696
8697    dgux*)
8698      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699      hardcode_libdir_flag_spec='-L$libdir'
8700      hardcode_shlibpath_var=no
8701      ;;
8702
8703    freebsd1*)
8704      ld_shlibs=no
8705      ;;
8706
8707    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8708    # support.  Future versions do this automatically, but an explicit c++rt0.o
8709    # does not break anything, and helps significantly (at the cost of a little
8710    # extra space).
8711    freebsd2.2*)
8712      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8713      hardcode_libdir_flag_spec='-R$libdir'
8714      hardcode_direct=yes
8715      hardcode_shlibpath_var=no
8716      ;;
8717
8718    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8719    freebsd2*)
8720      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8721      hardcode_direct=yes
8722      hardcode_minus_L=yes
8723      hardcode_shlibpath_var=no
8724      ;;
8725
8726    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8727    freebsd* | dragonfly*)
8728      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8729      hardcode_libdir_flag_spec='-R$libdir'
8730      hardcode_direct=yes
8731      hardcode_shlibpath_var=no
8732      ;;
8733
8734    hpux9*)
8735      if test "$GCC" = yes; then
8736	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'
8737      else
8738	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'
8739      fi
8740      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8741      hardcode_libdir_separator=:
8742      hardcode_direct=yes
8743
8744      # hardcode_minus_L: Not really in the search PATH,
8745      # but as the default location of the library.
8746      hardcode_minus_L=yes
8747      export_dynamic_flag_spec='${wl}-E'
8748      ;;
8749
8750    hpux10*)
8751      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8752	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8753      else
8754	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8755      fi
8756      if test "$with_gnu_ld" = no; then
8757	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8758	hardcode_libdir_flag_spec_ld='+b $libdir'
8759	hardcode_libdir_separator=:
8760	hardcode_direct=yes
8761	hardcode_direct_absolute=yes
8762	export_dynamic_flag_spec='${wl}-E'
8763	# hardcode_minus_L: Not really in the search PATH,
8764	# but as the default location of the library.
8765	hardcode_minus_L=yes
8766      fi
8767      ;;
8768
8769    hpux11*)
8770      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8771	case $host_cpu in
8772	hppa*64*)
8773	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774	  ;;
8775	ia64*)
8776	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8777	  ;;
8778	*)
8779	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8780	  ;;
8781	esac
8782      else
8783	case $host_cpu in
8784	hppa*64*)
8785	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786	  ;;
8787	ia64*)
8788	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8789	  ;;
8790	*)
8791	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8792	  ;;
8793	esac
8794      fi
8795      if test "$with_gnu_ld" = no; then
8796	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8797	hardcode_libdir_separator=:
8798
8799	case $host_cpu in
8800	hppa*64*|ia64*)
8801	  hardcode_direct=no
8802	  hardcode_shlibpath_var=no
8803	  ;;
8804	*)
8805	  hardcode_direct=yes
8806	  hardcode_direct_absolute=yes
8807	  export_dynamic_flag_spec='${wl}-E'
8808
8809	  # hardcode_minus_L: Not really in the search PATH,
8810	  # but as the default location of the library.
8811	  hardcode_minus_L=yes
8812	  ;;
8813	esac
8814      fi
8815      ;;
8816
8817    irix5* | irix6* | nonstopux*)
8818      if test "$GCC" = yes; then
8819	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'
8820	# Try to use the -exported_symbol ld option, if it does not
8821	# work, assume that -exports_file does not work either and
8822	# implicitly export all symbols.
8823        save_LDFLAGS="$LDFLAGS"
8824        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8825        cat >conftest.$ac_ext <<_ACEOF
8826int foo(void) {}
8827_ACEOF
8828rm -f conftest.$ac_objext conftest$ac_exeext
8829if { (ac_try="$ac_link"
8830case "(($ac_try" in
8831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832  *) ac_try_echo=$ac_try;;
8833esac
8834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835$as_echo "$ac_try_echo") >&5
8836  (eval "$ac_link") 2>conftest.er1
8837  ac_status=$?
8838  grep -v '^ *+' conftest.er1 >conftest.err
8839  rm -f conftest.er1
8840  cat conftest.err >&5
8841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842  (exit $ac_status); } && {
8843	 test -z "$ac_c_werror_flag" ||
8844	 test ! -s conftest.err
8845       } && test -s conftest$ac_exeext && {
8846	 test "$cross_compiling" = yes ||
8847	 $as_test_x conftest$ac_exeext
8848       }; then
8849  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'
8850
8851else
8852  $as_echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
8854
8855
8856fi
8857
8858rm -rf conftest.dSYM
8859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860      conftest$ac_exeext conftest.$ac_ext
8861        LDFLAGS="$save_LDFLAGS"
8862      else
8863	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'
8864	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'
8865      fi
8866      archive_cmds_need_lc='no'
8867      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8868      hardcode_libdir_separator=:
8869      inherit_rpath=yes
8870      link_all_deplibs=yes
8871      ;;
8872
8873    netbsd*)
8874      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8875	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8876      else
8877	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8878      fi
8879      hardcode_libdir_flag_spec='-R$libdir'
8880      hardcode_direct=yes
8881      hardcode_shlibpath_var=no
8882      ;;
8883
8884    newsos6)
8885      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886      hardcode_direct=yes
8887      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888      hardcode_libdir_separator=:
8889      hardcode_shlibpath_var=no
8890      ;;
8891
8892    *nto* | *qnx*)
8893      ;;
8894
8895    openbsd*)
8896      if test -f /usr/libexec/ld.so; then
8897	hardcode_direct=yes
8898	hardcode_shlibpath_var=no
8899	hardcode_direct_absolute=yes
8900	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8901	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8902	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8903	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8904	  export_dynamic_flag_spec='${wl}-E'
8905	else
8906	  case $host_os in
8907	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8908	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8909	     hardcode_libdir_flag_spec='-R$libdir'
8910	     ;;
8911	   *)
8912	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8913	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8914	     ;;
8915	  esac
8916	fi
8917      else
8918	ld_shlibs=no
8919      fi
8920      ;;
8921
8922    os2*)
8923      hardcode_libdir_flag_spec='-L$libdir'
8924      hardcode_minus_L=yes
8925      allow_undefined_flag=unsupported
8926      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'
8927      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8928      ;;
8929
8930    osf3*)
8931      if test "$GCC" = yes; then
8932	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8933	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'
8934      else
8935	allow_undefined_flag=' -expect_unresolved \*'
8936	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'
8937      fi
8938      archive_cmds_need_lc='no'
8939      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940      hardcode_libdir_separator=:
8941      ;;
8942
8943    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8944      if test "$GCC" = yes; then
8945	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8946	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'
8947	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8948      else
8949	allow_undefined_flag=' -expect_unresolved \*'
8950	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'
8951	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~
8952	$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'
8953
8954	# Both c and cxx compiler support -rpath directly
8955	hardcode_libdir_flag_spec='-rpath $libdir'
8956      fi
8957      archive_cmds_need_lc='no'
8958      hardcode_libdir_separator=:
8959      ;;
8960
8961    solaris*)
8962      no_undefined_flag=' -z defs'
8963      if test "$GCC" = yes; then
8964	wlarc='${wl}'
8965	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8967	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8968      else
8969	case `$CC -V 2>&1` in
8970	*"Compilers 5.0"*)
8971	  wlarc=''
8972	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8974	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8975	  ;;
8976	*)
8977	  wlarc='${wl}'
8978	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8979	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8980	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8981	  ;;
8982	esac
8983      fi
8984      hardcode_libdir_flag_spec='-R$libdir'
8985      hardcode_shlibpath_var=no
8986      case $host_os in
8987      solaris2.[0-5] | solaris2.[0-5].*) ;;
8988      *)
8989	# The compiler driver will combine and reorder linker options,
8990	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8991	# but is careful enough not to reorder.
8992	# Supported since Solaris 2.6 (maybe 2.5.1?)
8993	if test "$GCC" = yes; then
8994	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8995	else
8996	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8997	fi
8998	;;
8999      esac
9000      link_all_deplibs=yes
9001      ;;
9002
9003    sunos4*)
9004      if test "x$host_vendor" = xsequent; then
9005	# Use $CC to link under sequent, because it throws in some extra .o
9006	# files that make .init and .fini sections work.
9007	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9008      else
9009	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9010      fi
9011      hardcode_libdir_flag_spec='-L$libdir'
9012      hardcode_direct=yes
9013      hardcode_minus_L=yes
9014      hardcode_shlibpath_var=no
9015      ;;
9016
9017    sysv4)
9018      case $host_vendor in
9019	sni)
9020	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021	  hardcode_direct=yes # is this really true???
9022	;;
9023	siemens)
9024	  ## LD is ld it makes a PLAMLIB
9025	  ## CC just makes a GrossModule.
9026	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9027	  reload_cmds='$CC -r -o $output$reload_objs'
9028	  hardcode_direct=no
9029        ;;
9030	motorola)
9031	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9033	;;
9034      esac
9035      runpath_var='LD_RUN_PATH'
9036      hardcode_shlibpath_var=no
9037      ;;
9038
9039    sysv4.3*)
9040      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041      hardcode_shlibpath_var=no
9042      export_dynamic_flag_spec='-Bexport'
9043      ;;
9044
9045    sysv4*MP*)
9046      if test -d /usr/nec; then
9047	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048	hardcode_shlibpath_var=no
9049	runpath_var=LD_RUN_PATH
9050	hardcode_runpath_var=yes
9051	ld_shlibs=yes
9052      fi
9053      ;;
9054
9055    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9056      no_undefined_flag='${wl}-z,text'
9057      archive_cmds_need_lc=no
9058      hardcode_shlibpath_var=no
9059      runpath_var='LD_RUN_PATH'
9060
9061      if test "$GCC" = yes; then
9062	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064      else
9065	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067      fi
9068      ;;
9069
9070    sysv5* | sco3.2v5* | sco5v6*)
9071      # Note: We can NOT use -z defs as we might desire, because we do not
9072      # link with -lc, and that would cause any symbols used from libc to
9073      # always be unresolved, which means just about no library would
9074      # ever link correctly.  If we're not using GNU ld we use -z text
9075      # though, which does catch some bad symbols but isn't as heavy-handed
9076      # as -z defs.
9077      no_undefined_flag='${wl}-z,text'
9078      allow_undefined_flag='${wl}-z,nodefs'
9079      archive_cmds_need_lc=no
9080      hardcode_shlibpath_var=no
9081      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9082      hardcode_libdir_separator=':'
9083      link_all_deplibs=yes
9084      export_dynamic_flag_spec='${wl}-Bexport'
9085      runpath_var='LD_RUN_PATH'
9086
9087      if test "$GCC" = yes; then
9088	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9090      else
9091	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093      fi
9094      ;;
9095
9096    uts4*)
9097      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098      hardcode_libdir_flag_spec='-L$libdir'
9099      hardcode_shlibpath_var=no
9100      ;;
9101
9102    *)
9103      ld_shlibs=no
9104      ;;
9105    esac
9106
9107    if test x$host_vendor = xsni; then
9108      case $host in
9109      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9110	export_dynamic_flag_spec='${wl}-Blargedynsym'
9111	;;
9112      esac
9113    fi
9114  fi
9115
9116{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9117$as_echo "$ld_shlibs" >&6; }
9118test "$ld_shlibs" = no && can_build_shared=no
9119
9120with_gnu_ld=$with_gnu_ld
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136#
9137# Do we need to explicitly link libc?
9138#
9139case "x$archive_cmds_need_lc" in
9140x|xyes)
9141  # Assume -lc should be added
9142  archive_cmds_need_lc=yes
9143
9144  if test "$enable_shared" = yes && test "$GCC" = yes; then
9145    case $archive_cmds in
9146    *'~'*)
9147      # FIXME: we may have to deal with multi-command sequences.
9148      ;;
9149    '$CC '*)
9150      # Test whether the compiler implicitly links with -lc since on some
9151      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9152      # to ld, don't add -lc before -lgcc.
9153      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9154$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9155      $RM conftest*
9156      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9157
9158      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159  (eval $ac_compile) 2>&5
9160  ac_status=$?
9161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162  (exit $ac_status); } 2>conftest.err; then
9163        soname=conftest
9164        lib=conftest
9165        libobjs=conftest.$ac_objext
9166        deplibs=
9167        wl=$lt_prog_compiler_wl
9168	pic_flag=$lt_prog_compiler_pic
9169        compiler_flags=-v
9170        linker_flags=-v
9171        verstring=
9172        output_objdir=.
9173        libname=conftest
9174        lt_save_allow_undefined_flag=$allow_undefined_flag
9175        allow_undefined_flag=
9176        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9177  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9178  ac_status=$?
9179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180  (exit $ac_status); }
9181        then
9182	  archive_cmds_need_lc=no
9183        else
9184	  archive_cmds_need_lc=yes
9185        fi
9186        allow_undefined_flag=$lt_save_allow_undefined_flag
9187      else
9188        cat conftest.err 1>&5
9189      fi
9190      $RM conftest*
9191      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9192$as_echo "$archive_cmds_need_lc" >&6; }
9193      ;;
9194    esac
9195  fi
9196  ;;
9197esac
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9356$as_echo_n "checking dynamic linker characteristics... " >&6; }
9357
9358if test "$GCC" = yes; then
9359  case $host_os in
9360    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9361    *) lt_awk_arg="/^libraries:/" ;;
9362  esac
9363  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9365    # if the path contains ";" then we assume it to be the separator
9366    # otherwise default to the standard path separator (i.e. ":") - it is
9367    # assumed that no part of a normal pathname contains ";" but that should
9368    # okay in the real world where ";" in dirpaths is itself problematic.
9369    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9370  else
9371    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9372  fi
9373  # Ok, now we have the path, separated by spaces, we can step through it
9374  # and add multilib dir if necessary.
9375  lt_tmp_lt_search_path_spec=
9376  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9377  for lt_sys_path in $lt_search_path_spec; do
9378    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9379      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9380    else
9381      test -d "$lt_sys_path" && \
9382	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9383    fi
9384  done
9385  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9386BEGIN {RS=" "; FS="/|\n";} {
9387  lt_foo="";
9388  lt_count=0;
9389  for (lt_i = NF; lt_i > 0; lt_i--) {
9390    if ($lt_i != "" && $lt_i != ".") {
9391      if ($lt_i == "..") {
9392        lt_count++;
9393      } else {
9394        if (lt_count == 0) {
9395          lt_foo="/" $lt_i lt_foo;
9396        } else {
9397          lt_count--;
9398        }
9399      }
9400    }
9401  }
9402  if (lt_foo != "") { lt_freq[lt_foo]++; }
9403  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9404}'`
9405  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9406else
9407  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9408fi
9409library_names_spec=
9410libname_spec='lib$name'
9411soname_spec=
9412shrext_cmds=".so"
9413postinstall_cmds=
9414postuninstall_cmds=
9415finish_cmds=
9416finish_eval=
9417shlibpath_var=
9418shlibpath_overrides_runpath=unknown
9419version_type=none
9420dynamic_linker="$host_os ld.so"
9421sys_lib_dlsearch_path_spec="/lib /usr/lib"
9422need_lib_prefix=unknown
9423hardcode_into_libs=no
9424
9425# when you set need_version to no, make sure it does not cause -set_version
9426# flags to be left without arguments
9427need_version=unknown
9428
9429case $host_os in
9430aix3*)
9431  version_type=linux
9432  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9433  shlibpath_var=LIBPATH
9434
9435  # AIX 3 has no versioning support, so we append a major version to the name.
9436  soname_spec='${libname}${release}${shared_ext}$major'
9437  ;;
9438
9439aix[4-9]*)
9440  version_type=linux
9441  need_lib_prefix=no
9442  need_version=no
9443  hardcode_into_libs=yes
9444  if test "$host_cpu" = ia64; then
9445    # AIX 5 supports IA64
9446    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9447    shlibpath_var=LD_LIBRARY_PATH
9448  else
9449    # With GCC up to 2.95.x, collect2 would create an import file
9450    # for dependence libraries.  The import file would start with
9451    # the line `#! .'.  This would cause the generated library to
9452    # depend on `.', always an invalid library.  This was fixed in
9453    # development snapshots of GCC prior to 3.0.
9454    case $host_os in
9455      aix4 | aix4.[01] | aix4.[01].*)
9456      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9457	   echo ' yes '
9458	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9459	:
9460      else
9461	can_build_shared=no
9462      fi
9463      ;;
9464    esac
9465    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9466    # soname into executable. Probably we can add versioning support to
9467    # collect2, so additional links can be useful in future.
9468    if test "$aix_use_runtimelinking" = yes; then
9469      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9470      # instead of lib<name>.a to let people know that these are not
9471      # typical AIX shared libraries.
9472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473    else
9474      # We preserve .a as extension for shared libraries through AIX4.2
9475      # and later when we are not doing run time linking.
9476      library_names_spec='${libname}${release}.a $libname.a'
9477      soname_spec='${libname}${release}${shared_ext}$major'
9478    fi
9479    shlibpath_var=LIBPATH
9480  fi
9481  ;;
9482
9483amigaos*)
9484  case $host_cpu in
9485  powerpc)
9486    # Since July 2007 AmigaOS4 officially supports .so libraries.
9487    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9488    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489    ;;
9490  m68k)
9491    library_names_spec='$libname.ixlibrary $libname.a'
9492    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9493    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'
9494    ;;
9495  esac
9496  ;;
9497
9498beos*)
9499  library_names_spec='${libname}${shared_ext}'
9500  dynamic_linker="$host_os ld.so"
9501  shlibpath_var=LIBRARY_PATH
9502  ;;
9503
9504bsdi[45]*)
9505  version_type=linux
9506  need_version=no
9507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508  soname_spec='${libname}${release}${shared_ext}$major'
9509  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9510  shlibpath_var=LD_LIBRARY_PATH
9511  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9512  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9513  # the default ld.so.conf also contains /usr/contrib/lib and
9514  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9515  # libtool to hard-code these into programs
9516  ;;
9517
9518cygwin* | mingw* | pw32* | cegcc*)
9519  version_type=windows
9520  shrext_cmds=".dll"
9521  need_version=no
9522  need_lib_prefix=no
9523
9524  case $GCC,$host_os in
9525  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9526    library_names_spec='$libname.dll.a'
9527    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9528    postinstall_cmds='base_file=`basename \${file}`~
9529      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9530      dldir=$destdir/`dirname \$dlpath`~
9531      test -d \$dldir || mkdir -p \$dldir~
9532      $install_prog $dir/$dlname \$dldir/$dlname~
9533      chmod a+x \$dldir/$dlname~
9534      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9535        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9536      fi'
9537    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9538      dlpath=$dir/\$dldll~
9539       $RM \$dlpath'
9540    shlibpath_overrides_runpath=yes
9541
9542    case $host_os in
9543    cygwin*)
9544      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9545      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9546      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9547      ;;
9548    mingw* | cegcc*)
9549      # MinGW DLLs use traditional 'lib' prefix
9550      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9551      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9552      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9553        # It is most probably a Windows format PATH printed by
9554        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9555        # path with ; separators, and with drive letters. We can handle the
9556        # drive letters (cygwin fileutils understands them), so leave them,
9557        # especially as we might pass files found there to a mingw objdump,
9558        # which wouldn't understand a cygwinified path. Ahh.
9559        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9560      else
9561        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9562      fi
9563      ;;
9564    pw32*)
9565      # pw32 DLLs use 'pw' prefix rather than 'lib'
9566      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9567      ;;
9568    esac
9569    ;;
9570
9571  *)
9572    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9573    ;;
9574  esac
9575  dynamic_linker='Win32 ld.exe'
9576  # FIXME: first we should search . and the directory the executable is in
9577  shlibpath_var=PATH
9578  ;;
9579
9580darwin* | rhapsody*)
9581  dynamic_linker="$host_os dyld"
9582  version_type=darwin
9583  need_lib_prefix=no
9584  need_version=no
9585  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9586  soname_spec='${libname}${release}${major}$shared_ext'
9587  shlibpath_overrides_runpath=yes
9588  shlibpath_var=DYLD_LIBRARY_PATH
9589  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9590
9591  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9592  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9593  ;;
9594
9595dgux*)
9596  version_type=linux
9597  need_lib_prefix=no
9598  need_version=no
9599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9600  soname_spec='${libname}${release}${shared_ext}$major'
9601  shlibpath_var=LD_LIBRARY_PATH
9602  ;;
9603
9604freebsd1*)
9605  dynamic_linker=no
9606  ;;
9607
9608freebsd* | dragonfly*)
9609  # DragonFly does not have aout.  When/if they implement a new
9610  # versioning mechanism, adjust this.
9611  if test -x /usr/bin/objformat; then
9612    objformat=`/usr/bin/objformat`
9613  else
9614    case $host_os in
9615    freebsd[123]*) objformat=aout ;;
9616    *) objformat=elf ;;
9617    esac
9618  fi
9619  version_type=freebsd-$objformat
9620  case $version_type in
9621    freebsd-elf*)
9622      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9623      need_version=no
9624      need_lib_prefix=no
9625      ;;
9626    freebsd-*)
9627      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9628      need_version=yes
9629      ;;
9630  esac
9631  shlibpath_var=LD_LIBRARY_PATH
9632  case $host_os in
9633  freebsd2*)
9634    shlibpath_overrides_runpath=yes
9635    ;;
9636  freebsd3.[01]* | freebsdelf3.[01]*)
9637    shlibpath_overrides_runpath=yes
9638    hardcode_into_libs=yes
9639    ;;
9640  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9641  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9642    shlibpath_overrides_runpath=no
9643    hardcode_into_libs=yes
9644    ;;
9645  *) # from 4.6 on, and DragonFly
9646    shlibpath_overrides_runpath=yes
9647    hardcode_into_libs=yes
9648    ;;
9649  esac
9650  ;;
9651
9652gnu*)
9653  version_type=linux
9654  need_lib_prefix=no
9655  need_version=no
9656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9657  soname_spec='${libname}${release}${shared_ext}$major'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  hardcode_into_libs=yes
9660  ;;
9661
9662hpux9* | hpux10* | hpux11*)
9663  # Give a soname corresponding to the major version so that dld.sl refuses to
9664  # link against other versions.
9665  version_type=sunos
9666  need_lib_prefix=no
9667  need_version=no
9668  case $host_cpu in
9669  ia64*)
9670    shrext_cmds='.so'
9671    hardcode_into_libs=yes
9672    dynamic_linker="$host_os dld.so"
9673    shlibpath_var=LD_LIBRARY_PATH
9674    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9675    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676    soname_spec='${libname}${release}${shared_ext}$major'
9677    if test "X$HPUX_IA64_MODE" = X32; then
9678      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9679    else
9680      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9681    fi
9682    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9683    ;;
9684  hppa*64*)
9685    shrext_cmds='.sl'
9686    hardcode_into_libs=yes
9687    dynamic_linker="$host_os dld.sl"
9688    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9689    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691    soname_spec='${libname}${release}${shared_ext}$major'
9692    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9693    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9694    ;;
9695  *)
9696    shrext_cmds='.sl'
9697    dynamic_linker="$host_os dld.sl"
9698    shlibpath_var=SHLIB_PATH
9699    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9700    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9701    soname_spec='${libname}${release}${shared_ext}$major'
9702    ;;
9703  esac
9704  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9705  postinstall_cmds='chmod 555 $lib'
9706  ;;
9707
9708interix[3-9]*)
9709  version_type=linux
9710  need_lib_prefix=no
9711  need_version=no
9712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9713  soname_spec='${libname}${release}${shared_ext}$major'
9714  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9715  shlibpath_var=LD_LIBRARY_PATH
9716  shlibpath_overrides_runpath=no
9717  hardcode_into_libs=yes
9718  ;;
9719
9720irix5* | irix6* | nonstopux*)
9721  case $host_os in
9722    nonstopux*) version_type=nonstopux ;;
9723    *)
9724	if test "$lt_cv_prog_gnu_ld" = yes; then
9725		version_type=linux
9726	else
9727		version_type=irix
9728	fi ;;
9729  esac
9730  need_lib_prefix=no
9731  need_version=no
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9734  case $host_os in
9735  irix5* | nonstopux*)
9736    libsuff= shlibsuff=
9737    ;;
9738  *)
9739    case $LD in # libtool.m4 will add one of these switches to LD
9740    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9741      libsuff= shlibsuff= libmagic=32-bit;;
9742    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9743      libsuff=32 shlibsuff=N32 libmagic=N32;;
9744    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9745      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9746    *) libsuff= shlibsuff= libmagic=never-match;;
9747    esac
9748    ;;
9749  esac
9750  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9751  shlibpath_overrides_runpath=no
9752  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9753  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9754  hardcode_into_libs=yes
9755  ;;
9756
9757# No shared lib support for Linux oldld, aout, or coff.
9758linux*oldld* | linux*aout* | linux*coff*)
9759  dynamic_linker=no
9760  ;;
9761
9762# This must be Linux ELF.
9763linux* | k*bsd*-gnu)
9764  version_type=linux
9765  need_lib_prefix=no
9766  need_version=no
9767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768  soname_spec='${libname}${release}${shared_ext}$major'
9769  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  shlibpath_overrides_runpath=no
9772  # Some binutils ld are patched to set DT_RUNPATH
9773  save_LDFLAGS=$LDFLAGS
9774  save_libdir=$libdir
9775  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9776       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9777  cat >conftest.$ac_ext <<_ACEOF
9778/* confdefs.h.  */
9779_ACEOF
9780cat confdefs.h >>conftest.$ac_ext
9781cat >>conftest.$ac_ext <<_ACEOF
9782/* end confdefs.h.  */
9783
9784int
9785main ()
9786{
9787
9788  ;
9789  return 0;
9790}
9791_ACEOF
9792rm -f conftest.$ac_objext conftest$ac_exeext
9793if { (ac_try="$ac_link"
9794case "(($ac_try" in
9795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796  *) ac_try_echo=$ac_try;;
9797esac
9798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9799$as_echo "$ac_try_echo") >&5
9800  (eval "$ac_link") 2>conftest.er1
9801  ac_status=$?
9802  grep -v '^ *+' conftest.er1 >conftest.err
9803  rm -f conftest.er1
9804  cat conftest.err >&5
9805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806  (exit $ac_status); } && {
9807	 test -z "$ac_c_werror_flag" ||
9808	 test ! -s conftest.err
9809       } && test -s conftest$ac_exeext && {
9810	 test "$cross_compiling" = yes ||
9811	 $as_test_x conftest$ac_exeext
9812       }; then
9813  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9814  shlibpath_overrides_runpath=yes
9815fi
9816
9817else
9818  $as_echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821
9822fi
9823
9824rm -rf conftest.dSYM
9825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9826      conftest$ac_exeext conftest.$ac_ext
9827  LDFLAGS=$save_LDFLAGS
9828  libdir=$save_libdir
9829
9830  # This implies no fast_install, which is unacceptable.
9831  # Some rework will be needed to allow for fast_install
9832  # before this can be enabled.
9833  hardcode_into_libs=yes
9834
9835  # Add ABI-specific directories to the system library path.
9836  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9837
9838  # Append ld.so.conf contents to the search path
9839  if test -f /etc/ld.so.conf; then
9840    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' ' '`
9841    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9842  fi
9843
9844  # We used to test for /lib/ld.so.1 and disable shared libraries on
9845  # powerpc, because MkLinux only supported shared libraries with the
9846  # GNU dynamic linker.  Since this was broken with cross compilers,
9847  # most powerpc-linux boxes support dynamic linking these days and
9848  # people can always --disable-shared, the test was removed, and we
9849  # assume the GNU/Linux dynamic linker is in use.
9850  dynamic_linker='GNU/Linux ld.so'
9851  ;;
9852
9853netbsd*)
9854  version_type=sunos
9855  need_lib_prefix=no
9856  need_version=no
9857  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9859    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9860    dynamic_linker='NetBSD (a.out) ld.so'
9861  else
9862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9863    soname_spec='${libname}${release}${shared_ext}$major'
9864    dynamic_linker='NetBSD ld.elf_so'
9865  fi
9866  shlibpath_var=LD_LIBRARY_PATH
9867  shlibpath_overrides_runpath=yes
9868  hardcode_into_libs=yes
9869  ;;
9870
9871newsos6)
9872  version_type=linux
9873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874  shlibpath_var=LD_LIBRARY_PATH
9875  shlibpath_overrides_runpath=yes
9876  ;;
9877
9878*nto* | *qnx*)
9879  version_type=qnx
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  shlibpath_overrides_runpath=no
9886  hardcode_into_libs=yes
9887  dynamic_linker='ldqnx.so'
9888  ;;
9889
9890openbsd*)
9891  version_type=sunos
9892  sys_lib_dlsearch_path_spec="/usr/lib"
9893  need_lib_prefix=no
9894  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9895  case $host_os in
9896    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9897    *)				need_version=no  ;;
9898  esac
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9900  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9901  shlibpath_var=LD_LIBRARY_PATH
9902  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9903    case $host_os in
9904      openbsd2.[89] | openbsd2.[89].*)
9905	shlibpath_overrides_runpath=no
9906	;;
9907      *)
9908	shlibpath_overrides_runpath=yes
9909	;;
9910      esac
9911  else
9912    shlibpath_overrides_runpath=yes
9913  fi
9914  ;;
9915
9916os2*)
9917  libname_spec='$name'
9918  shrext_cmds=".dll"
9919  need_lib_prefix=no
9920  library_names_spec='$libname${shared_ext} $libname.a'
9921  dynamic_linker='OS/2 ld.exe'
9922  shlibpath_var=LIBPATH
9923  ;;
9924
9925osf3* | osf4* | osf5*)
9926  version_type=osf
9927  need_lib_prefix=no
9928  need_version=no
9929  soname_spec='${libname}${release}${shared_ext}$major'
9930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931  shlibpath_var=LD_LIBRARY_PATH
9932  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9933  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9934  ;;
9935
9936rdos*)
9937  dynamic_linker=no
9938  ;;
9939
9940solaris*)
9941  version_type=linux
9942  need_lib_prefix=no
9943  need_version=no
9944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945  soname_spec='${libname}${release}${shared_ext}$major'
9946  shlibpath_var=LD_LIBRARY_PATH
9947  shlibpath_overrides_runpath=yes
9948  hardcode_into_libs=yes
9949  # ldd complains unless libraries are executable
9950  postinstall_cmds='chmod +x $lib'
9951  ;;
9952
9953sunos4*)
9954  version_type=sunos
9955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9956  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9957  shlibpath_var=LD_LIBRARY_PATH
9958  shlibpath_overrides_runpath=yes
9959  if test "$with_gnu_ld" = yes; then
9960    need_lib_prefix=no
9961  fi
9962  need_version=yes
9963  ;;
9964
9965sysv4 | sysv4.3*)
9966  version_type=linux
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  shlibpath_var=LD_LIBRARY_PATH
9970  case $host_vendor in
9971    sni)
9972      shlibpath_overrides_runpath=no
9973      need_lib_prefix=no
9974      runpath_var=LD_RUN_PATH
9975      ;;
9976    siemens)
9977      need_lib_prefix=no
9978      ;;
9979    motorola)
9980      need_lib_prefix=no
9981      need_version=no
9982      shlibpath_overrides_runpath=no
9983      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9984      ;;
9985  esac
9986  ;;
9987
9988sysv4*MP*)
9989  if test -d /usr/nec ;then
9990    version_type=linux
9991    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9992    soname_spec='$libname${shared_ext}.$major'
9993    shlibpath_var=LD_LIBRARY_PATH
9994  fi
9995  ;;
9996
9997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9998  version_type=freebsd-elf
9999  need_lib_prefix=no
10000  need_version=no
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10002  soname_spec='${libname}${release}${shared_ext}$major'
10003  shlibpath_var=LD_LIBRARY_PATH
10004  shlibpath_overrides_runpath=yes
10005  hardcode_into_libs=yes
10006  if test "$with_gnu_ld" = yes; then
10007    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10008  else
10009    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10010    case $host_os in
10011      sco3.2v5*)
10012        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10013	;;
10014    esac
10015  fi
10016  sys_lib_dlsearch_path_spec='/usr/lib'
10017  ;;
10018
10019tpf*)
10020  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10021  version_type=linux
10022  need_lib_prefix=no
10023  need_version=no
10024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025  shlibpath_var=LD_LIBRARY_PATH
10026  shlibpath_overrides_runpath=no
10027  hardcode_into_libs=yes
10028  ;;
10029
10030uts4*)
10031  version_type=linux
10032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033  soname_spec='${libname}${release}${shared_ext}$major'
10034  shlibpath_var=LD_LIBRARY_PATH
10035  ;;
10036
10037*)
10038  dynamic_linker=no
10039  ;;
10040esac
10041{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10042$as_echo "$dynamic_linker" >&6; }
10043test "$dynamic_linker" = no && can_build_shared=no
10044
10045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10046if test "$GCC" = yes; then
10047  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10048fi
10049
10050if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10051  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10052fi
10053if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10054  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10055fi
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10144$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10145hardcode_action=
10146if test -n "$hardcode_libdir_flag_spec" ||
10147   test -n "$runpath_var" ||
10148   test "X$hardcode_automatic" = "Xyes" ; then
10149
10150  # We can hardcode non-existent directories.
10151  if test "$hardcode_direct" != no &&
10152     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10153     # have to relink, otherwise we might link with an installed library
10154     # when we should be linking with a yet-to-be-installed one
10155     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10156     test "$hardcode_minus_L" != no; then
10157    # Linking always hardcodes the temporary library directory.
10158    hardcode_action=relink
10159  else
10160    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10161    hardcode_action=immediate
10162  fi
10163else
10164  # We cannot hardcode anything, or else we can only hardcode existing
10165  # directories.
10166  hardcode_action=unsupported
10167fi
10168{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10169$as_echo "$hardcode_action" >&6; }
10170
10171if test "$hardcode_action" = relink ||
10172   test "$inherit_rpath" = yes; then
10173  # Fast installation is not supported
10174  enable_fast_install=no
10175elif test "$shlibpath_overrides_runpath" = yes ||
10176     test "$enable_shared" = no; then
10177  # Fast installation is not necessary
10178  enable_fast_install=needless
10179fi
10180
10181
10182
10183
10184
10185
10186  if test "x$enable_dlopen" != xyes; then
10187  enable_dlopen=unknown
10188  enable_dlopen_self=unknown
10189  enable_dlopen_self_static=unknown
10190else
10191  lt_cv_dlopen=no
10192  lt_cv_dlopen_libs=
10193
10194  case $host_os in
10195  beos*)
10196    lt_cv_dlopen="load_add_on"
10197    lt_cv_dlopen_libs=
10198    lt_cv_dlopen_self=yes
10199    ;;
10200
10201  mingw* | pw32* | cegcc*)
10202    lt_cv_dlopen="LoadLibrary"
10203    lt_cv_dlopen_libs=
10204    ;;
10205
10206  cygwin*)
10207    lt_cv_dlopen="dlopen"
10208    lt_cv_dlopen_libs=
10209    ;;
10210
10211  darwin*)
10212  # if libdl is installed we need to link against it
10213    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10214$as_echo_n "checking for dlopen in -ldl... " >&6; }
10215if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10216  $as_echo_n "(cached) " >&6
10217else
10218  ac_check_lib_save_LIBS=$LIBS
10219LIBS="-ldl  $LIBS"
10220cat >conftest.$ac_ext <<_ACEOF
10221/* confdefs.h.  */
10222_ACEOF
10223cat confdefs.h >>conftest.$ac_ext
10224cat >>conftest.$ac_ext <<_ACEOF
10225/* end confdefs.h.  */
10226
10227/* Override any GCC internal prototype to avoid an error.
10228   Use char because int might match the return type of a GCC
10229   builtin and then its argument prototype would still apply.  */
10230#ifdef __cplusplus
10231extern "C"
10232#endif
10233char dlopen ();
10234int
10235main ()
10236{
10237return dlopen ();
10238  ;
10239  return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
10243if { (ac_try="$ac_link"
10244case "(($ac_try" in
10245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246  *) ac_try_echo=$ac_try;;
10247esac
10248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249$as_echo "$ac_try_echo") >&5
10250  (eval "$ac_link") 2>conftest.er1
10251  ac_status=$?
10252  grep -v '^ *+' conftest.er1 >conftest.err
10253  rm -f conftest.er1
10254  cat conftest.err >&5
10255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); } && {
10257	 test -z "$ac_c_werror_flag" ||
10258	 test ! -s conftest.err
10259       } && test -s conftest$ac_exeext && {
10260	 test "$cross_compiling" = yes ||
10261	 $as_test_x conftest$ac_exeext
10262       }; then
10263  ac_cv_lib_dl_dlopen=yes
10264else
10265  $as_echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268	ac_cv_lib_dl_dlopen=no
10269fi
10270
10271rm -rf conftest.dSYM
10272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10273      conftest$ac_exeext conftest.$ac_ext
10274LIBS=$ac_check_lib_save_LIBS
10275fi
10276{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10278if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10279  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10280else
10281
10282    lt_cv_dlopen="dyld"
10283    lt_cv_dlopen_libs=
10284    lt_cv_dlopen_self=yes
10285
10286fi
10287
10288    ;;
10289
10290  *)
10291    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10292$as_echo_n "checking for shl_load... " >&6; }
10293if test "${ac_cv_func_shl_load+set}" = set; then
10294  $as_echo_n "(cached) " >&6
10295else
10296  cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h.  */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h.  */
10302/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10303   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10304#define shl_load innocuous_shl_load
10305
10306/* System header to define __stub macros and hopefully few prototypes,
10307    which can conflict with char shl_load (); below.
10308    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10309    <limits.h> exists even on freestanding compilers.  */
10310
10311#ifdef __STDC__
10312# include <limits.h>
10313#else
10314# include <assert.h>
10315#endif
10316
10317#undef shl_load
10318
10319/* Override any GCC internal prototype to avoid an error.
10320   Use char because int might match the return type of a GCC
10321   builtin and then its argument prototype would still apply.  */
10322#ifdef __cplusplus
10323extern "C"
10324#endif
10325char shl_load ();
10326/* The GNU C library defines this for functions which it implements
10327    to always fail with ENOSYS.  Some functions are actually named
10328    something starting with __ and the normal name is an alias.  */
10329#if defined __stub_shl_load || defined __stub___shl_load
10330choke me
10331#endif
10332
10333int
10334main ()
10335{
10336return shl_load ();
10337  ;
10338  return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
10342if { (ac_try="$ac_link"
10343case "(($ac_try" in
10344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345  *) ac_try_echo=$ac_try;;
10346esac
10347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348$as_echo "$ac_try_echo") >&5
10349  (eval "$ac_link") 2>conftest.er1
10350  ac_status=$?
10351  grep -v '^ *+' conftest.er1 >conftest.err
10352  rm -f conftest.er1
10353  cat conftest.err >&5
10354  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); } && {
10356	 test -z "$ac_c_werror_flag" ||
10357	 test ! -s conftest.err
10358       } && test -s conftest$ac_exeext && {
10359	 test "$cross_compiling" = yes ||
10360	 $as_test_x conftest$ac_exeext
10361       }; then
10362  ac_cv_func_shl_load=yes
10363else
10364  $as_echo "$as_me: failed program was:" >&5
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
10367	ac_cv_func_shl_load=no
10368fi
10369
10370rm -rf conftest.dSYM
10371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10372      conftest$ac_exeext conftest.$ac_ext
10373fi
10374{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10375$as_echo "$ac_cv_func_shl_load" >&6; }
10376if test "x$ac_cv_func_shl_load" = x""yes; then
10377  lt_cv_dlopen="shl_load"
10378else
10379  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10380$as_echo_n "checking for shl_load in -ldld... " >&6; }
10381if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10382  $as_echo_n "(cached) " >&6
10383else
10384  ac_check_lib_save_LIBS=$LIBS
10385LIBS="-ldld  $LIBS"
10386cat >conftest.$ac_ext <<_ACEOF
10387/* confdefs.h.  */
10388_ACEOF
10389cat confdefs.h >>conftest.$ac_ext
10390cat >>conftest.$ac_ext <<_ACEOF
10391/* end confdefs.h.  */
10392
10393/* Override any GCC internal prototype to avoid an error.
10394   Use char because int might match the return type of a GCC
10395   builtin and then its argument prototype would still apply.  */
10396#ifdef __cplusplus
10397extern "C"
10398#endif
10399char shl_load ();
10400int
10401main ()
10402{
10403return shl_load ();
10404  ;
10405  return 0;
10406}
10407_ACEOF
10408rm -f conftest.$ac_objext conftest$ac_exeext
10409if { (ac_try="$ac_link"
10410case "(($ac_try" in
10411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412  *) ac_try_echo=$ac_try;;
10413esac
10414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10415$as_echo "$ac_try_echo") >&5
10416  (eval "$ac_link") 2>conftest.er1
10417  ac_status=$?
10418  grep -v '^ *+' conftest.er1 >conftest.err
10419  rm -f conftest.er1
10420  cat conftest.err >&5
10421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); } && {
10423	 test -z "$ac_c_werror_flag" ||
10424	 test ! -s conftest.err
10425       } && test -s conftest$ac_exeext && {
10426	 test "$cross_compiling" = yes ||
10427	 $as_test_x conftest$ac_exeext
10428       }; then
10429  ac_cv_lib_dld_shl_load=yes
10430else
10431  $as_echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434	ac_cv_lib_dld_shl_load=no
10435fi
10436
10437rm -rf conftest.dSYM
10438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10439      conftest$ac_exeext conftest.$ac_ext
10440LIBS=$ac_check_lib_save_LIBS
10441fi
10442{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10443$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10444if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10445  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10446else
10447  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10448$as_echo_n "checking for dlopen... " >&6; }
10449if test "${ac_cv_func_dlopen+set}" = set; then
10450  $as_echo_n "(cached) " >&6
10451else
10452  cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h.  */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h.  */
10458/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10459   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10460#define dlopen innocuous_dlopen
10461
10462/* System header to define __stub macros and hopefully few prototypes,
10463    which can conflict with char dlopen (); below.
10464    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10465    <limits.h> exists even on freestanding compilers.  */
10466
10467#ifdef __STDC__
10468# include <limits.h>
10469#else
10470# include <assert.h>
10471#endif
10472
10473#undef dlopen
10474
10475/* Override any GCC internal prototype to avoid an error.
10476   Use char because int might match the return type of a GCC
10477   builtin and then its argument prototype would still apply.  */
10478#ifdef __cplusplus
10479extern "C"
10480#endif
10481char dlopen ();
10482/* The GNU C library defines this for functions which it implements
10483    to always fail with ENOSYS.  Some functions are actually named
10484    something starting with __ and the normal name is an alias.  */
10485#if defined __stub_dlopen || defined __stub___dlopen
10486choke me
10487#endif
10488
10489int
10490main ()
10491{
10492return dlopen ();
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497rm -f conftest.$ac_objext conftest$ac_exeext
10498if { (ac_try="$ac_link"
10499case "(($ac_try" in
10500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501  *) ac_try_echo=$ac_try;;
10502esac
10503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10504$as_echo "$ac_try_echo") >&5
10505  (eval "$ac_link") 2>conftest.er1
10506  ac_status=$?
10507  grep -v '^ *+' conftest.er1 >conftest.err
10508  rm -f conftest.er1
10509  cat conftest.err >&5
10510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); } && {
10512	 test -z "$ac_c_werror_flag" ||
10513	 test ! -s conftest.err
10514       } && test -s conftest$ac_exeext && {
10515	 test "$cross_compiling" = yes ||
10516	 $as_test_x conftest$ac_exeext
10517       }; then
10518  ac_cv_func_dlopen=yes
10519else
10520  $as_echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
10522
10523	ac_cv_func_dlopen=no
10524fi
10525
10526rm -rf conftest.dSYM
10527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528      conftest$ac_exeext conftest.$ac_ext
10529fi
10530{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10531$as_echo "$ac_cv_func_dlopen" >&6; }
10532if test "x$ac_cv_func_dlopen" = x""yes; then
10533  lt_cv_dlopen="dlopen"
10534else
10535  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10536$as_echo_n "checking for dlopen in -ldl... " >&6; }
10537if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10538  $as_echo_n "(cached) " >&6
10539else
10540  ac_check_lib_save_LIBS=$LIBS
10541LIBS="-ldl  $LIBS"
10542cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h.  */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h.  */
10548
10549/* Override any GCC internal prototype to avoid an error.
10550   Use char because int might match the return type of a GCC
10551   builtin and then its argument prototype would still apply.  */
10552#ifdef __cplusplus
10553extern "C"
10554#endif
10555char dlopen ();
10556int
10557main ()
10558{
10559return dlopen ();
10560  ;
10561  return 0;
10562}
10563_ACEOF
10564rm -f conftest.$ac_objext conftest$ac_exeext
10565if { (ac_try="$ac_link"
10566case "(($ac_try" in
10567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568  *) ac_try_echo=$ac_try;;
10569esac
10570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10571$as_echo "$ac_try_echo") >&5
10572  (eval "$ac_link") 2>conftest.er1
10573  ac_status=$?
10574  grep -v '^ *+' conftest.er1 >conftest.err
10575  rm -f conftest.er1
10576  cat conftest.err >&5
10577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); } && {
10579	 test -z "$ac_c_werror_flag" ||
10580	 test ! -s conftest.err
10581       } && test -s conftest$ac_exeext && {
10582	 test "$cross_compiling" = yes ||
10583	 $as_test_x conftest$ac_exeext
10584       }; then
10585  ac_cv_lib_dl_dlopen=yes
10586else
10587  $as_echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590	ac_cv_lib_dl_dlopen=no
10591fi
10592
10593rm -rf conftest.dSYM
10594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10595      conftest$ac_exeext conftest.$ac_ext
10596LIBS=$ac_check_lib_save_LIBS
10597fi
10598{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10599$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10600if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10601  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10602else
10603  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10604$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10605if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10606  $as_echo_n "(cached) " >&6
10607else
10608  ac_check_lib_save_LIBS=$LIBS
10609LIBS="-lsvld  $LIBS"
10610cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h.  */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h.  */
10616
10617/* Override any GCC internal prototype to avoid an error.
10618   Use char because int might match the return type of a GCC
10619   builtin and then its argument prototype would still apply.  */
10620#ifdef __cplusplus
10621extern "C"
10622#endif
10623char dlopen ();
10624int
10625main ()
10626{
10627return dlopen ();
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632rm -f conftest.$ac_objext conftest$ac_exeext
10633if { (ac_try="$ac_link"
10634case "(($ac_try" in
10635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636  *) ac_try_echo=$ac_try;;
10637esac
10638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10639$as_echo "$ac_try_echo") >&5
10640  (eval "$ac_link") 2>conftest.er1
10641  ac_status=$?
10642  grep -v '^ *+' conftest.er1 >conftest.err
10643  rm -f conftest.er1
10644  cat conftest.err >&5
10645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); } && {
10647	 test -z "$ac_c_werror_flag" ||
10648	 test ! -s conftest.err
10649       } && test -s conftest$ac_exeext && {
10650	 test "$cross_compiling" = yes ||
10651	 $as_test_x conftest$ac_exeext
10652       }; then
10653  ac_cv_lib_svld_dlopen=yes
10654else
10655  $as_echo "$as_me: failed program was:" >&5
10656sed 's/^/| /' conftest.$ac_ext >&5
10657
10658	ac_cv_lib_svld_dlopen=no
10659fi
10660
10661rm -rf conftest.dSYM
10662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10663      conftest$ac_exeext conftest.$ac_ext
10664LIBS=$ac_check_lib_save_LIBS
10665fi
10666{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10667$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10668if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10669  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10670else
10671  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10672$as_echo_n "checking for dld_link in -ldld... " >&6; }
10673if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10674  $as_echo_n "(cached) " >&6
10675else
10676  ac_check_lib_save_LIBS=$LIBS
10677LIBS="-ldld  $LIBS"
10678cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h.  */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h.  */
10684
10685/* Override any GCC internal prototype to avoid an error.
10686   Use char because int might match the return type of a GCC
10687   builtin and then its argument prototype would still apply.  */
10688#ifdef __cplusplus
10689extern "C"
10690#endif
10691char dld_link ();
10692int
10693main ()
10694{
10695return dld_link ();
10696  ;
10697  return 0;
10698}
10699_ACEOF
10700rm -f conftest.$ac_objext conftest$ac_exeext
10701if { (ac_try="$ac_link"
10702case "(($ac_try" in
10703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704  *) ac_try_echo=$ac_try;;
10705esac
10706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10707$as_echo "$ac_try_echo") >&5
10708  (eval "$ac_link") 2>conftest.er1
10709  ac_status=$?
10710  grep -v '^ *+' conftest.er1 >conftest.err
10711  rm -f conftest.er1
10712  cat conftest.err >&5
10713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); } && {
10715	 test -z "$ac_c_werror_flag" ||
10716	 test ! -s conftest.err
10717       } && test -s conftest$ac_exeext && {
10718	 test "$cross_compiling" = yes ||
10719	 $as_test_x conftest$ac_exeext
10720       }; then
10721  ac_cv_lib_dld_dld_link=yes
10722else
10723  $as_echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726	ac_cv_lib_dld_dld_link=no
10727fi
10728
10729rm -rf conftest.dSYM
10730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731      conftest$ac_exeext conftest.$ac_ext
10732LIBS=$ac_check_lib_save_LIBS
10733fi
10734{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10735$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10736if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10737  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10738fi
10739
10740
10741fi
10742
10743
10744fi
10745
10746
10747fi
10748
10749
10750fi
10751
10752
10753fi
10754
10755    ;;
10756  esac
10757
10758  if test "x$lt_cv_dlopen" != xno; then
10759    enable_dlopen=yes
10760  else
10761    enable_dlopen=no
10762  fi
10763
10764  case $lt_cv_dlopen in
10765  dlopen)
10766    save_CPPFLAGS="$CPPFLAGS"
10767    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10768
10769    save_LDFLAGS="$LDFLAGS"
10770    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10771
10772    save_LIBS="$LIBS"
10773    LIBS="$lt_cv_dlopen_libs $LIBS"
10774
10775    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10776$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10777if test "${lt_cv_dlopen_self+set}" = set; then
10778  $as_echo_n "(cached) " >&6
10779else
10780  	  if test "$cross_compiling" = yes; then :
10781  lt_cv_dlopen_self=cross
10782else
10783  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10784  lt_status=$lt_dlunknown
10785  cat > conftest.$ac_ext <<_LT_EOF
10786#line 10786 "configure"
10787#include "confdefs.h"
10788
10789#if HAVE_DLFCN_H
10790#include <dlfcn.h>
10791#endif
10792
10793#include <stdio.h>
10794
10795#ifdef RTLD_GLOBAL
10796#  define LT_DLGLOBAL		RTLD_GLOBAL
10797#else
10798#  ifdef DL_GLOBAL
10799#    define LT_DLGLOBAL		DL_GLOBAL
10800#  else
10801#    define LT_DLGLOBAL		0
10802#  endif
10803#endif
10804
10805/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10806   find out it does not work in some platform. */
10807#ifndef LT_DLLAZY_OR_NOW
10808#  ifdef RTLD_LAZY
10809#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10810#  else
10811#    ifdef DL_LAZY
10812#      define LT_DLLAZY_OR_NOW		DL_LAZY
10813#    else
10814#      ifdef RTLD_NOW
10815#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10816#      else
10817#        ifdef DL_NOW
10818#          define LT_DLLAZY_OR_NOW	DL_NOW
10819#        else
10820#          define LT_DLLAZY_OR_NOW	0
10821#        endif
10822#      endif
10823#    endif
10824#  endif
10825#endif
10826
10827void fnord() { int i=42;}
10828int main ()
10829{
10830  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10831  int status = $lt_dlunknown;
10832
10833  if (self)
10834    {
10835      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10836      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10837      /* dlclose (self); */
10838    }
10839  else
10840    puts (dlerror ());
10841
10842  return status;
10843}
10844_LT_EOF
10845  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846  (eval $ac_link) 2>&5
10847  ac_status=$?
10848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10850    (./conftest; exit; ) >&5 2>/dev/null
10851    lt_status=$?
10852    case x$lt_status in
10853      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10854      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10855      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10856    esac
10857  else :
10858    # compilation failed
10859    lt_cv_dlopen_self=no
10860  fi
10861fi
10862rm -fr conftest*
10863
10864
10865fi
10866{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10867$as_echo "$lt_cv_dlopen_self" >&6; }
10868
10869    if test "x$lt_cv_dlopen_self" = xyes; then
10870      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10871      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10872$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10873if test "${lt_cv_dlopen_self_static+set}" = set; then
10874  $as_echo_n "(cached) " >&6
10875else
10876  	  if test "$cross_compiling" = yes; then :
10877  lt_cv_dlopen_self_static=cross
10878else
10879  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10880  lt_status=$lt_dlunknown
10881  cat > conftest.$ac_ext <<_LT_EOF
10882#line 10882 "configure"
10883#include "confdefs.h"
10884
10885#if HAVE_DLFCN_H
10886#include <dlfcn.h>
10887#endif
10888
10889#include <stdio.h>
10890
10891#ifdef RTLD_GLOBAL
10892#  define LT_DLGLOBAL		RTLD_GLOBAL
10893#else
10894#  ifdef DL_GLOBAL
10895#    define LT_DLGLOBAL		DL_GLOBAL
10896#  else
10897#    define LT_DLGLOBAL		0
10898#  endif
10899#endif
10900
10901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10902   find out it does not work in some platform. */
10903#ifndef LT_DLLAZY_OR_NOW
10904#  ifdef RTLD_LAZY
10905#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10906#  else
10907#    ifdef DL_LAZY
10908#      define LT_DLLAZY_OR_NOW		DL_LAZY
10909#    else
10910#      ifdef RTLD_NOW
10911#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10912#      else
10913#        ifdef DL_NOW
10914#          define LT_DLLAZY_OR_NOW	DL_NOW
10915#        else
10916#          define LT_DLLAZY_OR_NOW	0
10917#        endif
10918#      endif
10919#    endif
10920#  endif
10921#endif
10922
10923void fnord() { int i=42;}
10924int main ()
10925{
10926  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10927  int status = $lt_dlunknown;
10928
10929  if (self)
10930    {
10931      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10932      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10933      /* dlclose (self); */
10934    }
10935  else
10936    puts (dlerror ());
10937
10938  return status;
10939}
10940_LT_EOF
10941  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942  (eval $ac_link) 2>&5
10943  ac_status=$?
10944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10946    (./conftest; exit; ) >&5 2>/dev/null
10947    lt_status=$?
10948    case x$lt_status in
10949      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10950      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10951      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10952    esac
10953  else :
10954    # compilation failed
10955    lt_cv_dlopen_self_static=no
10956  fi
10957fi
10958rm -fr conftest*
10959
10960
10961fi
10962{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10963$as_echo "$lt_cv_dlopen_self_static" >&6; }
10964    fi
10965
10966    CPPFLAGS="$save_CPPFLAGS"
10967    LDFLAGS="$save_LDFLAGS"
10968    LIBS="$save_LIBS"
10969    ;;
10970  esac
10971
10972  case $lt_cv_dlopen_self in
10973  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10974  *) enable_dlopen_self=unknown ;;
10975  esac
10976
10977  case $lt_cv_dlopen_self_static in
10978  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10979  *) enable_dlopen_self_static=unknown ;;
10980  esac
10981fi
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999striplib=
11000old_striplib=
11001{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11002$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11003if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11004  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11005  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11006  { $as_echo "$as_me:$LINENO: result: yes" >&5
11007$as_echo "yes" >&6; }
11008else
11009# FIXME - insert some real tests, host_os isn't really good enough
11010  case $host_os in
11011  darwin*)
11012    if test -n "$STRIP" ; then
11013      striplib="$STRIP -x"
11014      old_striplib="$STRIP -S"
11015      { $as_echo "$as_me:$LINENO: result: yes" >&5
11016$as_echo "yes" >&6; }
11017    else
11018      { $as_echo "$as_me:$LINENO: result: no" >&5
11019$as_echo "no" >&6; }
11020    fi
11021    ;;
11022  *)
11023    { $as_echo "$as_me:$LINENO: result: no" >&5
11024$as_echo "no" >&6; }
11025    ;;
11026  esac
11027fi
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040  # Report which library types will actually be built
11041  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11042$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11043  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11044$as_echo "$can_build_shared" >&6; }
11045
11046  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11047$as_echo_n "checking whether to build shared libraries... " >&6; }
11048  test "$can_build_shared" = "no" && enable_shared=no
11049
11050  # On AIX, shared libraries and static libraries use the same namespace, and
11051  # are all built from PIC.
11052  case $host_os in
11053  aix3*)
11054    test "$enable_shared" = yes && enable_static=no
11055    if test -n "$RANLIB"; then
11056      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11057      postinstall_cmds='$RANLIB $lib'
11058    fi
11059    ;;
11060
11061  aix[4-9]*)
11062    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11063      test "$enable_shared" = yes && enable_static=no
11064    fi
11065    ;;
11066  esac
11067  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11068$as_echo "$enable_shared" >&6; }
11069
11070  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11071$as_echo_n "checking whether to build static libraries... " >&6; }
11072  # Make sure either enable_shared or enable_static is yes.
11073  test "$enable_shared" = yes || enable_static=yes
11074  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11075$as_echo "$enable_static" >&6; }
11076
11077
11078
11079
11080fi
11081ac_ext=c
11082ac_cpp='$CPP $CPPFLAGS'
11083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11085ac_compiler_gnu=$ac_cv_c_compiler_gnu
11086
11087CC="$lt_save_CC"
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101        ac_config_commands="$ac_config_commands libtool"
11102
11103
11104
11105
11106# Only expand once:
11107
11108
11109ac_ext=c
11110ac_cpp='$CPP $CPPFLAGS'
11111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11113ac_compiler_gnu=$ac_cv_c_compiler_gnu
11114if test -n "$ac_tool_prefix"; then
11115  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11116set dummy ${ac_tool_prefix}gcc; ac_word=$2
11117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11118$as_echo_n "checking for $ac_word... " >&6; }
11119if test "${ac_cv_prog_CC+set}" = set; then
11120  $as_echo_n "(cached) " >&6
11121else
11122  if test -n "$CC"; then
11123  ac_cv_prog_CC="$CC" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128  IFS=$as_save_IFS
11129  test -z "$as_dir" && as_dir=.
11130  for ac_exec_ext in '' $ac_executable_extensions; do
11131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11133    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134    break 2
11135  fi
11136done
11137done
11138IFS=$as_save_IFS
11139
11140fi
11141fi
11142CC=$ac_cv_prog_CC
11143if test -n "$CC"; then
11144  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11145$as_echo "$CC" >&6; }
11146else
11147  { $as_echo "$as_me:$LINENO: result: no" >&5
11148$as_echo "no" >&6; }
11149fi
11150
11151
11152fi
11153if test -z "$ac_cv_prog_CC"; then
11154  ac_ct_CC=$CC
11155  # Extract the first word of "gcc", so it can be a program name with args.
11156set dummy gcc; ac_word=$2
11157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
11159if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11160  $as_echo_n "(cached) " >&6
11161else
11162  if test -n "$ac_ct_CC"; then
11163  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168  IFS=$as_save_IFS
11169  test -z "$as_dir" && as_dir=.
11170  for ac_exec_ext in '' $ac_executable_extensions; do
11171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11172    ac_cv_prog_ac_ct_CC="gcc"
11173    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11174    break 2
11175  fi
11176done
11177done
11178IFS=$as_save_IFS
11179
11180fi
11181fi
11182ac_ct_CC=$ac_cv_prog_ac_ct_CC
11183if test -n "$ac_ct_CC"; then
11184  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11185$as_echo "$ac_ct_CC" >&6; }
11186else
11187  { $as_echo "$as_me:$LINENO: result: no" >&5
11188$as_echo "no" >&6; }
11189fi
11190
11191  if test "x$ac_ct_CC" = x; then
11192    CC=""
11193  else
11194    case $cross_compiling:$ac_tool_warned in
11195yes:)
11196{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11198ac_tool_warned=yes ;;
11199esac
11200    CC=$ac_ct_CC
11201  fi
11202else
11203  CC="$ac_cv_prog_CC"
11204fi
11205
11206if test -z "$CC"; then
11207          if test -n "$ac_tool_prefix"; then
11208    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11209set dummy ${ac_tool_prefix}cc; ac_word=$2
11210{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11211$as_echo_n "checking for $ac_word... " >&6; }
11212if test "${ac_cv_prog_CC+set}" = set; then
11213  $as_echo_n "(cached) " >&6
11214else
11215  if test -n "$CC"; then
11216  ac_cv_prog_CC="$CC" # Let the user override the test.
11217else
11218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219for as_dir in $PATH
11220do
11221  IFS=$as_save_IFS
11222  test -z "$as_dir" && as_dir=.
11223  for ac_exec_ext in '' $ac_executable_extensions; do
11224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11225    ac_cv_prog_CC="${ac_tool_prefix}cc"
11226    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11227    break 2
11228  fi
11229done
11230done
11231IFS=$as_save_IFS
11232
11233fi
11234fi
11235CC=$ac_cv_prog_CC
11236if test -n "$CC"; then
11237  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11238$as_echo "$CC" >&6; }
11239else
11240  { $as_echo "$as_me:$LINENO: result: no" >&5
11241$as_echo "no" >&6; }
11242fi
11243
11244
11245  fi
11246fi
11247if test -z "$CC"; then
11248  # Extract the first word of "cc", so it can be a program name with args.
11249set dummy cc; ac_word=$2
11250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11251$as_echo_n "checking for $ac_word... " >&6; }
11252if test "${ac_cv_prog_CC+set}" = set; then
11253  $as_echo_n "(cached) " >&6
11254else
11255  if test -n "$CC"; then
11256  ac_cv_prog_CC="$CC" # Let the user override the test.
11257else
11258  ac_prog_rejected=no
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262  IFS=$as_save_IFS
11263  test -z "$as_dir" && as_dir=.
11264  for ac_exec_ext in '' $ac_executable_extensions; do
11265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11267       ac_prog_rejected=yes
11268       continue
11269     fi
11270    ac_cv_prog_CC="cc"
11271    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272    break 2
11273  fi
11274done
11275done
11276IFS=$as_save_IFS
11277
11278if test $ac_prog_rejected = yes; then
11279  # We found a bogon in the path, so make sure we never use it.
11280  set dummy $ac_cv_prog_CC
11281  shift
11282  if test $# != 0; then
11283    # We chose a different compiler from the bogus one.
11284    # However, it has the same basename, so the bogon will be chosen
11285    # first if we set CC to just the basename; use the full file name.
11286    shift
11287    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11288  fi
11289fi
11290fi
11291fi
11292CC=$ac_cv_prog_CC
11293if test -n "$CC"; then
11294  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11295$as_echo "$CC" >&6; }
11296else
11297  { $as_echo "$as_me:$LINENO: result: no" >&5
11298$as_echo "no" >&6; }
11299fi
11300
11301
11302fi
11303if test -z "$CC"; then
11304  if test -n "$ac_tool_prefix"; then
11305  for ac_prog in cl.exe
11306  do
11307    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11308set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11310$as_echo_n "checking for $ac_word... " >&6; }
11311if test "${ac_cv_prog_CC+set}" = set; then
11312  $as_echo_n "(cached) " >&6
11313else
11314  if test -n "$CC"; then
11315  ac_cv_prog_CC="$CC" # Let the user override the test.
11316else
11317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318for as_dir in $PATH
11319do
11320  IFS=$as_save_IFS
11321  test -z "$as_dir" && as_dir=.
11322  for ac_exec_ext in '' $ac_executable_extensions; do
11323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11324    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11326    break 2
11327  fi
11328done
11329done
11330IFS=$as_save_IFS
11331
11332fi
11333fi
11334CC=$ac_cv_prog_CC
11335if test -n "$CC"; then
11336  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11337$as_echo "$CC" >&6; }
11338else
11339  { $as_echo "$as_me:$LINENO: result: no" >&5
11340$as_echo "no" >&6; }
11341fi
11342
11343
11344    test -n "$CC" && break
11345  done
11346fi
11347if test -z "$CC"; then
11348  ac_ct_CC=$CC
11349  for ac_prog in cl.exe
11350do
11351  # Extract the first word of "$ac_prog", so it can be a program name with args.
11352set dummy $ac_prog; ac_word=$2
11353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11354$as_echo_n "checking for $ac_word... " >&6; }
11355if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11356  $as_echo_n "(cached) " >&6
11357else
11358  if test -n "$ac_ct_CC"; then
11359  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11360else
11361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362for as_dir in $PATH
11363do
11364  IFS=$as_save_IFS
11365  test -z "$as_dir" && as_dir=.
11366  for ac_exec_ext in '' $ac_executable_extensions; do
11367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368    ac_cv_prog_ac_ct_CC="$ac_prog"
11369    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11370    break 2
11371  fi
11372done
11373done
11374IFS=$as_save_IFS
11375
11376fi
11377fi
11378ac_ct_CC=$ac_cv_prog_ac_ct_CC
11379if test -n "$ac_ct_CC"; then
11380  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11381$as_echo "$ac_ct_CC" >&6; }
11382else
11383  { $as_echo "$as_me:$LINENO: result: no" >&5
11384$as_echo "no" >&6; }
11385fi
11386
11387
11388  test -n "$ac_ct_CC" && break
11389done
11390
11391  if test "x$ac_ct_CC" = x; then
11392    CC=""
11393  else
11394    case $cross_compiling:$ac_tool_warned in
11395yes:)
11396{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11398ac_tool_warned=yes ;;
11399esac
11400    CC=$ac_ct_CC
11401  fi
11402fi
11403
11404fi
11405
11406
11407test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11409{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11410See \`config.log' for more details." >&5
11411$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11412See \`config.log' for more details." >&2;}
11413   { (exit 1); exit 1; }; }; }
11414
11415# Provide some information about the compiler.
11416$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11417set X $ac_compile
11418ac_compiler=$2
11419{ (ac_try="$ac_compiler --version >&5"
11420case "(($ac_try" in
11421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422  *) ac_try_echo=$ac_try;;
11423esac
11424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11425$as_echo "$ac_try_echo") >&5
11426  (eval "$ac_compiler --version >&5") 2>&5
11427  ac_status=$?
11428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429  (exit $ac_status); }
11430{ (ac_try="$ac_compiler -v >&5"
11431case "(($ac_try" in
11432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433  *) ac_try_echo=$ac_try;;
11434esac
11435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11436$as_echo "$ac_try_echo") >&5
11437  (eval "$ac_compiler -v >&5") 2>&5
11438  ac_status=$?
11439  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440  (exit $ac_status); }
11441{ (ac_try="$ac_compiler -V >&5"
11442case "(($ac_try" in
11443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444  *) ac_try_echo=$ac_try;;
11445esac
11446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11447$as_echo "$ac_try_echo") >&5
11448  (eval "$ac_compiler -V >&5") 2>&5
11449  ac_status=$?
11450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451  (exit $ac_status); }
11452
11453{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11454$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11455if test "${ac_cv_c_compiler_gnu+set}" = set; then
11456  $as_echo_n "(cached) " >&6
11457else
11458  cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h.  */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h.  */
11464
11465int
11466main ()
11467{
11468#ifndef __GNUC__
11469       choke me
11470#endif
11471
11472  ;
11473  return 0;
11474}
11475_ACEOF
11476rm -f conftest.$ac_objext
11477if { (ac_try="$ac_compile"
11478case "(($ac_try" in
11479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480  *) ac_try_echo=$ac_try;;
11481esac
11482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11483$as_echo "$ac_try_echo") >&5
11484  (eval "$ac_compile") 2>conftest.er1
11485  ac_status=$?
11486  grep -v '^ *+' conftest.er1 >conftest.err
11487  rm -f conftest.er1
11488  cat conftest.err >&5
11489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490  (exit $ac_status); } && {
11491	 test -z "$ac_c_werror_flag" ||
11492	 test ! -s conftest.err
11493       } && test -s conftest.$ac_objext; then
11494  ac_compiler_gnu=yes
11495else
11496  $as_echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499	ac_compiler_gnu=no
11500fi
11501
11502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503ac_cv_c_compiler_gnu=$ac_compiler_gnu
11504
11505fi
11506{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11507$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11508if test $ac_compiler_gnu = yes; then
11509  GCC=yes
11510else
11511  GCC=
11512fi
11513ac_test_CFLAGS=${CFLAGS+set}
11514ac_save_CFLAGS=$CFLAGS
11515{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11516$as_echo_n "checking whether $CC accepts -g... " >&6; }
11517if test "${ac_cv_prog_cc_g+set}" = set; then
11518  $as_echo_n "(cached) " >&6
11519else
11520  ac_save_c_werror_flag=$ac_c_werror_flag
11521   ac_c_werror_flag=yes
11522   ac_cv_prog_cc_g=no
11523   CFLAGS="-g"
11524   cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h.  */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h.  */
11530
11531int
11532main ()
11533{
11534
11535  ;
11536  return 0;
11537}
11538_ACEOF
11539rm -f conftest.$ac_objext
11540if { (ac_try="$ac_compile"
11541case "(($ac_try" in
11542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543  *) ac_try_echo=$ac_try;;
11544esac
11545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11546$as_echo "$ac_try_echo") >&5
11547  (eval "$ac_compile") 2>conftest.er1
11548  ac_status=$?
11549  grep -v '^ *+' conftest.er1 >conftest.err
11550  rm -f conftest.er1
11551  cat conftest.err >&5
11552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553  (exit $ac_status); } && {
11554	 test -z "$ac_c_werror_flag" ||
11555	 test ! -s conftest.err
11556       } && test -s conftest.$ac_objext; then
11557  ac_cv_prog_cc_g=yes
11558else
11559  $as_echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562	CFLAGS=""
11563      cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h.  */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h.  */
11569
11570int
11571main ()
11572{
11573
11574  ;
11575  return 0;
11576}
11577_ACEOF
11578rm -f conftest.$ac_objext
11579if { (ac_try="$ac_compile"
11580case "(($ac_try" in
11581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582  *) ac_try_echo=$ac_try;;
11583esac
11584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11585$as_echo "$ac_try_echo") >&5
11586  (eval "$ac_compile") 2>conftest.er1
11587  ac_status=$?
11588  grep -v '^ *+' conftest.er1 >conftest.err
11589  rm -f conftest.er1
11590  cat conftest.err >&5
11591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592  (exit $ac_status); } && {
11593	 test -z "$ac_c_werror_flag" ||
11594	 test ! -s conftest.err
11595       } && test -s conftest.$ac_objext; then
11596  :
11597else
11598  $as_echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601	ac_c_werror_flag=$ac_save_c_werror_flag
11602	 CFLAGS="-g"
11603	 cat >conftest.$ac_ext <<_ACEOF
11604/* confdefs.h.  */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h.  */
11609
11610int
11611main ()
11612{
11613
11614  ;
11615  return 0;
11616}
11617_ACEOF
11618rm -f conftest.$ac_objext
11619if { (ac_try="$ac_compile"
11620case "(($ac_try" in
11621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622  *) ac_try_echo=$ac_try;;
11623esac
11624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11625$as_echo "$ac_try_echo") >&5
11626  (eval "$ac_compile") 2>conftest.er1
11627  ac_status=$?
11628  grep -v '^ *+' conftest.er1 >conftest.err
11629  rm -f conftest.er1
11630  cat conftest.err >&5
11631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632  (exit $ac_status); } && {
11633	 test -z "$ac_c_werror_flag" ||
11634	 test ! -s conftest.err
11635       } && test -s conftest.$ac_objext; then
11636  ac_cv_prog_cc_g=yes
11637else
11638  $as_echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641
11642fi
11643
11644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645fi
11646
11647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11648fi
11649
11650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651   ac_c_werror_flag=$ac_save_c_werror_flag
11652fi
11653{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11654$as_echo "$ac_cv_prog_cc_g" >&6; }
11655if test "$ac_test_CFLAGS" = set; then
11656  CFLAGS=$ac_save_CFLAGS
11657elif test $ac_cv_prog_cc_g = yes; then
11658  if test "$GCC" = yes; then
11659    CFLAGS="-g -O2"
11660  else
11661    CFLAGS="-g"
11662  fi
11663else
11664  if test "$GCC" = yes; then
11665    CFLAGS="-O2"
11666  else
11667    CFLAGS=
11668  fi
11669fi
11670{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11671$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11672if test "${ac_cv_prog_cc_c89+set}" = set; then
11673  $as_echo_n "(cached) " >&6
11674else
11675  ac_cv_prog_cc_c89=no
11676ac_save_CC=$CC
11677cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h.  */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h.  */
11683#include <stdarg.h>
11684#include <stdio.h>
11685#include <sys/types.h>
11686#include <sys/stat.h>
11687/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11688struct buf { int x; };
11689FILE * (*rcsopen) (struct buf *, struct stat *, int);
11690static char *e (p, i)
11691     char **p;
11692     int i;
11693{
11694  return p[i];
11695}
11696static char *f (char * (*g) (char **, int), char **p, ...)
11697{
11698  char *s;
11699  va_list v;
11700  va_start (v,p);
11701  s = g (p, va_arg (v,int));
11702  va_end (v);
11703  return s;
11704}
11705
11706/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11707   function prototypes and stuff, but not '\xHH' hex character constants.
11708   These don't provoke an error unfortunately, instead are silently treated
11709   as 'x'.  The following induces an error, until -std is added to get
11710   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11711   array size at least.  It's necessary to write '\x00'==0 to get something
11712   that's true only with -std.  */
11713int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11714
11715/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11716   inside strings and character constants.  */
11717#define FOO(x) 'x'
11718int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11719
11720int test (int i, double x);
11721struct s1 {int (*f) (int a);};
11722struct s2 {int (*f) (double a);};
11723int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11724int argc;
11725char **argv;
11726int
11727main ()
11728{
11729return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11735	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11736do
11737  CC="$ac_save_CC $ac_arg"
11738  rm -f conftest.$ac_objext
11739if { (ac_try="$ac_compile"
11740case "(($ac_try" in
11741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742  *) ac_try_echo=$ac_try;;
11743esac
11744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11745$as_echo "$ac_try_echo") >&5
11746  (eval "$ac_compile") 2>conftest.er1
11747  ac_status=$?
11748  grep -v '^ *+' conftest.er1 >conftest.err
11749  rm -f conftest.er1
11750  cat conftest.err >&5
11751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752  (exit $ac_status); } && {
11753	 test -z "$ac_c_werror_flag" ||
11754	 test ! -s conftest.err
11755       } && test -s conftest.$ac_objext; then
11756  ac_cv_prog_cc_c89=$ac_arg
11757else
11758  $as_echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
11761
11762fi
11763
11764rm -f core conftest.err conftest.$ac_objext
11765  test "x$ac_cv_prog_cc_c89" != "xno" && break
11766done
11767rm -f conftest.$ac_ext
11768CC=$ac_save_CC
11769
11770fi
11771# AC_CACHE_VAL
11772case "x$ac_cv_prog_cc_c89" in
11773  x)
11774    { $as_echo "$as_me:$LINENO: result: none needed" >&5
11775$as_echo "none needed" >&6; } ;;
11776  xno)
11777    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11778$as_echo "unsupported" >&6; } ;;
11779  *)
11780    CC="$CC $ac_cv_prog_cc_c89"
11781    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11782$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11783esac
11784
11785
11786ac_ext=c
11787ac_cpp='$CPP $CPPFLAGS'
11788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791
11792depcc="$CC"   am_compiler_list=
11793
11794{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11795$as_echo_n "checking dependency style of $depcc... " >&6; }
11796if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11797  $as_echo_n "(cached) " >&6
11798else
11799  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11800  # We make a subdir and do the tests there.  Otherwise we can end up
11801  # making bogus files that we don't know about and never remove.  For
11802  # instance it was reported that on HP-UX the gcc test will end up
11803  # making a dummy file named `D' -- because `-MD' means `put the output
11804  # in D'.
11805  mkdir conftest.dir
11806  # Copy depcomp to subdir because otherwise we won't find it if we're
11807  # using a relative directory.
11808  cp "$am_depcomp" conftest.dir
11809  cd conftest.dir
11810  # We will build objects and dependencies in a subdirectory because
11811  # it helps to detect inapplicable dependency modes.  For instance
11812  # both Tru64's cc and ICC support -MD to output dependencies as a
11813  # side effect of compilation, but ICC will put the dependencies in
11814  # the current directory while Tru64 will put them in the object
11815  # directory.
11816  mkdir sub
11817
11818  am_cv_CC_dependencies_compiler_type=none
11819  if test "$am_compiler_list" = ""; then
11820     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11821  fi
11822  for depmode in $am_compiler_list; do
11823    # Setup a source with many dependencies, because some compilers
11824    # like to wrap large dependency lists on column 80 (with \), and
11825    # we should not choose a depcomp mode which is confused by this.
11826    #
11827    # We need to recreate these files for each test, as the compiler may
11828    # overwrite some of them when testing with obscure command lines.
11829    # This happens at least with the AIX C compiler.
11830    : > sub/conftest.c
11831    for i in 1 2 3 4 5 6; do
11832      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11833      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11834      # Solaris 8's {/usr,}/bin/sh.
11835      touch sub/conftst$i.h
11836    done
11837    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11838
11839    case $depmode in
11840    nosideeffect)
11841      # after this tag, mechanisms are not by side-effect, so they'll
11842      # only be used when explicitly requested
11843      if test "x$enable_dependency_tracking" = xyes; then
11844	continue
11845      else
11846	break
11847      fi
11848      ;;
11849    none) break ;;
11850    esac
11851    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11852    # mode.  It turns out that the SunPro C++ compiler does not properly
11853    # handle `-M -o', and we need to detect this.
11854    if depmode=$depmode \
11855       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11856       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11857       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11858         >/dev/null 2>conftest.err &&
11859       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11860       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11861       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11862       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11863      # icc doesn't choke on unknown options, it will just issue warnings
11864      # or remarks (even with -Werror).  So we grep stderr for any message
11865      # that says an option was ignored or not supported.
11866      # When given -MP, icc 7.0 and 7.1 complain thusly:
11867      #   icc: Command line warning: ignoring option '-M'; no argument required
11868      # The diagnosis changed in icc 8.0:
11869      #   icc: Command line remark: option '-MP' not supported
11870      if (grep 'ignoring option' conftest.err ||
11871          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11872        am_cv_CC_dependencies_compiler_type=$depmode
11873        break
11874      fi
11875    fi
11876  done
11877
11878  cd ..
11879  rm -rf conftest.dir
11880else
11881  am_cv_CC_dependencies_compiler_type=none
11882fi
11883
11884fi
11885{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11886$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11887CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11888
11889 if
11890  test "x$enable_dependency_tracking" != xno \
11891  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11892  am__fastdepCC_TRUE=
11893  am__fastdepCC_FALSE='#'
11894else
11895  am__fastdepCC_TRUE='#'
11896  am__fastdepCC_FALSE=
11897fi
11898
11899
11900
11901
11902if  test "x$GCC" = xyes ; then
11903    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11904-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11905-Wbad-function-cast"
11906    case `gcc -dumpversion` in
11907    3.4.* | 4.*)
11908	CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
11909	;;
11910    esac
11911else
11912    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11913$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11914if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11915  $as_echo_n "(cached) " >&6
11916else
11917  cat >conftest.$ac_ext <<_ACEOF
11918/* confdefs.h.  */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h.  */
11923$ac_includes_default
11924int
11925main ()
11926{
11927#ifndef __SUNPRO_C
11928  (void) __SUNPRO_C;
11929#endif
11930
11931  ;
11932  return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext
11936if { (ac_try="$ac_compile"
11937case "(($ac_try" in
11938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939  *) ac_try_echo=$ac_try;;
11940esac
11941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942$as_echo "$ac_try_echo") >&5
11943  (eval "$ac_compile") 2>conftest.er1
11944  ac_status=$?
11945  grep -v '^ *+' conftest.er1 >conftest.err
11946  rm -f conftest.er1
11947  cat conftest.err >&5
11948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949  (exit $ac_status); } && {
11950	 test -z "$ac_c_werror_flag" ||
11951	 test ! -s conftest.err
11952       } && test -s conftest.$ac_objext; then
11953  ac_cv_have_decl___SUNPRO_C=yes
11954else
11955  $as_echo "$as_me: failed program was:" >&5
11956sed 's/^/| /' conftest.$ac_ext >&5
11957
11958	ac_cv_have_decl___SUNPRO_C=no
11959fi
11960
11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962fi
11963{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11964$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11965if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11966  SUNCC="yes"
11967else
11968  SUNCC="no"
11969fi
11970
11971    if test "x$SUNCC" = "xyes"; then
11972	CWARNFLAGS="-v"
11973    fi
11974fi
11975
11976
11977
11978
11979
11980
11981
11982# Check whether --with-xorg-module-dir was given.
11983if test "${with_xorg_module_dir+set}" = set; then
11984  withval=$with_xorg_module_dir; moduledir="$withval"
11985else
11986  moduledir="$libdir/xorg/modules"
11987fi
11988
11989
11990# Checks for extensions
11991
11992	SAVE_CFLAGS="$CFLAGS"
11993	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11994	cat >conftest.$ac_ext <<_ACEOF
11995/* confdefs.h.  */
11996_ACEOF
11997cat confdefs.h >>conftest.$ac_ext
11998cat >>conftest.$ac_ext <<_ACEOF
11999/* end confdefs.h.  */
12000
12001#include "xorg-server.h"
12002#if !defined RANDR
12003#error RANDR not defined
12004#endif
12005
12006int
12007main ()
12008{
12009
12010  ;
12011  return 0;
12012}
12013_ACEOF
12014rm -f conftest.$ac_objext
12015if { (ac_try="$ac_compile"
12016case "(($ac_try" in
12017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018  *) ac_try_echo=$ac_try;;
12019esac
12020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12021$as_echo "$ac_try_echo") >&5
12022  (eval "$ac_compile") 2>conftest.er1
12023  ac_status=$?
12024  grep -v '^ *+' conftest.er1 >conftest.err
12025  rm -f conftest.er1
12026  cat conftest.err >&5
12027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028  (exit $ac_status); } && {
12029	 test -z "$ac_c_werror_flag" ||
12030	 test ! -s conftest.err
12031       } && test -s conftest.$ac_objext; then
12032  _EXT_CHECK=yes
12033else
12034  $as_echo "$as_me: failed program was:" >&5
12035sed 's/^/| /' conftest.$ac_ext >&5
12036
12037	_EXT_CHECK=no
12038fi
12039
12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041	CFLAGS="$SAVE_CFLAGS"
12042	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12043$as_echo_n "checking if RANDR is defined... " >&6; }
12044	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12045$as_echo "$_EXT_CHECK" >&6; }
12046	if test "$_EXT_CHECK" != no; then
12047		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12048	fi
12049
12050
12051	SAVE_CFLAGS="$CFLAGS"
12052	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12053	cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h.  */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h.  */
12059
12060#include "xorg-server.h"
12061#if !defined RENDER
12062#error RENDER not defined
12063#endif
12064
12065int
12066main ()
12067{
12068
12069  ;
12070  return 0;
12071}
12072_ACEOF
12073rm -f conftest.$ac_objext
12074if { (ac_try="$ac_compile"
12075case "(($ac_try" in
12076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077  *) ac_try_echo=$ac_try;;
12078esac
12079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12080$as_echo "$ac_try_echo") >&5
12081  (eval "$ac_compile") 2>conftest.er1
12082  ac_status=$?
12083  grep -v '^ *+' conftest.er1 >conftest.err
12084  rm -f conftest.er1
12085  cat conftest.err >&5
12086  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087  (exit $ac_status); } && {
12088	 test -z "$ac_c_werror_flag" ||
12089	 test ! -s conftest.err
12090       } && test -s conftest.$ac_objext; then
12091  _EXT_CHECK=yes
12092else
12093  $as_echo "$as_me: failed program was:" >&5
12094sed 's/^/| /' conftest.$ac_ext >&5
12095
12096	_EXT_CHECK=no
12097fi
12098
12099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100	CFLAGS="$SAVE_CFLAGS"
12101	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12102$as_echo_n "checking if RENDER is defined... " >&6; }
12103	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12104$as_echo "$_EXT_CHECK" >&6; }
12105	if test "$_EXT_CHECK" != no; then
12106		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12107	fi
12108
12109
12110	SAVE_CFLAGS="$CFLAGS"
12111	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12112	cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h.  */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h.  */
12118
12119#include "xorg-server.h"
12120#if !defined XV
12121#error XV not defined
12122#endif
12123
12124int
12125main ()
12126{
12127
12128  ;
12129  return 0;
12130}
12131_ACEOF
12132rm -f conftest.$ac_objext
12133if { (ac_try="$ac_compile"
12134case "(($ac_try" in
12135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136  *) ac_try_echo=$ac_try;;
12137esac
12138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12139$as_echo "$ac_try_echo") >&5
12140  (eval "$ac_compile") 2>conftest.er1
12141  ac_status=$?
12142  grep -v '^ *+' conftest.er1 >conftest.err
12143  rm -f conftest.er1
12144  cat conftest.err >&5
12145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146  (exit $ac_status); } && {
12147	 test -z "$ac_c_werror_flag" ||
12148	 test ! -s conftest.err
12149       } && test -s conftest.$ac_objext; then
12150  _EXT_CHECK=yes
12151else
12152  $as_echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
12155	_EXT_CHECK=no
12156fi
12157
12158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159	CFLAGS="$SAVE_CFLAGS"
12160	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12161$as_echo_n "checking if XV is defined... " >&6; }
12162	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12163$as_echo "$_EXT_CHECK" >&6; }
12164	if test "$_EXT_CHECK" != no; then
12165		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12166	fi
12167
12168
12169	SAVE_CFLAGS="$CFLAGS"
12170	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12171	cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h.  */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h.  */
12177
12178#include "xorg-server.h"
12179#if !defined DPMSExtension
12180#error DPMSExtension not defined
12181#endif
12182
12183int
12184main ()
12185{
12186
12187  ;
12188  return 0;
12189}
12190_ACEOF
12191rm -f conftest.$ac_objext
12192if { (ac_try="$ac_compile"
12193case "(($ac_try" in
12194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195  *) ac_try_echo=$ac_try;;
12196esac
12197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12198$as_echo "$ac_try_echo") >&5
12199  (eval "$ac_compile") 2>conftest.er1
12200  ac_status=$?
12201  grep -v '^ *+' conftest.er1 >conftest.err
12202  rm -f conftest.er1
12203  cat conftest.err >&5
12204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205  (exit $ac_status); } && {
12206	 test -z "$ac_c_werror_flag" ||
12207	 test ! -s conftest.err
12208       } && test -s conftest.$ac_objext; then
12209  _EXT_CHECK=yes
12210else
12211  $as_echo "$as_me: failed program was:" >&5
12212sed 's/^/| /' conftest.$ac_ext >&5
12213
12214	_EXT_CHECK=no
12215fi
12216
12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218	CFLAGS="$SAVE_CFLAGS"
12219	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12220$as_echo_n "checking if DPMSExtension is defined... " >&6; }
12221	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12222$as_echo "$_EXT_CHECK" >&6; }
12223	if test "$_EXT_CHECK" != no; then
12224		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12225	fi
12226
12227
12228# Checks for pkg-config packages
12229
12230
12231if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12232	if test -n "$ac_tool_prefix"; then
12233  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12234set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12236$as_echo_n "checking for $ac_word... " >&6; }
12237if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12238  $as_echo_n "(cached) " >&6
12239else
12240  case $PKG_CONFIG in
12241  [\\/]* | ?:[\\/]*)
12242  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12243  ;;
12244  *)
12245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248  IFS=$as_save_IFS
12249  test -z "$as_dir" && as_dir=.
12250  for ac_exec_ext in '' $ac_executable_extensions; do
12251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12253    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12254    break 2
12255  fi
12256done
12257done
12258IFS=$as_save_IFS
12259
12260  ;;
12261esac
12262fi
12263PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12264if test -n "$PKG_CONFIG"; then
12265  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12266$as_echo "$PKG_CONFIG" >&6; }
12267else
12268  { $as_echo "$as_me:$LINENO: result: no" >&5
12269$as_echo "no" >&6; }
12270fi
12271
12272
12273fi
12274if test -z "$ac_cv_path_PKG_CONFIG"; then
12275  ac_pt_PKG_CONFIG=$PKG_CONFIG
12276  # Extract the first word of "pkg-config", so it can be a program name with args.
12277set dummy pkg-config; ac_word=$2
12278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12279$as_echo_n "checking for $ac_word... " >&6; }
12280if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12281  $as_echo_n "(cached) " >&6
12282else
12283  case $ac_pt_PKG_CONFIG in
12284  [\\/]* | ?:[\\/]*)
12285  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12286  ;;
12287  *)
12288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289for as_dir in $PATH
12290do
12291  IFS=$as_save_IFS
12292  test -z "$as_dir" && as_dir=.
12293  for ac_exec_ext in '' $ac_executable_extensions; do
12294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12296    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12297    break 2
12298  fi
12299done
12300done
12301IFS=$as_save_IFS
12302
12303  ;;
12304esac
12305fi
12306ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12307if test -n "$ac_pt_PKG_CONFIG"; then
12308  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12309$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12310else
12311  { $as_echo "$as_me:$LINENO: result: no" >&5
12312$as_echo "no" >&6; }
12313fi
12314
12315  if test "x$ac_pt_PKG_CONFIG" = x; then
12316    PKG_CONFIG=""
12317  else
12318    case $cross_compiling:$ac_tool_warned in
12319yes:)
12320{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12322ac_tool_warned=yes ;;
12323esac
12324    PKG_CONFIG=$ac_pt_PKG_CONFIG
12325  fi
12326else
12327  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12328fi
12329
12330fi
12331if test -n "$PKG_CONFIG"; then
12332	_pkg_min_version=0.9.0
12333	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12334$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12335	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12336		{ $as_echo "$as_me:$LINENO: result: yes" >&5
12337$as_echo "yes" >&6; }
12338	else
12339		{ $as_echo "$as_me:$LINENO: result: no" >&5
12340$as_echo "no" >&6; }
12341		PKG_CONFIG=""
12342	fi
12343
12344fi
12345
12346pkg_failed=no
12347{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
12348$as_echo_n "checking for XORG... " >&6; }
12349
12350if test -n "$XORG_CFLAGS"; then
12351    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12352 elif test -n "$PKG_CONFIG"; then
12353    if test -n "$PKG_CONFIG" && \
12354    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12355  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
12356  ac_status=$?
12357  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358  (exit $ac_status); }; then
12359  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12360else
12361  pkg_failed=yes
12362fi
12363 else
12364    pkg_failed=untried
12365fi
12366if test -n "$XORG_LIBS"; then
12367    pkg_cv_XORG_LIBS="$XORG_LIBS"
12368 elif test -n "$PKG_CONFIG"; then
12369    if test -n "$PKG_CONFIG" && \
12370    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12371  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
12372  ac_status=$?
12373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); }; then
12375  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12376else
12377  pkg_failed=yes
12378fi
12379 else
12380    pkg_failed=untried
12381fi
12382
12383
12384
12385if test $pkg_failed = yes; then
12386
12387if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12388        _pkg_short_errors_supported=yes
12389else
12390        _pkg_short_errors_supported=no
12391fi
12392        if test $_pkg_short_errors_supported = yes; then
12393	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12394        else
12395	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12396        fi
12397	# Put the nasty error message in config.log where it belongs
12398	echo "$XORG_PKG_ERRORS" >&5
12399
12400	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
12401
12402$XORG_PKG_ERRORS
12403
12404Consider adjusting the PKG_CONFIG_PATH environment variable if you
12405installed software in a non-standard prefix.
12406
12407Alternatively, you may set the environment variables XORG_CFLAGS
12408and XORG_LIBS to avoid the need to call pkg-config.
12409See the pkg-config man page for more details.
12410" >&5
12411$as_echo "$as_me: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
12412
12413$XORG_PKG_ERRORS
12414
12415Consider adjusting the PKG_CONFIG_PATH environment variable if you
12416installed software in a non-standard prefix.
12417
12418Alternatively, you may set the environment variables XORG_CFLAGS
12419and XORG_LIBS to avoid the need to call pkg-config.
12420See the pkg-config man page for more details.
12421" >&2;}
12422   { (exit 1); exit 1; }; }
12423elif test $pkg_failed = untried; then
12424	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12426{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12427is in your PATH or set the PKG_CONFIG environment variable to the full
12428path to pkg-config.
12429
12430Alternatively, you may set the environment variables XORG_CFLAGS
12431and XORG_LIBS to avoid the need to call pkg-config.
12432See the pkg-config man page for more details.
12433
12434To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12435See \`config.log' for more details." >&5
12436$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12437is in your PATH or set the PKG_CONFIG environment variable to the full
12438path to pkg-config.
12439
12440Alternatively, you may set the environment variables XORG_CFLAGS
12441and XORG_LIBS to avoid the need to call pkg-config.
12442See the pkg-config man page for more details.
12443
12444To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12445See \`config.log' for more details." >&2;}
12446   { (exit 1); exit 1; }; }; }
12447else
12448	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12449	XORG_LIBS=$pkg_cv_XORG_LIBS
12450        { $as_echo "$as_me:$LINENO: result: yes" >&5
12451$as_echo "yes" >&6; }
12452	:
12453fi
12454sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12455
12456# Checks for libraries.
12457SAVE_CPPFLAGS="$CPPFLAGS"
12458CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12459{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12460$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12461if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12462  $as_echo_n "(cached) " >&6
12463else
12464  cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h.  */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h.  */
12470#include "xorg-server.h"
12471
12472int
12473main ()
12474{
12475#ifndef XSERVER_LIBPCIACCESS
12476  (void) XSERVER_LIBPCIACCESS;
12477#endif
12478
12479  ;
12480  return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (ac_try="$ac_compile"
12485case "(($ac_try" in
12486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487  *) ac_try_echo=$ac_try;;
12488esac
12489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12490$as_echo "$ac_try_echo") >&5
12491  (eval "$ac_compile") 2>conftest.er1
12492  ac_status=$?
12493  grep -v '^ *+' conftest.er1 >conftest.err
12494  rm -f conftest.er1
12495  cat conftest.err >&5
12496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497  (exit $ac_status); } && {
12498	 test -z "$ac_c_werror_flag" ||
12499	 test ! -s conftest.err
12500       } && test -s conftest.$ac_objext; then
12501  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12502else
12503  $as_echo "$as_me: failed program was:" >&5
12504sed 's/^/| /' conftest.$ac_ext >&5
12505
12506	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12507fi
12508
12509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510fi
12511{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12512$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12513if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12514  XSERVER_LIBPCIACCESS=yes
12515else
12516  XSERVER_LIBPCIACCESS=no
12517fi
12518
12519if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12520  { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
12521$as_echo_n "checking for xf1bpp.h... " >&6; }
12522if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12523  $as_echo_n "(cached) " >&6
12524fi
12525{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
12526$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
12527else
12528  # Is the header compilable?
12529{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
12530$as_echo_n "checking xf1bpp.h usability... " >&6; }
12531cat >conftest.$ac_ext <<_ACEOF
12532/* confdefs.h.  */
12533_ACEOF
12534cat confdefs.h >>conftest.$ac_ext
12535cat >>conftest.$ac_ext <<_ACEOF
12536/* end confdefs.h.  */
12537$ac_includes_default
12538#include <xf1bpp.h>
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (ac_try="$ac_compile"
12542case "(($ac_try" in
12543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544  *) ac_try_echo=$ac_try;;
12545esac
12546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547$as_echo "$ac_try_echo") >&5
12548  (eval "$ac_compile") 2>conftest.er1
12549  ac_status=$?
12550  grep -v '^ *+' conftest.er1 >conftest.err
12551  rm -f conftest.er1
12552  cat conftest.err >&5
12553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554  (exit $ac_status); } && {
12555	 test -z "$ac_c_werror_flag" ||
12556	 test ! -s conftest.err
12557       } && test -s conftest.$ac_objext; then
12558  ac_header_compiler=yes
12559else
12560  $as_echo "$as_me: failed program was:" >&5
12561sed 's/^/| /' conftest.$ac_ext >&5
12562
12563	ac_header_compiler=no
12564fi
12565
12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12568$as_echo "$ac_header_compiler" >&6; }
12569
12570# Is the header present?
12571{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
12572$as_echo_n "checking xf1bpp.h presence... " >&6; }
12573cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h.  */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h.  */
12579#include <xf1bpp.h>
12580_ACEOF
12581if { (ac_try="$ac_cpp conftest.$ac_ext"
12582case "(($ac_try" in
12583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584  *) ac_try_echo=$ac_try;;
12585esac
12586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12587$as_echo "$ac_try_echo") >&5
12588  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12589  ac_status=$?
12590  grep -v '^ *+' conftest.er1 >conftest.err
12591  rm -f conftest.er1
12592  cat conftest.err >&5
12593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594  (exit $ac_status); } >/dev/null && {
12595	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12596	 test ! -s conftest.err
12597       }; then
12598  ac_header_preproc=yes
12599else
12600  $as_echo "$as_me: failed program was:" >&5
12601sed 's/^/| /' conftest.$ac_ext >&5
12602
12603  ac_header_preproc=no
12604fi
12605
12606rm -f conftest.err conftest.$ac_ext
12607{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12608$as_echo "$ac_header_preproc" >&6; }
12609
12610# So?  What about this header?
12611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12612  yes:no: )
12613    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12614$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12615    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
12616$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
12617    ac_header_preproc=yes
12618    ;;
12619  no:yes:* )
12620    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
12621$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
12622    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
12623$as_echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
12624    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
12625$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
12626    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
12627$as_echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12628    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
12629$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
12630    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
12631$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
12632    ( cat <<\_ASBOX
12633## ---------------------------------------------------------------------- ##
12634## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
12635## ---------------------------------------------------------------------- ##
12636_ASBOX
12637     ) | sed "s/^/$as_me: WARNING:     /" >&2
12638    ;;
12639esac
12640{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
12641$as_echo_n "checking for xf1bpp.h... " >&6; }
12642if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12643  $as_echo_n "(cached) " >&6
12644else
12645  ac_cv_header_xf1bpp_h=$ac_header_preproc
12646fi
12647{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
12648$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
12649
12650fi
12651if test "x$ac_cv_header_xf1bpp_h" = x""yes; then
12652
12653cat >>confdefs.h <<\_ACEOF
12654#define HAVE_XF1BPP 1
12655_ACEOF
12656
12657fi
12658
12659
12660if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12661  { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
12662$as_echo_n "checking for xf4bpp.h... " >&6; }
12663if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12664  $as_echo_n "(cached) " >&6
12665fi
12666{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
12667$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
12668else
12669  # Is the header compilable?
12670{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
12671$as_echo_n "checking xf4bpp.h usability... " >&6; }
12672cat >conftest.$ac_ext <<_ACEOF
12673/* confdefs.h.  */
12674_ACEOF
12675cat confdefs.h >>conftest.$ac_ext
12676cat >>conftest.$ac_ext <<_ACEOF
12677/* end confdefs.h.  */
12678$ac_includes_default
12679#include <xf4bpp.h>
12680_ACEOF
12681rm -f conftest.$ac_objext
12682if { (ac_try="$ac_compile"
12683case "(($ac_try" in
12684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685  *) ac_try_echo=$ac_try;;
12686esac
12687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12688$as_echo "$ac_try_echo") >&5
12689  (eval "$ac_compile") 2>conftest.er1
12690  ac_status=$?
12691  grep -v '^ *+' conftest.er1 >conftest.err
12692  rm -f conftest.er1
12693  cat conftest.err >&5
12694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695  (exit $ac_status); } && {
12696	 test -z "$ac_c_werror_flag" ||
12697	 test ! -s conftest.err
12698       } && test -s conftest.$ac_objext; then
12699  ac_header_compiler=yes
12700else
12701  $as_echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704	ac_header_compiler=no
12705fi
12706
12707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12709$as_echo "$ac_header_compiler" >&6; }
12710
12711# Is the header present?
12712{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
12713$as_echo_n "checking xf4bpp.h presence... " >&6; }
12714cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h.  */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h.  */
12720#include <xf4bpp.h>
12721_ACEOF
12722if { (ac_try="$ac_cpp conftest.$ac_ext"
12723case "(($ac_try" in
12724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725  *) ac_try_echo=$ac_try;;
12726esac
12727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12728$as_echo "$ac_try_echo") >&5
12729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12730  ac_status=$?
12731  grep -v '^ *+' conftest.er1 >conftest.err
12732  rm -f conftest.er1
12733  cat conftest.err >&5
12734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735  (exit $ac_status); } >/dev/null && {
12736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12737	 test ! -s conftest.err
12738       }; then
12739  ac_header_preproc=yes
12740else
12741  $as_echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
12744  ac_header_preproc=no
12745fi
12746
12747rm -f conftest.err conftest.$ac_ext
12748{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12749$as_echo "$ac_header_preproc" >&6; }
12750
12751# So?  What about this header?
12752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12753  yes:no: )
12754    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12755$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12756    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
12757$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
12758    ac_header_preproc=yes
12759    ;;
12760  no:yes:* )
12761    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
12762$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
12763    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
12764$as_echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
12765    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
12766$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
12767    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
12768$as_echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12769    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
12770$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
12771    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
12772$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
12773    ( cat <<\_ASBOX
12774## ---------------------------------------------------------------------- ##
12775## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
12776## ---------------------------------------------------------------------- ##
12777_ASBOX
12778     ) | sed "s/^/$as_me: WARNING:     /" >&2
12779    ;;
12780esac
12781{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
12782$as_echo_n "checking for xf4bpp.h... " >&6; }
12783if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12784  $as_echo_n "(cached) " >&6
12785else
12786  ac_cv_header_xf4bpp_h=$ac_header_preproc
12787fi
12788{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
12789$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
12790
12791fi
12792if test "x$ac_cv_header_xf4bpp_h" = x""yes; then
12793
12794cat >>confdefs.h <<\_ACEOF
12795#define HAVE_XF4BPP 1
12796_ACEOF
12797
12798fi
12799
12800
12801CPPFLAGS="$SAVE_CPPFLAGS"
12802
12803if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12804
12805pkg_failed=no
12806{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12807$as_echo_n "checking for PCIACCESS... " >&6; }
12808
12809if test -n "$PCIACCESS_CFLAGS"; then
12810    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12811 elif test -n "$PKG_CONFIG"; then
12812    if test -n "$PKG_CONFIG" && \
12813    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12814  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12815  ac_status=$?
12816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817  (exit $ac_status); }; then
12818  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12819else
12820  pkg_failed=yes
12821fi
12822 else
12823    pkg_failed=untried
12824fi
12825if test -n "$PCIACCESS_LIBS"; then
12826    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12827 elif test -n "$PKG_CONFIG"; then
12828    if test -n "$PKG_CONFIG" && \
12829    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12830  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12831  ac_status=$?
12832  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833  (exit $ac_status); }; then
12834  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12835else
12836  pkg_failed=yes
12837fi
12838 else
12839    pkg_failed=untried
12840fi
12841
12842
12843
12844if test $pkg_failed = yes; then
12845
12846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12847        _pkg_short_errors_supported=yes
12848else
12849        _pkg_short_errors_supported=no
12850fi
12851        if test $_pkg_short_errors_supported = yes; then
12852	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12853        else
12854	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12855        fi
12856	# Put the nasty error message in config.log where it belongs
12857	echo "$PCIACCESS_PKG_ERRORS" >&5
12858
12859	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12860
12861$PCIACCESS_PKG_ERRORS
12862
12863Consider adjusting the PKG_CONFIG_PATH environment variable if you
12864installed software in a non-standard prefix.
12865
12866Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12867and PCIACCESS_LIBS to avoid the need to call pkg-config.
12868See the pkg-config man page for more details.
12869" >&5
12870$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12871
12872$PCIACCESS_PKG_ERRORS
12873
12874Consider adjusting the PKG_CONFIG_PATH environment variable if you
12875installed software in a non-standard prefix.
12876
12877Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12878and PCIACCESS_LIBS to avoid the need to call pkg-config.
12879See the pkg-config man page for more details.
12880" >&2;}
12881   { (exit 1); exit 1; }; }
12882elif test $pkg_failed = untried; then
12883	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12885{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12886is in your PATH or set the PKG_CONFIG environment variable to the full
12887path to pkg-config.
12888
12889Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12890and PCIACCESS_LIBS to avoid the need to call pkg-config.
12891See the pkg-config man page for more details.
12892
12893To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12894See \`config.log' for more details." >&5
12895$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12896is in your PATH or set the PKG_CONFIG environment variable to the full
12897path to pkg-config.
12898
12899Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12900and PCIACCESS_LIBS to avoid the need to call pkg-config.
12901See the pkg-config man page for more details.
12902
12903To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12904See \`config.log' for more details." >&2;}
12905   { (exit 1); exit 1; }; }; }
12906else
12907	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12908	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12909        { $as_echo "$as_me:$LINENO: result: yes" >&5
12910$as_echo "yes" >&6; }
12911	:
12912fi
12913    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12914fi
12915 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12916  XSERVER_LIBPCIACCESS_TRUE=
12917  XSERVER_LIBPCIACCESS_FALSE='#'
12918else
12919  XSERVER_LIBPCIACCESS_TRUE='#'
12920  XSERVER_LIBPCIACCESS_FALSE=
12921fi
12922
12923
12924# Checks for header files.
12925{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12926$as_echo_n "checking for ANSI C header files... " >&6; }
12927if test "${ac_cv_header_stdc+set}" = set; then
12928  $as_echo_n "(cached) " >&6
12929else
12930  cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h.  */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h.  */
12936#include <stdlib.h>
12937#include <stdarg.h>
12938#include <string.h>
12939#include <float.h>
12940
12941int
12942main ()
12943{
12944
12945  ;
12946  return 0;
12947}
12948_ACEOF
12949rm -f conftest.$ac_objext
12950if { (ac_try="$ac_compile"
12951case "(($ac_try" in
12952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953  *) ac_try_echo=$ac_try;;
12954esac
12955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12956$as_echo "$ac_try_echo") >&5
12957  (eval "$ac_compile") 2>conftest.er1
12958  ac_status=$?
12959  grep -v '^ *+' conftest.er1 >conftest.err
12960  rm -f conftest.er1
12961  cat conftest.err >&5
12962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963  (exit $ac_status); } && {
12964	 test -z "$ac_c_werror_flag" ||
12965	 test ! -s conftest.err
12966       } && test -s conftest.$ac_objext; then
12967  ac_cv_header_stdc=yes
12968else
12969  $as_echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972	ac_cv_header_stdc=no
12973fi
12974
12975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12976
12977if test $ac_cv_header_stdc = yes; then
12978  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12979  cat >conftest.$ac_ext <<_ACEOF
12980/* confdefs.h.  */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h.  */
12985#include <string.h>
12986
12987_ACEOF
12988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12989  $EGREP "memchr" >/dev/null 2>&1; then
12990  :
12991else
12992  ac_cv_header_stdc=no
12993fi
12994rm -f conftest*
12995
12996fi
12997
12998if test $ac_cv_header_stdc = yes; then
12999  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13000  cat >conftest.$ac_ext <<_ACEOF
13001/* confdefs.h.  */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h.  */
13006#include <stdlib.h>
13007
13008_ACEOF
13009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13010  $EGREP "free" >/dev/null 2>&1; then
13011  :
13012else
13013  ac_cv_header_stdc=no
13014fi
13015rm -f conftest*
13016
13017fi
13018
13019if test $ac_cv_header_stdc = yes; then
13020  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13021  if test "$cross_compiling" = yes; then
13022  :
13023else
13024  cat >conftest.$ac_ext <<_ACEOF
13025/* confdefs.h.  */
13026_ACEOF
13027cat confdefs.h >>conftest.$ac_ext
13028cat >>conftest.$ac_ext <<_ACEOF
13029/* end confdefs.h.  */
13030#include <ctype.h>
13031#include <stdlib.h>
13032#if ((' ' & 0x0FF) == 0x020)
13033# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13034# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13035#else
13036# define ISLOWER(c) \
13037		   (('a' <= (c) && (c) <= 'i') \
13038		     || ('j' <= (c) && (c) <= 'r') \
13039		     || ('s' <= (c) && (c) <= 'z'))
13040# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13041#endif
13042
13043#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13044int
13045main ()
13046{
13047  int i;
13048  for (i = 0; i < 256; i++)
13049    if (XOR (islower (i), ISLOWER (i))
13050	|| toupper (i) != TOUPPER (i))
13051      return 2;
13052  return 0;
13053}
13054_ACEOF
13055rm -f conftest$ac_exeext
13056if { (ac_try="$ac_link"
13057case "(($ac_try" in
13058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059  *) ac_try_echo=$ac_try;;
13060esac
13061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062$as_echo "$ac_try_echo") >&5
13063  (eval "$ac_link") 2>&5
13064  ac_status=$?
13065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13067  { (case "(($ac_try" in
13068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069  *) ac_try_echo=$ac_try;;
13070esac
13071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13072$as_echo "$ac_try_echo") >&5
13073  (eval "$ac_try") 2>&5
13074  ac_status=$?
13075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076  (exit $ac_status); }; }; then
13077  :
13078else
13079  $as_echo "$as_me: program exited with status $ac_status" >&5
13080$as_echo "$as_me: failed program was:" >&5
13081sed 's/^/| /' conftest.$ac_ext >&5
13082
13083( exit $ac_status )
13084ac_cv_header_stdc=no
13085fi
13086rm -rf conftest.dSYM
13087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13088fi
13089
13090
13091fi
13092fi
13093{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13094$as_echo "$ac_cv_header_stdc" >&6; }
13095if test $ac_cv_header_stdc = yes; then
13096
13097cat >>confdefs.h <<\_ACEOF
13098#define STDC_HEADERS 1
13099_ACEOF
13100
13101fi
13102
13103
13104
13105
13106
13107DRIVER_NAME=cirrus
13108
13109
13110
13111
13112
13113if test x$APP_MAN_SUFFIX = x    ; then
13114    APP_MAN_SUFFIX=1
13115fi
13116if test x$APP_MAN_DIR = x    ; then
13117    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13118fi
13119
13120if test x$LIB_MAN_SUFFIX = x    ; then
13121    LIB_MAN_SUFFIX=3
13122fi
13123if test x$LIB_MAN_DIR = x    ; then
13124    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13125fi
13126
13127if test x$FILE_MAN_SUFFIX = x    ; then
13128    case $host_os in
13129	solaris*)	FILE_MAN_SUFFIX=4  ;;
13130	*)		FILE_MAN_SUFFIX=5  ;;
13131    esac
13132fi
13133if test x$FILE_MAN_DIR = x    ; then
13134    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13135fi
13136
13137if test x$MISC_MAN_SUFFIX = x    ; then
13138    case $host_os in
13139	solaris*)	MISC_MAN_SUFFIX=5  ;;
13140	*)		MISC_MAN_SUFFIX=7  ;;
13141    esac
13142fi
13143if test x$MISC_MAN_DIR = x    ; then
13144    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13145fi
13146
13147if test x$DRIVER_MAN_SUFFIX = x    ; then
13148    case $host_os in
13149	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
13150	*)		DRIVER_MAN_SUFFIX=4  ;;
13151    esac
13152fi
13153if test x$DRIVER_MAN_DIR = x    ; then
13154    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13155fi
13156
13157if test x$ADMIN_MAN_SUFFIX = x    ; then
13158    case $host_os in
13159	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
13160	*)		ADMIN_MAN_SUFFIX=8  ;;
13161    esac
13162fi
13163if test x$ADMIN_MAN_DIR = x    ; then
13164    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13165fi
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183# Check whether --with-release-version was given.
13184if test "${with_release_version+set}" = set; then
13185  withval=$with_release_version; RELEASE_VERSION="$withval"
13186else
13187  RELEASE_VERSION=""
13188fi
13189
13190	if test "x$RELEASE_VERSION" != "x"; then
13191		PACKAGE="$PACKAGE-$RELEASE_VERSION"
13192		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13193		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
13194$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13195	fi
13196
13197cat >>confdefs.h <<_ACEOF
13198#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13199_ACEOF
13200
13201	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13202	if test "x$PVM" = "x"; then
13203		PVM="0"
13204	fi
13205
13206cat >>confdefs.h <<_ACEOF
13207#define PACKAGE_VERSION_MINOR $PVM
13208_ACEOF
13209
13210	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13211	if test "x$PVP" = "x"; then
13212		PVP="0"
13213	fi
13214
13215cat >>confdefs.h <<_ACEOF
13216#define PACKAGE_VERSION_PATCHLEVEL $PVP
13217_ACEOF
13218
13219
13220
13221CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
13222mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
13223echo 'git directory not found: installing possibly empty changelog.' >&2)"
13224
13225distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
13226
13227
13228
13229ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13230
13231cat >confcache <<\_ACEOF
13232# This file is a shell script that caches the results of configure
13233# tests run on this system so they can be shared between configure
13234# scripts and configure runs, see configure's option --config-cache.
13235# It is not useful on other systems.  If it contains results you don't
13236# want to keep, you may remove or edit it.
13237#
13238# config.status only pays attention to the cache file if you give it
13239# the --recheck option to rerun configure.
13240#
13241# `ac_cv_env_foo' variables (set or unset) will be overridden when
13242# loading this file, other *unset* `ac_cv_foo' will be assigned the
13243# following values.
13244
13245_ACEOF
13246
13247# The following way of writing the cache mishandles newlines in values,
13248# but we know of no workaround that is simple, portable, and efficient.
13249# So, we kill variables containing newlines.
13250# Ultrix sh set writes to stderr and can't be redirected directly,
13251# and sets the high bit in the cache file unless we assign to the vars.
13252(
13253  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13254    eval ac_val=\$$ac_var
13255    case $ac_val in #(
13256    *${as_nl}*)
13257      case $ac_var in #(
13258      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13259$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13260      esac
13261      case $ac_var in #(
13262      _ | IFS | as_nl) ;; #(
13263      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13264      *) $as_unset $ac_var ;;
13265      esac ;;
13266    esac
13267  done
13268
13269  (set) 2>&1 |
13270    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13271    *${as_nl}ac_space=\ *)
13272      # `set' does not quote correctly, so add quotes (double-quote
13273      # substitution turns \\\\ into \\, and sed turns \\ into \).
13274      sed -n \
13275	"s/'/'\\\\''/g;
13276	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13277      ;; #(
13278    *)
13279      # `set' quotes correctly as required by POSIX, so do not add quotes.
13280      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13281      ;;
13282    esac |
13283    sort
13284) |
13285  sed '
13286     /^ac_cv_env_/b end
13287     t clear
13288     :clear
13289     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13290     t end
13291     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13292     :end' >>confcache
13293if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13294  if test -w "$cache_file"; then
13295    test "x$cache_file" != "x/dev/null" &&
13296      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13297$as_echo "$as_me: updating cache $cache_file" >&6;}
13298    cat confcache >$cache_file
13299  else
13300    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13301$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13302  fi
13303fi
13304rm -f confcache
13305
13306test "x$prefix" = xNONE && prefix=$ac_default_prefix
13307# Let make expand exec_prefix.
13308test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13309
13310DEFS=-DHAVE_CONFIG_H
13311
13312ac_libobjs=
13313ac_ltlibobjs=
13314for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13315  # 1. Remove the extension, and $U if already installed.
13316  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13317  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13318  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13319  #    will be set to the directory where LIBOBJS objects are built.
13320  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13321  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13322done
13323LIBOBJS=$ac_libobjs
13324
13325LTLIBOBJS=$ac_ltlibobjs
13326
13327
13328if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13329  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13330Usually this means the macro was only invoked conditionally." >&5
13331$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13332Usually this means the macro was only invoked conditionally." >&2;}
13333   { (exit 1); exit 1; }; }
13334fi
13335if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13336  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13337Usually this means the macro was only invoked conditionally." >&5
13338$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13339Usually this means the macro was only invoked conditionally." >&2;}
13340   { (exit 1); exit 1; }; }
13341fi
13342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13343  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13344Usually this means the macro was only invoked conditionally." >&5
13345$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13346Usually this means the macro was only invoked conditionally." >&2;}
13347   { (exit 1); exit 1; }; }
13348fi
13349if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13350  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13351Usually this means the macro was only invoked conditionally." >&5
13352$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13353Usually this means the macro was only invoked conditionally." >&2;}
13354   { (exit 1); exit 1; }; }
13355fi
13356if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13357  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13358Usually this means the macro was only invoked conditionally." >&5
13359$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13360Usually this means the macro was only invoked conditionally." >&2;}
13361   { (exit 1); exit 1; }; }
13362fi
13363
13364: ${CONFIG_STATUS=./config.status}
13365ac_write_fail=0
13366ac_clean_files_save=$ac_clean_files
13367ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13368{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13369$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13370cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13371#! $SHELL
13372# Generated by $as_me.
13373# Run this file to recreate the current configuration.
13374# Compiler output produced by configure, useful for debugging
13375# configure, is in config.log if it exists.
13376
13377debug=false
13378ac_cs_recheck=false
13379ac_cs_silent=false
13380SHELL=\${CONFIG_SHELL-$SHELL}
13381_ACEOF
13382
13383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13384## --------------------- ##
13385## M4sh Initialization.  ##
13386## --------------------- ##
13387
13388# Be more Bourne compatible
13389DUALCASE=1; export DUALCASE # for MKS sh
13390if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13391  emulate sh
13392  NULLCMD=:
13393  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13394  # is contrary to our usage.  Disable this feature.
13395  alias -g '${1+"$@"}'='"$@"'
13396  setopt NO_GLOB_SUBST
13397else
13398  case `(set -o) 2>/dev/null` in
13399  *posix*) set -o posix ;;
13400esac
13401
13402fi
13403
13404
13405
13406
13407# PATH needs CR
13408# Avoid depending upon Character Ranges.
13409as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13410as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13411as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13412as_cr_digits='0123456789'
13413as_cr_alnum=$as_cr_Letters$as_cr_digits
13414
13415as_nl='
13416'
13417export as_nl
13418# Printing a long string crashes Solaris 7 /usr/bin/printf.
13419as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13420as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13421as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13422if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13423  as_echo='printf %s\n'
13424  as_echo_n='printf %s'
13425else
13426  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13427    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13428    as_echo_n='/usr/ucb/echo -n'
13429  else
13430    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13431    as_echo_n_body='eval
13432      arg=$1;
13433      case $arg in
13434      *"$as_nl"*)
13435	expr "X$arg" : "X\\(.*\\)$as_nl";
13436	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13437      esac;
13438      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13439    '
13440    export as_echo_n_body
13441    as_echo_n='sh -c $as_echo_n_body as_echo'
13442  fi
13443  export as_echo_body
13444  as_echo='sh -c $as_echo_body as_echo'
13445fi
13446
13447# The user is always right.
13448if test "${PATH_SEPARATOR+set}" != set; then
13449  PATH_SEPARATOR=:
13450  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13451    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13452      PATH_SEPARATOR=';'
13453  }
13454fi
13455
13456# Support unset when possible.
13457if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13458  as_unset=unset
13459else
13460  as_unset=false
13461fi
13462
13463
13464# IFS
13465# We need space, tab and new line, in precisely that order.  Quoting is
13466# there to prevent editors from complaining about space-tab.
13467# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13468# splitting by setting IFS to empty value.)
13469IFS=" ""	$as_nl"
13470
13471# Find who we are.  Look in the path if we contain no directory separator.
13472case $0 in
13473  *[\\/]* ) as_myself=$0 ;;
13474  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475for as_dir in $PATH
13476do
13477  IFS=$as_save_IFS
13478  test -z "$as_dir" && as_dir=.
13479  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13480done
13481IFS=$as_save_IFS
13482
13483     ;;
13484esac
13485# We did not find ourselves, most probably we were run as `sh COMMAND'
13486# in which case we are not to be found in the path.
13487if test "x$as_myself" = x; then
13488  as_myself=$0
13489fi
13490if test ! -f "$as_myself"; then
13491  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13492  { (exit 1); exit 1; }
13493fi
13494
13495# Work around bugs in pre-3.0 UWIN ksh.
13496for as_var in ENV MAIL MAILPATH
13497do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13498done
13499PS1='$ '
13500PS2='> '
13501PS4='+ '
13502
13503# NLS nuisances.
13504LC_ALL=C
13505export LC_ALL
13506LANGUAGE=C
13507export LANGUAGE
13508
13509# Required to use basename.
13510if expr a : '\(a\)' >/dev/null 2>&1 &&
13511   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13512  as_expr=expr
13513else
13514  as_expr=false
13515fi
13516
13517if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13518  as_basename=basename
13519else
13520  as_basename=false
13521fi
13522
13523
13524# Name of the executable.
13525as_me=`$as_basename -- "$0" ||
13526$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13527	 X"$0" : 'X\(//\)$' \| \
13528	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13529$as_echo X/"$0" |
13530    sed '/^.*\/\([^/][^/]*\)\/*$/{
13531	    s//\1/
13532	    q
13533	  }
13534	  /^X\/\(\/\/\)$/{
13535	    s//\1/
13536	    q
13537	  }
13538	  /^X\/\(\/\).*/{
13539	    s//\1/
13540	    q
13541	  }
13542	  s/.*/./; q'`
13543
13544# CDPATH.
13545$as_unset CDPATH
13546
13547
13548
13549  as_lineno_1=$LINENO
13550  as_lineno_2=$LINENO
13551  test "x$as_lineno_1" != "x$as_lineno_2" &&
13552  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13553
13554  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13555  # uniformly replaced by the line number.  The first 'sed' inserts a
13556  # line-number line after each line using $LINENO; the second 'sed'
13557  # does the real work.  The second script uses 'N' to pair each
13558  # line-number line with the line containing $LINENO, and appends
13559  # trailing '-' during substitution so that $LINENO is not a special
13560  # case at line end.
13561  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13562  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13563  # E. McMahon (1931-1989) for sed's syntax.  :-)
13564  sed -n '
13565    p
13566    /[$]LINENO/=
13567  ' <$as_myself |
13568    sed '
13569      s/[$]LINENO.*/&-/
13570      t lineno
13571      b
13572      :lineno
13573      N
13574      :loop
13575      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13576      t loop
13577      s/-\n.*//
13578    ' >$as_me.lineno &&
13579  chmod +x "$as_me.lineno" ||
13580    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13581   { (exit 1); exit 1; }; }
13582
13583  # Don't try to exec as it changes $[0], causing all sort of problems
13584  # (the dirname of $[0] is not the place where we might find the
13585  # original and so on.  Autoconf is especially sensitive to this).
13586  . "./$as_me.lineno"
13587  # Exit status is that of the last command.
13588  exit
13589}
13590
13591
13592if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13593  as_dirname=dirname
13594else
13595  as_dirname=false
13596fi
13597
13598ECHO_C= ECHO_N= ECHO_T=
13599case `echo -n x` in
13600-n*)
13601  case `echo 'x\c'` in
13602  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13603  *)   ECHO_C='\c';;
13604  esac;;
13605*)
13606  ECHO_N='-n';;
13607esac
13608if expr a : '\(a\)' >/dev/null 2>&1 &&
13609   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13610  as_expr=expr
13611else
13612  as_expr=false
13613fi
13614
13615rm -f conf$$ conf$$.exe conf$$.file
13616if test -d conf$$.dir; then
13617  rm -f conf$$.dir/conf$$.file
13618else
13619  rm -f conf$$.dir
13620  mkdir conf$$.dir 2>/dev/null
13621fi
13622if (echo >conf$$.file) 2>/dev/null; then
13623  if ln -s conf$$.file conf$$ 2>/dev/null; then
13624    as_ln_s='ln -s'
13625    # ... but there are two gotchas:
13626    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13627    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13628    # In both cases, we have to default to `cp -p'.
13629    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13630      as_ln_s='cp -p'
13631  elif ln conf$$.file conf$$ 2>/dev/null; then
13632    as_ln_s=ln
13633  else
13634    as_ln_s='cp -p'
13635  fi
13636else
13637  as_ln_s='cp -p'
13638fi
13639rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13640rmdir conf$$.dir 2>/dev/null
13641
13642if mkdir -p . 2>/dev/null; then
13643  as_mkdir_p=:
13644else
13645  test -d ./-p && rmdir ./-p
13646  as_mkdir_p=false
13647fi
13648
13649if test -x / >/dev/null 2>&1; then
13650  as_test_x='test -x'
13651else
13652  if ls -dL / >/dev/null 2>&1; then
13653    as_ls_L_option=L
13654  else
13655    as_ls_L_option=
13656  fi
13657  as_test_x='
13658    eval sh -c '\''
13659      if test -d "$1"; then
13660	test -d "$1/.";
13661      else
13662	case $1 in
13663	-*)set "./$1";;
13664	esac;
13665	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13666	???[sx]*):;;*)false;;esac;fi
13667    '\'' sh
13668  '
13669fi
13670as_executable_p=$as_test_x
13671
13672# Sed expression to map a string onto a valid CPP name.
13673as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13674
13675# Sed expression to map a string onto a valid variable name.
13676as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13677
13678
13679exec 6>&1
13680
13681# Save the log message, to keep $[0] and so on meaningful, and to
13682# report actual input values of CONFIG_FILES etc. instead of their
13683# values after options handling.
13684ac_log="
13685This file was extended by xf86-video-cirrus $as_me 1.3.1, which was
13686generated by GNU Autoconf 2.63.  Invocation command line was
13687
13688  CONFIG_FILES    = $CONFIG_FILES
13689  CONFIG_HEADERS  = $CONFIG_HEADERS
13690  CONFIG_LINKS    = $CONFIG_LINKS
13691  CONFIG_COMMANDS = $CONFIG_COMMANDS
13692  $ $0 $@
13693
13694on `(hostname || uname -n) 2>/dev/null | sed 1q`
13695"
13696
13697_ACEOF
13698
13699case $ac_config_files in *"
13700"*) set x $ac_config_files; shift; ac_config_files=$*;;
13701esac
13702
13703case $ac_config_headers in *"
13704"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13705esac
13706
13707
13708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13709# Files that config.status was made for.
13710config_files="$ac_config_files"
13711config_headers="$ac_config_headers"
13712config_commands="$ac_config_commands"
13713
13714_ACEOF
13715
13716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13717ac_cs_usage="\
13718\`$as_me' instantiates files from templates according to the
13719current configuration.
13720
13721Usage: $0 [OPTION]... [FILE]...
13722
13723  -h, --help       print this help, then exit
13724  -V, --version    print version number and configuration settings, then exit
13725  -q, --quiet, --silent
13726                   do not print progress messages
13727  -d, --debug      don't remove temporary files
13728      --recheck    update $as_me by reconfiguring in the same conditions
13729      --file=FILE[:TEMPLATE]
13730                   instantiate the configuration file FILE
13731      --header=FILE[:TEMPLATE]
13732                   instantiate the configuration header FILE
13733
13734Configuration files:
13735$config_files
13736
13737Configuration headers:
13738$config_headers
13739
13740Configuration commands:
13741$config_commands
13742
13743Report bugs to <bug-autoconf@gnu.org>."
13744
13745_ACEOF
13746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13747ac_cs_version="\\
13748xf86-video-cirrus config.status 1.3.1
13749configured by $0, generated by GNU Autoconf 2.63,
13750  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13751
13752Copyright (C) 2008 Free Software Foundation, Inc.
13753This config.status script is free software; the Free Software Foundation
13754gives unlimited permission to copy, distribute and modify it."
13755
13756ac_pwd='$ac_pwd'
13757srcdir='$srcdir'
13758INSTALL='$INSTALL'
13759MKDIR_P='$MKDIR_P'
13760AWK='$AWK'
13761test -n "\$AWK" || AWK=awk
13762_ACEOF
13763
13764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765# The default lists apply if the user does not specify any file.
13766ac_need_defaults=:
13767while test $# != 0
13768do
13769  case $1 in
13770  --*=*)
13771    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13772    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13773    ac_shift=:
13774    ;;
13775  *)
13776    ac_option=$1
13777    ac_optarg=$2
13778    ac_shift=shift
13779    ;;
13780  esac
13781
13782  case $ac_option in
13783  # Handling of the options.
13784  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13785    ac_cs_recheck=: ;;
13786  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13787    $as_echo "$ac_cs_version"; exit ;;
13788  --debug | --debu | --deb | --de | --d | -d )
13789    debug=: ;;
13790  --file | --fil | --fi | --f )
13791    $ac_shift
13792    case $ac_optarg in
13793    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13794    esac
13795    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13796    ac_need_defaults=false;;
13797  --header | --heade | --head | --hea )
13798    $ac_shift
13799    case $ac_optarg in
13800    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13801    esac
13802    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13803    ac_need_defaults=false;;
13804  --he | --h)
13805    # Conflict between --help and --header
13806    { $as_echo "$as_me: error: ambiguous option: $1
13807Try \`$0 --help' for more information." >&2
13808   { (exit 1); exit 1; }; };;
13809  --help | --hel | -h )
13810    $as_echo "$ac_cs_usage"; exit ;;
13811  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13812  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13813    ac_cs_silent=: ;;
13814
13815  # This is an error.
13816  -*) { $as_echo "$as_me: error: unrecognized option: $1
13817Try \`$0 --help' for more information." >&2
13818   { (exit 1); exit 1; }; } ;;
13819
13820  *) ac_config_targets="$ac_config_targets $1"
13821     ac_need_defaults=false ;;
13822
13823  esac
13824  shift
13825done
13826
13827ac_configure_extra_args=
13828
13829if $ac_cs_silent; then
13830  exec 6>/dev/null
13831  ac_configure_extra_args="$ac_configure_extra_args --silent"
13832fi
13833
13834_ACEOF
13835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13836if \$ac_cs_recheck; then
13837  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13838  shift
13839  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13840  CONFIG_SHELL='$SHELL'
13841  export CONFIG_SHELL
13842  exec "\$@"
13843fi
13844
13845_ACEOF
13846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13847exec 5>>config.log
13848{
13849  echo
13850  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13851## Running $as_me. ##
13852_ASBOX
13853  $as_echo "$ac_log"
13854} >&5
13855
13856_ACEOF
13857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13858#
13859# INIT-COMMANDS
13860#
13861AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13862
13863
13864# The HP-UX ksh and POSIX shell print the target directory to stdout
13865# if CDPATH is set.
13866(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13867
13868sed_quote_subst='$sed_quote_subst'
13869double_quote_subst='$double_quote_subst'
13870delay_variable_subst='$delay_variable_subst'
13871enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13872macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13873macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13874enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13875pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13876enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13877host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13878host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13879host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13880build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13881build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13882build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13883SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13884Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13885GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13886EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13887FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13888LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13889NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13890LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13891max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13892ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13893exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13894lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13895lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13896lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13897reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13898reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13899OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13900deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13901file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13902AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13903AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13904STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13905RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13906old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13907old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13908old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13909CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13910CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13911compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13912GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13913lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13914lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13915lt_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"`'
13916lt_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"`'
13917objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13918SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13919ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13920MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13921lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13922lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13923lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13924lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13925lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13926need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13927DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13928NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13929LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13930OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13931OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13932libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13933shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13934extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13935archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13936enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13937export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13938whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13939compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13940old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13941old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13942archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13943archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13944module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13945module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13946with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13947allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13948no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13949hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13950hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13951hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13952hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13953hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13954hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13955hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13956hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13957inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13958link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13959fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13960always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13961export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13962exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13963include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13964prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13965file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13966variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13967need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13968need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13969version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13970runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13971shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13972shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13973libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13974library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13975soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13976postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13977postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13978finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13979finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13980hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13981sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13982sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13983hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13984enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13985enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13986enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13987old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13988striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13989
13990LTCC='$LTCC'
13991LTCFLAGS='$LTCFLAGS'
13992compiler='$compiler_DEFAULT'
13993
13994# Quote evaled strings.
13995for var in SED \
13996GREP \
13997EGREP \
13998FGREP \
13999LD \
14000NM \
14001LN_S \
14002lt_SP2NL \
14003lt_NL2SP \
14004reload_flag \
14005OBJDUMP \
14006deplibs_check_method \
14007file_magic_cmd \
14008AR \
14009AR_FLAGS \
14010STRIP \
14011RANLIB \
14012CC \
14013CFLAGS \
14014compiler \
14015lt_cv_sys_global_symbol_pipe \
14016lt_cv_sys_global_symbol_to_cdecl \
14017lt_cv_sys_global_symbol_to_c_name_address \
14018lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14019SHELL \
14020ECHO \
14021lt_prog_compiler_no_builtin_flag \
14022lt_prog_compiler_wl \
14023lt_prog_compiler_pic \
14024lt_prog_compiler_static \
14025lt_cv_prog_compiler_c_o \
14026need_locks \
14027DSYMUTIL \
14028NMEDIT \
14029LIPO \
14030OTOOL \
14031OTOOL64 \
14032shrext_cmds \
14033export_dynamic_flag_spec \
14034whole_archive_flag_spec \
14035compiler_needs_object \
14036with_gnu_ld \
14037allow_undefined_flag \
14038no_undefined_flag \
14039hardcode_libdir_flag_spec \
14040hardcode_libdir_flag_spec_ld \
14041hardcode_libdir_separator \
14042fix_srcfile_path \
14043exclude_expsyms \
14044include_expsyms \
14045file_list_spec \
14046variables_saved_for_relink \
14047libname_spec \
14048library_names_spec \
14049soname_spec \
14050finish_eval \
14051old_striplib \
14052striplib; do
14053    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14054    *[\\\\\\\`\\"\\\$]*)
14055      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14056      ;;
14057    *)
14058      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14059      ;;
14060    esac
14061done
14062
14063# Double-quote double-evaled strings.
14064for var in reload_cmds \
14065old_postinstall_cmds \
14066old_postuninstall_cmds \
14067old_archive_cmds \
14068extract_expsyms_cmds \
14069old_archive_from_new_cmds \
14070old_archive_from_expsyms_cmds \
14071archive_cmds \
14072archive_expsym_cmds \
14073module_cmds \
14074module_expsym_cmds \
14075export_symbols_cmds \
14076prelink_cmds \
14077postinstall_cmds \
14078postuninstall_cmds \
14079finish_cmds \
14080sys_lib_search_path_spec \
14081sys_lib_dlsearch_path_spec; do
14082    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14083    *[\\\\\\\`\\"\\\$]*)
14084      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14085      ;;
14086    *)
14087      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14088      ;;
14089    esac
14090done
14091
14092# Fix-up fallback echo if it was mangled by the above quoting rules.
14093case \$lt_ECHO in
14094*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14095  ;;
14096esac
14097
14098ac_aux_dir='$ac_aux_dir'
14099xsi_shell='$xsi_shell'
14100lt_shell_append='$lt_shell_append'
14101
14102# See if we are running on zsh, and set the options which allow our
14103# commands through without removal of \ escapes INIT.
14104if test -n "\${ZSH_VERSION+set}" ; then
14105   setopt NO_GLOB_SUBST
14106fi
14107
14108
14109    PACKAGE='$PACKAGE'
14110    VERSION='$VERSION'
14111    TIMESTAMP='$TIMESTAMP'
14112    RM='$RM'
14113    ofile='$ofile'
14114
14115
14116
14117
14118_ACEOF
14119
14120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14121
14122# Handling of arguments.
14123for ac_config_target in $ac_config_targets
14124do
14125  case $ac_config_target in
14126    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14127    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14128    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14129    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14130    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14131    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14132
14133  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14134$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14135   { (exit 1); exit 1; }; };;
14136  esac
14137done
14138
14139
14140# If the user did not use the arguments to specify the items to instantiate,
14141# then the envvar interface is used.  Set only those that are not.
14142# We use the long form for the default assignment because of an extremely
14143# bizarre bug on SunOS 4.1.3.
14144if $ac_need_defaults; then
14145  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14146  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14147  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14148fi
14149
14150# Have a temporary directory for convenience.  Make it in the build tree
14151# simply because there is no reason against having it here, and in addition,
14152# creating and moving files from /tmp can sometimes cause problems.
14153# Hook for its removal unless debugging.
14154# Note that there is a small window in which the directory will not be cleaned:
14155# after its creation but before its name has been assigned to `$tmp'.
14156$debug ||
14157{
14158  tmp=
14159  trap 'exit_status=$?
14160  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14161' 0
14162  trap '{ (exit 1); exit 1; }' 1 2 13 15
14163}
14164# Create a (secure) tmp directory for tmp files.
14165
14166{
14167  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14168  test -n "$tmp" && test -d "$tmp"
14169}  ||
14170{
14171  tmp=./conf$$-$RANDOM
14172  (umask 077 && mkdir "$tmp")
14173} ||
14174{
14175   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14176   { (exit 1); exit 1; }
14177}
14178
14179# Set up the scripts for CONFIG_FILES section.
14180# No need to generate them if there are no CONFIG_FILES.
14181# This happens for instance with `./config.status config.h'.
14182if test -n "$CONFIG_FILES"; then
14183
14184
14185ac_cr='
14186'
14187ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14188if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14189  ac_cs_awk_cr='\\r'
14190else
14191  ac_cs_awk_cr=$ac_cr
14192fi
14193
14194echo 'BEGIN {' >"$tmp/subs1.awk" &&
14195_ACEOF
14196
14197
14198{
14199  echo "cat >conf$$subs.awk <<_ACEOF" &&
14200  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14201  echo "_ACEOF"
14202} >conf$$subs.sh ||
14203  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14204$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14205   { (exit 1); exit 1; }; }
14206ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14207ac_delim='%!_!# '
14208for ac_last_try in false false false false false :; do
14209  . ./conf$$subs.sh ||
14210    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14211$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14212   { (exit 1); exit 1; }; }
14213
14214  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14215  if test $ac_delim_n = $ac_delim_num; then
14216    break
14217  elif $ac_last_try; then
14218    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14219$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14220   { (exit 1); exit 1; }; }
14221  else
14222    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14223  fi
14224done
14225rm -f conf$$subs.sh
14226
14227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14228cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14229_ACEOF
14230sed -n '
14231h
14232s/^/S["/; s/!.*/"]=/
14233p
14234g
14235s/^[^!]*!//
14236:repl
14237t repl
14238s/'"$ac_delim"'$//
14239t delim
14240:nl
14241h
14242s/\(.\{148\}\).*/\1/
14243t more1
14244s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14245p
14246n
14247b repl
14248:more1
14249s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14250p
14251g
14252s/.\{148\}//
14253t nl
14254:delim
14255h
14256s/\(.\{148\}\).*/\1/
14257t more2
14258s/["\\]/\\&/g; s/^/"/; s/$/"/
14259p
14260b
14261:more2
14262s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14263p
14264g
14265s/.\{148\}//
14266t delim
14267' <conf$$subs.awk | sed '
14268/^[^""]/{
14269  N
14270  s/\n//
14271}
14272' >>$CONFIG_STATUS || ac_write_fail=1
14273rm -f conf$$subs.awk
14274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14275_ACAWK
14276cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14277  for (key in S) S_is_set[key] = 1
14278  FS = ""
14279
14280}
14281{
14282  line = $ 0
14283  nfields = split(line, field, "@")
14284  substed = 0
14285  len = length(field[1])
14286  for (i = 2; i < nfields; i++) {
14287    key = field[i]
14288    keylen = length(key)
14289    if (S_is_set[key]) {
14290      value = S[key]
14291      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14292      len += length(value) + length(field[++i])
14293      substed = 1
14294    } else
14295      len += 1 + keylen
14296  }
14297
14298  print line
14299}
14300
14301_ACAWK
14302_ACEOF
14303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14304if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14305  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14306else
14307  cat
14308fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14309  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14310$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14311   { (exit 1); exit 1; }; }
14312_ACEOF
14313
14314# VPATH may cause trouble with some makes, so we remove $(srcdir),
14315# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14316# trailing colons and then remove the whole line if VPATH becomes empty
14317# (actually we leave an empty line to preserve line numbers).
14318if test "x$srcdir" = x.; then
14319  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14320s/:*\$(srcdir):*/:/
14321s/:*\${srcdir}:*/:/
14322s/:*@srcdir@:*/:/
14323s/^\([^=]*=[	 ]*\):*/\1/
14324s/:*$//
14325s/^[^=]*=[	 ]*$//
14326}'
14327fi
14328
14329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14330fi # test -n "$CONFIG_FILES"
14331
14332# Set up the scripts for CONFIG_HEADERS section.
14333# No need to generate them if there are no CONFIG_HEADERS.
14334# This happens for instance with `./config.status Makefile'.
14335if test -n "$CONFIG_HEADERS"; then
14336cat >"$tmp/defines.awk" <<\_ACAWK ||
14337BEGIN {
14338_ACEOF
14339
14340# Transform confdefs.h into an awk script `defines.awk', embedded as
14341# here-document in config.status, that substitutes the proper values into
14342# config.h.in to produce config.h.
14343
14344# Create a delimiter string that does not exist in confdefs.h, to ease
14345# handling of long lines.
14346ac_delim='%!_!# '
14347for ac_last_try in false false :; do
14348  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14349  if test -z "$ac_t"; then
14350    break
14351  elif $ac_last_try; then
14352    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14353$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14354   { (exit 1); exit 1; }; }
14355  else
14356    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14357  fi
14358done
14359
14360# For the awk script, D is an array of macro values keyed by name,
14361# likewise P contains macro parameters if any.  Preserve backslash
14362# newline sequences.
14363
14364ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14365sed -n '
14366s/.\{148\}/&'"$ac_delim"'/g
14367t rset
14368:rset
14369s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14370t def
14371d
14372:def
14373s/\\$//
14374t bsnl
14375s/["\\]/\\&/g
14376s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14377D["\1"]=" \3"/p
14378s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14379d
14380:bsnl
14381s/["\\]/\\&/g
14382s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14383D["\1"]=" \3\\\\\\n"\\/p
14384t cont
14385s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14386t cont
14387d
14388:cont
14389n
14390s/.\{148\}/&'"$ac_delim"'/g
14391t clear
14392:clear
14393s/\\$//
14394t bsnlc
14395s/["\\]/\\&/g; s/^/"/; s/$/"/p
14396d
14397:bsnlc
14398s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14399b cont
14400' <confdefs.h | sed '
14401s/'"$ac_delim"'/"\\\
14402"/g' >>$CONFIG_STATUS || ac_write_fail=1
14403
14404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14405  for (key in D) D_is_set[key] = 1
14406  FS = ""
14407}
14408/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14409  line = \$ 0
14410  split(line, arg, " ")
14411  if (arg[1] == "#") {
14412    defundef = arg[2]
14413    mac1 = arg[3]
14414  } else {
14415    defundef = substr(arg[1], 2)
14416    mac1 = arg[2]
14417  }
14418  split(mac1, mac2, "(") #)
14419  macro = mac2[1]
14420  prefix = substr(line, 1, index(line, defundef) - 1)
14421  if (D_is_set[macro]) {
14422    # Preserve the white space surrounding the "#".
14423    print prefix "define", macro P[macro] D[macro]
14424    next
14425  } else {
14426    # Replace #undef with comments.  This is necessary, for example,
14427    # in the case of _POSIX_SOURCE, which is predefined and required
14428    # on some systems where configure will not decide to define it.
14429    if (defundef == "undef") {
14430      print "/*", prefix defundef, macro, "*/"
14431      next
14432    }
14433  }
14434}
14435{ print }
14436_ACAWK
14437_ACEOF
14438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14439  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14440$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14441   { (exit 1); exit 1; }; }
14442fi # test -n "$CONFIG_HEADERS"
14443
14444
14445eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14446shift
14447for ac_tag
14448do
14449  case $ac_tag in
14450  :[FHLC]) ac_mode=$ac_tag; continue;;
14451  esac
14452  case $ac_mode$ac_tag in
14453  :[FHL]*:*);;
14454  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14455$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14456   { (exit 1); exit 1; }; };;
14457  :[FH]-) ac_tag=-:-;;
14458  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14459  esac
14460  ac_save_IFS=$IFS
14461  IFS=:
14462  set x $ac_tag
14463  IFS=$ac_save_IFS
14464  shift
14465  ac_file=$1
14466  shift
14467
14468  case $ac_mode in
14469  :L) ac_source=$1;;
14470  :[FH])
14471    ac_file_inputs=
14472    for ac_f
14473    do
14474      case $ac_f in
14475      -) ac_f="$tmp/stdin";;
14476      *) # Look for the file first in the build tree, then in the source tree
14477	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14478	 # because $ac_f cannot contain `:'.
14479	 test -f "$ac_f" ||
14480	   case $ac_f in
14481	   [\\/$]*) false;;
14482	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14483	   esac ||
14484	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14485$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14486   { (exit 1); exit 1; }; };;
14487      esac
14488      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14489      ac_file_inputs="$ac_file_inputs '$ac_f'"
14490    done
14491
14492    # Let's still pretend it is `configure' which instantiates (i.e., don't
14493    # use $as_me), people would be surprised to read:
14494    #    /* config.h.  Generated by config.status.  */
14495    configure_input='Generated from '`
14496	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14497	`' by configure.'
14498    if test x"$ac_file" != x-; then
14499      configure_input="$ac_file.  $configure_input"
14500      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14501$as_echo "$as_me: creating $ac_file" >&6;}
14502    fi
14503    # Neutralize special characters interpreted by sed in replacement strings.
14504    case $configure_input in #(
14505    *\&* | *\|* | *\\* )
14506       ac_sed_conf_input=`$as_echo "$configure_input" |
14507       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14508    *) ac_sed_conf_input=$configure_input;;
14509    esac
14510
14511    case $ac_tag in
14512    *:-:* | *:-) cat >"$tmp/stdin" \
14513      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14514$as_echo "$as_me: error: could not create $ac_file" >&2;}
14515   { (exit 1); exit 1; }; } ;;
14516    esac
14517    ;;
14518  esac
14519
14520  ac_dir=`$as_dirname -- "$ac_file" ||
14521$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522	 X"$ac_file" : 'X\(//\)[^/]' \| \
14523	 X"$ac_file" : 'X\(//\)$' \| \
14524	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14525$as_echo X"$ac_file" |
14526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14527	    s//\1/
14528	    q
14529	  }
14530	  /^X\(\/\/\)[^/].*/{
14531	    s//\1/
14532	    q
14533	  }
14534	  /^X\(\/\/\)$/{
14535	    s//\1/
14536	    q
14537	  }
14538	  /^X\(\/\).*/{
14539	    s//\1/
14540	    q
14541	  }
14542	  s/.*/./; q'`
14543  { as_dir="$ac_dir"
14544  case $as_dir in #(
14545  -*) as_dir=./$as_dir;;
14546  esac
14547  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14548    as_dirs=
14549    while :; do
14550      case $as_dir in #(
14551      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14552      *) as_qdir=$as_dir;;
14553      esac
14554      as_dirs="'$as_qdir' $as_dirs"
14555      as_dir=`$as_dirname -- "$as_dir" ||
14556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14557	 X"$as_dir" : 'X\(//\)[^/]' \| \
14558	 X"$as_dir" : 'X\(//\)$' \| \
14559	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14560$as_echo X"$as_dir" |
14561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14562	    s//\1/
14563	    q
14564	  }
14565	  /^X\(\/\/\)[^/].*/{
14566	    s//\1/
14567	    q
14568	  }
14569	  /^X\(\/\/\)$/{
14570	    s//\1/
14571	    q
14572	  }
14573	  /^X\(\/\).*/{
14574	    s//\1/
14575	    q
14576	  }
14577	  s/.*/./; q'`
14578      test -d "$as_dir" && break
14579    done
14580    test -z "$as_dirs" || eval "mkdir $as_dirs"
14581  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14582$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14583   { (exit 1); exit 1; }; }; }
14584  ac_builddir=.
14585
14586case "$ac_dir" in
14587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14588*)
14589  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14590  # A ".." for each directory in $ac_dir_suffix.
14591  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14592  case $ac_top_builddir_sub in
14593  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14594  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14595  esac ;;
14596esac
14597ac_abs_top_builddir=$ac_pwd
14598ac_abs_builddir=$ac_pwd$ac_dir_suffix
14599# for backward compatibility:
14600ac_top_builddir=$ac_top_build_prefix
14601
14602case $srcdir in
14603  .)  # We are building in place.
14604    ac_srcdir=.
14605    ac_top_srcdir=$ac_top_builddir_sub
14606    ac_abs_top_srcdir=$ac_pwd ;;
14607  [\\/]* | ?:[\\/]* )  # Absolute name.
14608    ac_srcdir=$srcdir$ac_dir_suffix;
14609    ac_top_srcdir=$srcdir
14610    ac_abs_top_srcdir=$srcdir ;;
14611  *) # Relative name.
14612    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14613    ac_top_srcdir=$ac_top_build_prefix$srcdir
14614    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14615esac
14616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14617
14618
14619  case $ac_mode in
14620  :F)
14621  #
14622  # CONFIG_FILE
14623  #
14624
14625  case $INSTALL in
14626  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14627  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14628  esac
14629  ac_MKDIR_P=$MKDIR_P
14630  case $MKDIR_P in
14631  [\\/$]* | ?:[\\/]* ) ;;
14632  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14633  esac
14634_ACEOF
14635
14636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14637# If the template does not know about datarootdir, expand it.
14638# FIXME: This hack should be removed a few years after 2.60.
14639ac_datarootdir_hack=; ac_datarootdir_seen=
14640
14641ac_sed_dataroot='
14642/datarootdir/ {
14643  p
14644  q
14645}
14646/@datadir@/p
14647/@docdir@/p
14648/@infodir@/p
14649/@localedir@/p
14650/@mandir@/p
14651'
14652case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14653*datarootdir*) ac_datarootdir_seen=yes;;
14654*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14655  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14656$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14657_ACEOF
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659  ac_datarootdir_hack='
14660  s&@datadir@&$datadir&g
14661  s&@docdir@&$docdir&g
14662  s&@infodir@&$infodir&g
14663  s&@localedir@&$localedir&g
14664  s&@mandir@&$mandir&g
14665    s&\\\${datarootdir}&$datarootdir&g' ;;
14666esac
14667_ACEOF
14668
14669# Neutralize VPATH when `$srcdir' = `.'.
14670# Shell code in configure.ac might set extrasub.
14671# FIXME: do we really want to maintain this feature?
14672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673ac_sed_extra="$ac_vpsub
14674$extrasub
14675_ACEOF
14676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14677:t
14678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14679s|@configure_input@|$ac_sed_conf_input|;t t
14680s&@top_builddir@&$ac_top_builddir_sub&;t t
14681s&@top_build_prefix@&$ac_top_build_prefix&;t t
14682s&@srcdir@&$ac_srcdir&;t t
14683s&@abs_srcdir@&$ac_abs_srcdir&;t t
14684s&@top_srcdir@&$ac_top_srcdir&;t t
14685s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14686s&@builddir@&$ac_builddir&;t t
14687s&@abs_builddir@&$ac_abs_builddir&;t t
14688s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14689s&@INSTALL@&$ac_INSTALL&;t t
14690s&@MKDIR_P@&$ac_MKDIR_P&;t t
14691$ac_datarootdir_hack
14692"
14693eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14694  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14695$as_echo "$as_me: error: could not create $ac_file" >&2;}
14696   { (exit 1); exit 1; }; }
14697
14698test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14699  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14700  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14701  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14702which seems to be undefined.  Please make sure it is defined." >&5
14703$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14704which seems to be undefined.  Please make sure it is defined." >&2;}
14705
14706  rm -f "$tmp/stdin"
14707  case $ac_file in
14708  -) cat "$tmp/out" && rm -f "$tmp/out";;
14709  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14710  esac \
14711  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14712$as_echo "$as_me: error: could not create $ac_file" >&2;}
14713   { (exit 1); exit 1; }; }
14714 ;;
14715  :H)
14716  #
14717  # CONFIG_HEADER
14718  #
14719  if test x"$ac_file" != x-; then
14720    {
14721      $as_echo "/* $configure_input  */" \
14722      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14723    } >"$tmp/config.h" \
14724      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14725$as_echo "$as_me: error: could not create $ac_file" >&2;}
14726   { (exit 1); exit 1; }; }
14727    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14728      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14729$as_echo "$as_me: $ac_file is unchanged" >&6;}
14730    else
14731      rm -f "$ac_file"
14732      mv "$tmp/config.h" "$ac_file" \
14733	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14734$as_echo "$as_me: error: could not create $ac_file" >&2;}
14735   { (exit 1); exit 1; }; }
14736    fi
14737  else
14738    $as_echo "/* $configure_input  */" \
14739      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14740      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14741$as_echo "$as_me: error: could not create -" >&2;}
14742   { (exit 1); exit 1; }; }
14743  fi
14744# Compute "$ac_file"'s index in $config_headers.
14745_am_arg="$ac_file"
14746_am_stamp_count=1
14747for _am_header in $config_headers :; do
14748  case $_am_header in
14749    $_am_arg | $_am_arg:* )
14750      break ;;
14751    * )
14752      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14753  esac
14754done
14755echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14756$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14757	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14758	 X"$_am_arg" : 'X\(//\)$' \| \
14759	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14760$as_echo X"$_am_arg" |
14761    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14762	    s//\1/
14763	    q
14764	  }
14765	  /^X\(\/\/\)[^/].*/{
14766	    s//\1/
14767	    q
14768	  }
14769	  /^X\(\/\/\)$/{
14770	    s//\1/
14771	    q
14772	  }
14773	  /^X\(\/\).*/{
14774	    s//\1/
14775	    q
14776	  }
14777	  s/.*/./; q'`/stamp-h$_am_stamp_count
14778 ;;
14779
14780  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14781$as_echo "$as_me: executing $ac_file commands" >&6;}
14782 ;;
14783  esac
14784
14785
14786  case $ac_file$ac_mode in
14787    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14788# are listed without --file.  Let's play safe and only enable the eval
14789# if we detect the quoting.
14790case $CONFIG_FILES in
14791*\'*) eval set x "$CONFIG_FILES" ;;
14792*)   set x $CONFIG_FILES ;;
14793esac
14794shift
14795for mf
14796do
14797  # Strip MF so we end up with the name of the file.
14798  mf=`echo "$mf" | sed -e 's/:.*$//'`
14799  # Check whether this is an Automake generated Makefile or not.
14800  # We used to match only the files named `Makefile.in', but
14801  # some people rename them; so instead we look at the file content.
14802  # Grep'ing the first line is not enough: some people post-process
14803  # each Makefile.in and add a new line on top of each file to say so.
14804  # Grep'ing the whole file is not good either: AIX grep has a line
14805  # limit of 2048, but all sed's we know have understand at least 4000.
14806  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14807    dirpart=`$as_dirname -- "$mf" ||
14808$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14809	 X"$mf" : 'X\(//\)[^/]' \| \
14810	 X"$mf" : 'X\(//\)$' \| \
14811	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14812$as_echo X"$mf" |
14813    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14814	    s//\1/
14815	    q
14816	  }
14817	  /^X\(\/\/\)[^/].*/{
14818	    s//\1/
14819	    q
14820	  }
14821	  /^X\(\/\/\)$/{
14822	    s//\1/
14823	    q
14824	  }
14825	  /^X\(\/\).*/{
14826	    s//\1/
14827	    q
14828	  }
14829	  s/.*/./; q'`
14830  else
14831    continue
14832  fi
14833  # Extract the definition of DEPDIR, am__include, and am__quote
14834  # from the Makefile without running `make'.
14835  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14836  test -z "$DEPDIR" && continue
14837  am__include=`sed -n 's/^am__include = //p' < "$mf"`
14838  test -z "am__include" && continue
14839  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14840  # When using ansi2knr, U may be empty or an underscore; expand it
14841  U=`sed -n 's/^U = //p' < "$mf"`
14842  # Find all dependency output files, they are included files with
14843  # $(DEPDIR) in their names.  We invoke sed twice because it is the
14844  # simplest approach to changing $(DEPDIR) to its actual value in the
14845  # expansion.
14846  for file in `sed -n "
14847    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14848       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14849    # Make sure the directory exists.
14850    test -f "$dirpart/$file" && continue
14851    fdir=`$as_dirname -- "$file" ||
14852$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14853	 X"$file" : 'X\(//\)[^/]' \| \
14854	 X"$file" : 'X\(//\)$' \| \
14855	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14856$as_echo X"$file" |
14857    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14858	    s//\1/
14859	    q
14860	  }
14861	  /^X\(\/\/\)[^/].*/{
14862	    s//\1/
14863	    q
14864	  }
14865	  /^X\(\/\/\)$/{
14866	    s//\1/
14867	    q
14868	  }
14869	  /^X\(\/\).*/{
14870	    s//\1/
14871	    q
14872	  }
14873	  s/.*/./; q'`
14874    { as_dir=$dirpart/$fdir
14875  case $as_dir in #(
14876  -*) as_dir=./$as_dir;;
14877  esac
14878  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14879    as_dirs=
14880    while :; do
14881      case $as_dir in #(
14882      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14883      *) as_qdir=$as_dir;;
14884      esac
14885      as_dirs="'$as_qdir' $as_dirs"
14886      as_dir=`$as_dirname -- "$as_dir" ||
14887$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14888	 X"$as_dir" : 'X\(//\)[^/]' \| \
14889	 X"$as_dir" : 'X\(//\)$' \| \
14890	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14891$as_echo X"$as_dir" |
14892    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14893	    s//\1/
14894	    q
14895	  }
14896	  /^X\(\/\/\)[^/].*/{
14897	    s//\1/
14898	    q
14899	  }
14900	  /^X\(\/\/\)$/{
14901	    s//\1/
14902	    q
14903	  }
14904	  /^X\(\/\).*/{
14905	    s//\1/
14906	    q
14907	  }
14908	  s/.*/./; q'`
14909      test -d "$as_dir" && break
14910    done
14911    test -z "$as_dirs" || eval "mkdir $as_dirs"
14912  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14913$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14914   { (exit 1); exit 1; }; }; }
14915    # echo "creating $dirpart/$file"
14916    echo '# dummy' > "$dirpart/$file"
14917  done
14918done
14919 ;;
14920    "libtool":C)
14921
14922    # See if we are running on zsh, and set the options which allow our
14923    # commands through without removal of \ escapes.
14924    if test -n "${ZSH_VERSION+set}" ; then
14925      setopt NO_GLOB_SUBST
14926    fi
14927
14928    cfgfile="${ofile}T"
14929    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14930    $RM "$cfgfile"
14931
14932    cat <<_LT_EOF >> "$cfgfile"
14933#! $SHELL
14934
14935# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14936# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14937# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14938# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14939#
14940#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14941#                 2006, 2007, 2008 Free Software Foundation, Inc.
14942#   Written by Gordon Matzigkeit, 1996
14943#
14944#   This file is part of GNU Libtool.
14945#
14946# GNU Libtool is free software; you can redistribute it and/or
14947# modify it under the terms of the GNU General Public License as
14948# published by the Free Software Foundation; either version 2 of
14949# the License, or (at your option) any later version.
14950#
14951# As a special exception to the GNU General Public License,
14952# if you distribute this file as part of a program or library that
14953# is built using GNU Libtool, you may include this file under the
14954# same distribution terms that you use for the rest of that program.
14955#
14956# GNU Libtool is distributed in the hope that it will be useful,
14957# but WITHOUT ANY WARRANTY; without even the implied warranty of
14958# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14959# GNU General Public License for more details.
14960#
14961# You should have received a copy of the GNU General Public License
14962# along with GNU Libtool; see the file COPYING.  If not, a copy
14963# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14964# obtained by writing to the Free Software Foundation, Inc.,
14965# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14966
14967
14968# The names of the tagged configurations supported by this script.
14969available_tags=""
14970
14971# ### BEGIN LIBTOOL CONFIG
14972
14973# Whether or not to build static libraries.
14974build_old_libs=$enable_static
14975
14976# Which release of libtool.m4 was used?
14977macro_version=$macro_version
14978macro_revision=$macro_revision
14979
14980# Whether or not to build shared libraries.
14981build_libtool_libs=$enable_shared
14982
14983# What type of objects to build.
14984pic_mode=$pic_mode
14985
14986# Whether or not to optimize for fast installation.
14987fast_install=$enable_fast_install
14988
14989# The host system.
14990host_alias=$host_alias
14991host=$host
14992host_os=$host_os
14993
14994# The build system.
14995build_alias=$build_alias
14996build=$build
14997build_os=$build_os
14998
14999# A sed program that does not truncate output.
15000SED=$lt_SED
15001
15002# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15003Xsed="\$SED -e 1s/^X//"
15004
15005# A grep program that handles long lines.
15006GREP=$lt_GREP
15007
15008# An ERE matcher.
15009EGREP=$lt_EGREP
15010
15011# A literal string matcher.
15012FGREP=$lt_FGREP
15013
15014# A BSD- or MS-compatible name lister.
15015NM=$lt_NM
15016
15017# Whether we need soft or hard links.
15018LN_S=$lt_LN_S
15019
15020# What is the maximum length of a command?
15021max_cmd_len=$max_cmd_len
15022
15023# Object file suffix (normally "o").
15024objext=$ac_objext
15025
15026# Executable file suffix (normally "").
15027exeext=$exeext
15028
15029# whether the shell understands "unset".
15030lt_unset=$lt_unset
15031
15032# turn spaces into newlines.
15033SP2NL=$lt_lt_SP2NL
15034
15035# turn newlines into spaces.
15036NL2SP=$lt_lt_NL2SP
15037
15038# How to create reloadable object files.
15039reload_flag=$lt_reload_flag
15040reload_cmds=$lt_reload_cmds
15041
15042# An object symbol dumper.
15043OBJDUMP=$lt_OBJDUMP
15044
15045# Method to check whether dependent libraries are shared objects.
15046deplibs_check_method=$lt_deplibs_check_method
15047
15048# Command to use when deplibs_check_method == "file_magic".
15049file_magic_cmd=$lt_file_magic_cmd
15050
15051# The archiver.
15052AR=$lt_AR
15053AR_FLAGS=$lt_AR_FLAGS
15054
15055# A symbol stripping program.
15056STRIP=$lt_STRIP
15057
15058# Commands used to install an old-style archive.
15059RANLIB=$lt_RANLIB
15060old_postinstall_cmds=$lt_old_postinstall_cmds
15061old_postuninstall_cmds=$lt_old_postuninstall_cmds
15062
15063# A C compiler.
15064LTCC=$lt_CC
15065
15066# LTCC compiler flags.
15067LTCFLAGS=$lt_CFLAGS
15068
15069# Take the output of nm and produce a listing of raw symbols and C names.
15070global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15071
15072# Transform the output of nm in a proper C declaration.
15073global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15074
15075# Transform the output of nm in a C name address pair.
15076global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15077
15078# Transform the output of nm in a C name address pair when lib prefix is needed.
15079global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15080
15081# The name of the directory that contains temporary libtool files.
15082objdir=$objdir
15083
15084# Shell to use when invoking shell scripts.
15085SHELL=$lt_SHELL
15086
15087# An echo program that does not interpret backslashes.
15088ECHO=$lt_ECHO
15089
15090# Used to examine libraries when file_magic_cmd begins with "file".
15091MAGIC_CMD=$MAGIC_CMD
15092
15093# Must we lock files when doing compilation?
15094need_locks=$lt_need_locks
15095
15096# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15097DSYMUTIL=$lt_DSYMUTIL
15098
15099# Tool to change global to local symbols on Mac OS X.
15100NMEDIT=$lt_NMEDIT
15101
15102# Tool to manipulate fat objects and archives on Mac OS X.
15103LIPO=$lt_LIPO
15104
15105# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15106OTOOL=$lt_OTOOL
15107
15108# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15109OTOOL64=$lt_OTOOL64
15110
15111# Old archive suffix (normally "a").
15112libext=$libext
15113
15114# Shared library suffix (normally ".so").
15115shrext_cmds=$lt_shrext_cmds
15116
15117# The commands to extract the exported symbol list from a shared archive.
15118extract_expsyms_cmds=$lt_extract_expsyms_cmds
15119
15120# Variables whose values should be saved in libtool wrapper scripts and
15121# restored at link time.
15122variables_saved_for_relink=$lt_variables_saved_for_relink
15123
15124# Do we need the "lib" prefix for modules?
15125need_lib_prefix=$need_lib_prefix
15126
15127# Do we need a version for libraries?
15128need_version=$need_version
15129
15130# Library versioning type.
15131version_type=$version_type
15132
15133# Shared library runtime path variable.
15134runpath_var=$runpath_var
15135
15136# Shared library path variable.
15137shlibpath_var=$shlibpath_var
15138
15139# Is shlibpath searched before the hard-coded library search path?
15140shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15141
15142# Format of library name prefix.
15143libname_spec=$lt_libname_spec
15144
15145# List of archive names.  First name is the real one, the rest are links.
15146# The last name is the one that the linker finds with -lNAME
15147library_names_spec=$lt_library_names_spec
15148
15149# The coded name of the library, if different from the real name.
15150soname_spec=$lt_soname_spec
15151
15152# Command to use after installation of a shared archive.
15153postinstall_cmds=$lt_postinstall_cmds
15154
15155# Command to use after uninstallation of a shared archive.
15156postuninstall_cmds=$lt_postuninstall_cmds
15157
15158# Commands used to finish a libtool library installation in a directory.
15159finish_cmds=$lt_finish_cmds
15160
15161# As "finish_cmds", except a single script fragment to be evaled but
15162# not shown.
15163finish_eval=$lt_finish_eval
15164
15165# Whether we should hardcode library paths into libraries.
15166hardcode_into_libs=$hardcode_into_libs
15167
15168# Compile-time system search path for libraries.
15169sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15170
15171# Run-time system search path for libraries.
15172sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15173
15174# Whether dlopen is supported.
15175dlopen_support=$enable_dlopen
15176
15177# Whether dlopen of programs is supported.
15178dlopen_self=$enable_dlopen_self
15179
15180# Whether dlopen of statically linked programs is supported.
15181dlopen_self_static=$enable_dlopen_self_static
15182
15183# Commands to strip libraries.
15184old_striplib=$lt_old_striplib
15185striplib=$lt_striplib
15186
15187
15188# The linker used to build libraries.
15189LD=$lt_LD
15190
15191# Commands used to build an old-style archive.
15192old_archive_cmds=$lt_old_archive_cmds
15193
15194# A language specific compiler.
15195CC=$lt_compiler
15196
15197# Is the compiler the GNU compiler?
15198with_gcc=$GCC
15199
15200# Compiler flag to turn off builtin functions.
15201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15202
15203# How to pass a linker flag through the compiler.
15204wl=$lt_lt_prog_compiler_wl
15205
15206# Additional compiler flags for building library objects.
15207pic_flag=$lt_lt_prog_compiler_pic
15208
15209# Compiler flag to prevent dynamic linking.
15210link_static_flag=$lt_lt_prog_compiler_static
15211
15212# Does compiler simultaneously support -c and -o options?
15213compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15214
15215# Whether or not to add -lc for building shared libraries.
15216build_libtool_need_lc=$archive_cmds_need_lc
15217
15218# Whether or not to disallow shared libs when runtime libs are static.
15219allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15220
15221# Compiler flag to allow reflexive dlopens.
15222export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15223
15224# Compiler flag to generate shared objects directly from archives.
15225whole_archive_flag_spec=$lt_whole_archive_flag_spec
15226
15227# Whether the compiler copes with passing no objects directly.
15228compiler_needs_object=$lt_compiler_needs_object
15229
15230# Create an old-style archive from a shared archive.
15231old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15232
15233# Create a temporary old-style archive to link instead of a shared archive.
15234old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15235
15236# Commands used to build a shared archive.
15237archive_cmds=$lt_archive_cmds
15238archive_expsym_cmds=$lt_archive_expsym_cmds
15239
15240# Commands used to build a loadable module if different from building
15241# a shared archive.
15242module_cmds=$lt_module_cmds
15243module_expsym_cmds=$lt_module_expsym_cmds
15244
15245# Whether we are building with GNU ld or not.
15246with_gnu_ld=$lt_with_gnu_ld
15247
15248# Flag that allows shared libraries with undefined symbols to be built.
15249allow_undefined_flag=$lt_allow_undefined_flag
15250
15251# Flag that enforces no undefined symbols.
15252no_undefined_flag=$lt_no_undefined_flag
15253
15254# Flag to hardcode \$libdir into a binary during linking.
15255# This must work even if \$libdir does not exist
15256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15257
15258# If ld is used when linking, flag to hardcode \$libdir into a binary
15259# during linking.  This must work even if \$libdir does not exist.
15260hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15261
15262# Whether we need a single "-rpath" flag with a separated argument.
15263hardcode_libdir_separator=$lt_hardcode_libdir_separator
15264
15265# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15266# DIR into the resulting binary.
15267hardcode_direct=$hardcode_direct
15268
15269# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15270# DIR into the resulting binary and the resulting library dependency is
15271# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15272# library is relocated.
15273hardcode_direct_absolute=$hardcode_direct_absolute
15274
15275# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15276# into the resulting binary.
15277hardcode_minus_L=$hardcode_minus_L
15278
15279# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15280# into the resulting binary.
15281hardcode_shlibpath_var=$hardcode_shlibpath_var
15282
15283# Set to "yes" if building a shared library automatically hardcodes DIR
15284# into the library and all subsequent libraries and executables linked
15285# against it.
15286hardcode_automatic=$hardcode_automatic
15287
15288# Set to yes if linker adds runtime paths of dependent libraries
15289# to runtime path list.
15290inherit_rpath=$inherit_rpath
15291
15292# Whether libtool must link a program against all its dependency libraries.
15293link_all_deplibs=$link_all_deplibs
15294
15295# Fix the shell variable \$srcfile for the compiler.
15296fix_srcfile_path=$lt_fix_srcfile_path
15297
15298# Set to "yes" if exported symbols are required.
15299always_export_symbols=$always_export_symbols
15300
15301# The commands to list exported symbols.
15302export_symbols_cmds=$lt_export_symbols_cmds
15303
15304# Symbols that should not be listed in the preloaded symbols.
15305exclude_expsyms=$lt_exclude_expsyms
15306
15307# Symbols that must always be exported.
15308include_expsyms=$lt_include_expsyms
15309
15310# Commands necessary for linking programs (against libraries) with templates.
15311prelink_cmds=$lt_prelink_cmds
15312
15313# Specify filename containing input files.
15314file_list_spec=$lt_file_list_spec
15315
15316# How to hardcode a shared library path into an executable.
15317hardcode_action=$hardcode_action
15318
15319# ### END LIBTOOL CONFIG
15320
15321_LT_EOF
15322
15323  case $host_os in
15324  aix3*)
15325    cat <<\_LT_EOF >> "$cfgfile"
15326# AIX sometimes has problems with the GCC collect2 program.  For some
15327# reason, if we set the COLLECT_NAMES environment variable, the problems
15328# vanish in a puff of smoke.
15329if test "X${COLLECT_NAMES+set}" != Xset; then
15330  COLLECT_NAMES=
15331  export COLLECT_NAMES
15332fi
15333_LT_EOF
15334    ;;
15335  esac
15336
15337
15338ltmain="$ac_aux_dir/ltmain.sh"
15339
15340
15341  # We use sed instead of cat because bash on DJGPP gets confused if
15342  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15343  # text mode, it properly converts lines to CR/LF.  This bash problem
15344  # is reportedly fixed, but why not run on old versions too?
15345  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15346    || (rm -f "$cfgfile"; exit 1)
15347
15348  case $xsi_shell in
15349  yes)
15350    cat << \_LT_EOF >> "$cfgfile"
15351
15352# func_dirname file append nondir_replacement
15353# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15354# otherwise set result to NONDIR_REPLACEMENT.
15355func_dirname ()
15356{
15357  case ${1} in
15358    */*) func_dirname_result="${1%/*}${2}" ;;
15359    *  ) func_dirname_result="${3}" ;;
15360  esac
15361}
15362
15363# func_basename file
15364func_basename ()
15365{
15366  func_basename_result="${1##*/}"
15367}
15368
15369# func_dirname_and_basename file append nondir_replacement
15370# perform func_basename and func_dirname in a single function
15371# call:
15372#   dirname:  Compute the dirname of FILE.  If nonempty,
15373#             add APPEND to the result, otherwise set result
15374#             to NONDIR_REPLACEMENT.
15375#             value returned in "$func_dirname_result"
15376#   basename: Compute filename of FILE.
15377#             value retuned in "$func_basename_result"
15378# Implementation must be kept synchronized with func_dirname
15379# and func_basename. For efficiency, we do not delegate to
15380# those functions but instead duplicate the functionality here.
15381func_dirname_and_basename ()
15382{
15383  case ${1} in
15384    */*) func_dirname_result="${1%/*}${2}" ;;
15385    *  ) func_dirname_result="${3}" ;;
15386  esac
15387  func_basename_result="${1##*/}"
15388}
15389
15390# func_stripname prefix suffix name
15391# strip PREFIX and SUFFIX off of NAME.
15392# PREFIX and SUFFIX must not contain globbing or regex special
15393# characters, hashes, percent signs, but SUFFIX may contain a leading
15394# dot (in which case that matches only a dot).
15395func_stripname ()
15396{
15397  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15398  # positional parameters, so assign one to ordinary parameter first.
15399  func_stripname_result=${3}
15400  func_stripname_result=${func_stripname_result#"${1}"}
15401  func_stripname_result=${func_stripname_result%"${2}"}
15402}
15403
15404# func_opt_split
15405func_opt_split ()
15406{
15407  func_opt_split_opt=${1%%=*}
15408  func_opt_split_arg=${1#*=}
15409}
15410
15411# func_lo2o object
15412func_lo2o ()
15413{
15414  case ${1} in
15415    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15416    *)    func_lo2o_result=${1} ;;
15417  esac
15418}
15419
15420# func_xform libobj-or-source
15421func_xform ()
15422{
15423  func_xform_result=${1%.*}.lo
15424}
15425
15426# func_arith arithmetic-term...
15427func_arith ()
15428{
15429  func_arith_result=$(( $* ))
15430}
15431
15432# func_len string
15433# STRING may not start with a hyphen.
15434func_len ()
15435{
15436  func_len_result=${#1}
15437}
15438
15439_LT_EOF
15440    ;;
15441  *) # Bourne compatible functions.
15442    cat << \_LT_EOF >> "$cfgfile"
15443
15444# func_dirname file append nondir_replacement
15445# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15446# otherwise set result to NONDIR_REPLACEMENT.
15447func_dirname ()
15448{
15449  # Extract subdirectory from the argument.
15450  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15451  if test "X$func_dirname_result" = "X${1}"; then
15452    func_dirname_result="${3}"
15453  else
15454    func_dirname_result="$func_dirname_result${2}"
15455  fi
15456}
15457
15458# func_basename file
15459func_basename ()
15460{
15461  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15462}
15463
15464
15465# func_stripname prefix suffix name
15466# strip PREFIX and SUFFIX off of NAME.
15467# PREFIX and SUFFIX must not contain globbing or regex special
15468# characters, hashes, percent signs, but SUFFIX may contain a leading
15469# dot (in which case that matches only a dot).
15470# func_strip_suffix prefix name
15471func_stripname ()
15472{
15473  case ${2} in
15474    .*) func_stripname_result=`$ECHO "X${3}" \
15475           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15476    *)  func_stripname_result=`$ECHO "X${3}" \
15477           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15478  esac
15479}
15480
15481# sed scripts:
15482my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15483my_sed_long_arg='1s/^-[^=]*=//'
15484
15485# func_opt_split
15486func_opt_split ()
15487{
15488  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15489  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15490}
15491
15492# func_lo2o object
15493func_lo2o ()
15494{
15495  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15496}
15497
15498# func_xform libobj-or-source
15499func_xform ()
15500{
15501  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15502}
15503
15504# func_arith arithmetic-term...
15505func_arith ()
15506{
15507  func_arith_result=`expr "$@"`
15508}
15509
15510# func_len string
15511# STRING may not start with a hyphen.
15512func_len ()
15513{
15514  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15515}
15516
15517_LT_EOF
15518esac
15519
15520case $lt_shell_append in
15521  yes)
15522    cat << \_LT_EOF >> "$cfgfile"
15523
15524# func_append var value
15525# Append VALUE to the end of shell variable VAR.
15526func_append ()
15527{
15528  eval "$1+=\$2"
15529}
15530_LT_EOF
15531    ;;
15532  *)
15533    cat << \_LT_EOF >> "$cfgfile"
15534
15535# func_append var value
15536# Append VALUE to the end of shell variable VAR.
15537func_append ()
15538{
15539  eval "$1=\$$1\$2"
15540}
15541
15542_LT_EOF
15543    ;;
15544  esac
15545
15546
15547  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15548    || (rm -f "$cfgfile"; exit 1)
15549
15550  mv -f "$cfgfile" "$ofile" ||
15551    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15552  chmod +x "$ofile"
15553
15554 ;;
15555
15556  esac
15557done # for ac_tag
15558
15559
15560{ (exit 0); exit 0; }
15561_ACEOF
15562chmod +x $CONFIG_STATUS
15563ac_clean_files=$ac_clean_files_save
15564
15565test $ac_write_fail = 0 ||
15566  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15567$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15568   { (exit 1); exit 1; }; }
15569
15570
15571# configure is writing to config.log, and then calls config.status.
15572# config.status does its own redirection, appending to config.log.
15573# Unfortunately, on DOS this fails, as config.log is still kept open
15574# by configure, so config.status won't be able to write to it; its
15575# output is simply discarded.  So we exec the FD to /dev/null,
15576# effectively closing config.log, so it can be properly (re)opened and
15577# appended to by config.status.  When coming back to configure, we
15578# need to make the FD available again.
15579if test "$no_create" != yes; then
15580  ac_cs_success=:
15581  ac_config_status_args=
15582  test "$silent" = yes &&
15583    ac_config_status_args="$ac_config_status_args --quiet"
15584  exec 5>/dev/null
15585  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15586  exec 5>>config.log
15587  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15588  # would make configure fail if this is the last instruction.
15589  $ac_cs_success || { (exit 1); exit 1; }
15590fi
15591if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15592  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15593$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15594fi
15595
15596