configure revision 66c2ea32
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-rendition 4.2.2.
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-rendition'
747PACKAGE_TARNAME='xf86-video-rendition'
748PACKAGE_VERSION='4.2.2'
749PACKAGE_STRING='xf86-video-rendition 4.2.2'
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
791MAKE_HTML
792MAKE_PDF
793MAKE_PS
794MAKE_TEXT
795BUILD_PDFDOC_FALSE
796BUILD_PDFDOC_TRUE
797BUILD_LINUXDOC_FALSE
798BUILD_LINUXDOC_TRUE
799PS2PDF
800LINUXDOC
801distcleancheck_listfiles
802CHANGELOG_CMD
803ADMIN_MAN_DIR
804DRIVER_MAN_DIR
805MISC_MAN_DIR
806FILE_MAN_DIR
807LIB_MAN_DIR
808APP_MAN_DIR
809ADMIN_MAN_SUFFIX
810DRIVER_MAN_SUFFIX
811MISC_MAN_SUFFIX
812FILE_MAN_SUFFIX
813LIB_MAN_SUFFIX
814APP_MAN_SUFFIX
815DRIVER_NAME
816moduledir
817XSERVER_LIBPCIACCESS_FALSE
818XSERVER_LIBPCIACCESS_TRUE
819PCIACCESS_LIBS
820PCIACCESS_CFLAGS
821XORG_LIBS
822XORG_CFLAGS
823PKG_CONFIG
824CPP
825OTOOL64
826OTOOL
827LIPO
828NMEDIT
829DSYMUTIL
830lt_ECHO
831RANLIB
832AR
833OBJDUMP
834LN_S
835NM
836ac_ct_DUMPBIN
837DUMPBIN
838LD
839FGREP
840EGREP
841GREP
842SED
843am__fastdepCC_FALSE
844am__fastdepCC_TRUE
845CCDEPMODE
846AMDEPBACKSLASH
847AMDEP_FALSE
848AMDEP_TRUE
849am__quote
850am__include
851DEPDIR
852OBJEXT
853EXEEXT
854ac_ct_CC
855CPPFLAGS
856LDFLAGS
857CFLAGS
858CC
859host_os
860host_vendor
861host_cpu
862host
863build_os
864build_vendor
865build_cpu
866build
867LIBTOOL
868MAINT
869MAINTAINER_MODE_FALSE
870MAINTAINER_MODE_TRUE
871am__untar
872am__tar
873AMTAR
874am__leading_dot
875SET_MAKE
876AWK
877mkdir_p
878MKDIR_P
879INSTALL_STRIP_PROGRAM
880STRIP
881install_sh
882MAKEINFO
883AUTOHEADER
884AUTOMAKE
885AUTOCONF
886ACLOCAL
887VERSION
888PACKAGE
889CYGPATH_W
890am__isrc
891INSTALL_DATA
892INSTALL_SCRIPT
893INSTALL_PROGRAM
894target_alias
895host_alias
896build_alias
897LIBS
898ECHO_T
899ECHO_N
900ECHO_C
901DEFS
902mandir
903localedir
904libdir
905psdir
906pdfdir
907dvidir
908htmldir
909infodir
910docdir
911oldincludedir
912includedir
913localstatedir
914sharedstatedir
915sysconfdir
916datadir
917datarootdir
918libexecdir
919sbindir
920bindir
921program_transform_name
922prefix
923exec_prefix
924PACKAGE_BUGREPORT
925PACKAGE_STRING
926PACKAGE_VERSION
927PACKAGE_TARNAME
928PACKAGE_NAME
929PATH_SEPARATOR
930SHELL'
931ac_subst_files=''
932ac_user_opts='
933enable_option_checking
934enable_maintainer_mode
935enable_static
936enable_shared
937with_pic
938enable_fast_install
939enable_dependency_tracking
940with_gnu_ld
941enable_libtool_lock
942with_xorg_module_dir
943with_release_version
944'
945      ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CPP
954PKG_CONFIG
955XORG_CFLAGS
956XORG_LIBS
957PCIACCESS_CFLAGS
958PCIACCESS_LIBS'
959
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964ac_unrecognized_opts=
965ac_unrecognized_sep=
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013  # If the previous option needs an argument, assign it.
1014  if test -n "$ac_prev"; then
1015    eval $ac_prev=\$ac_option
1016    ac_prev=
1017    continue
1018  fi
1019
1020  case $ac_option in
1021  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022  *)	ac_optarg=yes ;;
1023  esac
1024
1025  # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027  case $ac_dashdash$ac_option in
1028  --)
1029    ac_dashdash=yes ;;
1030
1031  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032    ac_prev=bindir ;;
1033  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034    bindir=$ac_optarg ;;
1035
1036  -build | --build | --buil | --bui | --bu)
1037    ac_prev=build_alias ;;
1038  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039    build_alias=$ac_optarg ;;
1040
1041  -cache-file | --cache-file | --cache-fil | --cache-fi \
1042  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043    ac_prev=cache_file ;;
1044  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046    cache_file=$ac_optarg ;;
1047
1048  --config-cache | -C)
1049    cache_file=config.cache ;;
1050
1051  -datadir | --datadir | --datadi | --datad)
1052    ac_prev=datadir ;;
1053  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054    datadir=$ac_optarg ;;
1055
1056  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057  | --dataroo | --dataro | --datar)
1058    ac_prev=datarootdir ;;
1059  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061    datarootdir=$ac_optarg ;;
1062
1063  -disable-* | --disable-*)
1064    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068   { (exit 1); exit 1; }; }
1069    ac_useropt_orig=$ac_useropt
1070    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071    case $ac_user_opts in
1072      *"
1073"enable_$ac_useropt"
1074"*) ;;
1075      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076	 ac_unrecognized_sep=', ';;
1077    esac
1078    eval enable_$ac_useropt=no ;;
1079
1080  -docdir | --docdir | --docdi | --doc | --do)
1081    ac_prev=docdir ;;
1082  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083    docdir=$ac_optarg ;;
1084
1085  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086    ac_prev=dvidir ;;
1087  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088    dvidir=$ac_optarg ;;
1089
1090  -enable-* | --enable-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095   { (exit 1); exit 1; }; }
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"enable_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109  | --exec | --exe | --ex)
1110    ac_prev=exec_prefix ;;
1111  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113  | --exec=* | --exe=* | --ex=*)
1114    exec_prefix=$ac_optarg ;;
1115
1116  -gas | --gas | --ga | --g)
1117    # Obsolete; use --with-gas.
1118    with_gas=yes ;;
1119
1120  -help | --help | --hel | --he | -h)
1121    ac_init_help=long ;;
1122  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123    ac_init_help=recursive ;;
1124  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125    ac_init_help=short ;;
1126
1127  -host | --host | --hos | --ho)
1128    ac_prev=host_alias ;;
1129  -host=* | --host=* | --hos=* | --ho=*)
1130    host_alias=$ac_optarg ;;
1131
1132  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133    ac_prev=htmldir ;;
1134  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135  | --ht=*)
1136    htmldir=$ac_optarg ;;
1137
1138  -includedir | --includedir | --includedi | --included | --include \
1139  | --includ | --inclu | --incl | --inc)
1140    ac_prev=includedir ;;
1141  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142  | --includ=* | --inclu=* | --incl=* | --inc=*)
1143    includedir=$ac_optarg ;;
1144
1145  -infodir | --infodir | --infodi | --infod | --info | --inf)
1146    ac_prev=infodir ;;
1147  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148    infodir=$ac_optarg ;;
1149
1150  -libdir | --libdir | --libdi | --libd)
1151    ac_prev=libdir ;;
1152  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153    libdir=$ac_optarg ;;
1154
1155  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156  | --libexe | --libex | --libe)
1157    ac_prev=libexecdir ;;
1158  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159  | --libexe=* | --libex=* | --libe=*)
1160    libexecdir=$ac_optarg ;;
1161
1162  -localedir | --localedir | --localedi | --localed | --locale)
1163    ac_prev=localedir ;;
1164  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165    localedir=$ac_optarg ;;
1166
1167  -localstatedir | --localstatedir | --localstatedi | --localstated \
1168  | --localstate | --localstat | --localsta | --localst | --locals)
1169    ac_prev=localstatedir ;;
1170  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172    localstatedir=$ac_optarg ;;
1173
1174  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175    ac_prev=mandir ;;
1176  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177    mandir=$ac_optarg ;;
1178
1179  -nfp | --nfp | --nf)
1180    # Obsolete; use --without-fp.
1181    with_fp=no ;;
1182
1183  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184  | --no-cr | --no-c | -n)
1185    no_create=yes ;;
1186
1187  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189    no_recursion=yes ;;
1190
1191  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193  | --oldin | --oldi | --old | --ol | --o)
1194    ac_prev=oldincludedir ;;
1195  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198    oldincludedir=$ac_optarg ;;
1199
1200  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201    ac_prev=prefix ;;
1202  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203    prefix=$ac_optarg ;;
1204
1205  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206  | --program-pre | --program-pr | --program-p)
1207    ac_prev=program_prefix ;;
1208  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210    program_prefix=$ac_optarg ;;
1211
1212  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213  | --program-suf | --program-su | --program-s)
1214    ac_prev=program_suffix ;;
1215  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217    program_suffix=$ac_optarg ;;
1218
1219  -program-transform-name | --program-transform-name \
1220  | --program-transform-nam | --program-transform-na \
1221  | --program-transform-n | --program-transform- \
1222  | --program-transform | --program-transfor \
1223  | --program-transfo | --program-transf \
1224  | --program-trans | --program-tran \
1225  | --progr-tra | --program-tr | --program-t)
1226    ac_prev=program_transform_name ;;
1227  -program-transform-name=* | --program-transform-name=* \
1228  | --program-transform-nam=* | --program-transform-na=* \
1229  | --program-transform-n=* | --program-transform-=* \
1230  | --program-transform=* | --program-transfor=* \
1231  | --program-transfo=* | --program-transf=* \
1232  | --program-trans=* | --program-tran=* \
1233  | --progr-tra=* | --program-tr=* | --program-t=*)
1234    program_transform_name=$ac_optarg ;;
1235
1236  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237    ac_prev=pdfdir ;;
1238  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239    pdfdir=$ac_optarg ;;
1240
1241  -psdir | --psdir | --psdi | --psd | --ps)
1242    ac_prev=psdir ;;
1243  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244    psdir=$ac_optarg ;;
1245
1246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247  | -silent | --silent | --silen | --sile | --sil)
1248    silent=yes ;;
1249
1250  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251    ac_prev=sbindir ;;
1252  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253  | --sbi=* | --sb=*)
1254    sbindir=$ac_optarg ;;
1255
1256  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258  | --sharedst | --shareds | --shared | --share | --shar \
1259  | --sha | --sh)
1260    ac_prev=sharedstatedir ;;
1261  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264  | --sha=* | --sh=*)
1265    sharedstatedir=$ac_optarg ;;
1266
1267  -site | --site | --sit)
1268    ac_prev=site ;;
1269  -site=* | --site=* | --sit=*)
1270    site=$ac_optarg ;;
1271
1272  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273    ac_prev=srcdir ;;
1274  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275    srcdir=$ac_optarg ;;
1276
1277  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278  | --syscon | --sysco | --sysc | --sys | --sy)
1279    ac_prev=sysconfdir ;;
1280  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282    sysconfdir=$ac_optarg ;;
1283
1284  -target | --target | --targe | --targ | --tar | --ta | --t)
1285    ac_prev=target_alias ;;
1286  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287    target_alias=$ac_optarg ;;
1288
1289  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290    verbose=yes ;;
1291
1292  -version | --version | --versio | --versi | --vers | -V)
1293    ac_init_version=: ;;
1294
1295  -with-* | --with-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1300   { (exit 1); exit 1; }; }
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=\$ac_optarg ;;
1311
1312  -without-* | --without-*)
1313    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314    # Reject names that are not valid shell variable names.
1315    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1317   { (exit 1); exit 1; }; }
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=no ;;
1328
1329  --x)
1330    # Obsolete; use --with-x.
1331    with_x=yes ;;
1332
1333  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334  | --x-incl | --x-inc | --x-in | --x-i)
1335    ac_prev=x_includes ;;
1336  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338    x_includes=$ac_optarg ;;
1339
1340  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342    ac_prev=x_libraries ;;
1343  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345    x_libraries=$ac_optarg ;;
1346
1347  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1348Try \`$0 --help' for more information." >&2
1349   { (exit 1); exit 1; }; }
1350    ;;
1351
1352  *=*)
1353    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357   { (exit 1); exit 1; }; }
1358    eval $ac_envvar=\$ac_optarg
1359    export $ac_envvar ;;
1360
1361  *)
1362    # FIXME: should be removed in autoconf 3.0.
1363    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367    ;;
1368
1369  esac
1370done
1371
1372if test -n "$ac_prev"; then
1373  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1375   { (exit 1); exit 1; }; }
1376fi
1377
1378if test -n "$ac_unrecognized_opts"; then
1379  case $enable_option_checking in
1380    no) ;;
1381    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1382   { (exit 1); exit 1; }; } ;;
1383    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384  esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389		datadir sysconfdir sharedstatedir localstatedir includedir \
1390		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391		libdir localedir mandir
1392do
1393  eval ac_val=\$$ac_var
1394  # Remove trailing slashes.
1395  case $ac_val in
1396    */ )
1397      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398      eval $ac_var=\$ac_val;;
1399  esac
1400  # Be sure to have absolute directory names.
1401  case $ac_val in
1402    [\\/$]* | ?:[\\/]* )  continue;;
1403    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404  esac
1405  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1406   { (exit 1); exit 1; }; }
1407done
1408
1409# There might be people who depend on the old broken behavior: `$host'
1410# used to hold the argument of --host etc.
1411# FIXME: To remove some day.
1412build=$build_alias
1413host=$host_alias
1414target=$target_alias
1415
1416# FIXME: To remove some day.
1417if test "x$host_alias" != x; then
1418  if test "x$build_alias" = x; then
1419    cross_compiling=maybe
1420    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1421    If a cross compiler is detected then cross compile mode will be used." >&2
1422  elif test "x$build_alias" != "x$host_alias"; then
1423    cross_compiling=yes
1424  fi
1425fi
1426
1427ac_tool_prefix=
1428test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430test "$silent" = yes && exec 6>/dev/null
1431
1432
1433ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434ac_ls_di=`ls -di .` &&
1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1437   { (exit 1); exit 1; }; }
1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1440   { (exit 1); exit 1; }; }
1441
1442
1443# Find the source files, if location was not specified.
1444if test -z "$srcdir"; then
1445  ac_srcdir_defaulted=yes
1446  # Try the directory containing this script, then the parent directory.
1447  ac_confdir=`$as_dirname -- "$as_myself" ||
1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449	 X"$as_myself" : 'X\(//\)[^/]' \| \
1450	 X"$as_myself" : 'X\(//\)$' \| \
1451	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452$as_echo X"$as_myself" |
1453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\/\)[^/].*/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\/\)$/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\).*/{
1466	    s//\1/
1467	    q
1468	  }
1469	  s/.*/./; q'`
1470  srcdir=$ac_confdir
1471  if test ! -r "$srcdir/$ac_unique_file"; then
1472    srcdir=..
1473  fi
1474else
1475  ac_srcdir_defaulted=no
1476fi
1477if test ! -r "$srcdir/$ac_unique_file"; then
1478  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1480   { (exit 1); exit 1; }; }
1481fi
1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483ac_abs_confdir=`(
1484	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1485   { (exit 1); exit 1; }; }
1486	pwd)`
1487# When building in place, set srcdir=.
1488if test "$ac_abs_confdir" = "$ac_pwd"; then
1489  srcdir=.
1490fi
1491# Remove unnecessary trailing slashes from srcdir.
1492# Double slashes in file names in object file debugging info
1493# mess up M-x gdb in Emacs.
1494case $srcdir in
1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496esac
1497for ac_var in $ac_precious_vars; do
1498  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499  eval ac_env_${ac_var}_value=\$${ac_var}
1500  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502done
1503
1504#
1505# Report the --help message.
1506#
1507if test "$ac_init_help" = "long"; then
1508  # Omit some internal or obsolete options to make the list less imposing.
1509  # This message is too long to be a string in the A/UX 3.1 sh.
1510  cat <<_ACEOF
1511\`configure' configures xf86-video-rendition 4.2.2 to adapt to many kinds of systems.
1512
1513Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1515To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516VAR=VALUE.  See below for descriptions of some of the useful variables.
1517
1518Defaults for the options are specified in brackets.
1519
1520Configuration:
1521  -h, --help              display this help and exit
1522      --help=short        display options specific to this package
1523      --help=recursive    display the short help of all the included packages
1524  -V, --version           display version information and exit
1525  -q, --quiet, --silent   do not print \`checking...' messages
1526      --cache-file=FILE   cache test results in FILE [disabled]
1527  -C, --config-cache      alias for \`--cache-file=config.cache'
1528  -n, --no-create         do not create output files
1529      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1530
1531Installation directories:
1532  --prefix=PREFIX         install architecture-independent files in PREFIX
1533                          [$ac_default_prefix]
1534  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1535                          [PREFIX]
1536
1537By default, \`make install' will install all the files in
1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1539an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540for instance \`--prefix=\$HOME'.
1541
1542For better control, use the options below.
1543
1544Fine tuning of the installation directories:
1545  --bindir=DIR            user executables [EPREFIX/bin]
1546  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1547  --libexecdir=DIR        program executables [EPREFIX/libexec]
1548  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1549  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1550  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1551  --libdir=DIR            object code libraries [EPREFIX/lib]
1552  --includedir=DIR        C header files [PREFIX/include]
1553  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1554  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1555  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1556  --infodir=DIR           info documentation [DATAROOTDIR/info]
1557  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1558  --mandir=DIR            man documentation [DATAROOTDIR/man]
1559  --docdir=DIR            documentation root
1560                          [DATAROOTDIR/doc/xf86-video-rendition]
1561  --htmldir=DIR           html documentation [DOCDIR]
1562  --dvidir=DIR            dvi documentation [DOCDIR]
1563  --pdfdir=DIR            pdf documentation [DOCDIR]
1564  --psdir=DIR             ps documentation [DOCDIR]
1565_ACEOF
1566
1567  cat <<\_ACEOF
1568
1569Program names:
1570  --program-prefix=PREFIX            prepend PREFIX to installed program names
1571  --program-suffix=SUFFIX            append SUFFIX to installed program names
1572  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573
1574System types:
1575  --build=BUILD     configure for building on BUILD [guessed]
1576  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1577_ACEOF
1578fi
1579
1580if test -n "$ac_init_help"; then
1581  case $ac_init_help in
1582     short | recursive ) echo "Configuration of xf86-video-rendition 4.2.2:";;
1583   esac
1584  cat <<\_ACEOF
1585
1586Optional Features:
1587  --disable-option-checking  ignore unrecognized --enable/--with options
1588  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1589  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1590  --enable-maintainer-mode  enable make rules and dependencies not useful
1591			  (and sometimes confusing) to the casual installer
1592  --enable-static[=PKGS]  build static libraries [default=no]
1593  --enable-shared[=PKGS]  build shared libraries [default=yes]
1594  --enable-fast-install[=PKGS]
1595                          optimize for fast installation [default=yes]
1596  --disable-dependency-tracking  speeds up one-time build
1597  --enable-dependency-tracking   do not reject slow dependency extractors
1598  --disable-libtool-lock  avoid locking (might break parallel builds)
1599
1600Optional Packages:
1601  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1602  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1603  --with-pic              try to use only PIC/non-PIC objects [default=use
1604                          both]
1605  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1606  --with-xorg-module-dir=DIR
1607                          Default xorg module directory
1608                          [default=$libdir/xorg/modules]
1609  --with-release-version=STRING
1610                          Use release version string in package name
1611
1612Some influential environment variables:
1613  CC          C compiler command
1614  CFLAGS      C compiler flags
1615  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1616              nonstandard directory <lib dir>
1617  LIBS        libraries to pass to the linker, e.g. -l<library>
1618  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1619              you have headers in a nonstandard directory <include dir>
1620  CPP         C preprocessor
1621  PKG_CONFIG  path to pkg-config utility
1622  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1623  XORG_LIBS   linker flags for XORG, overriding pkg-config
1624  PCIACCESS_CFLAGS
1625              C compiler flags for PCIACCESS, overriding pkg-config
1626  PCIACCESS_LIBS
1627              linker flags for PCIACCESS, overriding pkg-config
1628
1629Use these variables to override the choices made by `configure' or to help
1630it to find libraries and programs with nonstandard names/locations.
1631
1632Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1633_ACEOF
1634ac_status=$?
1635fi
1636
1637if test "$ac_init_help" = "recursive"; then
1638  # If there are subdirs, report their specific --help.
1639  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640    test -d "$ac_dir" ||
1641      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642      continue
1643    ac_builddir=.
1644
1645case "$ac_dir" in
1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647*)
1648  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649  # A ".." for each directory in $ac_dir_suffix.
1650  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651  case $ac_top_builddir_sub in
1652  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654  esac ;;
1655esac
1656ac_abs_top_builddir=$ac_pwd
1657ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658# for backward compatibility:
1659ac_top_builddir=$ac_top_build_prefix
1660
1661case $srcdir in
1662  .)  # We are building in place.
1663    ac_srcdir=.
1664    ac_top_srcdir=$ac_top_builddir_sub
1665    ac_abs_top_srcdir=$ac_pwd ;;
1666  [\\/]* | ?:[\\/]* )  # Absolute name.
1667    ac_srcdir=$srcdir$ac_dir_suffix;
1668    ac_top_srcdir=$srcdir
1669    ac_abs_top_srcdir=$srcdir ;;
1670  *) # Relative name.
1671    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672    ac_top_srcdir=$ac_top_build_prefix$srcdir
1673    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674esac
1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677    cd "$ac_dir" || { ac_status=$?; continue; }
1678    # Check for guested configure.
1679    if test -f "$ac_srcdir/configure.gnu"; then
1680      echo &&
1681      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682    elif test -f "$ac_srcdir/configure"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure" --help=recursive
1685    else
1686      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687    fi || ac_status=$?
1688    cd "$ac_pwd" || { ac_status=$?; break; }
1689  done
1690fi
1691
1692test -n "$ac_init_help" && exit $ac_status
1693if $ac_init_version; then
1694  cat <<\_ACEOF
1695xf86-video-rendition configure 4.2.2
1696generated by GNU Autoconf 2.63
1697
1698Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16992002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
1703  exit
1704fi
1705cat >config.log <<_ACEOF
1706This file contains any messages produced by compilers while
1707running configure, to aid debugging if configure makes a mistake.
1708
1709It was created by xf86-video-rendition $as_me 4.2.2, which was
1710generated by GNU Autoconf 2.63.  Invocation command line was
1711
1712  $ $0 $@
1713
1714_ACEOF
1715exec 5>>config.log
1716{
1717cat <<_ASUNAME
1718## --------- ##
1719## Platform. ##
1720## --------- ##
1721
1722hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1723uname -m = `(uname -m) 2>/dev/null || echo unknown`
1724uname -r = `(uname -r) 2>/dev/null || echo unknown`
1725uname -s = `(uname -s) 2>/dev/null || echo unknown`
1726uname -v = `(uname -v) 2>/dev/null || echo unknown`
1727
1728/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1729/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1730
1731/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1732/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1733/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1734/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1735/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1736/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1737/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1738
1739_ASUNAME
1740
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744  IFS=$as_save_IFS
1745  test -z "$as_dir" && as_dir=.
1746  $as_echo "PATH: $as_dir"
1747done
1748IFS=$as_save_IFS
1749
1750} >&5
1751
1752cat >&5 <<_ACEOF
1753
1754
1755## ----------- ##
1756## Core tests. ##
1757## ----------- ##
1758
1759_ACEOF
1760
1761
1762# Keep a trace of the command line.
1763# Strip out --no-create and --no-recursion so they do not pile up.
1764# Strip out --silent because we don't want to record it for future runs.
1765# Also quote any args containing shell meta-characters.
1766# Make two passes to allow for proper duplicate-argument suppression.
1767ac_configure_args=
1768ac_configure_args0=
1769ac_configure_args1=
1770ac_must_keep_next=false
1771for ac_pass in 1 2
1772do
1773  for ac_arg
1774  do
1775    case $ac_arg in
1776    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1777    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1778    | -silent | --silent | --silen | --sile | --sil)
1779      continue ;;
1780    *\'*)
1781      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1782    esac
1783    case $ac_pass in
1784    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1785    2)
1786      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1787      if test $ac_must_keep_next = true; then
1788	ac_must_keep_next=false # Got value, back to normal.
1789      else
1790	case $ac_arg in
1791	  *=* | --config-cache | -C | -disable-* | --disable-* \
1792	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1793	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1794	  | -with-* | --with-* | -without-* | --without-* | --x)
1795	    case "$ac_configure_args0 " in
1796	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1797	    esac
1798	    ;;
1799	  -* ) ac_must_keep_next=true ;;
1800	esac
1801      fi
1802      ac_configure_args="$ac_configure_args '$ac_arg'"
1803      ;;
1804    esac
1805  done
1806done
1807$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1808$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1809
1810# When interrupted or exit'd, cleanup temporary files, and complete
1811# config.log.  We remove comments because anyway the quotes in there
1812# would cause problems or look ugly.
1813# WARNING: Use '\'' to represent an apostrophe within the trap.
1814# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1815trap 'exit_status=$?
1816  # Save into config.log some information that might help in debugging.
1817  {
1818    echo
1819
1820    cat <<\_ASBOX
1821## ---------------- ##
1822## Cache variables. ##
1823## ---------------- ##
1824_ASBOX
1825    echo
1826    # The following way of writing the cache mishandles newlines in values,
1827(
1828  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1829    eval ac_val=\$$ac_var
1830    case $ac_val in #(
1831    *${as_nl}*)
1832      case $ac_var in #(
1833      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1834$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1835      esac
1836      case $ac_var in #(
1837      _ | IFS | as_nl) ;; #(
1838      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1839      *) $as_unset $ac_var ;;
1840      esac ;;
1841    esac
1842  done
1843  (set) 2>&1 |
1844    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1845    *${as_nl}ac_space=\ *)
1846      sed -n \
1847	"s/'\''/'\''\\\\'\'''\''/g;
1848	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1849      ;; #(
1850    *)
1851      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852      ;;
1853    esac |
1854    sort
1855)
1856    echo
1857
1858    cat <<\_ASBOX
1859## ----------------- ##
1860## Output variables. ##
1861## ----------------- ##
1862_ASBOX
1863    echo
1864    for ac_var in $ac_subst_vars
1865    do
1866      eval ac_val=\$$ac_var
1867      case $ac_val in
1868      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869      esac
1870      $as_echo "$ac_var='\''$ac_val'\''"
1871    done | sort
1872    echo
1873
1874    if test -n "$ac_subst_files"; then
1875      cat <<\_ASBOX
1876## ------------------- ##
1877## File substitutions. ##
1878## ------------------- ##
1879_ASBOX
1880      echo
1881      for ac_var in $ac_subst_files
1882      do
1883	eval ac_val=\$$ac_var
1884	case $ac_val in
1885	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886	esac
1887	$as_echo "$ac_var='\''$ac_val'\''"
1888      done | sort
1889      echo
1890    fi
1891
1892    if test -s confdefs.h; then
1893      cat <<\_ASBOX
1894## ----------- ##
1895## confdefs.h. ##
1896## ----------- ##
1897_ASBOX
1898      echo
1899      cat confdefs.h
1900      echo
1901    fi
1902    test "$ac_signal" != 0 &&
1903      $as_echo "$as_me: caught signal $ac_signal"
1904    $as_echo "$as_me: exit $exit_status"
1905  } >&5
1906  rm -f core *.core core.conftest.* &&
1907    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1908    exit $exit_status
1909' 0
1910for ac_signal in 1 2 13 15; do
1911  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1912done
1913ac_signal=0
1914
1915# confdefs.h avoids OS command line length limits that DEFS can exceed.
1916rm -f -r conftest* confdefs.h
1917
1918# Predefined preprocessor variables.
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_NAME "$PACKAGE_NAME"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_VERSION "$PACKAGE_VERSION"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_STRING "$PACKAGE_STRING"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1942_ACEOF
1943
1944
1945# Let the site file select an alternate cache file if it wants to.
1946# Prefer an explicitly selected file to automatically selected ones.
1947ac_site_file1=NONE
1948ac_site_file2=NONE
1949if test -n "$CONFIG_SITE"; then
1950  ac_site_file1=$CONFIG_SITE
1951elif test "x$prefix" != xNONE; then
1952  ac_site_file1=$prefix/share/config.site
1953  ac_site_file2=$prefix/etc/config.site
1954else
1955  ac_site_file1=$ac_default_prefix/share/config.site
1956  ac_site_file2=$ac_default_prefix/etc/config.site
1957fi
1958for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1959do
1960  test "x$ac_site_file" = xNONE && continue
1961  if test -r "$ac_site_file"; then
1962    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1963$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1964    sed 's/^/| /' "$ac_site_file" >&5
1965    . "$ac_site_file"
1966  fi
1967done
1968
1969if test -r "$cache_file"; then
1970  # Some versions of bash will fail to source /dev/null (special
1971  # files actually), so we avoid doing that.
1972  if test -f "$cache_file"; then
1973    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1974$as_echo "$as_me: loading cache $cache_file" >&6;}
1975    case $cache_file in
1976      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1977      *)                      . "./$cache_file";;
1978    esac
1979  fi
1980else
1981  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1982$as_echo "$as_me: creating cache $cache_file" >&6;}
1983  >$cache_file
1984fi
1985
1986# Check that the precious variables saved in the cache have kept the same
1987# value.
1988ac_cache_corrupted=false
1989for ac_var in $ac_precious_vars; do
1990  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991  eval ac_new_set=\$ac_env_${ac_var}_set
1992  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993  eval ac_new_val=\$ac_env_${ac_var}_value
1994  case $ac_old_set,$ac_new_set in
1995    set,)
1996      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998      ac_cache_corrupted=: ;;
1999    ,set)
2000      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002      ac_cache_corrupted=: ;;
2003    ,);;
2004    *)
2005      if test "x$ac_old_val" != "x$ac_new_val"; then
2006	# differences in whitespace do not lead to failure.
2007	ac_old_val_w=`echo x $ac_old_val`
2008	ac_new_val_w=`echo x $ac_new_val`
2009	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2010	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2011$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2012	  ac_cache_corrupted=:
2013	else
2014	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2015$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2016	  eval $ac_var=\$ac_old_val
2017	fi
2018	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2019$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2020	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2021$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2022      fi;;
2023  esac
2024  # Pass precious variables to config.status.
2025  if test "$ac_new_set" = set; then
2026    case $ac_new_val in
2027    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2028    *) ac_arg=$ac_var=$ac_new_val ;;
2029    esac
2030    case " $ac_configure_args " in
2031      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2032      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2033    esac
2034  fi
2035done
2036if $ac_cache_corrupted; then
2037  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2039  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2040$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2041  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2042$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2043   { (exit 1); exit 1; }; }
2044fi
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070ac_ext=c
2071ac_cpp='$CPP $CPPFLAGS'
2072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074ac_compiler_gnu=$ac_cv_c_compiler_gnu
2075
2076
2077
2078
2079ac_config_headers="$ac_config_headers config.h"
2080
2081ac_aux_dir=
2082for ac_dir in . "$srcdir"/.; do
2083  if test -f "$ac_dir/install-sh"; then
2084    ac_aux_dir=$ac_dir
2085    ac_install_sh="$ac_aux_dir/install-sh -c"
2086    break
2087  elif test -f "$ac_dir/install.sh"; then
2088    ac_aux_dir=$ac_dir
2089    ac_install_sh="$ac_aux_dir/install.sh -c"
2090    break
2091  elif test -f "$ac_dir/shtool"; then
2092    ac_aux_dir=$ac_dir
2093    ac_install_sh="$ac_aux_dir/shtool install -c"
2094    break
2095  fi
2096done
2097if test -z "$ac_aux_dir"; then
2098  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2099$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2100   { (exit 1); exit 1; }; }
2101fi
2102
2103# These three variables are undocumented and unsupported,
2104# and are intended to be withdrawn in a future Autoconf release.
2105# They can cause serious problems if a builder's source tree is in a directory
2106# whose full name contains unusual characters.
2107ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2108ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2109ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2110
2111
2112
2113am__api_version='1.10'
2114
2115# Find a good install program.  We prefer a C program (faster),
2116# so one script is as good as another.  But avoid the broken or
2117# incompatible versions:
2118# SysV /etc/install, /usr/sbin/install
2119# SunOS /usr/etc/install
2120# IRIX /sbin/install
2121# AIX /bin/install
2122# AmigaOS /C/install, which installs bootblocks on floppy discs
2123# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126# OS/2's system install, which has a completely different semantic
2127# ./install, which can be erroneously created by make from ./install.sh.
2128# Reject install programs that cannot install multiple files.
2129{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2130$as_echo_n "checking for a BSD-compatible install... " >&6; }
2131if test -z "$INSTALL"; then
2132if test "${ac_cv_path_install+set}" = set; then
2133  $as_echo_n "(cached) " >&6
2134else
2135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138  IFS=$as_save_IFS
2139  test -z "$as_dir" && as_dir=.
2140  # Account for people who put trailing slashes in PATH elements.
2141case $as_dir/ in
2142  ./ | .// | /cC/* | \
2143  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2144  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2145  /usr/ucb/* ) ;;
2146  *)
2147    # OSF1 and SCO ODT 3.0 have their own names for install.
2148    # Don't use installbsd from OSF since it installs stuff as root
2149    # by default.
2150    for ac_prog in ginstall scoinst install; do
2151      for ac_exec_ext in '' $ac_executable_extensions; do
2152	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2153	  if test $ac_prog = install &&
2154	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2155	    # AIX install.  It has an incompatible calling convention.
2156	    :
2157	  elif test $ac_prog = install &&
2158	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159	    # program-specific install script used by HP pwplus--don't use.
2160	    :
2161	  else
2162	    rm -rf conftest.one conftest.two conftest.dir
2163	    echo one > conftest.one
2164	    echo two > conftest.two
2165	    mkdir conftest.dir
2166	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2167	      test -s conftest.one && test -s conftest.two &&
2168	      test -s conftest.dir/conftest.one &&
2169	      test -s conftest.dir/conftest.two
2170	    then
2171	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2172	      break 3
2173	    fi
2174	  fi
2175	fi
2176      done
2177    done
2178    ;;
2179esac
2180
2181done
2182IFS=$as_save_IFS
2183
2184rm -rf conftest.one conftest.two conftest.dir
2185
2186fi
2187  if test "${ac_cv_path_install+set}" = set; then
2188    INSTALL=$ac_cv_path_install
2189  else
2190    # As a last resort, use the slow shell script.  Don't cache a
2191    # value for INSTALL within a source directory, because that will
2192    # break other packages using the cache if that directory is
2193    # removed, or if the value is a relative name.
2194    INSTALL=$ac_install_sh
2195  fi
2196fi
2197{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2198$as_echo "$INSTALL" >&6; }
2199
2200# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201# It thinks the first close brace ends the variable substitution.
2202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2203
2204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2205
2206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2207
2208{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2209$as_echo_n "checking whether build environment is sane... " >&6; }
2210# Just in case
2211sleep 1
2212echo timestamp > conftest.file
2213# Do `set' in a subshell so we don't clobber the current shell's
2214# arguments.  Must try -L first in case configure is actually a
2215# symlink; some systems play weird games with the mod time of symlinks
2216# (eg FreeBSD returns the mod time of the symlink's containing
2217# directory).
2218if (
2219   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2220   if test "$*" = "X"; then
2221      # -L didn't work.
2222      set X `ls -t $srcdir/configure conftest.file`
2223   fi
2224   rm -f conftest.file
2225   if test "$*" != "X $srcdir/configure conftest.file" \
2226      && test "$*" != "X conftest.file $srcdir/configure"; then
2227
2228      # If neither matched, then we have a broken ls.  This can happen
2229      # if, for instance, CONFIG_SHELL is bash and it inherits a
2230      # broken ls alias from the environment.  This has actually
2231      # happened.  Such a system could not be considered "sane".
2232      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2233alias in your environment" >&5
2234$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2235alias in your environment" >&2;}
2236   { (exit 1); exit 1; }; }
2237   fi
2238
2239   test "$2" = conftest.file
2240   )
2241then
2242   # Ok.
2243   :
2244else
2245   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2246Check your system clock" >&5
2247$as_echo "$as_me: error: newly created file is older than distributed files!
2248Check your system clock" >&2;}
2249   { (exit 1); exit 1; }; }
2250fi
2251{ $as_echo "$as_me:$LINENO: result: yes" >&5
2252$as_echo "yes" >&6; }
2253test "$program_prefix" != NONE &&
2254  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2255# Use a double $ so make ignores it.
2256test "$program_suffix" != NONE &&
2257  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2258# Double any \ or $.
2259# By default was `s,x,x', remove it if useless.
2260ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2261program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2262
2263# expand $ac_aux_dir to an absolute path
2264am_aux_dir=`cd $ac_aux_dir && pwd`
2265
2266test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2267# Use eval to expand $SHELL
2268if eval "$MISSING --run true"; then
2269  am_missing_run="$MISSING --run "
2270else
2271  am_missing_run=
2272  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2273$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2274fi
2275
2276{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2277$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2278if test -z "$MKDIR_P"; then
2279  if test "${ac_cv_path_mkdir+set}" = set; then
2280  $as_echo_n "(cached) " >&6
2281else
2282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2284do
2285  IFS=$as_save_IFS
2286  test -z "$as_dir" && as_dir=.
2287  for ac_prog in mkdir gmkdir; do
2288	 for ac_exec_ext in '' $ac_executable_extensions; do
2289	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2290	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2291	     'mkdir (GNU coreutils) '* | \
2292	     'mkdir (coreutils) '* | \
2293	     'mkdir (fileutils) '4.1*)
2294	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2295	       break 3;;
2296	   esac
2297	 done
2298       done
2299done
2300IFS=$as_save_IFS
2301
2302fi
2303
2304  if test "${ac_cv_path_mkdir+set}" = set; then
2305    MKDIR_P="$ac_cv_path_mkdir -p"
2306  else
2307    # As a last resort, use the slow shell script.  Don't cache a
2308    # value for MKDIR_P within a source directory, because that will
2309    # break other packages using the cache if that directory is
2310    # removed, or if the value is a relative name.
2311    test -d ./--version && rmdir ./--version
2312    MKDIR_P="$ac_install_sh -d"
2313  fi
2314fi
2315{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2316$as_echo "$MKDIR_P" >&6; }
2317
2318mkdir_p="$MKDIR_P"
2319case $mkdir_p in
2320  [\\/$]* | ?:[\\/]*) ;;
2321  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2322esac
2323
2324for ac_prog in gawk mawk nawk awk
2325do
2326  # Extract the first word of "$ac_prog", so it can be a program name with args.
2327set dummy $ac_prog; ac_word=$2
2328{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2329$as_echo_n "checking for $ac_word... " >&6; }
2330if test "${ac_cv_prog_AWK+set}" = set; then
2331  $as_echo_n "(cached) " >&6
2332else
2333  if test -n "$AWK"; then
2334  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2335else
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  test -z "$as_dir" && as_dir=.
2341  for ac_exec_ext in '' $ac_executable_extensions; do
2342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343    ac_cv_prog_AWK="$ac_prog"
2344    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345    break 2
2346  fi
2347done
2348done
2349IFS=$as_save_IFS
2350
2351fi
2352fi
2353AWK=$ac_cv_prog_AWK
2354if test -n "$AWK"; then
2355  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2356$as_echo "$AWK" >&6; }
2357else
2358  { $as_echo "$as_me:$LINENO: result: no" >&5
2359$as_echo "no" >&6; }
2360fi
2361
2362
2363  test -n "$AWK" && break
2364done
2365
2366{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2367$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2368set x ${MAKE-make}
2369ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2370if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2371  $as_echo_n "(cached) " >&6
2372else
2373  cat >conftest.make <<\_ACEOF
2374SHELL = /bin/sh
2375all:
2376	@echo '@@@%%%=$(MAKE)=@@@%%%'
2377_ACEOF
2378# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2379case `${MAKE-make} -f conftest.make 2>/dev/null` in
2380  *@@@%%%=?*=@@@%%%*)
2381    eval ac_cv_prog_make_${ac_make}_set=yes;;
2382  *)
2383    eval ac_cv_prog_make_${ac_make}_set=no;;
2384esac
2385rm -f conftest.make
2386fi
2387if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2388  { $as_echo "$as_me:$LINENO: result: yes" >&5
2389$as_echo "yes" >&6; }
2390  SET_MAKE=
2391else
2392  { $as_echo "$as_me:$LINENO: result: no" >&5
2393$as_echo "no" >&6; }
2394  SET_MAKE="MAKE=${MAKE-make}"
2395fi
2396
2397rm -rf .tst 2>/dev/null
2398mkdir .tst 2>/dev/null
2399if test -d .tst; then
2400  am__leading_dot=.
2401else
2402  am__leading_dot=_
2403fi
2404rmdir .tst 2>/dev/null
2405
2406if test "`cd $srcdir && pwd`" != "`pwd`"; then
2407  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2408  # is not polluted with repeated "-I."
2409  am__isrc=' -I$(srcdir)'
2410  # test to see if srcdir already configured
2411  if test -f $srcdir/config.status; then
2412    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2413$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2414   { (exit 1); exit 1; }; }
2415  fi
2416fi
2417
2418# test whether we have cygpath
2419if test -z "$CYGPATH_W"; then
2420  if (cygpath --version) >/dev/null 2>/dev/null; then
2421    CYGPATH_W='cygpath -w'
2422  else
2423    CYGPATH_W=echo
2424  fi
2425fi
2426
2427
2428# Define the identity of the package.
2429 PACKAGE='xf86-video-rendition'
2430 VERSION='4.2.2'
2431
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE "$PACKAGE"
2435_ACEOF
2436
2437
2438cat >>confdefs.h <<_ACEOF
2439#define VERSION "$VERSION"
2440_ACEOF
2441
2442# Some tools Automake needs.
2443
2444ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2445
2446
2447AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2448
2449
2450AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2451
2452
2453AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2454
2455
2456MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2457
2458install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2459
2460# Installed binaries are usually stripped using `strip' when the user
2461# run `make install-strip'.  However `strip' might not be the right
2462# tool to use in cross-compilation environments, therefore Automake
2463# will honor the `STRIP' environment variable to overrule this program.
2464if test "$cross_compiling" != no; then
2465  if test -n "$ac_tool_prefix"; then
2466  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2467set dummy ${ac_tool_prefix}strip; ac_word=$2
2468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
2470if test "${ac_cv_prog_STRIP+set}" = set; then
2471  $as_echo_n "(cached) " >&6
2472else
2473  if test -n "$STRIP"; then
2474  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479  IFS=$as_save_IFS
2480  test -z "$as_dir" && as_dir=.
2481  for ac_exec_ext in '' $ac_executable_extensions; do
2482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2484    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485    break 2
2486  fi
2487done
2488done
2489IFS=$as_save_IFS
2490
2491fi
2492fi
2493STRIP=$ac_cv_prog_STRIP
2494if test -n "$STRIP"; then
2495  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2496$as_echo "$STRIP" >&6; }
2497else
2498  { $as_echo "$as_me:$LINENO: result: no" >&5
2499$as_echo "no" >&6; }
2500fi
2501
2502
2503fi
2504if test -z "$ac_cv_prog_STRIP"; then
2505  ac_ct_STRIP=$STRIP
2506  # Extract the first word of "strip", so it can be a program name with args.
2507set dummy strip; ac_word=$2
2508{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
2510if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2511  $as_echo_n "(cached) " >&6
2512else
2513  if test -n "$ac_ct_STRIP"; then
2514  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519  IFS=$as_save_IFS
2520  test -z "$as_dir" && as_dir=.
2521  for ac_exec_ext in '' $ac_executable_extensions; do
2522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523    ac_cv_prog_ac_ct_STRIP="strip"
2524    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525    break 2
2526  fi
2527done
2528done
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2534if test -n "$ac_ct_STRIP"; then
2535  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2536$as_echo "$ac_ct_STRIP" >&6; }
2537else
2538  { $as_echo "$as_me:$LINENO: result: no" >&5
2539$as_echo "no" >&6; }
2540fi
2541
2542  if test "x$ac_ct_STRIP" = x; then
2543    STRIP=":"
2544  else
2545    case $cross_compiling:$ac_tool_warned in
2546yes:)
2547{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549ac_tool_warned=yes ;;
2550esac
2551    STRIP=$ac_ct_STRIP
2552  fi
2553else
2554  STRIP="$ac_cv_prog_STRIP"
2555fi
2556
2557fi
2558INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2559
2560# We need awk for the "check" target.  The system "awk" is bad on
2561# some platforms.
2562# Always define AMTAR for backward compatibility.
2563
2564AMTAR=${AMTAR-"${am_missing_run}tar"}
2565
2566am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2567
2568
2569
2570
2571
2572
2573{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2574$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2575    # Check whether --enable-maintainer-mode was given.
2576if test "${enable_maintainer_mode+set}" = set; then
2577  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2578else
2579  USE_MAINTAINER_MODE=no
2580fi
2581
2582  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2583$as_echo "$USE_MAINTAINER_MODE" >&6; }
2584   if test $USE_MAINTAINER_MODE = yes; then
2585  MAINTAINER_MODE_TRUE=
2586  MAINTAINER_MODE_FALSE='#'
2587else
2588  MAINTAINER_MODE_TRUE='#'
2589  MAINTAINER_MODE_FALSE=
2590fi
2591
2592  MAINT=$MAINTAINER_MODE_TRUE
2593
2594
2595
2596# Checks for programs.
2597# Check whether --enable-static was given.
2598if test "${enable_static+set}" = set; then
2599  enableval=$enable_static; p=${PACKAGE-default}
2600    case $enableval in
2601    yes) enable_static=yes ;;
2602    no) enable_static=no ;;
2603    *)
2604     enable_static=no
2605      # Look at the argument we got.  We use all the common list separators.
2606      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2607      for pkg in $enableval; do
2608	IFS="$lt_save_ifs"
2609	if test "X$pkg" = "X$p"; then
2610	  enable_static=yes
2611	fi
2612      done
2613      IFS="$lt_save_ifs"
2614      ;;
2615    esac
2616else
2617  enable_static=no
2618fi
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628case `pwd` in
2629  *\ * | *\	*)
2630    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2631$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2632esac
2633
2634
2635
2636macro_version='2.2.6'
2637macro_revision='1.3012'
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651ltmain="$ac_aux_dir/ltmain.sh"
2652
2653# Make sure we can run config.sub.
2654$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2655  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2656$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2657   { (exit 1); exit 1; }; }
2658
2659{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2660$as_echo_n "checking build system type... " >&6; }
2661if test "${ac_cv_build+set}" = set; then
2662  $as_echo_n "(cached) " >&6
2663else
2664  ac_build_alias=$build_alias
2665test "x$ac_build_alias" = x &&
2666  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2667test "x$ac_build_alias" = x &&
2668  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2669$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2670   { (exit 1); exit 1; }; }
2671ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2672  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2673$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2674   { (exit 1); exit 1; }; }
2675
2676fi
2677{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2678$as_echo "$ac_cv_build" >&6; }
2679case $ac_cv_build in
2680*-*-*) ;;
2681*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2682$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2683   { (exit 1); exit 1; }; };;
2684esac
2685build=$ac_cv_build
2686ac_save_IFS=$IFS; IFS='-'
2687set x $ac_cv_build
2688shift
2689build_cpu=$1
2690build_vendor=$2
2691shift; shift
2692# Remember, the first character of IFS is used to create $*,
2693# except with old shells:
2694build_os=$*
2695IFS=$ac_save_IFS
2696case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2697
2698
2699{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2700$as_echo_n "checking host system type... " >&6; }
2701if test "${ac_cv_host+set}" = set; then
2702  $as_echo_n "(cached) " >&6
2703else
2704  if test "x$host_alias" = x; then
2705  ac_cv_host=$ac_cv_build
2706else
2707  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2708    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2709$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2710   { (exit 1); exit 1; }; }
2711fi
2712
2713fi
2714{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2715$as_echo "$ac_cv_host" >&6; }
2716case $ac_cv_host in
2717*-*-*) ;;
2718*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2719$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2720   { (exit 1); exit 1; }; };;
2721esac
2722host=$ac_cv_host
2723ac_save_IFS=$IFS; IFS='-'
2724set x $ac_cv_host
2725shift
2726host_cpu=$1
2727host_vendor=$2
2728shift; shift
2729# Remember, the first character of IFS is used to create $*,
2730# except with old shells:
2731host_os=$*
2732IFS=$ac_save_IFS
2733case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2734
2735
2736DEPDIR="${am__leading_dot}deps"
2737
2738ac_config_commands="$ac_config_commands depfiles"
2739
2740
2741am_make=${MAKE-make}
2742cat > confinc << 'END'
2743am__doit:
2744	@echo done
2745.PHONY: am__doit
2746END
2747# If we don't find an include directive, just comment out the code.
2748{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2749$as_echo_n "checking for style of include used by $am_make... " >&6; }
2750am__include="#"
2751am__quote=
2752_am_result=none
2753# First try GNU make style include.
2754echo "include confinc" > confmf
2755# We grep out `Entering directory' and `Leaving directory'
2756# messages which can occur if `w' ends up in MAKEFLAGS.
2757# In particular we don't look at `^make:' because GNU make might
2758# be invoked under some other name (usually "gmake"), in which
2759# case it prints its new name instead of `make'.
2760if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2761   am__include=include
2762   am__quote=
2763   _am_result=GNU
2764fi
2765# Now try BSD make style include.
2766if test "$am__include" = "#"; then
2767   echo '.include "confinc"' > confmf
2768   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2769      am__include=.include
2770      am__quote="\""
2771      _am_result=BSD
2772   fi
2773fi
2774
2775
2776{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2777$as_echo "$_am_result" >&6; }
2778rm -f confinc confmf
2779
2780# Check whether --enable-dependency-tracking was given.
2781if test "${enable_dependency_tracking+set}" = set; then
2782  enableval=$enable_dependency_tracking;
2783fi
2784
2785if test "x$enable_dependency_tracking" != xno; then
2786  am_depcomp="$ac_aux_dir/depcomp"
2787  AMDEPBACKSLASH='\'
2788fi
2789 if test "x$enable_dependency_tracking" != xno; then
2790  AMDEP_TRUE=
2791  AMDEP_FALSE='#'
2792else
2793  AMDEP_TRUE='#'
2794  AMDEP_FALSE=
2795fi
2796
2797
2798ac_ext=c
2799ac_cpp='$CPP $CPPFLAGS'
2800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803if test -n "$ac_tool_prefix"; then
2804  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if test "${ac_cv_prog_CC+set}" = set; then
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819  for ac_exec_ext in '' $ac_executable_extensions; do
2820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831CC=$ac_cv_prog_CC
2832if test -n "$CC"; then
2833  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2834$as_echo "$CC" >&6; }
2835else
2836  { $as_echo "$as_me:$LINENO: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840
2841fi
2842if test -z "$ac_cv_prog_CC"; then
2843  ac_ct_CC=$CC
2844  # Extract the first word of "gcc", so it can be a program name with args.
2845set dummy gcc; ac_word=$2
2846{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$ac_ct_CC"; then
2852  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859  for ac_exec_ext in '' $ac_executable_extensions; do
2860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861    ac_cv_prog_ac_ct_CC="gcc"
2862    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872if test -n "$ac_ct_CC"; then
2873  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2874$as_echo "$ac_ct_CC" >&6; }
2875else
2876  { $as_echo "$as_me:$LINENO: result: no" >&5
2877$as_echo "no" >&6; }
2878fi
2879
2880  if test "x$ac_ct_CC" = x; then
2881    CC=""
2882  else
2883    case $cross_compiling:$ac_tool_warned in
2884yes:)
2885{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887ac_tool_warned=yes ;;
2888esac
2889    CC=$ac_ct_CC
2890  fi
2891else
2892  CC="$ac_cv_prog_CC"
2893fi
2894
2895if test -z "$CC"; then
2896          if test -n "$ac_tool_prefix"; then
2897    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898set dummy ${ac_tool_prefix}cc; ac_word=$2
2899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if test "${ac_cv_prog_CC+set}" = set; then
2902  $as_echo_n "(cached) " >&6
2903else
2904  if test -n "$CC"; then
2905  ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912  for ac_exec_ext in '' $ac_executable_extensions; do
2913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914    ac_cv_prog_CC="${ac_tool_prefix}cc"
2915    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919done
2920IFS=$as_save_IFS
2921
2922fi
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2927$as_echo "$CC" >&6; }
2928else
2929  { $as_echo "$as_me:$LINENO: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
2933
2934  fi
2935fi
2936if test -z "$CC"; then
2937  # Extract the first word of "cc", so it can be a program name with args.
2938set dummy cc; ac_word=$2
2939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_prog_CC+set}" = set; then
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947  ac_prog_rejected=no
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956       ac_prog_rejected=yes
2957       continue
2958     fi
2959    ac_cv_prog_CC="cc"
2960    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964done
2965IFS=$as_save_IFS
2966
2967if test $ac_prog_rejected = yes; then
2968  # We found a bogon in the path, so make sure we never use it.
2969  set dummy $ac_cv_prog_CC
2970  shift
2971  if test $# != 0; then
2972    # We chose a different compiler from the bogus one.
2973    # However, it has the same basename, so the bogon will be chosen
2974    # first if we set CC to just the basename; use the full file name.
2975    shift
2976    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977  fi
2978fi
2979fi
2980fi
2981CC=$ac_cv_prog_CC
2982if test -n "$CC"; then
2983  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2984$as_echo "$CC" >&6; }
2985else
2986  { $as_echo "$as_me:$LINENO: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
2991fi
2992if test -z "$CC"; then
2993  if test -n "$ac_tool_prefix"; then
2994  for ac_prog in cl.exe
2995  do
2996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if test "${ac_cv_prog_CC+set}" = set; then
3001  $as_echo_n "(cached) " >&6
3002else
3003  if test -n "$CC"; then
3004  ac_cv_prog_CC="$CC" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011  for ac_exec_ext in '' $ac_executable_extensions; do
3012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023CC=$ac_cv_prog_CC
3024if test -n "$CC"; then
3025  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3026$as_echo "$CC" >&6; }
3027else
3028  { $as_echo "$as_me:$LINENO: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032
3033    test -n "$CC" && break
3034  done
3035fi
3036if test -z "$CC"; then
3037  ac_ct_CC=$CC
3038  for ac_prog in cl.exe
3039do
3040  # Extract the first word of "$ac_prog", so it can be a program name with args.
3041set dummy $ac_prog; ac_word=$2
3042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3045  $as_echo_n "(cached) " >&6
3046else
3047  if test -n "$ac_ct_CC"; then
3048  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055  for ac_exec_ext in '' $ac_executable_extensions; do
3056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057    ac_cv_prog_ac_ct_CC="$ac_prog"
3058    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068if test -n "$ac_ct_CC"; then
3069  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3070$as_echo "$ac_ct_CC" >&6; }
3071else
3072  { $as_echo "$as_me:$LINENO: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077  test -n "$ac_ct_CC" && break
3078done
3079
3080  if test "x$ac_ct_CC" = x; then
3081    CC=""
3082  else
3083    case $cross_compiling:$ac_tool_warned in
3084yes:)
3085{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087ac_tool_warned=yes ;;
3088esac
3089    CC=$ac_ct_CC
3090  fi
3091fi
3092
3093fi
3094
3095
3096test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3099See \`config.log' for more details." >&5
3100$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3101See \`config.log' for more details." >&2;}
3102   { (exit 1); exit 1; }; }; }
3103
3104# Provide some information about the compiler.
3105$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3106set X $ac_compile
3107ac_compiler=$2
3108{ (ac_try="$ac_compiler --version >&5"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114$as_echo "$ac_try_echo") >&5
3115  (eval "$ac_compiler --version >&5") 2>&5
3116  ac_status=$?
3117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }
3119{ (ac_try="$ac_compiler -v >&5"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3125$as_echo "$ac_try_echo") >&5
3126  (eval "$ac_compiler -v >&5") 2>&5
3127  ac_status=$?
3128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }
3130{ (ac_try="$ac_compiler -V >&5"
3131case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136$as_echo "$ac_try_echo") >&5
3137  (eval "$ac_compiler -V >&5") 2>&5
3138  ac_status=$?
3139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }
3141
3142cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h.  */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h.  */
3148
3149int
3150main ()
3151{
3152
3153  ;
3154  return 0;
3155}
3156_ACEOF
3157ac_clean_files_save=$ac_clean_files
3158ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3159# Try to create an executable without -o first, disregard a.out.
3160# It will help us diagnose broken compilers, and finding out an intuition
3161# of exeext.
3162{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3163$as_echo_n "checking for C compiler default output file name... " >&6; }
3164ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3165
3166# The possible output files:
3167ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3168
3169ac_rmfiles=
3170for ac_file in $ac_files
3171do
3172  case $ac_file in
3173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3174    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3175  esac
3176done
3177rm -f $ac_rmfiles
3178
3179if { (ac_try="$ac_link_default"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3185$as_echo "$ac_try_echo") >&5
3186  (eval "$ac_link_default") 2>&5
3187  ac_status=$?
3188  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }; then
3190  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3191# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3192# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3193# so that the user can short-circuit this test for compilers unknown to
3194# Autoconf.
3195for ac_file in $ac_files ''
3196do
3197  test -f "$ac_file" || continue
3198  case $ac_file in
3199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3200	;;
3201    [ab].out )
3202	# We found the default executable, but exeext='' is most
3203	# certainly right.
3204	break;;
3205    *.* )
3206        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3207	then :; else
3208	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209	fi
3210	# We set ac_cv_exeext here because the later test for it is not
3211	# safe: cross compilers may not add the suffix if given an `-o'
3212	# argument, so we may need to know it at that point already.
3213	# Even if this section looks crufty: it has the advantage of
3214	# actually working.
3215	break;;
3216    * )
3217	break;;
3218  esac
3219done
3220test "$ac_cv_exeext" = no && ac_cv_exeext=
3221
3222else
3223  ac_file=''
3224fi
3225
3226{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3227$as_echo "$ac_file" >&6; }
3228if test -z "$ac_file"; then
3229  $as_echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3235See \`config.log' for more details." >&5
3236$as_echo "$as_me: error: C compiler cannot create executables
3237See \`config.log' for more details." >&2;}
3238   { (exit 77); exit 77; }; }; }
3239fi
3240
3241ac_exeext=$ac_cv_exeext
3242
3243# Check that the compiler produces executables we can run.  If not, either
3244# the compiler is broken, or we cross compile.
3245{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3246$as_echo_n "checking whether the C compiler works... " >&6; }
3247# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3248# If not cross compiling, check that we can run a simple program.
3249if test "$cross_compiling" != yes; then
3250  if { ac_try='./$ac_file'
3251  { (case "(($ac_try" in
3252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253  *) ac_try_echo=$ac_try;;
3254esac
3255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256$as_echo "$ac_try_echo") >&5
3257  (eval "$ac_try") 2>&5
3258  ac_status=$?
3259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }; }; then
3261    cross_compiling=no
3262  else
3263    if test "$cross_compiling" = maybe; then
3264	cross_compiling=yes
3265    else
3266	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3269If you meant to cross compile, use \`--host'.
3270See \`config.log' for more details." >&5
3271$as_echo "$as_me: error: cannot run C compiled programs.
3272If you meant to cross compile, use \`--host'.
3273See \`config.log' for more details." >&2;}
3274   { (exit 1); exit 1; }; }; }
3275    fi
3276  fi
3277fi
3278{ $as_echo "$as_me:$LINENO: result: yes" >&5
3279$as_echo "yes" >&6; }
3280
3281rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3282ac_clean_files=$ac_clean_files_save
3283# Check that the compiler produces executables we can run.  If not, either
3284# the compiler is broken, or we cross compile.
3285{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3286$as_echo_n "checking whether we are cross compiling... " >&6; }
3287{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3288$as_echo "$cross_compiling" >&6; }
3289
3290{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3291$as_echo_n "checking for suffix of executables... " >&6; }
3292if { (ac_try="$ac_link"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3298$as_echo "$ac_try_echo") >&5
3299  (eval "$ac_link") 2>&5
3300  ac_status=$?
3301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); }; then
3303  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3304# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3305# work properly (i.e., refer to `conftest.exe'), while it won't with
3306# `rm'.
3307for ac_file in conftest.exe conftest conftest.*; do
3308  test -f "$ac_file" || continue
3309  case $ac_file in
3310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312	  break;;
3313    * ) break;;
3314  esac
3315done
3316else
3317  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3320See \`config.log' for more details." >&5
3321$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details." >&2;}
3323   { (exit 1); exit 1; }; }; }
3324fi
3325
3326rm -f conftest$ac_cv_exeext
3327{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3328$as_echo "$ac_cv_exeext" >&6; }
3329
3330rm -f conftest.$ac_ext
3331EXEEXT=$ac_cv_exeext
3332ac_exeext=$EXEEXT
3333{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3334$as_echo_n "checking for suffix of object files... " >&6; }
3335if test "${ac_cv_objext+set}" = set; then
3336  $as_echo_n "(cached) " >&6
3337else
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.o conftest.obj
3354if { (ac_try="$ac_compile"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360$as_echo "$ac_try_echo") >&5
3361  (eval "$ac_compile") 2>&5
3362  ac_status=$?
3363  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); }; then
3365  for ac_file in conftest.o conftest.obj conftest.*; do
3366  test -f "$ac_file" || continue;
3367  case $ac_file in
3368    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3369    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3370       break;;
3371  esac
3372done
3373else
3374  $as_echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3380See \`config.log' for more details." >&5
3381$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3382See \`config.log' for more details." >&2;}
3383   { (exit 1); exit 1; }; }; }
3384fi
3385
3386rm -f conftest.$ac_cv_objext conftest.$ac_ext
3387fi
3388{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3389$as_echo "$ac_cv_objext" >&6; }
3390OBJEXT=$ac_cv_objext
3391ac_objext=$OBJEXT
3392{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3394if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395  $as_echo_n "(cached) " >&6
3396else
3397  cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407#ifndef __GNUC__
3408       choke me
3409#endif
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415rm -f conftest.$ac_objext
3416if { (ac_try="$ac_compile"
3417case "(($ac_try" in
3418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419  *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422$as_echo "$ac_try_echo") >&5
3423  (eval "$ac_compile") 2>conftest.er1
3424  ac_status=$?
3425  grep -v '^ *+' conftest.er1 >conftest.err
3426  rm -f conftest.er1
3427  cat conftest.err >&5
3428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); } && {
3430	 test -z "$ac_c_werror_flag" ||
3431	 test ! -s conftest.err
3432       } && test -s conftest.$ac_objext; then
3433  ac_compiler_gnu=yes
3434else
3435  $as_echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438	ac_compiler_gnu=no
3439fi
3440
3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
3444fi
3445{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3446$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3447if test $ac_compiler_gnu = yes; then
3448  GCC=yes
3449else
3450  GCC=
3451fi
3452ac_test_CFLAGS=${CFLAGS+set}
3453ac_save_CFLAGS=$CFLAGS
3454{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455$as_echo_n "checking whether $CC accepts -g... " >&6; }
3456if test "${ac_cv_prog_cc_g+set}" = set; then
3457  $as_echo_n "(cached) " >&6
3458else
3459  ac_save_c_werror_flag=$ac_c_werror_flag
3460   ac_c_werror_flag=yes
3461   ac_cv_prog_cc_g=no
3462   CFLAGS="-g"
3463   cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h.  */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext
3479if { (ac_try="$ac_compile"
3480case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485$as_echo "$ac_try_echo") >&5
3486  (eval "$ac_compile") 2>conftest.er1
3487  ac_status=$?
3488  grep -v '^ *+' conftest.er1 >conftest.err
3489  rm -f conftest.er1
3490  cat conftest.err >&5
3491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); } && {
3493	 test -z "$ac_c_werror_flag" ||
3494	 test ! -s conftest.err
3495       } && test -s conftest.$ac_objext; then
3496  ac_cv_prog_cc_g=yes
3497else
3498  $as_echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501	CFLAGS=""
3502      cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h.  */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h.  */
3508
3509int
3510main ()
3511{
3512
3513  ;
3514  return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext
3518if { (ac_try="$ac_compile"
3519case "(($ac_try" in
3520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521  *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524$as_echo "$ac_try_echo") >&5
3525  (eval "$ac_compile") 2>conftest.er1
3526  ac_status=$?
3527  grep -v '^ *+' conftest.er1 >conftest.err
3528  rm -f conftest.er1
3529  cat conftest.err >&5
3530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); } && {
3532	 test -z "$ac_c_werror_flag" ||
3533	 test ! -s conftest.err
3534       } && test -s conftest.$ac_objext; then
3535  :
3536else
3537  $as_echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3540	ac_c_werror_flag=$ac_save_c_werror_flag
3541	 CFLAGS="-g"
3542	 cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h.  */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h.  */
3548
3549int
3550main ()
3551{
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (ac_try="$ac_compile"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3564$as_echo "$ac_try_echo") >&5
3565  (eval "$ac_compile") 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } && {
3572	 test -z "$ac_c_werror_flag" ||
3573	 test ! -s conftest.err
3574       } && test -s conftest.$ac_objext; then
3575  ac_cv_prog_cc_g=yes
3576else
3577  $as_echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580
3581fi
3582
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584fi
3585
3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587fi
3588
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590   ac_c_werror_flag=$ac_save_c_werror_flag
3591fi
3592{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3593$as_echo "$ac_cv_prog_cc_g" >&6; }
3594if test "$ac_test_CFLAGS" = set; then
3595  CFLAGS=$ac_save_CFLAGS
3596elif test $ac_cv_prog_cc_g = yes; then
3597  if test "$GCC" = yes; then
3598    CFLAGS="-g -O2"
3599  else
3600    CFLAGS="-g"
3601  fi
3602else
3603  if test "$GCC" = yes; then
3604    CFLAGS="-O2"
3605  else
3606    CFLAGS=
3607  fi
3608fi
3609{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3610$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3611if test "${ac_cv_prog_cc_c89+set}" = set; then
3612  $as_echo_n "(cached) " >&6
3613else
3614  ac_cv_prog_cc_c89=no
3615ac_save_CC=$CC
3616cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h.  */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h.  */
3622#include <stdarg.h>
3623#include <stdio.h>
3624#include <sys/types.h>
3625#include <sys/stat.h>
3626/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3627struct buf { int x; };
3628FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629static char *e (p, i)
3630     char **p;
3631     int i;
3632{
3633  return p[i];
3634}
3635static char *f (char * (*g) (char **, int), char **p, ...)
3636{
3637  char *s;
3638  va_list v;
3639  va_start (v,p);
3640  s = g (p, va_arg (v,int));
3641  va_end (v);
3642  return s;
3643}
3644
3645/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3646   function prototypes and stuff, but not '\xHH' hex character constants.
3647   These don't provoke an error unfortunately, instead are silently treated
3648   as 'x'.  The following induces an error, until -std is added to get
3649   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3650   array size at least.  It's necessary to write '\x00'==0 to get something
3651   that's true only with -std.  */
3652int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655   inside strings and character constants.  */
3656#define FOO(x) 'x'
3657int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659int test (int i, double x);
3660struct s1 {int (*f) (int a);};
3661struct s2 {int (*f) (double a);};
3662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663int argc;
3664char **argv;
3665int
3666main ()
3667{
3668return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675do
3676  CC="$ac_save_CC $ac_arg"
3677  rm -f conftest.$ac_objext
3678if { (ac_try="$ac_compile"
3679case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682esac
3683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684$as_echo "$ac_try_echo") >&5
3685  (eval "$ac_compile") 2>conftest.er1
3686  ac_status=$?
3687  grep -v '^ *+' conftest.er1 >conftest.err
3688  rm -f conftest.er1
3689  cat conftest.err >&5
3690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); } && {
3692	 test -z "$ac_c_werror_flag" ||
3693	 test ! -s conftest.err
3694       } && test -s conftest.$ac_objext; then
3695  ac_cv_prog_cc_c89=$ac_arg
3696else
3697  $as_echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700
3701fi
3702
3703rm -f core conftest.err conftest.$ac_objext
3704  test "x$ac_cv_prog_cc_c89" != "xno" && break
3705done
3706rm -f conftest.$ac_ext
3707CC=$ac_save_CC
3708
3709fi
3710# AC_CACHE_VAL
3711case "x$ac_cv_prog_cc_c89" in
3712  x)
3713    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3714$as_echo "none needed" >&6; } ;;
3715  xno)
3716    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3717$as_echo "unsupported" >&6; } ;;
3718  *)
3719    CC="$CC $ac_cv_prog_cc_c89"
3720    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3721$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3722esac
3723
3724
3725ac_ext=c
3726ac_cpp='$CPP $CPPFLAGS'
3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730
3731depcc="$CC"   am_compiler_list=
3732
3733{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3734$as_echo_n "checking dependency style of $depcc... " >&6; }
3735if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3736  $as_echo_n "(cached) " >&6
3737else
3738  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3739  # We make a subdir and do the tests there.  Otherwise we can end up
3740  # making bogus files that we don't know about and never remove.  For
3741  # instance it was reported that on HP-UX the gcc test will end up
3742  # making a dummy file named `D' -- because `-MD' means `put the output
3743  # in D'.
3744  mkdir conftest.dir
3745  # Copy depcomp to subdir because otherwise we won't find it if we're
3746  # using a relative directory.
3747  cp "$am_depcomp" conftest.dir
3748  cd conftest.dir
3749  # We will build objects and dependencies in a subdirectory because
3750  # it helps to detect inapplicable dependency modes.  For instance
3751  # both Tru64's cc and ICC support -MD to output dependencies as a
3752  # side effect of compilation, but ICC will put the dependencies in
3753  # the current directory while Tru64 will put them in the object
3754  # directory.
3755  mkdir sub
3756
3757  am_cv_CC_dependencies_compiler_type=none
3758  if test "$am_compiler_list" = ""; then
3759     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3760  fi
3761  for depmode in $am_compiler_list; do
3762    # Setup a source with many dependencies, because some compilers
3763    # like to wrap large dependency lists on column 80 (with \), and
3764    # we should not choose a depcomp mode which is confused by this.
3765    #
3766    # We need to recreate these files for each test, as the compiler may
3767    # overwrite some of them when testing with obscure command lines.
3768    # This happens at least with the AIX C compiler.
3769    : > sub/conftest.c
3770    for i in 1 2 3 4 5 6; do
3771      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3772      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3773      # Solaris 8's {/usr,}/bin/sh.
3774      touch sub/conftst$i.h
3775    done
3776    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3777
3778    case $depmode in
3779    nosideeffect)
3780      # after this tag, mechanisms are not by side-effect, so they'll
3781      # only be used when explicitly requested
3782      if test "x$enable_dependency_tracking" = xyes; then
3783	continue
3784      else
3785	break
3786      fi
3787      ;;
3788    none) break ;;
3789    esac
3790    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3791    # mode.  It turns out that the SunPro C++ compiler does not properly
3792    # handle `-M -o', and we need to detect this.
3793    if depmode=$depmode \
3794       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3795       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3796       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3797         >/dev/null 2>conftest.err &&
3798       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3799       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3800       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3801       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3802      # icc doesn't choke on unknown options, it will just issue warnings
3803      # or remarks (even with -Werror).  So we grep stderr for any message
3804      # that says an option was ignored or not supported.
3805      # When given -MP, icc 7.0 and 7.1 complain thusly:
3806      #   icc: Command line warning: ignoring option '-M'; no argument required
3807      # The diagnosis changed in icc 8.0:
3808      #   icc: Command line remark: option '-MP' not supported
3809      if (grep 'ignoring option' conftest.err ||
3810          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3811        am_cv_CC_dependencies_compiler_type=$depmode
3812        break
3813      fi
3814    fi
3815  done
3816
3817  cd ..
3818  rm -rf conftest.dir
3819else
3820  am_cv_CC_dependencies_compiler_type=none
3821fi
3822
3823fi
3824{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3825$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3826CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3827
3828 if
3829  test "x$enable_dependency_tracking" != xno \
3830  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3831  am__fastdepCC_TRUE=
3832  am__fastdepCC_FALSE='#'
3833else
3834  am__fastdepCC_TRUE='#'
3835  am__fastdepCC_FALSE=
3836fi
3837
3838
3839{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3840$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3841if test "${ac_cv_path_SED+set}" = set; then
3842  $as_echo_n "(cached) " >&6
3843else
3844            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3845     for ac_i in 1 2 3 4 5 6 7; do
3846       ac_script="$ac_script$as_nl$ac_script"
3847     done
3848     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3849     $as_unset ac_script || ac_script=
3850     if test -z "$SED"; then
3851  ac_path_SED_found=false
3852  # Loop through the user's path and test for each of PROGNAME-LIST
3853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856  IFS=$as_save_IFS
3857  test -z "$as_dir" && as_dir=.
3858  for ac_prog in sed gsed; do
3859    for ac_exec_ext in '' $ac_executable_extensions; do
3860      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3861      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3862# Check for GNU ac_path_SED and select it if it is found.
3863  # Check for GNU $ac_path_SED
3864case `"$ac_path_SED" --version 2>&1` in
3865*GNU*)
3866  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3867*)
3868  ac_count=0
3869  $as_echo_n 0123456789 >"conftest.in"
3870  while :
3871  do
3872    cat "conftest.in" "conftest.in" >"conftest.tmp"
3873    mv "conftest.tmp" "conftest.in"
3874    cp "conftest.in" "conftest.nl"
3875    $as_echo '' >> "conftest.nl"
3876    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3877    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3878    ac_count=`expr $ac_count + 1`
3879    if test $ac_count -gt ${ac_path_SED_max-0}; then
3880      # Best one so far, save it but keep looking for a better one
3881      ac_cv_path_SED="$ac_path_SED"
3882      ac_path_SED_max=$ac_count
3883    fi
3884    # 10*(2^10) chars as input seems more than enough
3885    test $ac_count -gt 10 && break
3886  done
3887  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3888esac
3889
3890      $ac_path_SED_found && break 3
3891    done
3892  done
3893done
3894IFS=$as_save_IFS
3895  if test -z "$ac_cv_path_SED"; then
3896    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3897$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3898   { (exit 1); exit 1; }; }
3899  fi
3900else
3901  ac_cv_path_SED=$SED
3902fi
3903
3904fi
3905{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3906$as_echo "$ac_cv_path_SED" >&6; }
3907 SED="$ac_cv_path_SED"
3908  rm -f conftest.sed
3909
3910test -z "$SED" && SED=sed
3911Xsed="$SED -e 1s/^X//"
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3925if test "${ac_cv_path_GREP+set}" = set; then
3926  $as_echo_n "(cached) " >&6
3927else
3928  if test -z "$GREP"; then
3929  ac_path_GREP_found=false
3930  # Loop through the user's path and test for each of PROGNAME-LIST
3931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933do
3934  IFS=$as_save_IFS
3935  test -z "$as_dir" && as_dir=.
3936  for ac_prog in grep ggrep; do
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3940# Check for GNU ac_path_GREP and select it if it is found.
3941  # Check for GNU $ac_path_GREP
3942case `"$ac_path_GREP" --version 2>&1` in
3943*GNU*)
3944  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945*)
3946  ac_count=0
3947  $as_echo_n 0123456789 >"conftest.in"
3948  while :
3949  do
3950    cat "conftest.in" "conftest.in" >"conftest.tmp"
3951    mv "conftest.tmp" "conftest.in"
3952    cp "conftest.in" "conftest.nl"
3953    $as_echo 'GREP' >> "conftest.nl"
3954    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956    ac_count=`expr $ac_count + 1`
3957    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958      # Best one so far, save it but keep looking for a better one
3959      ac_cv_path_GREP="$ac_path_GREP"
3960      ac_path_GREP_max=$ac_count
3961    fi
3962    # 10*(2^10) chars as input seems more than enough
3963    test $ac_count -gt 10 && break
3964  done
3965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966esac
3967
3968      $ac_path_GREP_found && break 3
3969    done
3970  done
3971done
3972IFS=$as_save_IFS
3973  if test -z "$ac_cv_path_GREP"; then
3974    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976   { (exit 1); exit 1; }; }
3977  fi
3978else
3979  ac_cv_path_GREP=$GREP
3980fi
3981
3982fi
3983{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3984$as_echo "$ac_cv_path_GREP" >&6; }
3985 GREP="$ac_cv_path_GREP"
3986
3987
3988{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3989$as_echo_n "checking for egrep... " >&6; }
3990if test "${ac_cv_path_EGREP+set}" = set; then
3991  $as_echo_n "(cached) " >&6
3992else
3993  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994   then ac_cv_path_EGREP="$GREP -E"
3995   else
3996     if test -z "$EGREP"; then
3997  ac_path_EGREP_found=false
3998  # Loop through the user's path and test for each of PROGNAME-LIST
3999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001do
4002  IFS=$as_save_IFS
4003  test -z "$as_dir" && as_dir=.
4004  for ac_prog in egrep; do
4005    for ac_exec_ext in '' $ac_executable_extensions; do
4006      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4007      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4008# Check for GNU ac_path_EGREP and select it if it is found.
4009  # Check for GNU $ac_path_EGREP
4010case `"$ac_path_EGREP" --version 2>&1` in
4011*GNU*)
4012  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4013*)
4014  ac_count=0
4015  $as_echo_n 0123456789 >"conftest.in"
4016  while :
4017  do
4018    cat "conftest.in" "conftest.in" >"conftest.tmp"
4019    mv "conftest.tmp" "conftest.in"
4020    cp "conftest.in" "conftest.nl"
4021    $as_echo 'EGREP' >> "conftest.nl"
4022    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024    ac_count=`expr $ac_count + 1`
4025    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4026      # Best one so far, save it but keep looking for a better one
4027      ac_cv_path_EGREP="$ac_path_EGREP"
4028      ac_path_EGREP_max=$ac_count
4029    fi
4030    # 10*(2^10) chars as input seems more than enough
4031    test $ac_count -gt 10 && break
4032  done
4033  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034esac
4035
4036      $ac_path_EGREP_found && break 3
4037    done
4038  done
4039done
4040IFS=$as_save_IFS
4041  if test -z "$ac_cv_path_EGREP"; then
4042    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044   { (exit 1); exit 1; }; }
4045  fi
4046else
4047  ac_cv_path_EGREP=$EGREP
4048fi
4049
4050   fi
4051fi
4052{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4053$as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP="$ac_cv_path_EGREP"
4055
4056
4057{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4058$as_echo_n "checking for fgrep... " >&6; }
4059if test "${ac_cv_path_FGREP+set}" = set; then
4060  $as_echo_n "(cached) " >&6
4061else
4062  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4063   then ac_cv_path_FGREP="$GREP -F"
4064   else
4065     if test -z "$FGREP"; then
4066  ac_path_FGREP_found=false
4067  # Loop through the user's path and test for each of PROGNAME-LIST
4068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073  for ac_prog in fgrep; do
4074    for ac_exec_ext in '' $ac_executable_extensions; do
4075      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4076      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4077# Check for GNU ac_path_FGREP and select it if it is found.
4078  # Check for GNU $ac_path_FGREP
4079case `"$ac_path_FGREP" --version 2>&1` in
4080*GNU*)
4081  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4082*)
4083  ac_count=0
4084  $as_echo_n 0123456789 >"conftest.in"
4085  while :
4086  do
4087    cat "conftest.in" "conftest.in" >"conftest.tmp"
4088    mv "conftest.tmp" "conftest.in"
4089    cp "conftest.in" "conftest.nl"
4090    $as_echo 'FGREP' >> "conftest.nl"
4091    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093    ac_count=`expr $ac_count + 1`
4094    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4095      # Best one so far, save it but keep looking for a better one
4096      ac_cv_path_FGREP="$ac_path_FGREP"
4097      ac_path_FGREP_max=$ac_count
4098    fi
4099    # 10*(2^10) chars as input seems more than enough
4100    test $ac_count -gt 10 && break
4101  done
4102  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103esac
4104
4105      $ac_path_FGREP_found && break 3
4106    done
4107  done
4108done
4109IFS=$as_save_IFS
4110  if test -z "$ac_cv_path_FGREP"; then
4111    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4112$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4113   { (exit 1); exit 1; }; }
4114  fi
4115else
4116  ac_cv_path_FGREP=$FGREP
4117fi
4118
4119   fi
4120fi
4121{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4122$as_echo "$ac_cv_path_FGREP" >&6; }
4123 FGREP="$ac_cv_path_FGREP"
4124
4125
4126test -z "$GREP" && GREP=grep
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146# Check whether --with-gnu-ld was given.
4147if test "${with_gnu_ld+set}" = set; then
4148  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4149else
4150  with_gnu_ld=no
4151fi
4152
4153ac_prog=ld
4154if test "$GCC" = yes; then
4155  # Check if gcc -print-prog-name=ld gives a path.
4156  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4157$as_echo_n "checking for ld used by $CC... " >&6; }
4158  case $host in
4159  *-*-mingw*)
4160    # gcc leaves a trailing carriage return which upsets mingw
4161    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4162  *)
4163    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4164  esac
4165  case $ac_prog in
4166    # Accept absolute paths.
4167    [\\/]* | ?:[\\/]*)
4168      re_direlt='/[^/][^/]*/\.\./'
4169      # Canonicalize the pathname of ld
4170      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4171      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4172	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4173      done
4174      test -z "$LD" && LD="$ac_prog"
4175      ;;
4176  "")
4177    # If it fails, then pretend we aren't using GCC.
4178    ac_prog=ld
4179    ;;
4180  *)
4181    # If it is relative, then search for the first ld in PATH.
4182    with_gnu_ld=unknown
4183    ;;
4184  esac
4185elif test "$with_gnu_ld" = yes; then
4186  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4187$as_echo_n "checking for GNU ld... " >&6; }
4188else
4189  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4190$as_echo_n "checking for non-GNU ld... " >&6; }
4191fi
4192if test "${lt_cv_path_LD+set}" = set; then
4193  $as_echo_n "(cached) " >&6
4194else
4195  if test -z "$LD"; then
4196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4197  for ac_dir in $PATH; do
4198    IFS="$lt_save_ifs"
4199    test -z "$ac_dir" && ac_dir=.
4200    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4201      lt_cv_path_LD="$ac_dir/$ac_prog"
4202      # Check to see if the program is GNU ld.  I'd rather use --version,
4203      # but apparently some variants of GNU ld only accept -v.
4204      # Break only if it was the GNU/non-GNU ld that we prefer.
4205      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4206      *GNU* | *'with BFD'*)
4207	test "$with_gnu_ld" != no && break
4208	;;
4209      *)
4210	test "$with_gnu_ld" != yes && break
4211	;;
4212      esac
4213    fi
4214  done
4215  IFS="$lt_save_ifs"
4216else
4217  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4218fi
4219fi
4220
4221LD="$lt_cv_path_LD"
4222if test -n "$LD"; then
4223  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4224$as_echo "$LD" >&6; }
4225else
4226  { $as_echo "$as_me:$LINENO: result: no" >&5
4227$as_echo "no" >&6; }
4228fi
4229test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4230$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4231   { (exit 1); exit 1; }; }
4232{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4233$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4234if test "${lt_cv_prog_gnu_ld+set}" = set; then
4235  $as_echo_n "(cached) " >&6
4236else
4237  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4238case `$LD -v 2>&1 </dev/null` in
4239*GNU* | *'with BFD'*)
4240  lt_cv_prog_gnu_ld=yes
4241  ;;
4242*)
4243  lt_cv_prog_gnu_ld=no
4244  ;;
4245esac
4246fi
4247{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4248$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4249with_gnu_ld=$lt_cv_prog_gnu_ld
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4260$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4261if test "${lt_cv_path_NM+set}" = set; then
4262  $as_echo_n "(cached) " >&6
4263else
4264  if test -n "$NM"; then
4265  # Let the user override the test.
4266  lt_cv_path_NM="$NM"
4267else
4268  lt_nm_to_check="${ac_tool_prefix}nm"
4269  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4270    lt_nm_to_check="$lt_nm_to_check nm"
4271  fi
4272  for lt_tmp_nm in $lt_nm_to_check; do
4273    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4274    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4275      IFS="$lt_save_ifs"
4276      test -z "$ac_dir" && ac_dir=.
4277      tmp_nm="$ac_dir/$lt_tmp_nm"
4278      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4279	# Check to see if the nm accepts a BSD-compat flag.
4280	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4281	#   nm: unknown option "B" ignored
4282	# Tru64's nm complains that /dev/null is an invalid object file
4283	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4284	*/dev/null* | *'Invalid file or object type'*)
4285	  lt_cv_path_NM="$tmp_nm -B"
4286	  break
4287	  ;;
4288	*)
4289	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4290	  */dev/null*)
4291	    lt_cv_path_NM="$tmp_nm -p"
4292	    break
4293	    ;;
4294	  *)
4295	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4296	    continue # so that we can try to find one that supports BSD flags
4297	    ;;
4298	  esac
4299	  ;;
4300	esac
4301      fi
4302    done
4303    IFS="$lt_save_ifs"
4304  done
4305  : ${lt_cv_path_NM=no}
4306fi
4307fi
4308{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4309$as_echo "$lt_cv_path_NM" >&6; }
4310if test "$lt_cv_path_NM" != "no"; then
4311  NM="$lt_cv_path_NM"
4312else
4313  # Didn't find any BSD compatible name lister, look for dumpbin.
4314  if test -n "$ac_tool_prefix"; then
4315  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4316  do
4317    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4320$as_echo_n "checking for $ac_word... " >&6; }
4321if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4322  $as_echo_n "(cached) " >&6
4323else
4324  if test -n "$DUMPBIN"; then
4325  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330  IFS=$as_save_IFS
4331  test -z "$as_dir" && as_dir=.
4332  for ac_exec_ext in '' $ac_executable_extensions; do
4333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4335    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336    break 2
4337  fi
4338done
4339done
4340IFS=$as_save_IFS
4341
4342fi
4343fi
4344DUMPBIN=$ac_cv_prog_DUMPBIN
4345if test -n "$DUMPBIN"; then
4346  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4347$as_echo "$DUMPBIN" >&6; }
4348else
4349  { $as_echo "$as_me:$LINENO: result: no" >&5
4350$as_echo "no" >&6; }
4351fi
4352
4353
4354    test -n "$DUMPBIN" && break
4355  done
4356fi
4357if test -z "$DUMPBIN"; then
4358  ac_ct_DUMPBIN=$DUMPBIN
4359  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4360do
4361  # Extract the first word of "$ac_prog", so it can be a program name with args.
4362set dummy $ac_prog; ac_word=$2
4363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4366  $as_echo_n "(cached) " >&6
4367else
4368  if test -n "$ac_ct_DUMPBIN"; then
4369  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374  IFS=$as_save_IFS
4375  test -z "$as_dir" && as_dir=.
4376  for ac_exec_ext in '' $ac_executable_extensions; do
4377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4379    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380    break 2
4381  fi
4382done
4383done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
4388ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4389if test -n "$ac_ct_DUMPBIN"; then
4390  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4391$as_echo "$ac_ct_DUMPBIN" >&6; }
4392else
4393  { $as_echo "$as_me:$LINENO: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397
4398  test -n "$ac_ct_DUMPBIN" && break
4399done
4400
4401  if test "x$ac_ct_DUMPBIN" = x; then
4402    DUMPBIN=":"
4403  else
4404    case $cross_compiling:$ac_tool_warned in
4405yes:)
4406{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4408ac_tool_warned=yes ;;
4409esac
4410    DUMPBIN=$ac_ct_DUMPBIN
4411  fi
4412fi
4413
4414
4415  if test "$DUMPBIN" != ":"; then
4416    NM="$DUMPBIN"
4417  fi
4418fi
4419test -z "$NM" && NM=nm
4420
4421
4422
4423
4424
4425
4426{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4427$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4428if test "${lt_cv_nm_interface+set}" = set; then
4429  $as_echo_n "(cached) " >&6
4430else
4431  lt_cv_nm_interface="BSD nm"
4432  echo "int some_variable = 0;" > conftest.$ac_ext
4433  (eval echo "\"\$as_me:4433: $ac_compile\"" >&5)
4434  (eval "$ac_compile" 2>conftest.err)
4435  cat conftest.err >&5
4436  (eval echo "\"\$as_me:4436: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4437  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4438  cat conftest.err >&5
4439  (eval echo "\"\$as_me:4439: output\"" >&5)
4440  cat conftest.out >&5
4441  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4442    lt_cv_nm_interface="MS dumpbin"
4443  fi
4444  rm -f conftest*
4445fi
4446{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4447$as_echo "$lt_cv_nm_interface" >&6; }
4448
4449{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4450$as_echo_n "checking whether ln -s works... " >&6; }
4451LN_S=$as_ln_s
4452if test "$LN_S" = "ln -s"; then
4453  { $as_echo "$as_me:$LINENO: result: yes" >&5
4454$as_echo "yes" >&6; }
4455else
4456  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4457$as_echo "no, using $LN_S" >&6; }
4458fi
4459
4460# find the maximum length of command line arguments
4461{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4462$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4463if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4464  $as_echo_n "(cached) " >&6
4465else
4466    i=0
4467  teststring="ABCD"
4468
4469  case $build_os in
4470  msdosdjgpp*)
4471    # On DJGPP, this test can blow up pretty badly due to problems in libc
4472    # (any single argument exceeding 2000 bytes causes a buffer overrun
4473    # during glob expansion).  Even if it were fixed, the result of this
4474    # check would be larger than it should be.
4475    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4476    ;;
4477
4478  gnu*)
4479    # Under GNU Hurd, this test is not required because there is
4480    # no limit to the length of command line arguments.
4481    # Libtool will interpret -1 as no limit whatsoever
4482    lt_cv_sys_max_cmd_len=-1;
4483    ;;
4484
4485  cygwin* | mingw* | cegcc*)
4486    # On Win9x/ME, this test blows up -- it succeeds, but takes
4487    # about 5 minutes as the teststring grows exponentially.
4488    # Worse, since 9x/ME are not pre-emptively multitasking,
4489    # you end up with a "frozen" computer, even though with patience
4490    # the test eventually succeeds (with a max line length of 256k).
4491    # Instead, let's just punt: use the minimum linelength reported by
4492    # all of the supported platforms: 8192 (on NT/2K/XP).
4493    lt_cv_sys_max_cmd_len=8192;
4494    ;;
4495
4496  amigaos*)
4497    # On AmigaOS with pdksh, this test takes hours, literally.
4498    # So we just punt and use a minimum line length of 8192.
4499    lt_cv_sys_max_cmd_len=8192;
4500    ;;
4501
4502  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4503    # This has been around since 386BSD, at least.  Likely further.
4504    if test -x /sbin/sysctl; then
4505      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4506    elif test -x /usr/sbin/sysctl; then
4507      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4508    else
4509      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4510    fi
4511    # And add a safety zone
4512    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4513    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4514    ;;
4515
4516  interix*)
4517    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4518    lt_cv_sys_max_cmd_len=196608
4519    ;;
4520
4521  osf*)
4522    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4523    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4524    # nice to cause kernel panics so lets avoid the loop below.
4525    # First set a reasonable default.
4526    lt_cv_sys_max_cmd_len=16384
4527    #
4528    if test -x /sbin/sysconfig; then
4529      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4530        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4531      esac
4532    fi
4533    ;;
4534  sco3.2v5*)
4535    lt_cv_sys_max_cmd_len=102400
4536    ;;
4537  sysv5* | sco5v6* | sysv4.2uw2*)
4538    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4539    if test -n "$kargmax"; then
4540      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4541    else
4542      lt_cv_sys_max_cmd_len=32768
4543    fi
4544    ;;
4545  *)
4546    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4547    if test -n "$lt_cv_sys_max_cmd_len"; then
4548      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4549      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4550    else
4551      # Make teststring a little bigger before we do anything with it.
4552      # a 1K string should be a reasonable start.
4553      for i in 1 2 3 4 5 6 7 8 ; do
4554        teststring=$teststring$teststring
4555      done
4556      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4557      # If test is not a shell built-in, we'll probably end up computing a
4558      # maximum length that is only half of the actual maximum length, but
4559      # we can't tell.
4560      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4561	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4562	      test $i != 17 # 1/2 MB should be enough
4563      do
4564        i=`expr $i + 1`
4565        teststring=$teststring$teststring
4566      done
4567      # Only check the string length outside the loop.
4568      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4569      teststring=
4570      # Add a significant safety factor because C++ compilers can tack on
4571      # massive amounts of additional arguments before passing them to the
4572      # linker.  It appears as though 1/2 is a usable value.
4573      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4574    fi
4575    ;;
4576  esac
4577
4578fi
4579
4580if test -n $lt_cv_sys_max_cmd_len ; then
4581  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4582$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4583else
4584  { $as_echo "$as_me:$LINENO: result: none" >&5
4585$as_echo "none" >&6; }
4586fi
4587max_cmd_len=$lt_cv_sys_max_cmd_len
4588
4589
4590
4591
4592
4593
4594: ${CP="cp -f"}
4595: ${MV="mv -f"}
4596: ${RM="rm -f"}
4597
4598{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4599$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4600# Try some XSI features
4601xsi_shell=no
4602( _lt_dummy="a/b/c"
4603  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4604      = c,a/b,, \
4605    && eval 'test $(( 1 + 1 )) -eq 2 \
4606    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4607  && xsi_shell=yes
4608{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4609$as_echo "$xsi_shell" >&6; }
4610
4611
4612{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4613$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4614lt_shell_append=no
4615( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4616    >/dev/null 2>&1 \
4617  && lt_shell_append=yes
4618{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4619$as_echo "$lt_shell_append" >&6; }
4620
4621
4622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4623  lt_unset=unset
4624else
4625  lt_unset=false
4626fi
4627
4628
4629
4630
4631
4632# test EBCDIC or ASCII
4633case `echo X|tr X '\101'` in
4634 A) # ASCII based system
4635    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4636  lt_SP2NL='tr \040 \012'
4637  lt_NL2SP='tr \015\012 \040\040'
4638  ;;
4639 *) # EBCDIC based system
4640  lt_SP2NL='tr \100 \n'
4641  lt_NL2SP='tr \r\n \100\100'
4642  ;;
4643esac
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4654$as_echo_n "checking for $LD option to reload object files... " >&6; }
4655if test "${lt_cv_ld_reload_flag+set}" = set; then
4656  $as_echo_n "(cached) " >&6
4657else
4658  lt_cv_ld_reload_flag='-r'
4659fi
4660{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4661$as_echo "$lt_cv_ld_reload_flag" >&6; }
4662reload_flag=$lt_cv_ld_reload_flag
4663case $reload_flag in
4664"" | " "*) ;;
4665*) reload_flag=" $reload_flag" ;;
4666esac
4667reload_cmds='$LD$reload_flag -o $output$reload_objs'
4668case $host_os in
4669  darwin*)
4670    if test "$GCC" = yes; then
4671      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4672    else
4673      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4674    fi
4675    ;;
4676esac
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686if test -n "$ac_tool_prefix"; then
4687  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4688set dummy ${ac_tool_prefix}objdump; ac_word=$2
4689{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test -n "$OBJDUMP"; then
4695  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  test -z "$as_dir" && as_dir=.
4702  for ac_exec_ext in '' $ac_executable_extensions; do
4703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4705    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714OBJDUMP=$ac_cv_prog_OBJDUMP
4715if test -n "$OBJDUMP"; then
4716  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4717$as_echo "$OBJDUMP" >&6; }
4718else
4719  { $as_echo "$as_me:$LINENO: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724fi
4725if test -z "$ac_cv_prog_OBJDUMP"; then
4726  ac_ct_OBJDUMP=$OBJDUMP
4727  # Extract the first word of "objdump", so it can be a program name with args.
4728set dummy objdump; ac_word=$2
4729{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4732  $as_echo_n "(cached) " >&6
4733else
4734  if test -n "$ac_ct_OBJDUMP"; then
4735  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742  for ac_exec_ext in '' $ac_executable_extensions; do
4743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4745    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4755if test -n "$ac_ct_OBJDUMP"; then
4756  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4757$as_echo "$ac_ct_OBJDUMP" >&6; }
4758else
4759  { $as_echo "$as_me:$LINENO: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763  if test "x$ac_ct_OBJDUMP" = x; then
4764    OBJDUMP="false"
4765  else
4766    case $cross_compiling:$ac_tool_warned in
4767yes:)
4768{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770ac_tool_warned=yes ;;
4771esac
4772    OBJDUMP=$ac_ct_OBJDUMP
4773  fi
4774else
4775  OBJDUMP="$ac_cv_prog_OBJDUMP"
4776fi
4777
4778test -z "$OBJDUMP" && OBJDUMP=objdump
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4789$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4790if test "${lt_cv_deplibs_check_method+set}" = set; then
4791  $as_echo_n "(cached) " >&6
4792else
4793  lt_cv_file_magic_cmd='$MAGIC_CMD'
4794lt_cv_file_magic_test_file=
4795lt_cv_deplibs_check_method='unknown'
4796# Need to set the preceding variable on all platforms that support
4797# interlibrary dependencies.
4798# 'none' -- dependencies not supported.
4799# `unknown' -- same as none, but documents that we really don't know.
4800# 'pass_all' -- all dependencies passed with no checks.
4801# 'test_compile' -- check by making test program.
4802# 'file_magic [[regex]]' -- check by looking for files in library path
4803# which responds to the $file_magic_cmd with a given extended regex.
4804# If you have `file' or equivalent on your system and you're not sure
4805# whether `pass_all' will *always* work, you probably want this one.
4806
4807case $host_os in
4808aix[4-9]*)
4809  lt_cv_deplibs_check_method=pass_all
4810  ;;
4811
4812beos*)
4813  lt_cv_deplibs_check_method=pass_all
4814  ;;
4815
4816bsdi[45]*)
4817  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4818  lt_cv_file_magic_cmd='/usr/bin/file -L'
4819  lt_cv_file_magic_test_file=/shlib/libc.so
4820  ;;
4821
4822cygwin*)
4823  # func_win32_libid is a shell function defined in ltmain.sh
4824  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4825  lt_cv_file_magic_cmd='func_win32_libid'
4826  ;;
4827
4828mingw* | pw32*)
4829  # Base MSYS/MinGW do not provide the 'file' command needed by
4830  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4831  # unless we find 'file', for example because we are cross-compiling.
4832  if ( file / ) >/dev/null 2>&1; then
4833    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4834    lt_cv_file_magic_cmd='func_win32_libid'
4835  else
4836    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4837    lt_cv_file_magic_cmd='$OBJDUMP -f'
4838  fi
4839  ;;
4840
4841cegcc)
4842  # use the weaker test based on 'objdump'. See mingw*.
4843  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4844  lt_cv_file_magic_cmd='$OBJDUMP -f'
4845  ;;
4846
4847darwin* | rhapsody*)
4848  lt_cv_deplibs_check_method=pass_all
4849  ;;
4850
4851freebsd* | dragonfly*)
4852  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4853    case $host_cpu in
4854    i*86 )
4855      # Not sure whether the presence of OpenBSD here was a mistake.
4856      # Let's accept both of them until this is cleared up.
4857      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4858      lt_cv_file_magic_cmd=/usr/bin/file
4859      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4860      ;;
4861    esac
4862  else
4863    lt_cv_deplibs_check_method=pass_all
4864  fi
4865  ;;
4866
4867gnu*)
4868  lt_cv_deplibs_check_method=pass_all
4869  ;;
4870
4871hpux10.20* | hpux11*)
4872  lt_cv_file_magic_cmd=/usr/bin/file
4873  case $host_cpu in
4874  ia64*)
4875    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4876    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4877    ;;
4878  hppa*64*)
4879    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]'
4880    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4881    ;;
4882  *)
4883    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4884    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4885    ;;
4886  esac
4887  ;;
4888
4889interix[3-9]*)
4890  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4891  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4892  ;;
4893
4894irix5* | irix6* | nonstopux*)
4895  case $LD in
4896  *-32|*"-32 ") libmagic=32-bit;;
4897  *-n32|*"-n32 ") libmagic=N32;;
4898  *-64|*"-64 ") libmagic=64-bit;;
4899  *) libmagic=never-match;;
4900  esac
4901  lt_cv_deplibs_check_method=pass_all
4902  ;;
4903
4904# This must be Linux ELF.
4905linux* | k*bsd*-gnu)
4906  lt_cv_deplibs_check_method=pass_all
4907  ;;
4908
4909netbsd*)
4910  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4911    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4912  else
4913    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4914  fi
4915  ;;
4916
4917newos6*)
4918  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4919  lt_cv_file_magic_cmd=/usr/bin/file
4920  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4921  ;;
4922
4923*nto* | *qnx*)
4924  lt_cv_deplibs_check_method=pass_all
4925  ;;
4926
4927openbsd*)
4928  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4929    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4930  else
4931    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4932  fi
4933  ;;
4934
4935osf3* | osf4* | osf5*)
4936  lt_cv_deplibs_check_method=pass_all
4937  ;;
4938
4939rdos*)
4940  lt_cv_deplibs_check_method=pass_all
4941  ;;
4942
4943solaris*)
4944  lt_cv_deplibs_check_method=pass_all
4945  ;;
4946
4947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4948  lt_cv_deplibs_check_method=pass_all
4949  ;;
4950
4951sysv4 | sysv4.3*)
4952  case $host_vendor in
4953  motorola)
4954    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]'
4955    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4956    ;;
4957  ncr)
4958    lt_cv_deplibs_check_method=pass_all
4959    ;;
4960  sequent)
4961    lt_cv_file_magic_cmd='/bin/file'
4962    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4963    ;;
4964  sni)
4965    lt_cv_file_magic_cmd='/bin/file'
4966    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4967    lt_cv_file_magic_test_file=/lib/libc.so
4968    ;;
4969  siemens)
4970    lt_cv_deplibs_check_method=pass_all
4971    ;;
4972  pc)
4973    lt_cv_deplibs_check_method=pass_all
4974    ;;
4975  esac
4976  ;;
4977
4978tpf*)
4979  lt_cv_deplibs_check_method=pass_all
4980  ;;
4981esac
4982
4983fi
4984{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4985$as_echo "$lt_cv_deplibs_check_method" >&6; }
4986file_magic_cmd=$lt_cv_file_magic_cmd
4987deplibs_check_method=$lt_cv_deplibs_check_method
4988test -z "$deplibs_check_method" && deplibs_check_method=unknown
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001if test -n "$ac_tool_prefix"; then
5002  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5003set dummy ${ac_tool_prefix}ar; ac_word=$2
5004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_AR+set}" = set; then
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -n "$AR"; then
5010  ac_cv_prog_AR="$AR" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017  for ac_exec_ext in '' $ac_executable_extensions; do
5018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019    ac_cv_prog_AR="${ac_tool_prefix}ar"
5020    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021    break 2
5022  fi
5023done
5024done
5025IFS=$as_save_IFS
5026
5027fi
5028fi
5029AR=$ac_cv_prog_AR
5030if test -n "$AR"; then
5031  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5032$as_echo "$AR" >&6; }
5033else
5034  { $as_echo "$as_me:$LINENO: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039fi
5040if test -z "$ac_cv_prog_AR"; then
5041  ac_ct_AR=$AR
5042  # Extract the first word of "ar", so it can be a program name with args.
5043set dummy ar; ac_word=$2
5044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5047  $as_echo_n "(cached) " >&6
5048else
5049  if test -n "$ac_ct_AR"; then
5050  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055  IFS=$as_save_IFS
5056  test -z "$as_dir" && as_dir=.
5057  for ac_exec_ext in '' $ac_executable_extensions; do
5058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059    ac_cv_prog_ac_ct_AR="ar"
5060    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061    break 2
5062  fi
5063done
5064done
5065IFS=$as_save_IFS
5066
5067fi
5068fi
5069ac_ct_AR=$ac_cv_prog_ac_ct_AR
5070if test -n "$ac_ct_AR"; then
5071  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5072$as_echo "$ac_ct_AR" >&6; }
5073else
5074  { $as_echo "$as_me:$LINENO: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077
5078  if test "x$ac_ct_AR" = x; then
5079    AR="false"
5080  else
5081    case $cross_compiling:$ac_tool_warned in
5082yes:)
5083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085ac_tool_warned=yes ;;
5086esac
5087    AR=$ac_ct_AR
5088  fi
5089else
5090  AR="$ac_cv_prog_AR"
5091fi
5092
5093test -z "$AR" && AR=ar
5094test -z "$AR_FLAGS" && AR_FLAGS=cru
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106if test -n "$ac_tool_prefix"; then
5107  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5108set dummy ${ac_tool_prefix}strip; ac_word=$2
5109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5110$as_echo_n "checking for $ac_word... " >&6; }
5111if test "${ac_cv_prog_STRIP+set}" = set; then
5112  $as_echo_n "(cached) " >&6
5113else
5114  if test -n "$STRIP"; then
5115  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5116else
5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118for as_dir in $PATH
5119do
5120  IFS=$as_save_IFS
5121  test -z "$as_dir" && as_dir=.
5122  for ac_exec_ext in '' $ac_executable_extensions; do
5123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5125    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126    break 2
5127  fi
5128done
5129done
5130IFS=$as_save_IFS
5131
5132fi
5133fi
5134STRIP=$ac_cv_prog_STRIP
5135if test -n "$STRIP"; then
5136  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5137$as_echo "$STRIP" >&6; }
5138else
5139  { $as_echo "$as_me:$LINENO: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142
5143
5144fi
5145if test -z "$ac_cv_prog_STRIP"; then
5146  ac_ct_STRIP=$STRIP
5147  # Extract the first word of "strip", so it can be a program name with args.
5148set dummy strip; ac_word=$2
5149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
5151if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5152  $as_echo_n "(cached) " >&6
5153else
5154  if test -n "$ac_ct_STRIP"; then
5155  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  test -z "$as_dir" && as_dir=.
5162  for ac_exec_ext in '' $ac_executable_extensions; do
5163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164    ac_cv_prog_ac_ct_STRIP="strip"
5165    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166    break 2
5167  fi
5168done
5169done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5175if test -n "$ac_ct_STRIP"; then
5176  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5177$as_echo "$ac_ct_STRIP" >&6; }
5178else
5179  { $as_echo "$as_me:$LINENO: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
5182
5183  if test "x$ac_ct_STRIP" = x; then
5184    STRIP=":"
5185  else
5186    case $cross_compiling:$ac_tool_warned in
5187yes:)
5188{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190ac_tool_warned=yes ;;
5191esac
5192    STRIP=$ac_ct_STRIP
5193  fi
5194else
5195  STRIP="$ac_cv_prog_STRIP"
5196fi
5197
5198test -z "$STRIP" && STRIP=:
5199
5200
5201
5202
5203
5204
5205if test -n "$ac_tool_prefix"; then
5206  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5207set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5209$as_echo_n "checking for $ac_word... " >&6; }
5210if test "${ac_cv_prog_RANLIB+set}" = set; then
5211  $as_echo_n "(cached) " >&6
5212else
5213  if test -n "$RANLIB"; then
5214  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219  IFS=$as_save_IFS
5220  test -z "$as_dir" && as_dir=.
5221  for ac_exec_ext in '' $ac_executable_extensions; do
5222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5224    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225    break 2
5226  fi
5227done
5228done
5229IFS=$as_save_IFS
5230
5231fi
5232fi
5233RANLIB=$ac_cv_prog_RANLIB
5234if test -n "$RANLIB"; then
5235  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5236$as_echo "$RANLIB" >&6; }
5237else
5238  { $as_echo "$as_me:$LINENO: result: no" >&5
5239$as_echo "no" >&6; }
5240fi
5241
5242
5243fi
5244if test -z "$ac_cv_prog_RANLIB"; then
5245  ac_ct_RANLIB=$RANLIB
5246  # Extract the first word of "ranlib", so it can be a program name with args.
5247set dummy ranlib; ac_word=$2
5248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5251  $as_echo_n "(cached) " >&6
5252else
5253  if test -n "$ac_ct_RANLIB"; then
5254  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259  IFS=$as_save_IFS
5260  test -z "$as_dir" && as_dir=.
5261  for ac_exec_ext in '' $ac_executable_extensions; do
5262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263    ac_cv_prog_ac_ct_RANLIB="ranlib"
5264    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265    break 2
5266  fi
5267done
5268done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5274if test -n "$ac_ct_RANLIB"; then
5275  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5276$as_echo "$ac_ct_RANLIB" >&6; }
5277else
5278  { $as_echo "$as_me:$LINENO: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282  if test "x$ac_ct_RANLIB" = x; then
5283    RANLIB=":"
5284  else
5285    case $cross_compiling:$ac_tool_warned in
5286yes:)
5287{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289ac_tool_warned=yes ;;
5290esac
5291    RANLIB=$ac_ct_RANLIB
5292  fi
5293else
5294  RANLIB="$ac_cv_prog_RANLIB"
5295fi
5296
5297test -z "$RANLIB" && RANLIB=:
5298
5299
5300
5301
5302
5303
5304# Determine commands to create old-style static archives.
5305old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5306old_postinstall_cmds='chmod 644 $oldlib'
5307old_postuninstall_cmds=
5308
5309if test -n "$RANLIB"; then
5310  case $host_os in
5311  openbsd*)
5312    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5313    ;;
5314  *)
5315    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5316    ;;
5317  esac
5318  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5319fi
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354# If no C compiler was specified, use CC.
5355LTCC=${LTCC-"$CC"}
5356
5357# If no C compiler flags were specified, use CFLAGS.
5358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5359
5360# Allow CC to be a program name with arguments.
5361compiler=$CC
5362
5363
5364# Check for command to grab the raw symbol name followed by C symbol from nm.
5365{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5366$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5367if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5368  $as_echo_n "(cached) " >&6
5369else
5370
5371# These are sane defaults that work on at least a few old systems.
5372# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5373
5374# Character class describing NM global symbol codes.
5375symcode='[BCDEGRST]'
5376
5377# Regexp to match symbols that can be accessed directly from C.
5378sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5379
5380# Define system-specific variables.
5381case $host_os in
5382aix*)
5383  symcode='[BCDT]'
5384  ;;
5385cygwin* | mingw* | pw32* | cegcc*)
5386  symcode='[ABCDGISTW]'
5387  ;;
5388hpux*)
5389  if test "$host_cpu" = ia64; then
5390    symcode='[ABCDEGRST]'
5391  fi
5392  ;;
5393irix* | nonstopux*)
5394  symcode='[BCDEGRST]'
5395  ;;
5396osf*)
5397  symcode='[BCDEGQRST]'
5398  ;;
5399solaris*)
5400  symcode='[BDRT]'
5401  ;;
5402sco3.2v5*)
5403  symcode='[DT]'
5404  ;;
5405sysv4.2uw2*)
5406  symcode='[DT]'
5407  ;;
5408sysv5* | sco5v6* | unixware* | OpenUNIX*)
5409  symcode='[ABDT]'
5410  ;;
5411sysv4)
5412  symcode='[DFNSTU]'
5413  ;;
5414esac
5415
5416# If we're using GNU nm, then use its standard symbol codes.
5417case `$NM -V 2>&1` in
5418*GNU* | *'with BFD'*)
5419  symcode='[ABCDGIRSTW]' ;;
5420esac
5421
5422# Transform an extracted symbol line into a proper C declaration.
5423# Some systems (esp. on ia64) link data and code symbols differently,
5424# so use this general approach.
5425lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5426
5427# Transform an extracted symbol line into symbol name and symbol address
5428lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5429lt_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'"
5430
5431# Handle CRLF in mingw tool chain
5432opt_cr=
5433case $build_os in
5434mingw*)
5435  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5436  ;;
5437esac
5438
5439# Try without a prefix underscore, then with it.
5440for ac_symprfx in "" "_"; do
5441
5442  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5443  symxfrm="\\1 $ac_symprfx\\2 \\2"
5444
5445  # Write the raw and C identifiers.
5446  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5447    # Fake it for dumpbin and say T for any non-static function
5448    # and D for any global variable.
5449    # Also find C++ and __fastcall symbols from MSVC++,
5450    # which start with @ or ?.
5451    lt_cv_sys_global_symbol_pipe="$AWK '"\
5452"     {last_section=section; section=\$ 3};"\
5453"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5454"     \$ 0!~/External *\|/{next};"\
5455"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5456"     {if(hide[section]) next};"\
5457"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5458"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5459"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5460"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5461"     ' prfx=^$ac_symprfx"
5462  else
5463    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5464  fi
5465
5466  # Check to see that the pipe works correctly.
5467  pipe_works=no
5468
5469  rm -f conftest*
5470  cat > conftest.$ac_ext <<_LT_EOF
5471#ifdef __cplusplus
5472extern "C" {
5473#endif
5474char nm_test_var;
5475void nm_test_func(void);
5476void nm_test_func(void){}
5477#ifdef __cplusplus
5478}
5479#endif
5480int main(){nm_test_var='a';nm_test_func();return(0);}
5481_LT_EOF
5482
5483  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484  (eval $ac_compile) 2>&5
5485  ac_status=$?
5486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); }; then
5488    # Now try to grab the symbols.
5489    nlist=conftest.nm
5490    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5491  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5492  ac_status=$?
5493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494  (exit $ac_status); } && test -s "$nlist"; then
5495      # Try sorting and uniquifying the output.
5496      if sort "$nlist" | uniq > "$nlist"T; then
5497	mv -f "$nlist"T "$nlist"
5498      else
5499	rm -f "$nlist"T
5500      fi
5501
5502      # Make sure that we snagged all the symbols we need.
5503      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5504	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5505	  cat <<_LT_EOF > conftest.$ac_ext
5506#ifdef __cplusplus
5507extern "C" {
5508#endif
5509
5510_LT_EOF
5511	  # Now generate the symbol file.
5512	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5513
5514	  cat <<_LT_EOF >> conftest.$ac_ext
5515
5516/* The mapping between symbol names and symbols.  */
5517const struct {
5518  const char *name;
5519  void       *address;
5520}
5521lt__PROGRAM__LTX_preloaded_symbols[] =
5522{
5523  { "@PROGRAM@", (void *) 0 },
5524_LT_EOF
5525	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5526	  cat <<\_LT_EOF >> conftest.$ac_ext
5527  {0, (void *) 0}
5528};
5529
5530/* This works around a problem in FreeBSD linker */
5531#ifdef FREEBSD_WORKAROUND
5532static const void *lt_preloaded_setup() {
5533  return lt__PROGRAM__LTX_preloaded_symbols;
5534}
5535#endif
5536
5537#ifdef __cplusplus
5538}
5539#endif
5540_LT_EOF
5541	  # Now try linking the two files.
5542	  mv conftest.$ac_objext conftstm.$ac_objext
5543	  lt_save_LIBS="$LIBS"
5544	  lt_save_CFLAGS="$CFLAGS"
5545	  LIBS="conftstm.$ac_objext"
5546	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5547	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548  (eval $ac_link) 2>&5
5549  ac_status=$?
5550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5552	    pipe_works=yes
5553	  fi
5554	  LIBS="$lt_save_LIBS"
5555	  CFLAGS="$lt_save_CFLAGS"
5556	else
5557	  echo "cannot find nm_test_func in $nlist" >&5
5558	fi
5559      else
5560	echo "cannot find nm_test_var in $nlist" >&5
5561      fi
5562    else
5563      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5564    fi
5565  else
5566    echo "$progname: failed program was:" >&5
5567    cat conftest.$ac_ext >&5
5568  fi
5569  rm -rf conftest* conftst*
5570
5571  # Do not use the global_symbol_pipe unless it works.
5572  if test "$pipe_works" = yes; then
5573    break
5574  else
5575    lt_cv_sys_global_symbol_pipe=
5576  fi
5577done
5578
5579fi
5580
5581if test -z "$lt_cv_sys_global_symbol_pipe"; then
5582  lt_cv_sys_global_symbol_to_cdecl=
5583fi
5584if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5585  { $as_echo "$as_me:$LINENO: result: failed" >&5
5586$as_echo "failed" >&6; }
5587else
5588  { $as_echo "$as_me:$LINENO: result: ok" >&5
5589$as_echo "ok" >&6; }
5590fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614# Check whether --enable-libtool-lock was given.
5615if test "${enable_libtool_lock+set}" = set; then
5616  enableval=$enable_libtool_lock;
5617fi
5618
5619test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5620
5621# Some flags need to be propagated to the compiler or linker for good
5622# libtool support.
5623case $host in
5624ia64-*-hpux*)
5625  # Find out which ABI we are using.
5626  echo 'int i;' > conftest.$ac_ext
5627  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628  (eval $ac_compile) 2>&5
5629  ac_status=$?
5630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631  (exit $ac_status); }; then
5632    case `/usr/bin/file conftest.$ac_objext` in
5633      *ELF-32*)
5634	HPUX_IA64_MODE="32"
5635	;;
5636      *ELF-64*)
5637	HPUX_IA64_MODE="64"
5638	;;
5639    esac
5640  fi
5641  rm -rf conftest*
5642  ;;
5643*-*-irix6*)
5644  # Find out which ABI we are using.
5645  echo '#line 5645 "configure"' > conftest.$ac_ext
5646  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647  (eval $ac_compile) 2>&5
5648  ac_status=$?
5649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; then
5651    if test "$lt_cv_prog_gnu_ld" = yes; then
5652      case `/usr/bin/file conftest.$ac_objext` in
5653	*32-bit*)
5654	  LD="${LD-ld} -melf32bsmip"
5655	  ;;
5656	*N32*)
5657	  LD="${LD-ld} -melf32bmipn32"
5658	  ;;
5659	*64-bit*)
5660	  LD="${LD-ld} -melf64bmip"
5661	;;
5662      esac
5663    else
5664      case `/usr/bin/file conftest.$ac_objext` in
5665	*32-bit*)
5666	  LD="${LD-ld} -32"
5667	  ;;
5668	*N32*)
5669	  LD="${LD-ld} -n32"
5670	  ;;
5671	*64-bit*)
5672	  LD="${LD-ld} -64"
5673	  ;;
5674      esac
5675    fi
5676  fi
5677  rm -rf conftest*
5678  ;;
5679
5680x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5681s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5682  # Find out which ABI we are using.
5683  echo 'int i;' > conftest.$ac_ext
5684  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685  (eval $ac_compile) 2>&5
5686  ac_status=$?
5687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); }; then
5689    case `/usr/bin/file conftest.o` in
5690      *32-bit*)
5691	case $host in
5692	  x86_64-*kfreebsd*-gnu)
5693	    LD="${LD-ld} -m elf_i386_fbsd"
5694	    ;;
5695	  x86_64-*linux*)
5696	    LD="${LD-ld} -m elf_i386"
5697	    ;;
5698	  ppc64-*linux*|powerpc64-*linux*)
5699	    LD="${LD-ld} -m elf32ppclinux"
5700	    ;;
5701	  s390x-*linux*)
5702	    LD="${LD-ld} -m elf_s390"
5703	    ;;
5704	  sparc64-*linux*)
5705	    LD="${LD-ld} -m elf32_sparc"
5706	    ;;
5707	esac
5708	;;
5709      *64-bit*)
5710	case $host in
5711	  x86_64-*kfreebsd*-gnu)
5712	    LD="${LD-ld} -m elf_x86_64_fbsd"
5713	    ;;
5714	  x86_64-*linux*)
5715	    LD="${LD-ld} -m elf_x86_64"
5716	    ;;
5717	  ppc*-*linux*|powerpc*-*linux*)
5718	    LD="${LD-ld} -m elf64ppc"
5719	    ;;
5720	  s390*-*linux*|s390*-*tpf*)
5721	    LD="${LD-ld} -m elf64_s390"
5722	    ;;
5723	  sparc*-*linux*)
5724	    LD="${LD-ld} -m elf64_sparc"
5725	    ;;
5726	esac
5727	;;
5728    esac
5729  fi
5730  rm -rf conftest*
5731  ;;
5732
5733*-*-sco3.2v5*)
5734  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5735  SAVE_CFLAGS="$CFLAGS"
5736  CFLAGS="$CFLAGS -belf"
5737  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5738$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5739if test "${lt_cv_cc_needs_belf+set}" = set; then
5740  $as_echo_n "(cached) " >&6
5741else
5742  ac_ext=c
5743ac_cpp='$CPP $CPPFLAGS'
5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748     cat >conftest.$ac_ext <<_ACEOF
5749/* confdefs.h.  */
5750_ACEOF
5751cat confdefs.h >>conftest.$ac_ext
5752cat >>conftest.$ac_ext <<_ACEOF
5753/* end confdefs.h.  */
5754
5755int
5756main ()
5757{
5758
5759  ;
5760  return 0;
5761}
5762_ACEOF
5763rm -f conftest.$ac_objext conftest$ac_exeext
5764if { (ac_try="$ac_link"
5765case "(($ac_try" in
5766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767  *) ac_try_echo=$ac_try;;
5768esac
5769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5770$as_echo "$ac_try_echo") >&5
5771  (eval "$ac_link") 2>conftest.er1
5772  ac_status=$?
5773  grep -v '^ *+' conftest.er1 >conftest.err
5774  rm -f conftest.er1
5775  cat conftest.err >&5
5776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); } && {
5778	 test -z "$ac_c_werror_flag" ||
5779	 test ! -s conftest.err
5780       } && test -s conftest$ac_exeext && {
5781	 test "$cross_compiling" = yes ||
5782	 $as_test_x conftest$ac_exeext
5783       }; then
5784  lt_cv_cc_needs_belf=yes
5785else
5786  $as_echo "$as_me: failed program was:" >&5
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789	lt_cv_cc_needs_belf=no
5790fi
5791
5792rm -rf conftest.dSYM
5793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794      conftest$ac_exeext conftest.$ac_ext
5795     ac_ext=c
5796ac_cpp='$CPP $CPPFLAGS'
5797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800
5801fi
5802{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5803$as_echo "$lt_cv_cc_needs_belf" >&6; }
5804  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5805    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5806    CFLAGS="$SAVE_CFLAGS"
5807  fi
5808  ;;
5809sparc*-*solaris*)
5810  # Find out which ABI we are using.
5811  echo 'int i;' > conftest.$ac_ext
5812  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813  (eval $ac_compile) 2>&5
5814  ac_status=$?
5815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); }; then
5817    case `/usr/bin/file conftest.o` in
5818    *64-bit*)
5819      case $lt_cv_prog_gnu_ld in
5820      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5821      *)
5822	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5823	  LD="${LD-ld} -64"
5824	fi
5825	;;
5826      esac
5827      ;;
5828    esac
5829  fi
5830  rm -rf conftest*
5831  ;;
5832esac
5833
5834need_locks="$enable_libtool_lock"
5835
5836
5837  case $host_os in
5838    rhapsody* | darwin*)
5839    if test -n "$ac_tool_prefix"; then
5840  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5841set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5842{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5845  $as_echo_n "(cached) " >&6
5846else
5847  if test -n "$DSYMUTIL"; then
5848  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855  for ac_exec_ext in '' $ac_executable_extensions; do
5856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5858    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862done
5863IFS=$as_save_IFS
5864
5865fi
5866fi
5867DSYMUTIL=$ac_cv_prog_DSYMUTIL
5868if test -n "$DSYMUTIL"; then
5869  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5870$as_echo "$DSYMUTIL" >&6; }
5871else
5872  { $as_echo "$as_me:$LINENO: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
5875
5876
5877fi
5878if test -z "$ac_cv_prog_DSYMUTIL"; then
5879  ac_ct_DSYMUTIL=$DSYMUTIL
5880  # Extract the first word of "dsymutil", so it can be a program name with args.
5881set dummy dsymutil; ac_word=$2
5882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
5884if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5885  $as_echo_n "(cached) " >&6
5886else
5887  if test -n "$ac_ct_DSYMUTIL"; then
5888  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893  IFS=$as_save_IFS
5894  test -z "$as_dir" && as_dir=.
5895  for ac_exec_ext in '' $ac_executable_extensions; do
5896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5898    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899    break 2
5900  fi
5901done
5902done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5908if test -n "$ac_ct_DSYMUTIL"; then
5909  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5910$as_echo "$ac_ct_DSYMUTIL" >&6; }
5911else
5912  { $as_echo "$as_me:$LINENO: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916  if test "x$ac_ct_DSYMUTIL" = x; then
5917    DSYMUTIL=":"
5918  else
5919    case $cross_compiling:$ac_tool_warned in
5920yes:)
5921{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5923ac_tool_warned=yes ;;
5924esac
5925    DSYMUTIL=$ac_ct_DSYMUTIL
5926  fi
5927else
5928  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5929fi
5930
5931    if test -n "$ac_tool_prefix"; then
5932  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5933set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5934{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if test "${ac_cv_prog_NMEDIT+set}" = set; then
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$NMEDIT"; then
5940  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947  for ac_exec_ext in '' $ac_executable_extensions; do
5948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5950    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959NMEDIT=$ac_cv_prog_NMEDIT
5960if test -n "$NMEDIT"; then
5961  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5962$as_echo "$NMEDIT" >&6; }
5963else
5964  { $as_echo "$as_me:$LINENO: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968
5969fi
5970if test -z "$ac_cv_prog_NMEDIT"; then
5971  ac_ct_NMEDIT=$NMEDIT
5972  # Extract the first word of "nmedit", so it can be a program name with args.
5973set dummy nmedit; ac_word=$2
5974{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5975$as_echo_n "checking for $ac_word... " >&6; }
5976if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5977  $as_echo_n "(cached) " >&6
5978else
5979  if test -n "$ac_ct_NMEDIT"; then
5980  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985  IFS=$as_save_IFS
5986  test -z "$as_dir" && as_dir=.
5987  for ac_exec_ext in '' $ac_executable_extensions; do
5988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5990    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991    break 2
5992  fi
5993done
5994done
5995IFS=$as_save_IFS
5996
5997fi
5998fi
5999ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6000if test -n "$ac_ct_NMEDIT"; then
6001  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6002$as_echo "$ac_ct_NMEDIT" >&6; }
6003else
6004  { $as_echo "$as_me:$LINENO: result: no" >&5
6005$as_echo "no" >&6; }
6006fi
6007
6008  if test "x$ac_ct_NMEDIT" = x; then
6009    NMEDIT=":"
6010  else
6011    case $cross_compiling:$ac_tool_warned in
6012yes:)
6013{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015ac_tool_warned=yes ;;
6016esac
6017    NMEDIT=$ac_ct_NMEDIT
6018  fi
6019else
6020  NMEDIT="$ac_cv_prog_NMEDIT"
6021fi
6022
6023    if test -n "$ac_tool_prefix"; then
6024  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6025set dummy ${ac_tool_prefix}lipo; ac_word=$2
6026{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6027$as_echo_n "checking for $ac_word... " >&6; }
6028if test "${ac_cv_prog_LIPO+set}" = set; then
6029  $as_echo_n "(cached) " >&6
6030else
6031  if test -n "$LIPO"; then
6032  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6033else
6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037  IFS=$as_save_IFS
6038  test -z "$as_dir" && as_dir=.
6039  for ac_exec_ext in '' $ac_executable_extensions; do
6040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6042    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043    break 2
6044  fi
6045done
6046done
6047IFS=$as_save_IFS
6048
6049fi
6050fi
6051LIPO=$ac_cv_prog_LIPO
6052if test -n "$LIPO"; then
6053  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6054$as_echo "$LIPO" >&6; }
6055else
6056  { $as_echo "$as_me:$LINENO: result: no" >&5
6057$as_echo "no" >&6; }
6058fi
6059
6060
6061fi
6062if test -z "$ac_cv_prog_LIPO"; then
6063  ac_ct_LIPO=$LIPO
6064  # Extract the first word of "lipo", so it can be a program name with args.
6065set dummy lipo; ac_word=$2
6066{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6067$as_echo_n "checking for $ac_word... " >&6; }
6068if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6069  $as_echo_n "(cached) " >&6
6070else
6071  if test -n "$ac_ct_LIPO"; then
6072  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077  IFS=$as_save_IFS
6078  test -z "$as_dir" && as_dir=.
6079  for ac_exec_ext in '' $ac_executable_extensions; do
6080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081    ac_cv_prog_ac_ct_LIPO="lipo"
6082    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083    break 2
6084  fi
6085done
6086done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6092if test -n "$ac_ct_LIPO"; then
6093  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6094$as_echo "$ac_ct_LIPO" >&6; }
6095else
6096  { $as_echo "$as_me:$LINENO: result: no" >&5
6097$as_echo "no" >&6; }
6098fi
6099
6100  if test "x$ac_ct_LIPO" = x; then
6101    LIPO=":"
6102  else
6103    case $cross_compiling:$ac_tool_warned in
6104yes:)
6105{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107ac_tool_warned=yes ;;
6108esac
6109    LIPO=$ac_ct_LIPO
6110  fi
6111else
6112  LIPO="$ac_cv_prog_LIPO"
6113fi
6114
6115    if test -n "$ac_tool_prefix"; then
6116  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6117set dummy ${ac_tool_prefix}otool; ac_word=$2
6118{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
6120if test "${ac_cv_prog_OTOOL+set}" = set; then
6121  $as_echo_n "(cached) " >&6
6122else
6123  if test -n "$OTOOL"; then
6124  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129  IFS=$as_save_IFS
6130  test -z "$as_dir" && as_dir=.
6131  for ac_exec_ext in '' $ac_executable_extensions; do
6132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6134    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135    break 2
6136  fi
6137done
6138done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143OTOOL=$ac_cv_prog_OTOOL
6144if test -n "$OTOOL"; then
6145  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6146$as_echo "$OTOOL" >&6; }
6147else
6148  { $as_echo "$as_me:$LINENO: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153fi
6154if test -z "$ac_cv_prog_OTOOL"; then
6155  ac_ct_OTOOL=$OTOOL
6156  # Extract the first word of "otool", so it can be a program name with args.
6157set dummy otool; ac_word=$2
6158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6159$as_echo_n "checking for $ac_word... " >&6; }
6160if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6161  $as_echo_n "(cached) " >&6
6162else
6163  if test -n "$ac_ct_OTOOL"; then
6164  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6165else
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169  IFS=$as_save_IFS
6170  test -z "$as_dir" && as_dir=.
6171  for ac_exec_ext in '' $ac_executable_extensions; do
6172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173    ac_cv_prog_ac_ct_OTOOL="otool"
6174    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175    break 2
6176  fi
6177done
6178done
6179IFS=$as_save_IFS
6180
6181fi
6182fi
6183ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6184if test -n "$ac_ct_OTOOL"; then
6185  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6186$as_echo "$ac_ct_OTOOL" >&6; }
6187else
6188  { $as_echo "$as_me:$LINENO: result: no" >&5
6189$as_echo "no" >&6; }
6190fi
6191
6192  if test "x$ac_ct_OTOOL" = x; then
6193    OTOOL=":"
6194  else
6195    case $cross_compiling:$ac_tool_warned in
6196yes:)
6197{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199ac_tool_warned=yes ;;
6200esac
6201    OTOOL=$ac_ct_OTOOL
6202  fi
6203else
6204  OTOOL="$ac_cv_prog_OTOOL"
6205fi
6206
6207    if test -n "$ac_tool_prefix"; then
6208  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6209set dummy ${ac_tool_prefix}otool64; ac_word=$2
6210{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if test "${ac_cv_prog_OTOOL64+set}" = set; then
6213  $as_echo_n "(cached) " >&6
6214else
6215  if test -n "$OTOOL64"; then
6216  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223  for ac_exec_ext in '' $ac_executable_extensions; do
6224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6226    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235OTOOL64=$ac_cv_prog_OTOOL64
6236if test -n "$OTOOL64"; then
6237  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6238$as_echo "$OTOOL64" >&6; }
6239else
6240  { $as_echo "$as_me:$LINENO: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244
6245fi
6246if test -z "$ac_cv_prog_OTOOL64"; then
6247  ac_ct_OTOOL64=$OTOOL64
6248  # Extract the first word of "otool64", so it can be a program name with args.
6249set dummy otool64; ac_word=$2
6250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6253  $as_echo_n "(cached) " >&6
6254else
6255  if test -n "$ac_ct_OTOOL64"; then
6256  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261  IFS=$as_save_IFS
6262  test -z "$as_dir" && as_dir=.
6263  for ac_exec_ext in '' $ac_executable_extensions; do
6264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265    ac_cv_prog_ac_ct_OTOOL64="otool64"
6266    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267    break 2
6268  fi
6269done
6270done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6276if test -n "$ac_ct_OTOOL64"; then
6277  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6278$as_echo "$ac_ct_OTOOL64" >&6; }
6279else
6280  { $as_echo "$as_me:$LINENO: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284  if test "x$ac_ct_OTOOL64" = x; then
6285    OTOOL64=":"
6286  else
6287    case $cross_compiling:$ac_tool_warned in
6288yes:)
6289{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291ac_tool_warned=yes ;;
6292esac
6293    OTOOL64=$ac_ct_OTOOL64
6294  fi
6295else
6296  OTOOL64="$ac_cv_prog_OTOOL64"
6297fi
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6326$as_echo_n "checking for -single_module linker flag... " >&6; }
6327if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6328  $as_echo_n "(cached) " >&6
6329else
6330  lt_cv_apple_cc_single_mod=no
6331      if test -z "${LT_MULTI_MODULE}"; then
6332	# By default we will add the -single_module flag. You can override
6333	# by either setting the environment variable LT_MULTI_MODULE
6334	# non-empty at configure time, or by adding -multi_module to the
6335	# link flags.
6336	rm -rf libconftest.dylib*
6337	echo "int foo(void){return 1;}" > conftest.c
6338	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6339-dynamiclib -Wl,-single_module conftest.c" >&5
6340	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6341	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6342        _lt_result=$?
6343	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6344	  lt_cv_apple_cc_single_mod=yes
6345	else
6346	  cat conftest.err >&5
6347	fi
6348	rm -rf libconftest.dylib*
6349	rm -f conftest.*
6350      fi
6351fi
6352{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6353$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6354    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6355$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6356if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6357  $as_echo_n "(cached) " >&6
6358else
6359  lt_cv_ld_exported_symbols_list=no
6360      save_LDFLAGS=$LDFLAGS
6361      echo "_main" > conftest.sym
6362      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6363      cat >conftest.$ac_ext <<_ACEOF
6364/* confdefs.h.  */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h.  */
6369
6370int
6371main ()
6372{
6373
6374  ;
6375  return 0;
6376}
6377_ACEOF
6378rm -f conftest.$ac_objext conftest$ac_exeext
6379if { (ac_try="$ac_link"
6380case "(($ac_try" in
6381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382  *) ac_try_echo=$ac_try;;
6383esac
6384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385$as_echo "$ac_try_echo") >&5
6386  (eval "$ac_link") 2>conftest.er1
6387  ac_status=$?
6388  grep -v '^ *+' conftest.er1 >conftest.err
6389  rm -f conftest.er1
6390  cat conftest.err >&5
6391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); } && {
6393	 test -z "$ac_c_werror_flag" ||
6394	 test ! -s conftest.err
6395       } && test -s conftest$ac_exeext && {
6396	 test "$cross_compiling" = yes ||
6397	 $as_test_x conftest$ac_exeext
6398       }; then
6399  lt_cv_ld_exported_symbols_list=yes
6400else
6401  $as_echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404	lt_cv_ld_exported_symbols_list=no
6405fi
6406
6407rm -rf conftest.dSYM
6408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409      conftest$ac_exeext conftest.$ac_ext
6410	LDFLAGS="$save_LDFLAGS"
6411
6412fi
6413{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6414$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6415    case $host_os in
6416    rhapsody* | darwin1.[012])
6417      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6418    darwin1.*)
6419      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6420    darwin*) # darwin 5.x on
6421      # if running on 10.5 or later, the deployment target defaults
6422      # to the OS version, if on x86, and 10.4, the deployment
6423      # target defaults to 10.4. Don't you love it?
6424      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6425	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6426	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6427	10.[012]*)
6428	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6429	10.*)
6430	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6431      esac
6432    ;;
6433  esac
6434    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6435      _lt_dar_single_mod='$single_module'
6436    fi
6437    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6438      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6439    else
6440      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6441    fi
6442    if test "$DSYMUTIL" != ":"; then
6443      _lt_dsymutil='~$DSYMUTIL $lib || :'
6444    else
6445      _lt_dsymutil=
6446    fi
6447    ;;
6448  esac
6449
6450ac_ext=c
6451ac_cpp='$CPP $CPPFLAGS'
6452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454ac_compiler_gnu=$ac_cv_c_compiler_gnu
6455{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6456$as_echo_n "checking how to run the C preprocessor... " >&6; }
6457# On Suns, sometimes $CPP names a directory.
6458if test -n "$CPP" && test -d "$CPP"; then
6459  CPP=
6460fi
6461if test -z "$CPP"; then
6462  if test "${ac_cv_prog_CPP+set}" = set; then
6463  $as_echo_n "(cached) " >&6
6464else
6465      # Double quotes because CPP needs to be expanded
6466    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6467    do
6468      ac_preproc_ok=false
6469for ac_c_preproc_warn_flag in '' yes
6470do
6471  # Use a header file that comes with gcc, so configuring glibc
6472  # with a fresh cross-compiler works.
6473  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6474  # <limits.h> exists even on freestanding compilers.
6475  # On the NeXT, cc -E runs the code through the compiler's parser,
6476  # not just through cpp. "Syntax error" is here to catch this case.
6477  cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h.  */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h.  */
6483#ifdef __STDC__
6484# include <limits.h>
6485#else
6486# include <assert.h>
6487#endif
6488		     Syntax error
6489_ACEOF
6490if { (ac_try="$ac_cpp conftest.$ac_ext"
6491case "(($ac_try" in
6492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493  *) ac_try_echo=$ac_try;;
6494esac
6495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6496$as_echo "$ac_try_echo") >&5
6497  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6498  ac_status=$?
6499  grep -v '^ *+' conftest.er1 >conftest.err
6500  rm -f conftest.er1
6501  cat conftest.err >&5
6502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503  (exit $ac_status); } >/dev/null && {
6504	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6505	 test ! -s conftest.err
6506       }; then
6507  :
6508else
6509  $as_echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512  # Broken: fails on valid input.
6513continue
6514fi
6515
6516rm -f conftest.err conftest.$ac_ext
6517
6518  # OK, works on sane cases.  Now check whether nonexistent headers
6519  # can be detected and how.
6520  cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h.  */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h.  */
6526#include <ac_nonexistent.h>
6527_ACEOF
6528if { (ac_try="$ac_cpp conftest.$ac_ext"
6529case "(($ac_try" in
6530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531  *) ac_try_echo=$ac_try;;
6532esac
6533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6534$as_echo "$ac_try_echo") >&5
6535  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6536  ac_status=$?
6537  grep -v '^ *+' conftest.er1 >conftest.err
6538  rm -f conftest.er1
6539  cat conftest.err >&5
6540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541  (exit $ac_status); } >/dev/null && {
6542	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6543	 test ! -s conftest.err
6544       }; then
6545  # Broken: success on invalid input.
6546continue
6547else
6548  $as_echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551  # Passes both tests.
6552ac_preproc_ok=:
6553break
6554fi
6555
6556rm -f conftest.err conftest.$ac_ext
6557
6558done
6559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6560rm -f conftest.err conftest.$ac_ext
6561if $ac_preproc_ok; then
6562  break
6563fi
6564
6565    done
6566    ac_cv_prog_CPP=$CPP
6567
6568fi
6569  CPP=$ac_cv_prog_CPP
6570else
6571  ac_cv_prog_CPP=$CPP
6572fi
6573{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6574$as_echo "$CPP" >&6; }
6575ac_preproc_ok=false
6576for ac_c_preproc_warn_flag in '' yes
6577do
6578  # Use a header file that comes with gcc, so configuring glibc
6579  # with a fresh cross-compiler works.
6580  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6581  # <limits.h> exists even on freestanding compilers.
6582  # On the NeXT, cc -E runs the code through the compiler's parser,
6583  # not just through cpp. "Syntax error" is here to catch this case.
6584  cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590#ifdef __STDC__
6591# include <limits.h>
6592#else
6593# include <assert.h>
6594#endif
6595		     Syntax error
6596_ACEOF
6597if { (ac_try="$ac_cpp conftest.$ac_ext"
6598case "(($ac_try" in
6599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600  *) ac_try_echo=$ac_try;;
6601esac
6602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6603$as_echo "$ac_try_echo") >&5
6604  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6605  ac_status=$?
6606  grep -v '^ *+' conftest.er1 >conftest.err
6607  rm -f conftest.er1
6608  cat conftest.err >&5
6609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); } >/dev/null && {
6611	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6612	 test ! -s conftest.err
6613       }; then
6614  :
6615else
6616  $as_echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619  # Broken: fails on valid input.
6620continue
6621fi
6622
6623rm -f conftest.err conftest.$ac_ext
6624
6625  # OK, works on sane cases.  Now check whether nonexistent headers
6626  # can be detected and how.
6627  cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633#include <ac_nonexistent.h>
6634_ACEOF
6635if { (ac_try="$ac_cpp conftest.$ac_ext"
6636case "(($ac_try" in
6637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638  *) ac_try_echo=$ac_try;;
6639esac
6640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641$as_echo "$ac_try_echo") >&5
6642  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } >/dev/null && {
6649	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6650	 test ! -s conftest.err
6651       }; then
6652  # Broken: success on invalid input.
6653continue
6654else
6655  $as_echo "$as_me: failed program was:" >&5
6656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658  # Passes both tests.
6659ac_preproc_ok=:
6660break
6661fi
6662
6663rm -f conftest.err conftest.$ac_ext
6664
6665done
6666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6667rm -f conftest.err conftest.$ac_ext
6668if $ac_preproc_ok; then
6669  :
6670else
6671  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6673{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6674See \`config.log' for more details." >&5
6675$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6676See \`config.log' for more details." >&2;}
6677   { (exit 1); exit 1; }; }; }
6678fi
6679
6680ac_ext=c
6681ac_cpp='$CPP $CPPFLAGS'
6682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684ac_compiler_gnu=$ac_cv_c_compiler_gnu
6685
6686
6687{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6688$as_echo_n "checking for ANSI C header files... " >&6; }
6689if test "${ac_cv_header_stdc+set}" = set; then
6690  $as_echo_n "(cached) " >&6
6691else
6692  cat >conftest.$ac_ext <<_ACEOF
6693/* confdefs.h.  */
6694_ACEOF
6695cat confdefs.h >>conftest.$ac_ext
6696cat >>conftest.$ac_ext <<_ACEOF
6697/* end confdefs.h.  */
6698#include <stdlib.h>
6699#include <stdarg.h>
6700#include <string.h>
6701#include <float.h>
6702
6703int
6704main ()
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711rm -f conftest.$ac_objext
6712if { (ac_try="$ac_compile"
6713case "(($ac_try" in
6714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715  *) ac_try_echo=$ac_try;;
6716esac
6717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6718$as_echo "$ac_try_echo") >&5
6719  (eval "$ac_compile") 2>conftest.er1
6720  ac_status=$?
6721  grep -v '^ *+' conftest.er1 >conftest.err
6722  rm -f conftest.er1
6723  cat conftest.err >&5
6724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); } && {
6726	 test -z "$ac_c_werror_flag" ||
6727	 test ! -s conftest.err
6728       } && test -s conftest.$ac_objext; then
6729  ac_cv_header_stdc=yes
6730else
6731  $as_echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
6733
6734	ac_cv_header_stdc=no
6735fi
6736
6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738
6739if test $ac_cv_header_stdc = yes; then
6740  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6741  cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h.  */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h.  */
6747#include <string.h>
6748
6749_ACEOF
6750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751  $EGREP "memchr" >/dev/null 2>&1; then
6752  :
6753else
6754  ac_cv_header_stdc=no
6755fi
6756rm -f conftest*
6757
6758fi
6759
6760if test $ac_cv_header_stdc = yes; then
6761  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6762  cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h.  */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h.  */
6768#include <stdlib.h>
6769
6770_ACEOF
6771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772  $EGREP "free" >/dev/null 2>&1; then
6773  :
6774else
6775  ac_cv_header_stdc=no
6776fi
6777rm -f conftest*
6778
6779fi
6780
6781if test $ac_cv_header_stdc = yes; then
6782  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783  if test "$cross_compiling" = yes; then
6784  :
6785else
6786  cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h.  */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h.  */
6792#include <ctype.h>
6793#include <stdlib.h>
6794#if ((' ' & 0x0FF) == 0x020)
6795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6797#else
6798# define ISLOWER(c) \
6799		   (('a' <= (c) && (c) <= 'i') \
6800		     || ('j' <= (c) && (c) <= 'r') \
6801		     || ('s' <= (c) && (c) <= 'z'))
6802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6803#endif
6804
6805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6806int
6807main ()
6808{
6809  int i;
6810  for (i = 0; i < 256; i++)
6811    if (XOR (islower (i), ISLOWER (i))
6812	|| toupper (i) != TOUPPER (i))
6813      return 2;
6814  return 0;
6815}
6816_ACEOF
6817rm -f conftest$ac_exeext
6818if { (ac_try="$ac_link"
6819case "(($ac_try" in
6820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821  *) ac_try_echo=$ac_try;;
6822esac
6823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6824$as_echo "$ac_try_echo") >&5
6825  (eval "$ac_link") 2>&5
6826  ac_status=$?
6827  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6829  { (case "(($ac_try" in
6830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831  *) ac_try_echo=$ac_try;;
6832esac
6833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834$as_echo "$ac_try_echo") >&5
6835  (eval "$ac_try") 2>&5
6836  ac_status=$?
6837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); }; }; then
6839  :
6840else
6841  $as_echo "$as_me: program exited with status $ac_status" >&5
6842$as_echo "$as_me: failed program was:" >&5
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
6845( exit $ac_status )
6846ac_cv_header_stdc=no
6847fi
6848rm -rf conftest.dSYM
6849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6850fi
6851
6852
6853fi
6854fi
6855{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6856$as_echo "$ac_cv_header_stdc" >&6; }
6857if test $ac_cv_header_stdc = yes; then
6858
6859cat >>confdefs.h <<\_ACEOF
6860#define STDC_HEADERS 1
6861_ACEOF
6862
6863fi
6864
6865# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6876		  inttypes.h stdint.h unistd.h
6877do
6878as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6880$as_echo_n "checking for $ac_header... " >&6; }
6881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6882  $as_echo_n "(cached) " >&6
6883else
6884  cat >conftest.$ac_ext <<_ACEOF
6885/* confdefs.h.  */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h.  */
6890$ac_includes_default
6891
6892#include <$ac_header>
6893_ACEOF
6894rm -f conftest.$ac_objext
6895if { (ac_try="$ac_compile"
6896case "(($ac_try" in
6897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898  *) ac_try_echo=$ac_try;;
6899esac
6900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6901$as_echo "$ac_try_echo") >&5
6902  (eval "$ac_compile") 2>conftest.er1
6903  ac_status=$?
6904  grep -v '^ *+' conftest.er1 >conftest.err
6905  rm -f conftest.er1
6906  cat conftest.err >&5
6907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); } && {
6909	 test -z "$ac_c_werror_flag" ||
6910	 test ! -s conftest.err
6911       } && test -s conftest.$ac_objext; then
6912  eval "$as_ac_Header=yes"
6913else
6914  $as_echo "$as_me: failed program was:" >&5
6915sed 's/^/| /' conftest.$ac_ext >&5
6916
6917	eval "$as_ac_Header=no"
6918fi
6919
6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921fi
6922ac_res=`eval 'as_val=${'$as_ac_Header'}
6923		 $as_echo "$as_val"'`
6924	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6925$as_echo "$ac_res" >&6; }
6926as_val=`eval 'as_val=${'$as_ac_Header'}
6927		 $as_echo "$as_val"'`
6928   if test "x$as_val" = x""yes; then
6929  cat >>confdefs.h <<_ACEOF
6930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6931_ACEOF
6932
6933fi
6934
6935done
6936
6937
6938
6939for ac_header in dlfcn.h
6940do
6941as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6942{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6943$as_echo_n "checking for $ac_header... " >&6; }
6944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6945  $as_echo_n "(cached) " >&6
6946else
6947  cat >conftest.$ac_ext <<_ACEOF
6948/* confdefs.h.  */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h.  */
6953$ac_includes_default
6954
6955#include <$ac_header>
6956_ACEOF
6957rm -f conftest.$ac_objext
6958if { (ac_try="$ac_compile"
6959case "(($ac_try" in
6960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961  *) ac_try_echo=$ac_try;;
6962esac
6963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6964$as_echo "$ac_try_echo") >&5
6965  (eval "$ac_compile") 2>conftest.er1
6966  ac_status=$?
6967  grep -v '^ *+' conftest.er1 >conftest.err
6968  rm -f conftest.er1
6969  cat conftest.err >&5
6970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); } && {
6972	 test -z "$ac_c_werror_flag" ||
6973	 test ! -s conftest.err
6974       } && test -s conftest.$ac_objext; then
6975  eval "$as_ac_Header=yes"
6976else
6977  $as_echo "$as_me: failed program was:" >&5
6978sed 's/^/| /' conftest.$ac_ext >&5
6979
6980	eval "$as_ac_Header=no"
6981fi
6982
6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984fi
6985ac_res=`eval 'as_val=${'$as_ac_Header'}
6986		 $as_echo "$as_val"'`
6987	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6988$as_echo "$ac_res" >&6; }
6989as_val=`eval 'as_val=${'$as_ac_Header'}
6990		 $as_echo "$as_val"'`
6991   if test "x$as_val" = x""yes; then
6992  cat >>confdefs.h <<_ACEOF
6993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6994_ACEOF
6995
6996fi
6997
6998done
6999
7000
7001
7002# Set options
7003
7004
7005
7006        enable_dlopen=no
7007
7008
7009  enable_win32_dll=no
7010
7011
7012            # Check whether --enable-shared was given.
7013if test "${enable_shared+set}" = set; then
7014  enableval=$enable_shared; p=${PACKAGE-default}
7015    case $enableval in
7016    yes) enable_shared=yes ;;
7017    no) enable_shared=no ;;
7018    *)
7019      enable_shared=no
7020      # Look at the argument we got.  We use all the common list separators.
7021      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7022      for pkg in $enableval; do
7023	IFS="$lt_save_ifs"
7024	if test "X$pkg" = "X$p"; then
7025	  enable_shared=yes
7026	fi
7027      done
7028      IFS="$lt_save_ifs"
7029      ;;
7030    esac
7031else
7032  enable_shared=yes
7033fi
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045# Check whether --with-pic was given.
7046if test "${with_pic+set}" = set; then
7047  withval=$with_pic; pic_mode="$withval"
7048else
7049  pic_mode=default
7050fi
7051
7052
7053test -z "$pic_mode" && pic_mode=default
7054
7055
7056
7057
7058
7059
7060
7061  # Check whether --enable-fast-install was given.
7062if test "${enable_fast_install+set}" = set; then
7063  enableval=$enable_fast_install; p=${PACKAGE-default}
7064    case $enableval in
7065    yes) enable_fast_install=yes ;;
7066    no) enable_fast_install=no ;;
7067    *)
7068      enable_fast_install=no
7069      # Look at the argument we got.  We use all the common list separators.
7070      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7071      for pkg in $enableval; do
7072	IFS="$lt_save_ifs"
7073	if test "X$pkg" = "X$p"; then
7074	  enable_fast_install=yes
7075	fi
7076      done
7077      IFS="$lt_save_ifs"
7078      ;;
7079    esac
7080else
7081  enable_fast_install=yes
7082fi
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094# This can be used to rebuild libtool when needed
7095LIBTOOL_DEPS="$ltmain"
7096
7097# Always use our own libtool.
7098LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124test -z "$LN_S" && LN_S="ln -s"
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139if test -n "${ZSH_VERSION+set}" ; then
7140   setopt NO_GLOB_SUBST
7141fi
7142
7143{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7144$as_echo_n "checking for objdir... " >&6; }
7145if test "${lt_cv_objdir+set}" = set; then
7146  $as_echo_n "(cached) " >&6
7147else
7148  rm -f .libs 2>/dev/null
7149mkdir .libs 2>/dev/null
7150if test -d .libs; then
7151  lt_cv_objdir=.libs
7152else
7153  # MS-DOS does not allow filenames that begin with a dot.
7154  lt_cv_objdir=_libs
7155fi
7156rmdir .libs 2>/dev/null
7157fi
7158{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7159$as_echo "$lt_cv_objdir" >&6; }
7160objdir=$lt_cv_objdir
7161
7162
7163
7164
7165
7166cat >>confdefs.h <<_ACEOF
7167#define LT_OBJDIR "$lt_cv_objdir/"
7168_ACEOF
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186case $host_os in
7187aix3*)
7188  # AIX sometimes has problems with the GCC collect2 program.  For some
7189  # reason, if we set the COLLECT_NAMES environment variable, the problems
7190  # vanish in a puff of smoke.
7191  if test "X${COLLECT_NAMES+set}" != Xset; then
7192    COLLECT_NAMES=
7193    export COLLECT_NAMES
7194  fi
7195  ;;
7196esac
7197
7198# Sed substitution that helps us do robust quoting.  It backslashifies
7199# metacharacters that are still active within double-quoted strings.
7200sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7201
7202# Same as above, but do not quote variable references.
7203double_quote_subst='s/\(["`\\]\)/\\\1/g'
7204
7205# Sed substitution to delay expansion of an escaped shell variable in a
7206# double_quote_subst'ed string.
7207delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7208
7209# Sed substitution to delay expansion of an escaped single quote.
7210delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7211
7212# Sed substitution to avoid accidental globbing in evaled expressions
7213no_glob_subst='s/\*/\\\*/g'
7214
7215# Global variables:
7216ofile=libtool
7217can_build_shared=yes
7218
7219# All known linkers require a `.a' archive for static linking (except MSVC,
7220# which needs '.lib').
7221libext=a
7222
7223with_gnu_ld="$lt_cv_prog_gnu_ld"
7224
7225old_CC="$CC"
7226old_CFLAGS="$CFLAGS"
7227
7228# Set sane defaults for various variables
7229test -z "$CC" && CC=cc
7230test -z "$LTCC" && LTCC=$CC
7231test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7232test -z "$LD" && LD=ld
7233test -z "$ac_objext" && ac_objext=o
7234
7235for cc_temp in $compiler""; do
7236  case $cc_temp in
7237    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7238    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7239    \-*) ;;
7240    *) break;;
7241  esac
7242done
7243cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7244
7245
7246# Only perform the check for file, if the check method requires it
7247test -z "$MAGIC_CMD" && MAGIC_CMD=file
7248case $deplibs_check_method in
7249file_magic*)
7250  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7251    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7252$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7253if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7254  $as_echo_n "(cached) " >&6
7255else
7256  case $MAGIC_CMD in
7257[\\/*] |  ?:[\\/]*)
7258  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7259  ;;
7260*)
7261  lt_save_MAGIC_CMD="$MAGIC_CMD"
7262  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7263  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7264  for ac_dir in $ac_dummy; do
7265    IFS="$lt_save_ifs"
7266    test -z "$ac_dir" && ac_dir=.
7267    if test -f $ac_dir/${ac_tool_prefix}file; then
7268      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7269      if test -n "$file_magic_test_file"; then
7270	case $deplibs_check_method in
7271	"file_magic "*)
7272	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7273	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7274	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7275	    $EGREP "$file_magic_regex" > /dev/null; then
7276	    :
7277	  else
7278	    cat <<_LT_EOF 1>&2
7279
7280*** Warning: the command libtool uses to detect shared libraries,
7281*** $file_magic_cmd, produces output that libtool cannot recognize.
7282*** The result is that libtool may fail to recognize shared libraries
7283*** as such.  This will affect the creation of libtool libraries that
7284*** depend on shared libraries, but programs linked with such libtool
7285*** libraries will work regardless of this problem.  Nevertheless, you
7286*** may want to report the problem to your system manager and/or to
7287*** bug-libtool@gnu.org
7288
7289_LT_EOF
7290	  fi ;;
7291	esac
7292      fi
7293      break
7294    fi
7295  done
7296  IFS="$lt_save_ifs"
7297  MAGIC_CMD="$lt_save_MAGIC_CMD"
7298  ;;
7299esac
7300fi
7301
7302MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7303if test -n "$MAGIC_CMD"; then
7304  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7305$as_echo "$MAGIC_CMD" >&6; }
7306else
7307  { $as_echo "$as_me:$LINENO: result: no" >&5
7308$as_echo "no" >&6; }
7309fi
7310
7311
7312
7313
7314
7315if test -z "$lt_cv_path_MAGIC_CMD"; then
7316  if test -n "$ac_tool_prefix"; then
7317    { $as_echo "$as_me:$LINENO: checking for file" >&5
7318$as_echo_n "checking for file... " >&6; }
7319if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7320  $as_echo_n "(cached) " >&6
7321else
7322  case $MAGIC_CMD in
7323[\\/*] |  ?:[\\/]*)
7324  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7325  ;;
7326*)
7327  lt_save_MAGIC_CMD="$MAGIC_CMD"
7328  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7330  for ac_dir in $ac_dummy; do
7331    IFS="$lt_save_ifs"
7332    test -z "$ac_dir" && ac_dir=.
7333    if test -f $ac_dir/file; then
7334      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7335      if test -n "$file_magic_test_file"; then
7336	case $deplibs_check_method in
7337	"file_magic "*)
7338	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7339	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7340	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7341	    $EGREP "$file_magic_regex" > /dev/null; then
7342	    :
7343	  else
7344	    cat <<_LT_EOF 1>&2
7345
7346*** Warning: the command libtool uses to detect shared libraries,
7347*** $file_magic_cmd, produces output that libtool cannot recognize.
7348*** The result is that libtool may fail to recognize shared libraries
7349*** as such.  This will affect the creation of libtool libraries that
7350*** depend on shared libraries, but programs linked with such libtool
7351*** libraries will work regardless of this problem.  Nevertheless, you
7352*** may want to report the problem to your system manager and/or to
7353*** bug-libtool@gnu.org
7354
7355_LT_EOF
7356	  fi ;;
7357	esac
7358      fi
7359      break
7360    fi
7361  done
7362  IFS="$lt_save_ifs"
7363  MAGIC_CMD="$lt_save_MAGIC_CMD"
7364  ;;
7365esac
7366fi
7367
7368MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369if test -n "$MAGIC_CMD"; then
7370  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7371$as_echo "$MAGIC_CMD" >&6; }
7372else
7373  { $as_echo "$as_me:$LINENO: result: no" >&5
7374$as_echo "no" >&6; }
7375fi
7376
7377
7378  else
7379    MAGIC_CMD=:
7380  fi
7381fi
7382
7383  fi
7384  ;;
7385esac
7386
7387# Use C for the default configuration in the libtool script
7388
7389lt_save_CC="$CC"
7390ac_ext=c
7391ac_cpp='$CPP $CPPFLAGS'
7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396
7397# Source file extension for C test sources.
7398ac_ext=c
7399
7400# Object file extension for compiled C test sources.
7401objext=o
7402objext=$objext
7403
7404# Code to be used in simple compile tests
7405lt_simple_compile_test_code="int some_variable = 0;"
7406
7407# Code to be used in simple link tests
7408lt_simple_link_test_code='int main(){return(0);}'
7409
7410
7411
7412
7413
7414
7415
7416# If no C compiler was specified, use CC.
7417LTCC=${LTCC-"$CC"}
7418
7419# If no C compiler flags were specified, use CFLAGS.
7420LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7421
7422# Allow CC to be a program name with arguments.
7423compiler=$CC
7424
7425# Save the default compiler, since it gets overwritten when the other
7426# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7427compiler_DEFAULT=$CC
7428
7429# save warnings/boilerplate of simple test code
7430ac_outfile=conftest.$ac_objext
7431echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7432eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7433_lt_compiler_boilerplate=`cat conftest.err`
7434$RM conftest*
7435
7436ac_outfile=conftest.$ac_objext
7437echo "$lt_simple_link_test_code" >conftest.$ac_ext
7438eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7439_lt_linker_boilerplate=`cat conftest.err`
7440$RM -r conftest*
7441
7442
7443if test -n "$compiler"; then
7444
7445lt_prog_compiler_no_builtin_flag=
7446
7447if test "$GCC" = yes; then
7448  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7449
7450  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7451$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7453  $as_echo_n "(cached) " >&6
7454else
7455  lt_cv_prog_compiler_rtti_exceptions=no
7456   ac_outfile=conftest.$ac_objext
7457   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7458   lt_compiler_flag="-fno-rtti -fno-exceptions"
7459   # Insert the option either (1) after the last *FLAGS variable, or
7460   # (2) before a word containing "conftest.", or (3) at the end.
7461   # Note that $ac_compile itself does not contain backslashes and begins
7462   # with a dollar sign (not a hyphen), so the echo should work correctly.
7463   # The option is referenced via a variable to avoid confusing sed.
7464   lt_compile=`echo "$ac_compile" | $SED \
7465   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7466   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7467   -e 's:$: $lt_compiler_flag:'`
7468   (eval echo "\"\$as_me:7468: $lt_compile\"" >&5)
7469   (eval "$lt_compile" 2>conftest.err)
7470   ac_status=$?
7471   cat conftest.err >&5
7472   echo "$as_me:7472: \$? = $ac_status" >&5
7473   if (exit $ac_status) && test -s "$ac_outfile"; then
7474     # The compiler can only warn and ignore the option if not recognized
7475     # So say no if there are warnings other than the usual output.
7476     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7477     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7478     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7479       lt_cv_prog_compiler_rtti_exceptions=yes
7480     fi
7481   fi
7482   $RM conftest*
7483
7484fi
7485{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7486$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7487
7488if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7489    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7490else
7491    :
7492fi
7493
7494fi
7495
7496
7497
7498
7499
7500
7501  lt_prog_compiler_wl=
7502lt_prog_compiler_pic=
7503lt_prog_compiler_static=
7504
7505{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7506$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7507
7508  if test "$GCC" = yes; then
7509    lt_prog_compiler_wl='-Wl,'
7510    lt_prog_compiler_static='-static'
7511
7512    case $host_os in
7513      aix*)
7514      # All AIX code is PIC.
7515      if test "$host_cpu" = ia64; then
7516	# AIX 5 now supports IA64 processor
7517	lt_prog_compiler_static='-Bstatic'
7518      fi
7519      ;;
7520
7521    amigaos*)
7522      case $host_cpu in
7523      powerpc)
7524            # see comment about AmigaOS4 .so support
7525            lt_prog_compiler_pic='-fPIC'
7526        ;;
7527      m68k)
7528            # FIXME: we need at least 68020 code to build shared libraries, but
7529            # adding the `-m68020' flag to GCC prevents building anything better,
7530            # like `-m68040'.
7531            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7532        ;;
7533      esac
7534      ;;
7535
7536    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7537      # PIC is the default for these OSes.
7538      ;;
7539
7540    mingw* | cygwin* | pw32* | os2* | cegcc*)
7541      # This hack is so that the source file can tell whether it is being
7542      # built for inclusion in a dll (and should export symbols for example).
7543      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7544      # (--disable-auto-import) libraries
7545      lt_prog_compiler_pic='-DDLL_EXPORT'
7546      ;;
7547
7548    darwin* | rhapsody*)
7549      # PIC is the default on this platform
7550      # Common symbols not allowed in MH_DYLIB files
7551      lt_prog_compiler_pic='-fno-common'
7552      ;;
7553
7554    hpux*)
7555      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7556      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7557      # sets the default TLS model and affects inlining.
7558      case $host_cpu in
7559      hppa*64*)
7560	# +Z the default
7561	;;
7562      *)
7563	lt_prog_compiler_pic='-fPIC'
7564	;;
7565      esac
7566      ;;
7567
7568    interix[3-9]*)
7569      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7570      # Instead, we relocate shared libraries at runtime.
7571      ;;
7572
7573    msdosdjgpp*)
7574      # Just because we use GCC doesn't mean we suddenly get shared libraries
7575      # on systems that don't support them.
7576      lt_prog_compiler_can_build_shared=no
7577      enable_shared=no
7578      ;;
7579
7580    *nto* | *qnx*)
7581      # QNX uses GNU C++, but need to define -shared option too, otherwise
7582      # it will coredump.
7583      lt_prog_compiler_pic='-fPIC -shared'
7584      ;;
7585
7586    sysv4*MP*)
7587      if test -d /usr/nec; then
7588	lt_prog_compiler_pic=-Kconform_pic
7589      fi
7590      ;;
7591
7592    *)
7593      lt_prog_compiler_pic='-fPIC'
7594      ;;
7595    esac
7596  else
7597    # PORTME Check for flag to pass linker flags through the system compiler.
7598    case $host_os in
7599    aix*)
7600      lt_prog_compiler_wl='-Wl,'
7601      if test "$host_cpu" = ia64; then
7602	# AIX 5 now supports IA64 processor
7603	lt_prog_compiler_static='-Bstatic'
7604      else
7605	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7606      fi
7607      ;;
7608
7609    mingw* | cygwin* | pw32* | os2* | cegcc*)
7610      # This hack is so that the source file can tell whether it is being
7611      # built for inclusion in a dll (and should export symbols for example).
7612      lt_prog_compiler_pic='-DDLL_EXPORT'
7613      ;;
7614
7615    hpux9* | hpux10* | hpux11*)
7616      lt_prog_compiler_wl='-Wl,'
7617      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7618      # not for PA HP-UX.
7619      case $host_cpu in
7620      hppa*64*|ia64*)
7621	# +Z the default
7622	;;
7623      *)
7624	lt_prog_compiler_pic='+Z'
7625	;;
7626      esac
7627      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7628      lt_prog_compiler_static='${wl}-a ${wl}archive'
7629      ;;
7630
7631    irix5* | irix6* | nonstopux*)
7632      lt_prog_compiler_wl='-Wl,'
7633      # PIC (with -KPIC) is the default.
7634      lt_prog_compiler_static='-non_shared'
7635      ;;
7636
7637    linux* | k*bsd*-gnu)
7638      case $cc_basename in
7639      # old Intel for x86_64 which still supported -KPIC.
7640      ecc*)
7641	lt_prog_compiler_wl='-Wl,'
7642	lt_prog_compiler_pic='-KPIC'
7643	lt_prog_compiler_static='-static'
7644        ;;
7645      # icc used to be incompatible with GCC.
7646      # ICC 10 doesn't accept -KPIC any more.
7647      icc* | ifort*)
7648	lt_prog_compiler_wl='-Wl,'
7649	lt_prog_compiler_pic='-fPIC'
7650	lt_prog_compiler_static='-static'
7651        ;;
7652      # Lahey Fortran 8.1.
7653      lf95*)
7654	lt_prog_compiler_wl='-Wl,'
7655	lt_prog_compiler_pic='--shared'
7656	lt_prog_compiler_static='--static'
7657	;;
7658      pgcc* | pgf77* | pgf90* | pgf95*)
7659        # Portland Group compilers (*not* the Pentium gcc compiler,
7660	# which looks to be a dead project)
7661	lt_prog_compiler_wl='-Wl,'
7662	lt_prog_compiler_pic='-fpic'
7663	lt_prog_compiler_static='-Bstatic'
7664        ;;
7665      ccc*)
7666        lt_prog_compiler_wl='-Wl,'
7667        # All Alpha code is PIC.
7668        lt_prog_compiler_static='-non_shared'
7669        ;;
7670      xl*)
7671	# IBM XL C 8.0/Fortran 10.1 on PPC
7672	lt_prog_compiler_wl='-Wl,'
7673	lt_prog_compiler_pic='-qpic'
7674	lt_prog_compiler_static='-qstaticlink'
7675	;;
7676      *)
7677	case `$CC -V 2>&1 | sed 5q` in
7678	*Sun\ C*)
7679	  # Sun C 5.9
7680	  lt_prog_compiler_pic='-KPIC'
7681	  lt_prog_compiler_static='-Bstatic'
7682	  lt_prog_compiler_wl='-Wl,'
7683	  ;;
7684	*Sun\ F*)
7685	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7686	  lt_prog_compiler_pic='-KPIC'
7687	  lt_prog_compiler_static='-Bstatic'
7688	  lt_prog_compiler_wl=''
7689	  ;;
7690	esac
7691	;;
7692      esac
7693      ;;
7694
7695    newsos6)
7696      lt_prog_compiler_pic='-KPIC'
7697      lt_prog_compiler_static='-Bstatic'
7698      ;;
7699
7700    *nto* | *qnx*)
7701      # QNX uses GNU C++, but need to define -shared option too, otherwise
7702      # it will coredump.
7703      lt_prog_compiler_pic='-fPIC -shared'
7704      ;;
7705
7706    osf3* | osf4* | osf5*)
7707      lt_prog_compiler_wl='-Wl,'
7708      # All OSF/1 code is PIC.
7709      lt_prog_compiler_static='-non_shared'
7710      ;;
7711
7712    rdos*)
7713      lt_prog_compiler_static='-non_shared'
7714      ;;
7715
7716    solaris*)
7717      lt_prog_compiler_pic='-KPIC'
7718      lt_prog_compiler_static='-Bstatic'
7719      case $cc_basename in
7720      f77* | f90* | f95*)
7721	lt_prog_compiler_wl='-Qoption ld ';;
7722      *)
7723	lt_prog_compiler_wl='-Wl,';;
7724      esac
7725      ;;
7726
7727    sunos4*)
7728      lt_prog_compiler_wl='-Qoption ld '
7729      lt_prog_compiler_pic='-PIC'
7730      lt_prog_compiler_static='-Bstatic'
7731      ;;
7732
7733    sysv4 | sysv4.2uw2* | sysv4.3*)
7734      lt_prog_compiler_wl='-Wl,'
7735      lt_prog_compiler_pic='-KPIC'
7736      lt_prog_compiler_static='-Bstatic'
7737      ;;
7738
7739    sysv4*MP*)
7740      if test -d /usr/nec ;then
7741	lt_prog_compiler_pic='-Kconform_pic'
7742	lt_prog_compiler_static='-Bstatic'
7743      fi
7744      ;;
7745
7746    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7747      lt_prog_compiler_wl='-Wl,'
7748      lt_prog_compiler_pic='-KPIC'
7749      lt_prog_compiler_static='-Bstatic'
7750      ;;
7751
7752    unicos*)
7753      lt_prog_compiler_wl='-Wl,'
7754      lt_prog_compiler_can_build_shared=no
7755      ;;
7756
7757    uts4*)
7758      lt_prog_compiler_pic='-pic'
7759      lt_prog_compiler_static='-Bstatic'
7760      ;;
7761
7762    *)
7763      lt_prog_compiler_can_build_shared=no
7764      ;;
7765    esac
7766  fi
7767
7768case $host_os in
7769  # For platforms which do not support PIC, -DPIC is meaningless:
7770  *djgpp*)
7771    lt_prog_compiler_pic=
7772    ;;
7773  *)
7774    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7775    ;;
7776esac
7777{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7778$as_echo "$lt_prog_compiler_pic" >&6; }
7779
7780
7781
7782
7783
7784
7785#
7786# Check to make sure the PIC flag actually works.
7787#
7788if test -n "$lt_prog_compiler_pic"; then
7789  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7790$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7791if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7792  $as_echo_n "(cached) " >&6
7793else
7794  lt_cv_prog_compiler_pic_works=no
7795   ac_outfile=conftest.$ac_objext
7796   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7797   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7798   # Insert the option either (1) after the last *FLAGS variable, or
7799   # (2) before a word containing "conftest.", or (3) at the end.
7800   # Note that $ac_compile itself does not contain backslashes and begins
7801   # with a dollar sign (not a hyphen), so the echo should work correctly.
7802   # The option is referenced via a variable to avoid confusing sed.
7803   lt_compile=`echo "$ac_compile" | $SED \
7804   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806   -e 's:$: $lt_compiler_flag:'`
7807   (eval echo "\"\$as_me:7807: $lt_compile\"" >&5)
7808   (eval "$lt_compile" 2>conftest.err)
7809   ac_status=$?
7810   cat conftest.err >&5
7811   echo "$as_me:7811: \$? = $ac_status" >&5
7812   if (exit $ac_status) && test -s "$ac_outfile"; then
7813     # The compiler can only warn and ignore the option if not recognized
7814     # So say no if there are warnings other than the usual output.
7815     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7816     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7817     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7818       lt_cv_prog_compiler_pic_works=yes
7819     fi
7820   fi
7821   $RM conftest*
7822
7823fi
7824{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7825$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7826
7827if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7828    case $lt_prog_compiler_pic in
7829     "" | " "*) ;;
7830     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7831     esac
7832else
7833    lt_prog_compiler_pic=
7834     lt_prog_compiler_can_build_shared=no
7835fi
7836
7837fi
7838
7839
7840
7841
7842
7843
7844#
7845# Check to make sure the static flag actually works.
7846#
7847wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7848{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7849$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7850if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7851  $as_echo_n "(cached) " >&6
7852else
7853  lt_cv_prog_compiler_static_works=no
7854   save_LDFLAGS="$LDFLAGS"
7855   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7856   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7857   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7858     # The linker can only warn and ignore the option if not recognized
7859     # So say no if there are warnings
7860     if test -s conftest.err; then
7861       # Append any errors to the config.log.
7862       cat conftest.err 1>&5
7863       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7864       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7865       if diff conftest.exp conftest.er2 >/dev/null; then
7866         lt_cv_prog_compiler_static_works=yes
7867       fi
7868     else
7869       lt_cv_prog_compiler_static_works=yes
7870     fi
7871   fi
7872   $RM -r conftest*
7873   LDFLAGS="$save_LDFLAGS"
7874
7875fi
7876{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7877$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7878
7879if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7880    :
7881else
7882    lt_prog_compiler_static=
7883fi
7884
7885
7886
7887
7888
7889
7890
7891  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7893if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7894  $as_echo_n "(cached) " >&6
7895else
7896  lt_cv_prog_compiler_c_o=no
7897   $RM -r conftest 2>/dev/null
7898   mkdir conftest
7899   cd conftest
7900   mkdir out
7901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7902
7903   lt_compiler_flag="-o out/conftest2.$ac_objext"
7904   # Insert the option either (1) after the last *FLAGS variable, or
7905   # (2) before a word containing "conftest.", or (3) at the end.
7906   # Note that $ac_compile itself does not contain backslashes and begins
7907   # with a dollar sign (not a hyphen), so the echo should work correctly.
7908   lt_compile=`echo "$ac_compile" | $SED \
7909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911   -e 's:$: $lt_compiler_flag:'`
7912   (eval echo "\"\$as_me:7912: $lt_compile\"" >&5)
7913   (eval "$lt_compile" 2>out/conftest.err)
7914   ac_status=$?
7915   cat out/conftest.err >&5
7916   echo "$as_me:7916: \$? = $ac_status" >&5
7917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7918   then
7919     # The compiler can only warn and ignore the option if not recognized
7920     # So say no if there are warnings
7921     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7922     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7923     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7924       lt_cv_prog_compiler_c_o=yes
7925     fi
7926   fi
7927   chmod u+w . 2>&5
7928   $RM conftest*
7929   # SGI C++ compiler will create directory out/ii_files/ for
7930   # template instantiation
7931   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7932   $RM out/* && rmdir out
7933   cd ..
7934   $RM -r conftest
7935   $RM conftest*
7936
7937fi
7938{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7939$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7940
7941
7942
7943
7944
7945
7946  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7948if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7949  $as_echo_n "(cached) " >&6
7950else
7951  lt_cv_prog_compiler_c_o=no
7952   $RM -r conftest 2>/dev/null
7953   mkdir conftest
7954   cd conftest
7955   mkdir out
7956   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7957
7958   lt_compiler_flag="-o out/conftest2.$ac_objext"
7959   # Insert the option either (1) after the last *FLAGS variable, or
7960   # (2) before a word containing "conftest.", or (3) at the end.
7961   # Note that $ac_compile itself does not contain backslashes and begins
7962   # with a dollar sign (not a hyphen), so the echo should work correctly.
7963   lt_compile=`echo "$ac_compile" | $SED \
7964   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7966   -e 's:$: $lt_compiler_flag:'`
7967   (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
7968   (eval "$lt_compile" 2>out/conftest.err)
7969   ac_status=$?
7970   cat out/conftest.err >&5
7971   echo "$as_me:7971: \$? = $ac_status" >&5
7972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7973   then
7974     # The compiler can only warn and ignore the option if not recognized
7975     # So say no if there are warnings
7976     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7977     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7978     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7979       lt_cv_prog_compiler_c_o=yes
7980     fi
7981   fi
7982   chmod u+w . 2>&5
7983   $RM conftest*
7984   # SGI C++ compiler will create directory out/ii_files/ for
7985   # template instantiation
7986   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7987   $RM out/* && rmdir out
7988   cd ..
7989   $RM -r conftest
7990   $RM conftest*
7991
7992fi
7993{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7994$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7995
7996
7997
7998
7999hard_links="nottested"
8000if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8001  # do not overwrite the value of need_locks provided by the user
8002  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8003$as_echo_n "checking if we can lock with hard links... " >&6; }
8004  hard_links=yes
8005  $RM conftest*
8006  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007  touch conftest.a
8008  ln conftest.a conftest.b 2>&5 || hard_links=no
8009  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8010  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8011$as_echo "$hard_links" >&6; }
8012  if test "$hard_links" = no; then
8013    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8014$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8015    need_locks=warn
8016  fi
8017else
8018  need_locks=no
8019fi
8020
8021
8022
8023
8024
8025
8026  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8028
8029  runpath_var=
8030  allow_undefined_flag=
8031  always_export_symbols=no
8032  archive_cmds=
8033  archive_expsym_cmds=
8034  compiler_needs_object=no
8035  enable_shared_with_static_runtimes=no
8036  export_dynamic_flag_spec=
8037  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8038  hardcode_automatic=no
8039  hardcode_direct=no
8040  hardcode_direct_absolute=no
8041  hardcode_libdir_flag_spec=
8042  hardcode_libdir_flag_spec_ld=
8043  hardcode_libdir_separator=
8044  hardcode_minus_L=no
8045  hardcode_shlibpath_var=unsupported
8046  inherit_rpath=no
8047  link_all_deplibs=unknown
8048  module_cmds=
8049  module_expsym_cmds=
8050  old_archive_from_new_cmds=
8051  old_archive_from_expsyms_cmds=
8052  thread_safe_flag_spec=
8053  whole_archive_flag_spec=
8054  # include_expsyms should be a list of space-separated symbols to be *always*
8055  # included in the symbol list
8056  include_expsyms=
8057  # exclude_expsyms can be an extended regexp of symbols to exclude
8058  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8059  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8060  # as well as any symbol that contains `d'.
8061  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8062  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8063  # platforms (ab)use it in PIC code, but their linkers get confused if
8064  # the symbol is explicitly referenced.  Since portable code cannot
8065  # rely on this symbol name, it's probably fine to never include it in
8066  # preloaded symbol tables.
8067  # Exclude shared library initialization/finalization symbols.
8068  extract_expsyms_cmds=
8069
8070  case $host_os in
8071  cygwin* | mingw* | pw32* | cegcc*)
8072    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8073    # When not using gcc, we currently assume that we are using
8074    # Microsoft Visual C++.
8075    if test "$GCC" != yes; then
8076      with_gnu_ld=no
8077    fi
8078    ;;
8079  interix*)
8080    # we just hope/assume this is gcc and not c89 (= MSVC++)
8081    with_gnu_ld=yes
8082    ;;
8083  openbsd*)
8084    with_gnu_ld=no
8085    ;;
8086  esac
8087
8088  ld_shlibs=yes
8089  if test "$with_gnu_ld" = yes; then
8090    # If archive_cmds runs LD, not CC, wlarc should be empty
8091    wlarc='${wl}'
8092
8093    # Set some defaults for GNU ld with shared library support. These
8094    # are reset later if shared libraries are not supported. Putting them
8095    # here allows them to be overridden if necessary.
8096    runpath_var=LD_RUN_PATH
8097    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8098    export_dynamic_flag_spec='${wl}--export-dynamic'
8099    # ancient GNU ld didn't support --whole-archive et. al.
8100    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8101      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8102    else
8103      whole_archive_flag_spec=
8104    fi
8105    supports_anon_versioning=no
8106    case `$LD -v 2>&1` in
8107      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8108      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8109      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8110      *\ 2.11.*) ;; # other 2.11 versions
8111      *) supports_anon_versioning=yes ;;
8112    esac
8113
8114    # See if GNU ld supports shared libraries.
8115    case $host_os in
8116    aix[3-9]*)
8117      # On AIX/PPC, the GNU linker is very broken
8118      if test "$host_cpu" != ia64; then
8119	ld_shlibs=no
8120	cat <<_LT_EOF 1>&2
8121
8122*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8123*** to be unable to reliably create shared libraries on AIX.
8124*** Therefore, libtool is disabling shared libraries support.  If you
8125*** really care for shared libraries, you may want to modify your PATH
8126*** so that a non-GNU linker is found, and then restart.
8127
8128_LT_EOF
8129      fi
8130      ;;
8131
8132    amigaos*)
8133      case $host_cpu in
8134      powerpc)
8135            # see comment about AmigaOS4 .so support
8136            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137            archive_expsym_cmds=''
8138        ;;
8139      m68k)
8140            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)'
8141            hardcode_libdir_flag_spec='-L$libdir'
8142            hardcode_minus_L=yes
8143        ;;
8144      esac
8145      ;;
8146
8147    beos*)
8148      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8149	allow_undefined_flag=unsupported
8150	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8151	# support --undefined.  This deserves some investigation.  FIXME
8152	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153      else
8154	ld_shlibs=no
8155      fi
8156      ;;
8157
8158    cygwin* | mingw* | pw32* | cegcc*)
8159      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8160      # as there is no search path for DLLs.
8161      hardcode_libdir_flag_spec='-L$libdir'
8162      allow_undefined_flag=unsupported
8163      always_export_symbols=no
8164      enable_shared_with_static_runtimes=yes
8165      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8166
8167      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8168        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8169	# If the export-symbols file already is a .def file (1st line
8170	# is EXPORTS), use it as is; otherwise, prepend...
8171	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8172	  cp $export_symbols $output_objdir/$soname.def;
8173	else
8174	  echo EXPORTS > $output_objdir/$soname.def;
8175	  cat $export_symbols >> $output_objdir/$soname.def;
8176	fi~
8177	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178      else
8179	ld_shlibs=no
8180      fi
8181      ;;
8182
8183    interix[3-9]*)
8184      hardcode_direct=no
8185      hardcode_shlibpath_var=no
8186      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8187      export_dynamic_flag_spec='${wl}-E'
8188      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8189      # Instead, shared libraries are loaded at an image base (0x10000000 by
8190      # default) and relocated if they conflict, which is a slow very memory
8191      # consuming and fragmenting process.  To avoid this, we pick a random,
8192      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8193      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8194      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8195      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'
8196      ;;
8197
8198    gnu* | linux* | tpf* | k*bsd*-gnu)
8199      tmp_diet=no
8200      if test "$host_os" = linux-dietlibc; then
8201	case $cc_basename in
8202	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8203	esac
8204      fi
8205      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8206	 && test "$tmp_diet" = no
8207      then
8208	tmp_addflag=
8209	tmp_sharedflag='-shared'
8210	case $cc_basename,$host_cpu in
8211        pgcc*)				# Portland Group C compiler
8212	  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'
8213	  tmp_addflag=' $pic_flag'
8214	  ;;
8215	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8216	  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'
8217	  tmp_addflag=' $pic_flag -Mnomain' ;;
8218	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8219	  tmp_addflag=' -i_dynamic' ;;
8220	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8221	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8222	ifc* | ifort*)			# Intel Fortran compiler
8223	  tmp_addflag=' -nofor_main' ;;
8224	lf95*)				# Lahey Fortran 8.1
8225	  whole_archive_flag_spec=
8226	  tmp_sharedflag='--shared' ;;
8227	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8228	  tmp_sharedflag='-qmkshrobj'
8229	  tmp_addflag= ;;
8230	esac
8231	case `$CC -V 2>&1 | sed 5q` in
8232	*Sun\ C*)			# Sun C 5.9
8233	  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'
8234	  compiler_needs_object=yes
8235	  tmp_sharedflag='-G' ;;
8236	*Sun\ F*)			# Sun Fortran 8.3
8237	  tmp_sharedflag='-G' ;;
8238	esac
8239	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240
8241        if test "x$supports_anon_versioning" = xyes; then
8242          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8243	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8244	    echo "local: *; };" >> $output_objdir/$libname.ver~
8245	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8246        fi
8247
8248	case $cc_basename in
8249	xlf*)
8250	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8251	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8252	  hardcode_libdir_flag_spec=
8253	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8254	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8255	  if test "x$supports_anon_versioning" = xyes; then
8256	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8257	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8258	      echo "local: *; };" >> $output_objdir/$libname.ver~
8259	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8260	  fi
8261	  ;;
8262	esac
8263      else
8264        ld_shlibs=no
8265      fi
8266      ;;
8267
8268    netbsd*)
8269      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8270	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8271	wlarc=
8272      else
8273	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275      fi
8276      ;;
8277
8278    solaris*)
8279      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8280	ld_shlibs=no
8281	cat <<_LT_EOF 1>&2
8282
8283*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8284*** create shared libraries on Solaris systems.  Therefore, libtool
8285*** is disabling shared libraries support.  We urge you to upgrade GNU
8286*** binutils to release 2.9.1 or newer.  Another option is to modify
8287*** your PATH or compiler configuration so that the native linker is
8288*** used, and then restart.
8289
8290_LT_EOF
8291      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8292	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294      else
8295	ld_shlibs=no
8296      fi
8297      ;;
8298
8299    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8300      case `$LD -v 2>&1` in
8301        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8302	ld_shlibs=no
8303	cat <<_LT_EOF 1>&2
8304
8305*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8306*** reliably create shared libraries on SCO systems.  Therefore, libtool
8307*** is disabling shared libraries support.  We urge you to upgrade GNU
8308*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8309*** your PATH or compiler configuration so that the native linker is
8310*** used, and then restart.
8311
8312_LT_EOF
8313	;;
8314	*)
8315	  # For security reasons, it is highly recommended that you always
8316	  # use absolute paths for naming shared libraries, and exclude the
8317	  # DT_RUNPATH tag from executables and libraries.  But doing so
8318	  # requires that you compile everything twice, which is a pain.
8319	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8320	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8322	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8323	  else
8324	    ld_shlibs=no
8325	  fi
8326	;;
8327      esac
8328      ;;
8329
8330    sunos4*)
8331      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8332      wlarc=
8333      hardcode_direct=yes
8334      hardcode_shlibpath_var=no
8335      ;;
8336
8337    *)
8338      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8339	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8340	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8341      else
8342	ld_shlibs=no
8343      fi
8344      ;;
8345    esac
8346
8347    if test "$ld_shlibs" = no; then
8348      runpath_var=
8349      hardcode_libdir_flag_spec=
8350      export_dynamic_flag_spec=
8351      whole_archive_flag_spec=
8352    fi
8353  else
8354    # PORTME fill in a description of your system's linker (not GNU ld)
8355    case $host_os in
8356    aix3*)
8357      allow_undefined_flag=unsupported
8358      always_export_symbols=yes
8359      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'
8360      # Note: this linker hardcodes the directories in LIBPATH if there
8361      # are no directories specified by -L.
8362      hardcode_minus_L=yes
8363      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8364	# Neither direct hardcoding nor static linking is supported with a
8365	# broken collect2.
8366	hardcode_direct=unsupported
8367      fi
8368      ;;
8369
8370    aix[4-9]*)
8371      if test "$host_cpu" = ia64; then
8372	# On IA64, the linker does run time linking by default, so we don't
8373	# have to do anything special.
8374	aix_use_runtimelinking=no
8375	exp_sym_flag='-Bexport'
8376	no_entry_flag=""
8377      else
8378	# If we're using GNU nm, then we don't want the "-C" option.
8379	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8380	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8381	  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'
8382	else
8383	  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'
8384	fi
8385	aix_use_runtimelinking=no
8386
8387	# Test if we are trying to use run time linking or normal
8388	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8389	# need to do runtime linking.
8390	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8391	  for ld_flag in $LDFLAGS; do
8392	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8393	    aix_use_runtimelinking=yes
8394	    break
8395	  fi
8396	  done
8397	  ;;
8398	esac
8399
8400	exp_sym_flag='-bexport'
8401	no_entry_flag='-bnoentry'
8402      fi
8403
8404      # When large executables or shared objects are built, AIX ld can
8405      # have problems creating the table of contents.  If linking a library
8406      # or program results in "error TOC overflow" add -mminimal-toc to
8407      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8408      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8409
8410      archive_cmds=''
8411      hardcode_direct=yes
8412      hardcode_direct_absolute=yes
8413      hardcode_libdir_separator=':'
8414      link_all_deplibs=yes
8415      file_list_spec='${wl}-f,'
8416
8417      if test "$GCC" = yes; then
8418	case $host_os in aix4.[012]|aix4.[012].*)
8419	# We only want to do this on AIX 4.2 and lower, the check
8420	# below for broken collect2 doesn't work under 4.3+
8421	  collect2name=`${CC} -print-prog-name=collect2`
8422	  if test -f "$collect2name" &&
8423	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8424	  then
8425	  # We have reworked collect2
8426	  :
8427	  else
8428	  # We have old collect2
8429	  hardcode_direct=unsupported
8430	  # It fails to find uninstalled libraries when the uninstalled
8431	  # path is not listed in the libpath.  Setting hardcode_minus_L
8432	  # to unsupported forces relinking
8433	  hardcode_minus_L=yes
8434	  hardcode_libdir_flag_spec='-L$libdir'
8435	  hardcode_libdir_separator=
8436	  fi
8437	  ;;
8438	esac
8439	shared_flag='-shared'
8440	if test "$aix_use_runtimelinking" = yes; then
8441	  shared_flag="$shared_flag "'${wl}-G'
8442	fi
8443      else
8444	# not using gcc
8445	if test "$host_cpu" = ia64; then
8446	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8447	# chokes on -Wl,-G. The following line is correct:
8448	  shared_flag='-G'
8449	else
8450	  if test "$aix_use_runtimelinking" = yes; then
8451	    shared_flag='${wl}-G'
8452	  else
8453	    shared_flag='${wl}-bM:SRE'
8454	  fi
8455	fi
8456      fi
8457
8458      export_dynamic_flag_spec='${wl}-bexpall'
8459      # It seems that -bexpall does not export symbols beginning with
8460      # underscore (_), so it is better to generate a list of symbols to export.
8461      always_export_symbols=yes
8462      if test "$aix_use_runtimelinking" = yes; then
8463	# Warning - without using the other runtime loading flags (-brtl),
8464	# -berok will link without error, but may produce a broken library.
8465	allow_undefined_flag='-berok'
8466        # Determine the default libpath from the value encoded in an
8467        # empty executable.
8468        cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h.  */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h.  */
8474
8475int
8476main ()
8477{
8478
8479  ;
8480  return 0;
8481}
8482_ACEOF
8483rm -f conftest.$ac_objext conftest$ac_exeext
8484if { (ac_try="$ac_link"
8485case "(($ac_try" in
8486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487  *) ac_try_echo=$ac_try;;
8488esac
8489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490$as_echo "$ac_try_echo") >&5
8491  (eval "$ac_link") 2>conftest.er1
8492  ac_status=$?
8493  grep -v '^ *+' conftest.er1 >conftest.err
8494  rm -f conftest.er1
8495  cat conftest.err >&5
8496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497  (exit $ac_status); } && {
8498	 test -z "$ac_c_werror_flag" ||
8499	 test ! -s conftest.err
8500       } && test -s conftest$ac_exeext && {
8501	 test "$cross_compiling" = yes ||
8502	 $as_test_x conftest$ac_exeext
8503       }; then
8504
8505lt_aix_libpath_sed='
8506    /Import File Strings/,/^$/ {
8507	/^0/ {
8508	    s/^0  *\(.*\)$/\1/
8509	    p
8510	}
8511    }'
8512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513# Check for a 64-bit object if we didn't find anything.
8514if test -z "$aix_libpath"; then
8515  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8516fi
8517else
8518  $as_echo "$as_me: failed program was:" >&5
8519sed 's/^/| /' conftest.$ac_ext >&5
8520
8521
8522fi
8523
8524rm -rf conftest.dSYM
8525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8526      conftest$ac_exeext conftest.$ac_ext
8527if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8528
8529        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8530        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"
8531      else
8532	if test "$host_cpu" = ia64; then
8533	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8534	  allow_undefined_flag="-z nodefs"
8535	  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"
8536	else
8537	 # Determine the default libpath from the value encoded in an
8538	 # empty executable.
8539	 cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h.  */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h.  */
8545
8546int
8547main ()
8548{
8549
8550  ;
8551  return 0;
8552}
8553_ACEOF
8554rm -f conftest.$ac_objext conftest$ac_exeext
8555if { (ac_try="$ac_link"
8556case "(($ac_try" in
8557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558  *) ac_try_echo=$ac_try;;
8559esac
8560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561$as_echo "$ac_try_echo") >&5
8562  (eval "$ac_link") 2>conftest.er1
8563  ac_status=$?
8564  grep -v '^ *+' conftest.er1 >conftest.err
8565  rm -f conftest.er1
8566  cat conftest.err >&5
8567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); } && {
8569	 test -z "$ac_c_werror_flag" ||
8570	 test ! -s conftest.err
8571       } && test -s conftest$ac_exeext && {
8572	 test "$cross_compiling" = yes ||
8573	 $as_test_x conftest$ac_exeext
8574       }; then
8575
8576lt_aix_libpath_sed='
8577    /Import File Strings/,/^$/ {
8578	/^0/ {
8579	    s/^0  *\(.*\)$/\1/
8580	    p
8581	}
8582    }'
8583aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584# Check for a 64-bit object if we didn't find anything.
8585if test -z "$aix_libpath"; then
8586  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8587fi
8588else
8589  $as_echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592
8593fi
8594
8595rm -rf conftest.dSYM
8596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8597      conftest$ac_exeext conftest.$ac_ext
8598if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8599
8600	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8601	  # Warning - without using the other run time loading flags,
8602	  # -berok will link without error, but may produce a broken library.
8603	  no_undefined_flag=' ${wl}-bernotok'
8604	  allow_undefined_flag=' ${wl}-berok'
8605	  # Exported symbols can be pulled into shared objects from archives
8606	  whole_archive_flag_spec='$convenience'
8607	  archive_cmds_need_lc=yes
8608	  # This is similar to how AIX traditionally builds its shared libraries.
8609	  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'
8610	fi
8611      fi
8612      ;;
8613
8614    amigaos*)
8615      case $host_cpu in
8616      powerpc)
8617            # see comment about AmigaOS4 .so support
8618            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619            archive_expsym_cmds=''
8620        ;;
8621      m68k)
8622            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)'
8623            hardcode_libdir_flag_spec='-L$libdir'
8624            hardcode_minus_L=yes
8625        ;;
8626      esac
8627      ;;
8628
8629    bsdi[45]*)
8630      export_dynamic_flag_spec=-rdynamic
8631      ;;
8632
8633    cygwin* | mingw* | pw32* | cegcc*)
8634      # When not using gcc, we currently assume that we are using
8635      # Microsoft Visual C++.
8636      # hardcode_libdir_flag_spec is actually meaningless, as there is
8637      # no search path for DLLs.
8638      hardcode_libdir_flag_spec=' '
8639      allow_undefined_flag=unsupported
8640      # Tell ltmain to make .lib files, not .a files.
8641      libext=lib
8642      # Tell ltmain to make .dll files, not .so files.
8643      shrext_cmds=".dll"
8644      # FIXME: Setting linknames here is a bad hack.
8645      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8646      # The linker will automatically build a .lib file if we build a DLL.
8647      old_archive_from_new_cmds='true'
8648      # FIXME: Should let the user specify the lib program.
8649      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8650      fix_srcfile_path='`cygpath -w "$srcfile"`'
8651      enable_shared_with_static_runtimes=yes
8652      ;;
8653
8654    darwin* | rhapsody*)
8655
8656
8657  archive_cmds_need_lc=no
8658  hardcode_direct=no
8659  hardcode_automatic=yes
8660  hardcode_shlibpath_var=unsupported
8661  whole_archive_flag_spec=''
8662  link_all_deplibs=yes
8663  allow_undefined_flag="$_lt_dar_allow_undefined"
8664  case $cc_basename in
8665     ifort*) _lt_dar_can_shared=yes ;;
8666     *) _lt_dar_can_shared=$GCC ;;
8667  esac
8668  if test "$_lt_dar_can_shared" = "yes"; then
8669    output_verbose_link_cmd=echo
8670    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8671    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8672    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}"
8673    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}"
8674
8675  else
8676  ld_shlibs=no
8677  fi
8678
8679      ;;
8680
8681    dgux*)
8682      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8683      hardcode_libdir_flag_spec='-L$libdir'
8684      hardcode_shlibpath_var=no
8685      ;;
8686
8687    freebsd1*)
8688      ld_shlibs=no
8689      ;;
8690
8691    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8692    # support.  Future versions do this automatically, but an explicit c++rt0.o
8693    # does not break anything, and helps significantly (at the cost of a little
8694    # extra space).
8695    freebsd2.2*)
8696      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8697      hardcode_libdir_flag_spec='-R$libdir'
8698      hardcode_direct=yes
8699      hardcode_shlibpath_var=no
8700      ;;
8701
8702    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8703    freebsd2*)
8704      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8705      hardcode_direct=yes
8706      hardcode_minus_L=yes
8707      hardcode_shlibpath_var=no
8708      ;;
8709
8710    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8711    freebsd* | dragonfly*)
8712      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8713      hardcode_libdir_flag_spec='-R$libdir'
8714      hardcode_direct=yes
8715      hardcode_shlibpath_var=no
8716      ;;
8717
8718    hpux9*)
8719      if test "$GCC" = yes; then
8720	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'
8721      else
8722	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'
8723      fi
8724      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8725      hardcode_libdir_separator=:
8726      hardcode_direct=yes
8727
8728      # hardcode_minus_L: Not really in the search PATH,
8729      # but as the default location of the library.
8730      hardcode_minus_L=yes
8731      export_dynamic_flag_spec='${wl}-E'
8732      ;;
8733
8734    hpux10*)
8735      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8736	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8737      else
8738	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8739      fi
8740      if test "$with_gnu_ld" = no; then
8741	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8742	hardcode_libdir_flag_spec_ld='+b $libdir'
8743	hardcode_libdir_separator=:
8744	hardcode_direct=yes
8745	hardcode_direct_absolute=yes
8746	export_dynamic_flag_spec='${wl}-E'
8747	# hardcode_minus_L: Not really in the search PATH,
8748	# but as the default location of the library.
8749	hardcode_minus_L=yes
8750      fi
8751      ;;
8752
8753    hpux11*)
8754      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8755	case $host_cpu in
8756	hppa*64*)
8757	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758	  ;;
8759	ia64*)
8760	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8761	  ;;
8762	*)
8763	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764	  ;;
8765	esac
8766      else
8767	case $host_cpu in
8768	hppa*64*)
8769	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8770	  ;;
8771	ia64*)
8772	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8773	  ;;
8774	*)
8775	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8776	  ;;
8777	esac
8778      fi
8779      if test "$with_gnu_ld" = no; then
8780	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8781	hardcode_libdir_separator=:
8782
8783	case $host_cpu in
8784	hppa*64*|ia64*)
8785	  hardcode_direct=no
8786	  hardcode_shlibpath_var=no
8787	  ;;
8788	*)
8789	  hardcode_direct=yes
8790	  hardcode_direct_absolute=yes
8791	  export_dynamic_flag_spec='${wl}-E'
8792
8793	  # hardcode_minus_L: Not really in the search PATH,
8794	  # but as the default location of the library.
8795	  hardcode_minus_L=yes
8796	  ;;
8797	esac
8798      fi
8799      ;;
8800
8801    irix5* | irix6* | nonstopux*)
8802      if test "$GCC" = yes; then
8803	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'
8804	# Try to use the -exported_symbol ld option, if it does not
8805	# work, assume that -exports_file does not work either and
8806	# implicitly export all symbols.
8807        save_LDFLAGS="$LDFLAGS"
8808        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8809        cat >conftest.$ac_ext <<_ACEOF
8810int foo(void) {}
8811_ACEOF
8812rm -f conftest.$ac_objext conftest$ac_exeext
8813if { (ac_try="$ac_link"
8814case "(($ac_try" in
8815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816  *) ac_try_echo=$ac_try;;
8817esac
8818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8819$as_echo "$ac_try_echo") >&5
8820  (eval "$ac_link") 2>conftest.er1
8821  ac_status=$?
8822  grep -v '^ *+' conftest.er1 >conftest.err
8823  rm -f conftest.er1
8824  cat conftest.err >&5
8825  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826  (exit $ac_status); } && {
8827	 test -z "$ac_c_werror_flag" ||
8828	 test ! -s conftest.err
8829       } && test -s conftest$ac_exeext && {
8830	 test "$cross_compiling" = yes ||
8831	 $as_test_x conftest$ac_exeext
8832       }; then
8833  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'
8834
8835else
8836  $as_echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839
8840fi
8841
8842rm -rf conftest.dSYM
8843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8844      conftest$ac_exeext conftest.$ac_ext
8845        LDFLAGS="$save_LDFLAGS"
8846      else
8847	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'
8848	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'
8849      fi
8850      archive_cmds_need_lc='no'
8851      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852      hardcode_libdir_separator=:
8853      inherit_rpath=yes
8854      link_all_deplibs=yes
8855      ;;
8856
8857    netbsd*)
8858      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8859	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8860      else
8861	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8862      fi
8863      hardcode_libdir_flag_spec='-R$libdir'
8864      hardcode_direct=yes
8865      hardcode_shlibpath_var=no
8866      ;;
8867
8868    newsos6)
8869      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870      hardcode_direct=yes
8871      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8872      hardcode_libdir_separator=:
8873      hardcode_shlibpath_var=no
8874      ;;
8875
8876    *nto* | *qnx*)
8877      ;;
8878
8879    openbsd*)
8880      if test -f /usr/libexec/ld.so; then
8881	hardcode_direct=yes
8882	hardcode_shlibpath_var=no
8883	hardcode_direct_absolute=yes
8884	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8885	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8886	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8887	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8888	  export_dynamic_flag_spec='${wl}-E'
8889	else
8890	  case $host_os in
8891	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8892	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8893	     hardcode_libdir_flag_spec='-R$libdir'
8894	     ;;
8895	   *)
8896	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8897	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8898	     ;;
8899	  esac
8900	fi
8901      else
8902	ld_shlibs=no
8903      fi
8904      ;;
8905
8906    os2*)
8907      hardcode_libdir_flag_spec='-L$libdir'
8908      hardcode_minus_L=yes
8909      allow_undefined_flag=unsupported
8910      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'
8911      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8912      ;;
8913
8914    osf3*)
8915      if test "$GCC" = yes; then
8916	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8917	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'
8918      else
8919	allow_undefined_flag=' -expect_unresolved \*'
8920	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'
8921      fi
8922      archive_cmds_need_lc='no'
8923      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924      hardcode_libdir_separator=:
8925      ;;
8926
8927    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8928      if test "$GCC" = yes; then
8929	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8930	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'
8931	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932      else
8933	allow_undefined_flag=' -expect_unresolved \*'
8934	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'
8935	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~
8936	$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'
8937
8938	# Both c and cxx compiler support -rpath directly
8939	hardcode_libdir_flag_spec='-rpath $libdir'
8940      fi
8941      archive_cmds_need_lc='no'
8942      hardcode_libdir_separator=:
8943      ;;
8944
8945    solaris*)
8946      no_undefined_flag=' -z defs'
8947      if test "$GCC" = yes; then
8948	wlarc='${wl}'
8949	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8950	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8951	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8952      else
8953	case `$CC -V 2>&1` in
8954	*"Compilers 5.0"*)
8955	  wlarc=''
8956	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8958	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8959	  ;;
8960	*)
8961	  wlarc='${wl}'
8962	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8963	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8964	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8965	  ;;
8966	esac
8967      fi
8968      hardcode_libdir_flag_spec='-R$libdir'
8969      hardcode_shlibpath_var=no
8970      case $host_os in
8971      solaris2.[0-5] | solaris2.[0-5].*) ;;
8972      *)
8973	# The compiler driver will combine and reorder linker options,
8974	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8975	# but is careful enough not to reorder.
8976	# Supported since Solaris 2.6 (maybe 2.5.1?)
8977	if test "$GCC" = yes; then
8978	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8979	else
8980	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8981	fi
8982	;;
8983      esac
8984      link_all_deplibs=yes
8985      ;;
8986
8987    sunos4*)
8988      if test "x$host_vendor" = xsequent; then
8989	# Use $CC to link under sequent, because it throws in some extra .o
8990	# files that make .init and .fini sections work.
8991	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8992      else
8993	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8994      fi
8995      hardcode_libdir_flag_spec='-L$libdir'
8996      hardcode_direct=yes
8997      hardcode_minus_L=yes
8998      hardcode_shlibpath_var=no
8999      ;;
9000
9001    sysv4)
9002      case $host_vendor in
9003	sni)
9004	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005	  hardcode_direct=yes # is this really true???
9006	;;
9007	siemens)
9008	  ## LD is ld it makes a PLAMLIB
9009	  ## CC just makes a GrossModule.
9010	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9011	  reload_cmds='$CC -r -o $output$reload_objs'
9012	  hardcode_direct=no
9013        ;;
9014	motorola)
9015	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9017	;;
9018      esac
9019      runpath_var='LD_RUN_PATH'
9020      hardcode_shlibpath_var=no
9021      ;;
9022
9023    sysv4.3*)
9024      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025      hardcode_shlibpath_var=no
9026      export_dynamic_flag_spec='-Bexport'
9027      ;;
9028
9029    sysv4*MP*)
9030      if test -d /usr/nec; then
9031	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032	hardcode_shlibpath_var=no
9033	runpath_var=LD_RUN_PATH
9034	hardcode_runpath_var=yes
9035	ld_shlibs=yes
9036      fi
9037      ;;
9038
9039    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9040      no_undefined_flag='${wl}-z,text'
9041      archive_cmds_need_lc=no
9042      hardcode_shlibpath_var=no
9043      runpath_var='LD_RUN_PATH'
9044
9045      if test "$GCC" = yes; then
9046	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048      else
9049	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051      fi
9052      ;;
9053
9054    sysv5* | sco3.2v5* | sco5v6*)
9055      # Note: We can NOT use -z defs as we might desire, because we do not
9056      # link with -lc, and that would cause any symbols used from libc to
9057      # always be unresolved, which means just about no library would
9058      # ever link correctly.  If we're not using GNU ld we use -z text
9059      # though, which does catch some bad symbols but isn't as heavy-handed
9060      # as -z defs.
9061      no_undefined_flag='${wl}-z,text'
9062      allow_undefined_flag='${wl}-z,nodefs'
9063      archive_cmds_need_lc=no
9064      hardcode_shlibpath_var=no
9065      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9066      hardcode_libdir_separator=':'
9067      link_all_deplibs=yes
9068      export_dynamic_flag_spec='${wl}-Bexport'
9069      runpath_var='LD_RUN_PATH'
9070
9071      if test "$GCC" = yes; then
9072	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9073	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074      else
9075	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9076	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9077      fi
9078      ;;
9079
9080    uts4*)
9081      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082      hardcode_libdir_flag_spec='-L$libdir'
9083      hardcode_shlibpath_var=no
9084      ;;
9085
9086    *)
9087      ld_shlibs=no
9088      ;;
9089    esac
9090
9091    if test x$host_vendor = xsni; then
9092      case $host in
9093      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9094	export_dynamic_flag_spec='${wl}-Blargedynsym'
9095	;;
9096      esac
9097    fi
9098  fi
9099
9100{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9101$as_echo "$ld_shlibs" >&6; }
9102test "$ld_shlibs" = no && can_build_shared=no
9103
9104with_gnu_ld=$with_gnu_ld
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120#
9121# Do we need to explicitly link libc?
9122#
9123case "x$archive_cmds_need_lc" in
9124x|xyes)
9125  # Assume -lc should be added
9126  archive_cmds_need_lc=yes
9127
9128  if test "$enable_shared" = yes && test "$GCC" = yes; then
9129    case $archive_cmds in
9130    *'~'*)
9131      # FIXME: we may have to deal with multi-command sequences.
9132      ;;
9133    '$CC '*)
9134      # Test whether the compiler implicitly links with -lc since on some
9135      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9136      # to ld, don't add -lc before -lgcc.
9137      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9138$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9139      $RM conftest*
9140      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141
9142      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9143  (eval $ac_compile) 2>&5
9144  ac_status=$?
9145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); } 2>conftest.err; then
9147        soname=conftest
9148        lib=conftest
9149        libobjs=conftest.$ac_objext
9150        deplibs=
9151        wl=$lt_prog_compiler_wl
9152	pic_flag=$lt_prog_compiler_pic
9153        compiler_flags=-v
9154        linker_flags=-v
9155        verstring=
9156        output_objdir=.
9157        libname=conftest
9158        lt_save_allow_undefined_flag=$allow_undefined_flag
9159        allow_undefined_flag=
9160        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9161  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9162  ac_status=$?
9163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164  (exit $ac_status); }
9165        then
9166	  archive_cmds_need_lc=no
9167        else
9168	  archive_cmds_need_lc=yes
9169        fi
9170        allow_undefined_flag=$lt_save_allow_undefined_flag
9171      else
9172        cat conftest.err 1>&5
9173      fi
9174      $RM conftest*
9175      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9176$as_echo "$archive_cmds_need_lc" >&6; }
9177      ;;
9178    esac
9179  fi
9180  ;;
9181esac
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
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  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9340$as_echo_n "checking dynamic linker characteristics... " >&6; }
9341
9342if test "$GCC" = yes; then
9343  case $host_os in
9344    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9345    *) lt_awk_arg="/^libraries:/" ;;
9346  esac
9347  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9348  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9349    # if the path contains ";" then we assume it to be the separator
9350    # otherwise default to the standard path separator (i.e. ":") - it is
9351    # assumed that no part of a normal pathname contains ";" but that should
9352    # okay in the real world where ";" in dirpaths is itself problematic.
9353    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9354  else
9355    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9356  fi
9357  # Ok, now we have the path, separated by spaces, we can step through it
9358  # and add multilib dir if necessary.
9359  lt_tmp_lt_search_path_spec=
9360  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9361  for lt_sys_path in $lt_search_path_spec; do
9362    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9363      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9364    else
9365      test -d "$lt_sys_path" && \
9366	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9367    fi
9368  done
9369  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9370BEGIN {RS=" "; FS="/|\n";} {
9371  lt_foo="";
9372  lt_count=0;
9373  for (lt_i = NF; lt_i > 0; lt_i--) {
9374    if ($lt_i != "" && $lt_i != ".") {
9375      if ($lt_i == "..") {
9376        lt_count++;
9377      } else {
9378        if (lt_count == 0) {
9379          lt_foo="/" $lt_i lt_foo;
9380        } else {
9381          lt_count--;
9382        }
9383      }
9384    }
9385  }
9386  if (lt_foo != "") { lt_freq[lt_foo]++; }
9387  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9388}'`
9389  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9390else
9391  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9392fi
9393library_names_spec=
9394libname_spec='lib$name'
9395soname_spec=
9396shrext_cmds=".so"
9397postinstall_cmds=
9398postuninstall_cmds=
9399finish_cmds=
9400finish_eval=
9401shlibpath_var=
9402shlibpath_overrides_runpath=unknown
9403version_type=none
9404dynamic_linker="$host_os ld.so"
9405sys_lib_dlsearch_path_spec="/lib /usr/lib"
9406need_lib_prefix=unknown
9407hardcode_into_libs=no
9408
9409# when you set need_version to no, make sure it does not cause -set_version
9410# flags to be left without arguments
9411need_version=unknown
9412
9413case $host_os in
9414aix3*)
9415  version_type=linux
9416  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9417  shlibpath_var=LIBPATH
9418
9419  # AIX 3 has no versioning support, so we append a major version to the name.
9420  soname_spec='${libname}${release}${shared_ext}$major'
9421  ;;
9422
9423aix[4-9]*)
9424  version_type=linux
9425  need_lib_prefix=no
9426  need_version=no
9427  hardcode_into_libs=yes
9428  if test "$host_cpu" = ia64; then
9429    # AIX 5 supports IA64
9430    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9431    shlibpath_var=LD_LIBRARY_PATH
9432  else
9433    # With GCC up to 2.95.x, collect2 would create an import file
9434    # for dependence libraries.  The import file would start with
9435    # the line `#! .'.  This would cause the generated library to
9436    # depend on `.', always an invalid library.  This was fixed in
9437    # development snapshots of GCC prior to 3.0.
9438    case $host_os in
9439      aix4 | aix4.[01] | aix4.[01].*)
9440      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9441	   echo ' yes '
9442	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9443	:
9444      else
9445	can_build_shared=no
9446      fi
9447      ;;
9448    esac
9449    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9450    # soname into executable. Probably we can add versioning support to
9451    # collect2, so additional links can be useful in future.
9452    if test "$aix_use_runtimelinking" = yes; then
9453      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9454      # instead of lib<name>.a to let people know that these are not
9455      # typical AIX shared libraries.
9456      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457    else
9458      # We preserve .a as extension for shared libraries through AIX4.2
9459      # and later when we are not doing run time linking.
9460      library_names_spec='${libname}${release}.a $libname.a'
9461      soname_spec='${libname}${release}${shared_ext}$major'
9462    fi
9463    shlibpath_var=LIBPATH
9464  fi
9465  ;;
9466
9467amigaos*)
9468  case $host_cpu in
9469  powerpc)
9470    # Since July 2007 AmigaOS4 officially supports .so libraries.
9471    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473    ;;
9474  m68k)
9475    library_names_spec='$libname.ixlibrary $libname.a'
9476    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9477    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'
9478    ;;
9479  esac
9480  ;;
9481
9482beos*)
9483  library_names_spec='${libname}${shared_ext}'
9484  dynamic_linker="$host_os ld.so"
9485  shlibpath_var=LIBRARY_PATH
9486  ;;
9487
9488bsdi[45]*)
9489  version_type=linux
9490  need_version=no
9491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492  soname_spec='${libname}${release}${shared_ext}$major'
9493  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9494  shlibpath_var=LD_LIBRARY_PATH
9495  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9496  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9497  # the default ld.so.conf also contains /usr/contrib/lib and
9498  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9499  # libtool to hard-code these into programs
9500  ;;
9501
9502cygwin* | mingw* | pw32* | cegcc*)
9503  version_type=windows
9504  shrext_cmds=".dll"
9505  need_version=no
9506  need_lib_prefix=no
9507
9508  case $GCC,$host_os in
9509  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9510    library_names_spec='$libname.dll.a'
9511    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9512    postinstall_cmds='base_file=`basename \${file}`~
9513      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9514      dldir=$destdir/`dirname \$dlpath`~
9515      test -d \$dldir || mkdir -p \$dldir~
9516      $install_prog $dir/$dlname \$dldir/$dlname~
9517      chmod a+x \$dldir/$dlname~
9518      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9519        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9520      fi'
9521    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9522      dlpath=$dir/\$dldll~
9523       $RM \$dlpath'
9524    shlibpath_overrides_runpath=yes
9525
9526    case $host_os in
9527    cygwin*)
9528      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9529      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9530      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9531      ;;
9532    mingw* | cegcc*)
9533      # MinGW DLLs use traditional 'lib' prefix
9534      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9535      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9536      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9537        # It is most probably a Windows format PATH printed by
9538        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9539        # path with ; separators, and with drive letters. We can handle the
9540        # drive letters (cygwin fileutils understands them), so leave them,
9541        # especially as we might pass files found there to a mingw objdump,
9542        # which wouldn't understand a cygwinified path. Ahh.
9543        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9544      else
9545        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9546      fi
9547      ;;
9548    pw32*)
9549      # pw32 DLLs use 'pw' prefix rather than 'lib'
9550      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9551      ;;
9552    esac
9553    ;;
9554
9555  *)
9556    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9557    ;;
9558  esac
9559  dynamic_linker='Win32 ld.exe'
9560  # FIXME: first we should search . and the directory the executable is in
9561  shlibpath_var=PATH
9562  ;;
9563
9564darwin* | rhapsody*)
9565  dynamic_linker="$host_os dyld"
9566  version_type=darwin
9567  need_lib_prefix=no
9568  need_version=no
9569  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9570  soname_spec='${libname}${release}${major}$shared_ext'
9571  shlibpath_overrides_runpath=yes
9572  shlibpath_var=DYLD_LIBRARY_PATH
9573  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9574
9575  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9576  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9577  ;;
9578
9579dgux*)
9580  version_type=linux
9581  need_lib_prefix=no
9582  need_version=no
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9584  soname_spec='${libname}${release}${shared_ext}$major'
9585  shlibpath_var=LD_LIBRARY_PATH
9586  ;;
9587
9588freebsd1*)
9589  dynamic_linker=no
9590  ;;
9591
9592freebsd* | dragonfly*)
9593  # DragonFly does not have aout.  When/if they implement a new
9594  # versioning mechanism, adjust this.
9595  if test -x /usr/bin/objformat; then
9596    objformat=`/usr/bin/objformat`
9597  else
9598    case $host_os in
9599    freebsd[123]*) objformat=aout ;;
9600    *) objformat=elf ;;
9601    esac
9602  fi
9603  version_type=freebsd-$objformat
9604  case $version_type in
9605    freebsd-elf*)
9606      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9607      need_version=no
9608      need_lib_prefix=no
9609      ;;
9610    freebsd-*)
9611      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9612      need_version=yes
9613      ;;
9614  esac
9615  shlibpath_var=LD_LIBRARY_PATH
9616  case $host_os in
9617  freebsd2*)
9618    shlibpath_overrides_runpath=yes
9619    ;;
9620  freebsd3.[01]* | freebsdelf3.[01]*)
9621    shlibpath_overrides_runpath=yes
9622    hardcode_into_libs=yes
9623    ;;
9624  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9625  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9626    shlibpath_overrides_runpath=no
9627    hardcode_into_libs=yes
9628    ;;
9629  *) # from 4.6 on, and DragonFly
9630    shlibpath_overrides_runpath=yes
9631    hardcode_into_libs=yes
9632    ;;
9633  esac
9634  ;;
9635
9636gnu*)
9637  version_type=linux
9638  need_lib_prefix=no
9639  need_version=no
9640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9641  soname_spec='${libname}${release}${shared_ext}$major'
9642  shlibpath_var=LD_LIBRARY_PATH
9643  hardcode_into_libs=yes
9644  ;;
9645
9646hpux9* | hpux10* | hpux11*)
9647  # Give a soname corresponding to the major version so that dld.sl refuses to
9648  # link against other versions.
9649  version_type=sunos
9650  need_lib_prefix=no
9651  need_version=no
9652  case $host_cpu in
9653  ia64*)
9654    shrext_cmds='.so'
9655    hardcode_into_libs=yes
9656    dynamic_linker="$host_os dld.so"
9657    shlibpath_var=LD_LIBRARY_PATH
9658    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9659    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660    soname_spec='${libname}${release}${shared_ext}$major'
9661    if test "X$HPUX_IA64_MODE" = X32; then
9662      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9663    else
9664      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9665    fi
9666    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9667    ;;
9668  hppa*64*)
9669    shrext_cmds='.sl'
9670    hardcode_into_libs=yes
9671    dynamic_linker="$host_os dld.sl"
9672    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9673    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675    soname_spec='${libname}${release}${shared_ext}$major'
9676    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9677    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9678    ;;
9679  *)
9680    shrext_cmds='.sl'
9681    dynamic_linker="$host_os dld.sl"
9682    shlibpath_var=SHLIB_PATH
9683    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9684    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9685    soname_spec='${libname}${release}${shared_ext}$major'
9686    ;;
9687  esac
9688  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9689  postinstall_cmds='chmod 555 $lib'
9690  ;;
9691
9692interix[3-9]*)
9693  version_type=linux
9694  need_lib_prefix=no
9695  need_version=no
9696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9697  soname_spec='${libname}${release}${shared_ext}$major'
9698  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9699  shlibpath_var=LD_LIBRARY_PATH
9700  shlibpath_overrides_runpath=no
9701  hardcode_into_libs=yes
9702  ;;
9703
9704irix5* | irix6* | nonstopux*)
9705  case $host_os in
9706    nonstopux*) version_type=nonstopux ;;
9707    *)
9708	if test "$lt_cv_prog_gnu_ld" = yes; then
9709		version_type=linux
9710	else
9711		version_type=irix
9712	fi ;;
9713  esac
9714  need_lib_prefix=no
9715  need_version=no
9716  soname_spec='${libname}${release}${shared_ext}$major'
9717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9718  case $host_os in
9719  irix5* | nonstopux*)
9720    libsuff= shlibsuff=
9721    ;;
9722  *)
9723    case $LD in # libtool.m4 will add one of these switches to LD
9724    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9725      libsuff= shlibsuff= libmagic=32-bit;;
9726    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9727      libsuff=32 shlibsuff=N32 libmagic=N32;;
9728    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9729      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9730    *) libsuff= shlibsuff= libmagic=never-match;;
9731    esac
9732    ;;
9733  esac
9734  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9735  shlibpath_overrides_runpath=no
9736  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9737  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9738  hardcode_into_libs=yes
9739  ;;
9740
9741# No shared lib support for Linux oldld, aout, or coff.
9742linux*oldld* | linux*aout* | linux*coff*)
9743  dynamic_linker=no
9744  ;;
9745
9746# This must be Linux ELF.
9747linux* | k*bsd*-gnu)
9748  version_type=linux
9749  need_lib_prefix=no
9750  need_version=no
9751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752  soname_spec='${libname}${release}${shared_ext}$major'
9753  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9754  shlibpath_var=LD_LIBRARY_PATH
9755  shlibpath_overrides_runpath=no
9756  # Some binutils ld are patched to set DT_RUNPATH
9757  save_LDFLAGS=$LDFLAGS
9758  save_libdir=$libdir
9759  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9760       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9761  cat >conftest.$ac_ext <<_ACEOF
9762/* confdefs.h.  */
9763_ACEOF
9764cat confdefs.h >>conftest.$ac_ext
9765cat >>conftest.$ac_ext <<_ACEOF
9766/* end confdefs.h.  */
9767
9768int
9769main ()
9770{
9771
9772  ;
9773  return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
9777if { (ac_try="$ac_link"
9778case "(($ac_try" in
9779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780  *) ac_try_echo=$ac_try;;
9781esac
9782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783$as_echo "$ac_try_echo") >&5
9784  (eval "$ac_link") 2>conftest.er1
9785  ac_status=$?
9786  grep -v '^ *+' conftest.er1 >conftest.err
9787  rm -f conftest.er1
9788  cat conftest.err >&5
9789  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790  (exit $ac_status); } && {
9791	 test -z "$ac_c_werror_flag" ||
9792	 test ! -s conftest.err
9793       } && test -s conftest$ac_exeext && {
9794	 test "$cross_compiling" = yes ||
9795	 $as_test_x conftest$ac_exeext
9796       }; then
9797  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9798  shlibpath_overrides_runpath=yes
9799fi
9800
9801else
9802  $as_echo "$as_me: failed program was:" >&5
9803sed 's/^/| /' conftest.$ac_ext >&5
9804
9805
9806fi
9807
9808rm -rf conftest.dSYM
9809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9810      conftest$ac_exeext conftest.$ac_ext
9811  LDFLAGS=$save_LDFLAGS
9812  libdir=$save_libdir
9813
9814  # This implies no fast_install, which is unacceptable.
9815  # Some rework will be needed to allow for fast_install
9816  # before this can be enabled.
9817  hardcode_into_libs=yes
9818
9819  # Add ABI-specific directories to the system library path.
9820  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9821
9822  # Append ld.so.conf contents to the search path
9823  if test -f /etc/ld.so.conf; then
9824    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' ' '`
9825    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9826  fi
9827
9828  # We used to test for /lib/ld.so.1 and disable shared libraries on
9829  # powerpc, because MkLinux only supported shared libraries with the
9830  # GNU dynamic linker.  Since this was broken with cross compilers,
9831  # most powerpc-linux boxes support dynamic linking these days and
9832  # people can always --disable-shared, the test was removed, and we
9833  # assume the GNU/Linux dynamic linker is in use.
9834  dynamic_linker='GNU/Linux ld.so'
9835  ;;
9836
9837netbsd*)
9838  version_type=sunos
9839  need_lib_prefix=no
9840  need_version=no
9841  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9842    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9843    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9844    dynamic_linker='NetBSD (a.out) ld.so'
9845  else
9846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9847    soname_spec='${libname}${release}${shared_ext}$major'
9848    dynamic_linker='NetBSD ld.elf_so'
9849  fi
9850  shlibpath_var=LD_LIBRARY_PATH
9851  shlibpath_overrides_runpath=yes
9852  hardcode_into_libs=yes
9853  ;;
9854
9855newsos6)
9856  version_type=linux
9857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858  shlibpath_var=LD_LIBRARY_PATH
9859  shlibpath_overrides_runpath=yes
9860  ;;
9861
9862*nto* | *qnx*)
9863  version_type=qnx
9864  need_lib_prefix=no
9865  need_version=no
9866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867  soname_spec='${libname}${release}${shared_ext}$major'
9868  shlibpath_var=LD_LIBRARY_PATH
9869  shlibpath_overrides_runpath=no
9870  hardcode_into_libs=yes
9871  dynamic_linker='ldqnx.so'
9872  ;;
9873
9874openbsd*)
9875  version_type=sunos
9876  sys_lib_dlsearch_path_spec="/usr/lib"
9877  need_lib_prefix=no
9878  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9879  case $host_os in
9880    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9881    *)				need_version=no  ;;
9882  esac
9883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9884  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9885  shlibpath_var=LD_LIBRARY_PATH
9886  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9887    case $host_os in
9888      openbsd2.[89] | openbsd2.[89].*)
9889	shlibpath_overrides_runpath=no
9890	;;
9891      *)
9892	shlibpath_overrides_runpath=yes
9893	;;
9894      esac
9895  else
9896    shlibpath_overrides_runpath=yes
9897  fi
9898  ;;
9899
9900os2*)
9901  libname_spec='$name'
9902  shrext_cmds=".dll"
9903  need_lib_prefix=no
9904  library_names_spec='$libname${shared_ext} $libname.a'
9905  dynamic_linker='OS/2 ld.exe'
9906  shlibpath_var=LIBPATH
9907  ;;
9908
9909osf3* | osf4* | osf5*)
9910  version_type=osf
9911  need_lib_prefix=no
9912  need_version=no
9913  soname_spec='${libname}${release}${shared_ext}$major'
9914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915  shlibpath_var=LD_LIBRARY_PATH
9916  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9917  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9918  ;;
9919
9920rdos*)
9921  dynamic_linker=no
9922  ;;
9923
9924solaris*)
9925  version_type=linux
9926  need_lib_prefix=no
9927  need_version=no
9928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929  soname_spec='${libname}${release}${shared_ext}$major'
9930  shlibpath_var=LD_LIBRARY_PATH
9931  shlibpath_overrides_runpath=yes
9932  hardcode_into_libs=yes
9933  # ldd complains unless libraries are executable
9934  postinstall_cmds='chmod +x $lib'
9935  ;;
9936
9937sunos4*)
9938  version_type=sunos
9939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9940  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9941  shlibpath_var=LD_LIBRARY_PATH
9942  shlibpath_overrides_runpath=yes
9943  if test "$with_gnu_ld" = yes; then
9944    need_lib_prefix=no
9945  fi
9946  need_version=yes
9947  ;;
9948
9949sysv4 | sysv4.3*)
9950  version_type=linux
9951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952  soname_spec='${libname}${release}${shared_ext}$major'
9953  shlibpath_var=LD_LIBRARY_PATH
9954  case $host_vendor in
9955    sni)
9956      shlibpath_overrides_runpath=no
9957      need_lib_prefix=no
9958      runpath_var=LD_RUN_PATH
9959      ;;
9960    siemens)
9961      need_lib_prefix=no
9962      ;;
9963    motorola)
9964      need_lib_prefix=no
9965      need_version=no
9966      shlibpath_overrides_runpath=no
9967      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9968      ;;
9969  esac
9970  ;;
9971
9972sysv4*MP*)
9973  if test -d /usr/nec ;then
9974    version_type=linux
9975    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9976    soname_spec='$libname${shared_ext}.$major'
9977    shlibpath_var=LD_LIBRARY_PATH
9978  fi
9979  ;;
9980
9981sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9982  version_type=freebsd-elf
9983  need_lib_prefix=no
9984  need_version=no
9985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9986  soname_spec='${libname}${release}${shared_ext}$major'
9987  shlibpath_var=LD_LIBRARY_PATH
9988  shlibpath_overrides_runpath=yes
9989  hardcode_into_libs=yes
9990  if test "$with_gnu_ld" = yes; then
9991    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9992  else
9993    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9994    case $host_os in
9995      sco3.2v5*)
9996        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9997	;;
9998    esac
9999  fi
10000  sys_lib_dlsearch_path_spec='/usr/lib'
10001  ;;
10002
10003tpf*)
10004  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10005  version_type=linux
10006  need_lib_prefix=no
10007  need_version=no
10008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009  shlibpath_var=LD_LIBRARY_PATH
10010  shlibpath_overrides_runpath=no
10011  hardcode_into_libs=yes
10012  ;;
10013
10014uts4*)
10015  version_type=linux
10016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017  soname_spec='${libname}${release}${shared_ext}$major'
10018  shlibpath_var=LD_LIBRARY_PATH
10019  ;;
10020
10021*)
10022  dynamic_linker=no
10023  ;;
10024esac
10025{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10026$as_echo "$dynamic_linker" >&6; }
10027test "$dynamic_linker" = no && can_build_shared=no
10028
10029variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10030if test "$GCC" = yes; then
10031  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10032fi
10033
10034if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10035  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10036fi
10037if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10038  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10039fi
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
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  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10128$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10129hardcode_action=
10130if test -n "$hardcode_libdir_flag_spec" ||
10131   test -n "$runpath_var" ||
10132   test "X$hardcode_automatic" = "Xyes" ; then
10133
10134  # We can hardcode non-existent directories.
10135  if test "$hardcode_direct" != no &&
10136     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10137     # have to relink, otherwise we might link with an installed library
10138     # when we should be linking with a yet-to-be-installed one
10139     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10140     test "$hardcode_minus_L" != no; then
10141    # Linking always hardcodes the temporary library directory.
10142    hardcode_action=relink
10143  else
10144    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10145    hardcode_action=immediate
10146  fi
10147else
10148  # We cannot hardcode anything, or else we can only hardcode existing
10149  # directories.
10150  hardcode_action=unsupported
10151fi
10152{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10153$as_echo "$hardcode_action" >&6; }
10154
10155if test "$hardcode_action" = relink ||
10156   test "$inherit_rpath" = yes; then
10157  # Fast installation is not supported
10158  enable_fast_install=no
10159elif test "$shlibpath_overrides_runpath" = yes ||
10160     test "$enable_shared" = no; then
10161  # Fast installation is not necessary
10162  enable_fast_install=needless
10163fi
10164
10165
10166
10167
10168
10169
10170  if test "x$enable_dlopen" != xyes; then
10171  enable_dlopen=unknown
10172  enable_dlopen_self=unknown
10173  enable_dlopen_self_static=unknown
10174else
10175  lt_cv_dlopen=no
10176  lt_cv_dlopen_libs=
10177
10178  case $host_os in
10179  beos*)
10180    lt_cv_dlopen="load_add_on"
10181    lt_cv_dlopen_libs=
10182    lt_cv_dlopen_self=yes
10183    ;;
10184
10185  mingw* | pw32* | cegcc*)
10186    lt_cv_dlopen="LoadLibrary"
10187    lt_cv_dlopen_libs=
10188    ;;
10189
10190  cygwin*)
10191    lt_cv_dlopen="dlopen"
10192    lt_cv_dlopen_libs=
10193    ;;
10194
10195  darwin*)
10196  # if libdl is installed we need to link against it
10197    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10198$as_echo_n "checking for dlopen in -ldl... " >&6; }
10199if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10200  $as_echo_n "(cached) " >&6
10201else
10202  ac_check_lib_save_LIBS=$LIBS
10203LIBS="-ldl  $LIBS"
10204cat >conftest.$ac_ext <<_ACEOF
10205/* confdefs.h.  */
10206_ACEOF
10207cat confdefs.h >>conftest.$ac_ext
10208cat >>conftest.$ac_ext <<_ACEOF
10209/* end confdefs.h.  */
10210
10211/* Override any GCC internal prototype to avoid an error.
10212   Use char because int might match the return type of a GCC
10213   builtin and then its argument prototype would still apply.  */
10214#ifdef __cplusplus
10215extern "C"
10216#endif
10217char dlopen ();
10218int
10219main ()
10220{
10221return dlopen ();
10222  ;
10223  return 0;
10224}
10225_ACEOF
10226rm -f conftest.$ac_objext conftest$ac_exeext
10227if { (ac_try="$ac_link"
10228case "(($ac_try" in
10229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230  *) ac_try_echo=$ac_try;;
10231esac
10232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10233$as_echo "$ac_try_echo") >&5
10234  (eval "$ac_link") 2>conftest.er1
10235  ac_status=$?
10236  grep -v '^ *+' conftest.er1 >conftest.err
10237  rm -f conftest.er1
10238  cat conftest.err >&5
10239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); } && {
10241	 test -z "$ac_c_werror_flag" ||
10242	 test ! -s conftest.err
10243       } && test -s conftest$ac_exeext && {
10244	 test "$cross_compiling" = yes ||
10245	 $as_test_x conftest$ac_exeext
10246       }; then
10247  ac_cv_lib_dl_dlopen=yes
10248else
10249  $as_echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
10252	ac_cv_lib_dl_dlopen=no
10253fi
10254
10255rm -rf conftest.dSYM
10256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257      conftest$ac_exeext conftest.$ac_ext
10258LIBS=$ac_check_lib_save_LIBS
10259fi
10260{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10261$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10262if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10263  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10264else
10265
10266    lt_cv_dlopen="dyld"
10267    lt_cv_dlopen_libs=
10268    lt_cv_dlopen_self=yes
10269
10270fi
10271
10272    ;;
10273
10274  *)
10275    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10276$as_echo_n "checking for shl_load... " >&6; }
10277if test "${ac_cv_func_shl_load+set}" = set; then
10278  $as_echo_n "(cached) " >&6
10279else
10280  cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h.  */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h.  */
10286/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10287   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10288#define shl_load innocuous_shl_load
10289
10290/* System header to define __stub macros and hopefully few prototypes,
10291    which can conflict with char shl_load (); below.
10292    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10293    <limits.h> exists even on freestanding compilers.  */
10294
10295#ifdef __STDC__
10296# include <limits.h>
10297#else
10298# include <assert.h>
10299#endif
10300
10301#undef shl_load
10302
10303/* Override any GCC internal prototype to avoid an error.
10304   Use char because int might match the return type of a GCC
10305   builtin and then its argument prototype would still apply.  */
10306#ifdef __cplusplus
10307extern "C"
10308#endif
10309char shl_load ();
10310/* The GNU C library defines this for functions which it implements
10311    to always fail with ENOSYS.  Some functions are actually named
10312    something starting with __ and the normal name is an alias.  */
10313#if defined __stub_shl_load || defined __stub___shl_load
10314choke me
10315#endif
10316
10317int
10318main ()
10319{
10320return shl_load ();
10321  ;
10322  return 0;
10323}
10324_ACEOF
10325rm -f conftest.$ac_objext conftest$ac_exeext
10326if { (ac_try="$ac_link"
10327case "(($ac_try" in
10328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329  *) ac_try_echo=$ac_try;;
10330esac
10331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332$as_echo "$ac_try_echo") >&5
10333  (eval "$ac_link") 2>conftest.er1
10334  ac_status=$?
10335  grep -v '^ *+' conftest.er1 >conftest.err
10336  rm -f conftest.er1
10337  cat conftest.err >&5
10338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339  (exit $ac_status); } && {
10340	 test -z "$ac_c_werror_flag" ||
10341	 test ! -s conftest.err
10342       } && test -s conftest$ac_exeext && {
10343	 test "$cross_compiling" = yes ||
10344	 $as_test_x conftest$ac_exeext
10345       }; then
10346  ac_cv_func_shl_load=yes
10347else
10348  $as_echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
10350
10351	ac_cv_func_shl_load=no
10352fi
10353
10354rm -rf conftest.dSYM
10355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356      conftest$ac_exeext conftest.$ac_ext
10357fi
10358{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10359$as_echo "$ac_cv_func_shl_load" >&6; }
10360if test "x$ac_cv_func_shl_load" = x""yes; then
10361  lt_cv_dlopen="shl_load"
10362else
10363  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10364$as_echo_n "checking for shl_load in -ldld... " >&6; }
10365if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10366  $as_echo_n "(cached) " >&6
10367else
10368  ac_check_lib_save_LIBS=$LIBS
10369LIBS="-ldld  $LIBS"
10370cat >conftest.$ac_ext <<_ACEOF
10371/* confdefs.h.  */
10372_ACEOF
10373cat confdefs.h >>conftest.$ac_ext
10374cat >>conftest.$ac_ext <<_ACEOF
10375/* end confdefs.h.  */
10376
10377/* Override any GCC internal prototype to avoid an error.
10378   Use char because int might match the return type of a GCC
10379   builtin and then its argument prototype would still apply.  */
10380#ifdef __cplusplus
10381extern "C"
10382#endif
10383char shl_load ();
10384int
10385main ()
10386{
10387return shl_load ();
10388  ;
10389  return 0;
10390}
10391_ACEOF
10392rm -f conftest.$ac_objext conftest$ac_exeext
10393if { (ac_try="$ac_link"
10394case "(($ac_try" in
10395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396  *) ac_try_echo=$ac_try;;
10397esac
10398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10399$as_echo "$ac_try_echo") >&5
10400  (eval "$ac_link") 2>conftest.er1
10401  ac_status=$?
10402  grep -v '^ *+' conftest.er1 >conftest.err
10403  rm -f conftest.er1
10404  cat conftest.err >&5
10405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406  (exit $ac_status); } && {
10407	 test -z "$ac_c_werror_flag" ||
10408	 test ! -s conftest.err
10409       } && test -s conftest$ac_exeext && {
10410	 test "$cross_compiling" = yes ||
10411	 $as_test_x conftest$ac_exeext
10412       }; then
10413  ac_cv_lib_dld_shl_load=yes
10414else
10415  $as_echo "$as_me: failed program was:" >&5
10416sed 's/^/| /' conftest.$ac_ext >&5
10417
10418	ac_cv_lib_dld_shl_load=no
10419fi
10420
10421rm -rf conftest.dSYM
10422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10423      conftest$ac_exeext conftest.$ac_ext
10424LIBS=$ac_check_lib_save_LIBS
10425fi
10426{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10427$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10428if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10429  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10430else
10431  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10432$as_echo_n "checking for dlopen... " >&6; }
10433if test "${ac_cv_func_dlopen+set}" = set; then
10434  $as_echo_n "(cached) " >&6
10435else
10436  cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h.  */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h.  */
10442/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10443   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10444#define dlopen innocuous_dlopen
10445
10446/* System header to define __stub macros and hopefully few prototypes,
10447    which can conflict with char dlopen (); below.
10448    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10449    <limits.h> exists even on freestanding compilers.  */
10450
10451#ifdef __STDC__
10452# include <limits.h>
10453#else
10454# include <assert.h>
10455#endif
10456
10457#undef dlopen
10458
10459/* Override any GCC internal prototype to avoid an error.
10460   Use char because int might match the return type of a GCC
10461   builtin and then its argument prototype would still apply.  */
10462#ifdef __cplusplus
10463extern "C"
10464#endif
10465char dlopen ();
10466/* The GNU C library defines this for functions which it implements
10467    to always fail with ENOSYS.  Some functions are actually named
10468    something starting with __ and the normal name is an alias.  */
10469#if defined __stub_dlopen || defined __stub___dlopen
10470choke me
10471#endif
10472
10473int
10474main ()
10475{
10476return dlopen ();
10477  ;
10478  return 0;
10479}
10480_ACEOF
10481rm -f conftest.$ac_objext conftest$ac_exeext
10482if { (ac_try="$ac_link"
10483case "(($ac_try" in
10484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485  *) ac_try_echo=$ac_try;;
10486esac
10487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488$as_echo "$ac_try_echo") >&5
10489  (eval "$ac_link") 2>conftest.er1
10490  ac_status=$?
10491  grep -v '^ *+' conftest.er1 >conftest.err
10492  rm -f conftest.er1
10493  cat conftest.err >&5
10494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495  (exit $ac_status); } && {
10496	 test -z "$ac_c_werror_flag" ||
10497	 test ! -s conftest.err
10498       } && test -s conftest$ac_exeext && {
10499	 test "$cross_compiling" = yes ||
10500	 $as_test_x conftest$ac_exeext
10501       }; then
10502  ac_cv_func_dlopen=yes
10503else
10504  $as_echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507	ac_cv_func_dlopen=no
10508fi
10509
10510rm -rf conftest.dSYM
10511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10512      conftest$ac_exeext conftest.$ac_ext
10513fi
10514{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10515$as_echo "$ac_cv_func_dlopen" >&6; }
10516if test "x$ac_cv_func_dlopen" = x""yes; then
10517  lt_cv_dlopen="dlopen"
10518else
10519  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10520$as_echo_n "checking for dlopen in -ldl... " >&6; }
10521if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10522  $as_echo_n "(cached) " >&6
10523else
10524  ac_check_lib_save_LIBS=$LIBS
10525LIBS="-ldl  $LIBS"
10526cat >conftest.$ac_ext <<_ACEOF
10527/* confdefs.h.  */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h.  */
10532
10533/* Override any GCC internal prototype to avoid an error.
10534   Use char because int might match the return type of a GCC
10535   builtin and then its argument prototype would still apply.  */
10536#ifdef __cplusplus
10537extern "C"
10538#endif
10539char dlopen ();
10540int
10541main ()
10542{
10543return dlopen ();
10544  ;
10545  return 0;
10546}
10547_ACEOF
10548rm -f conftest.$ac_objext conftest$ac_exeext
10549if { (ac_try="$ac_link"
10550case "(($ac_try" in
10551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552  *) ac_try_echo=$ac_try;;
10553esac
10554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10555$as_echo "$ac_try_echo") >&5
10556  (eval "$ac_link") 2>conftest.er1
10557  ac_status=$?
10558  grep -v '^ *+' conftest.er1 >conftest.err
10559  rm -f conftest.er1
10560  cat conftest.err >&5
10561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562  (exit $ac_status); } && {
10563	 test -z "$ac_c_werror_flag" ||
10564	 test ! -s conftest.err
10565       } && test -s conftest$ac_exeext && {
10566	 test "$cross_compiling" = yes ||
10567	 $as_test_x conftest$ac_exeext
10568       }; then
10569  ac_cv_lib_dl_dlopen=yes
10570else
10571  $as_echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574	ac_cv_lib_dl_dlopen=no
10575fi
10576
10577rm -rf conftest.dSYM
10578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579      conftest$ac_exeext conftest.$ac_ext
10580LIBS=$ac_check_lib_save_LIBS
10581fi
10582{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10583$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10584if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10585  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10586else
10587  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10588$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10589if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10590  $as_echo_n "(cached) " >&6
10591else
10592  ac_check_lib_save_LIBS=$LIBS
10593LIBS="-lsvld  $LIBS"
10594cat >conftest.$ac_ext <<_ACEOF
10595/* confdefs.h.  */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h.  */
10600
10601/* Override any GCC internal prototype to avoid an error.
10602   Use char because int might match the return type of a GCC
10603   builtin and then its argument prototype would still apply.  */
10604#ifdef __cplusplus
10605extern "C"
10606#endif
10607char dlopen ();
10608int
10609main ()
10610{
10611return dlopen ();
10612  ;
10613  return 0;
10614}
10615_ACEOF
10616rm -f conftest.$ac_objext conftest$ac_exeext
10617if { (ac_try="$ac_link"
10618case "(($ac_try" in
10619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620  *) ac_try_echo=$ac_try;;
10621esac
10622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10623$as_echo "$ac_try_echo") >&5
10624  (eval "$ac_link") 2>conftest.er1
10625  ac_status=$?
10626  grep -v '^ *+' conftest.er1 >conftest.err
10627  rm -f conftest.er1
10628  cat conftest.err >&5
10629  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630  (exit $ac_status); } && {
10631	 test -z "$ac_c_werror_flag" ||
10632	 test ! -s conftest.err
10633       } && test -s conftest$ac_exeext && {
10634	 test "$cross_compiling" = yes ||
10635	 $as_test_x conftest$ac_exeext
10636       }; then
10637  ac_cv_lib_svld_dlopen=yes
10638else
10639  $as_echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642	ac_cv_lib_svld_dlopen=no
10643fi
10644
10645rm -rf conftest.dSYM
10646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10647      conftest$ac_exeext conftest.$ac_ext
10648LIBS=$ac_check_lib_save_LIBS
10649fi
10650{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10651$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10652if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10653  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10654else
10655  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10656$as_echo_n "checking for dld_link in -ldld... " >&6; }
10657if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10658  $as_echo_n "(cached) " >&6
10659else
10660  ac_check_lib_save_LIBS=$LIBS
10661LIBS="-ldld  $LIBS"
10662cat >conftest.$ac_ext <<_ACEOF
10663/* confdefs.h.  */
10664_ACEOF
10665cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h.  */
10668
10669/* Override any GCC internal prototype to avoid an error.
10670   Use char because int might match the return type of a GCC
10671   builtin and then its argument prototype would still apply.  */
10672#ifdef __cplusplus
10673extern "C"
10674#endif
10675char dld_link ();
10676int
10677main ()
10678{
10679return dld_link ();
10680  ;
10681  return 0;
10682}
10683_ACEOF
10684rm -f conftest.$ac_objext conftest$ac_exeext
10685if { (ac_try="$ac_link"
10686case "(($ac_try" in
10687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688  *) ac_try_echo=$ac_try;;
10689esac
10690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10691$as_echo "$ac_try_echo") >&5
10692  (eval "$ac_link") 2>conftest.er1
10693  ac_status=$?
10694  grep -v '^ *+' conftest.er1 >conftest.err
10695  rm -f conftest.er1
10696  cat conftest.err >&5
10697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } && {
10699	 test -z "$ac_c_werror_flag" ||
10700	 test ! -s conftest.err
10701       } && test -s conftest$ac_exeext && {
10702	 test "$cross_compiling" = yes ||
10703	 $as_test_x conftest$ac_exeext
10704       }; then
10705  ac_cv_lib_dld_dld_link=yes
10706else
10707  $as_echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
10709
10710	ac_cv_lib_dld_dld_link=no
10711fi
10712
10713rm -rf conftest.dSYM
10714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715      conftest$ac_exeext conftest.$ac_ext
10716LIBS=$ac_check_lib_save_LIBS
10717fi
10718{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10719$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10720if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10721  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10722fi
10723
10724
10725fi
10726
10727
10728fi
10729
10730
10731fi
10732
10733
10734fi
10735
10736
10737fi
10738
10739    ;;
10740  esac
10741
10742  if test "x$lt_cv_dlopen" != xno; then
10743    enable_dlopen=yes
10744  else
10745    enable_dlopen=no
10746  fi
10747
10748  case $lt_cv_dlopen in
10749  dlopen)
10750    save_CPPFLAGS="$CPPFLAGS"
10751    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10752
10753    save_LDFLAGS="$LDFLAGS"
10754    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10755
10756    save_LIBS="$LIBS"
10757    LIBS="$lt_cv_dlopen_libs $LIBS"
10758
10759    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10760$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10761if test "${lt_cv_dlopen_self+set}" = set; then
10762  $as_echo_n "(cached) " >&6
10763else
10764  	  if test "$cross_compiling" = yes; then :
10765  lt_cv_dlopen_self=cross
10766else
10767  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10768  lt_status=$lt_dlunknown
10769  cat > conftest.$ac_ext <<_LT_EOF
10770#line 10770 "configure"
10771#include "confdefs.h"
10772
10773#if HAVE_DLFCN_H
10774#include <dlfcn.h>
10775#endif
10776
10777#include <stdio.h>
10778
10779#ifdef RTLD_GLOBAL
10780#  define LT_DLGLOBAL		RTLD_GLOBAL
10781#else
10782#  ifdef DL_GLOBAL
10783#    define LT_DLGLOBAL		DL_GLOBAL
10784#  else
10785#    define LT_DLGLOBAL		0
10786#  endif
10787#endif
10788
10789/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10790   find out it does not work in some platform. */
10791#ifndef LT_DLLAZY_OR_NOW
10792#  ifdef RTLD_LAZY
10793#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10794#  else
10795#    ifdef DL_LAZY
10796#      define LT_DLLAZY_OR_NOW		DL_LAZY
10797#    else
10798#      ifdef RTLD_NOW
10799#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10800#      else
10801#        ifdef DL_NOW
10802#          define LT_DLLAZY_OR_NOW	DL_NOW
10803#        else
10804#          define LT_DLLAZY_OR_NOW	0
10805#        endif
10806#      endif
10807#    endif
10808#  endif
10809#endif
10810
10811void fnord() { int i=42;}
10812int main ()
10813{
10814  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10815  int status = $lt_dlunknown;
10816
10817  if (self)
10818    {
10819      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10820      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10821      /* dlclose (self); */
10822    }
10823  else
10824    puts (dlerror ());
10825
10826  return status;
10827}
10828_LT_EOF
10829  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830  (eval $ac_link) 2>&5
10831  ac_status=$?
10832  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10834    (./conftest; exit; ) >&5 2>/dev/null
10835    lt_status=$?
10836    case x$lt_status in
10837      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10838      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10839      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10840    esac
10841  else :
10842    # compilation failed
10843    lt_cv_dlopen_self=no
10844  fi
10845fi
10846rm -fr conftest*
10847
10848
10849fi
10850{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10851$as_echo "$lt_cv_dlopen_self" >&6; }
10852
10853    if test "x$lt_cv_dlopen_self" = xyes; then
10854      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10855      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10856$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10857if test "${lt_cv_dlopen_self_static+set}" = set; then
10858  $as_echo_n "(cached) " >&6
10859else
10860  	  if test "$cross_compiling" = yes; then :
10861  lt_cv_dlopen_self_static=cross
10862else
10863  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10864  lt_status=$lt_dlunknown
10865  cat > conftest.$ac_ext <<_LT_EOF
10866#line 10866 "configure"
10867#include "confdefs.h"
10868
10869#if HAVE_DLFCN_H
10870#include <dlfcn.h>
10871#endif
10872
10873#include <stdio.h>
10874
10875#ifdef RTLD_GLOBAL
10876#  define LT_DLGLOBAL		RTLD_GLOBAL
10877#else
10878#  ifdef DL_GLOBAL
10879#    define LT_DLGLOBAL		DL_GLOBAL
10880#  else
10881#    define LT_DLGLOBAL		0
10882#  endif
10883#endif
10884
10885/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10886   find out it does not work in some platform. */
10887#ifndef LT_DLLAZY_OR_NOW
10888#  ifdef RTLD_LAZY
10889#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10890#  else
10891#    ifdef DL_LAZY
10892#      define LT_DLLAZY_OR_NOW		DL_LAZY
10893#    else
10894#      ifdef RTLD_NOW
10895#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10896#      else
10897#        ifdef DL_NOW
10898#          define LT_DLLAZY_OR_NOW	DL_NOW
10899#        else
10900#          define LT_DLLAZY_OR_NOW	0
10901#        endif
10902#      endif
10903#    endif
10904#  endif
10905#endif
10906
10907void fnord() { int i=42;}
10908int main ()
10909{
10910  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10911  int status = $lt_dlunknown;
10912
10913  if (self)
10914    {
10915      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10916      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10917      /* dlclose (self); */
10918    }
10919  else
10920    puts (dlerror ());
10921
10922  return status;
10923}
10924_LT_EOF
10925  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926  (eval $ac_link) 2>&5
10927  ac_status=$?
10928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10930    (./conftest; exit; ) >&5 2>/dev/null
10931    lt_status=$?
10932    case x$lt_status in
10933      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10934      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10935      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10936    esac
10937  else :
10938    # compilation failed
10939    lt_cv_dlopen_self_static=no
10940  fi
10941fi
10942rm -fr conftest*
10943
10944
10945fi
10946{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10947$as_echo "$lt_cv_dlopen_self_static" >&6; }
10948    fi
10949
10950    CPPFLAGS="$save_CPPFLAGS"
10951    LDFLAGS="$save_LDFLAGS"
10952    LIBS="$save_LIBS"
10953    ;;
10954  esac
10955
10956  case $lt_cv_dlopen_self in
10957  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10958  *) enable_dlopen_self=unknown ;;
10959  esac
10960
10961  case $lt_cv_dlopen_self_static in
10962  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10963  *) enable_dlopen_self_static=unknown ;;
10964  esac
10965fi
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983striplib=
10984old_striplib=
10985{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10986$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10987if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10988  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10989  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10990  { $as_echo "$as_me:$LINENO: result: yes" >&5
10991$as_echo "yes" >&6; }
10992else
10993# FIXME - insert some real tests, host_os isn't really good enough
10994  case $host_os in
10995  darwin*)
10996    if test -n "$STRIP" ; then
10997      striplib="$STRIP -x"
10998      old_striplib="$STRIP -S"
10999      { $as_echo "$as_me:$LINENO: result: yes" >&5
11000$as_echo "yes" >&6; }
11001    else
11002      { $as_echo "$as_me:$LINENO: result: no" >&5
11003$as_echo "no" >&6; }
11004    fi
11005    ;;
11006  *)
11007    { $as_echo "$as_me:$LINENO: result: no" >&5
11008$as_echo "no" >&6; }
11009    ;;
11010  esac
11011fi
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024  # Report which library types will actually be built
11025  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11026$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11027  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11028$as_echo "$can_build_shared" >&6; }
11029
11030  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11031$as_echo_n "checking whether to build shared libraries... " >&6; }
11032  test "$can_build_shared" = "no" && enable_shared=no
11033
11034  # On AIX, shared libraries and static libraries use the same namespace, and
11035  # are all built from PIC.
11036  case $host_os in
11037  aix3*)
11038    test "$enable_shared" = yes && enable_static=no
11039    if test -n "$RANLIB"; then
11040      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11041      postinstall_cmds='$RANLIB $lib'
11042    fi
11043    ;;
11044
11045  aix[4-9]*)
11046    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11047      test "$enable_shared" = yes && enable_static=no
11048    fi
11049    ;;
11050  esac
11051  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11052$as_echo "$enable_shared" >&6; }
11053
11054  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11055$as_echo_n "checking whether to build static libraries... " >&6; }
11056  # Make sure either enable_shared or enable_static is yes.
11057  test "$enable_shared" = yes || enable_static=yes
11058  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11059$as_echo "$enable_static" >&6; }
11060
11061
11062
11063
11064fi
11065ac_ext=c
11066ac_cpp='$CPP $CPPFLAGS'
11067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069ac_compiler_gnu=$ac_cv_c_compiler_gnu
11070
11071CC="$lt_save_CC"
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085        ac_config_commands="$ac_config_commands libtool"
11086
11087
11088
11089
11090# Only expand once:
11091
11092
11093ac_ext=c
11094ac_cpp='$CPP $CPPFLAGS'
11095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11097ac_compiler_gnu=$ac_cv_c_compiler_gnu
11098if test -n "$ac_tool_prefix"; then
11099  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11100set dummy ${ac_tool_prefix}gcc; ac_word=$2
11101{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11102$as_echo_n "checking for $ac_word... " >&6; }
11103if test "${ac_cv_prog_CC+set}" = set; then
11104  $as_echo_n "(cached) " >&6
11105else
11106  if test -n "$CC"; then
11107  ac_cv_prog_CC="$CC" # Let the user override the test.
11108else
11109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110for as_dir in $PATH
11111do
11112  IFS=$as_save_IFS
11113  test -z "$as_dir" && as_dir=.
11114  for ac_exec_ext in '' $ac_executable_extensions; do
11115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11116    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11117    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11118    break 2
11119  fi
11120done
11121done
11122IFS=$as_save_IFS
11123
11124fi
11125fi
11126CC=$ac_cv_prog_CC
11127if test -n "$CC"; then
11128  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11129$as_echo "$CC" >&6; }
11130else
11131  { $as_echo "$as_me:$LINENO: result: no" >&5
11132$as_echo "no" >&6; }
11133fi
11134
11135
11136fi
11137if test -z "$ac_cv_prog_CC"; then
11138  ac_ct_CC=$CC
11139  # Extract the first word of "gcc", so it can be a program name with args.
11140set dummy gcc; ac_word=$2
11141{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11142$as_echo_n "checking for $ac_word... " >&6; }
11143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11144  $as_echo_n "(cached) " >&6
11145else
11146  if test -n "$ac_ct_CC"; then
11147  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11148else
11149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH
11151do
11152  IFS=$as_save_IFS
11153  test -z "$as_dir" && as_dir=.
11154  for ac_exec_ext in '' $ac_executable_extensions; do
11155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11156    ac_cv_prog_ac_ct_CC="gcc"
11157    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11158    break 2
11159  fi
11160done
11161done
11162IFS=$as_save_IFS
11163
11164fi
11165fi
11166ac_ct_CC=$ac_cv_prog_ac_ct_CC
11167if test -n "$ac_ct_CC"; then
11168  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11169$as_echo "$ac_ct_CC" >&6; }
11170else
11171  { $as_echo "$as_me:$LINENO: result: no" >&5
11172$as_echo "no" >&6; }
11173fi
11174
11175  if test "x$ac_ct_CC" = x; then
11176    CC=""
11177  else
11178    case $cross_compiling:$ac_tool_warned in
11179yes:)
11180{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11182ac_tool_warned=yes ;;
11183esac
11184    CC=$ac_ct_CC
11185  fi
11186else
11187  CC="$ac_cv_prog_CC"
11188fi
11189
11190if test -z "$CC"; then
11191          if test -n "$ac_tool_prefix"; then
11192    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11193set dummy ${ac_tool_prefix}cc; ac_word=$2
11194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if test "${ac_cv_prog_CC+set}" = set; then
11197  $as_echo_n "(cached) " >&6
11198else
11199  if test -n "$CC"; then
11200  ac_cv_prog_CC="$CC" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205  IFS=$as_save_IFS
11206  test -z "$as_dir" && as_dir=.
11207  for ac_exec_ext in '' $ac_executable_extensions; do
11208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209    ac_cv_prog_CC="${ac_tool_prefix}cc"
11210    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211    break 2
11212  fi
11213done
11214done
11215IFS=$as_save_IFS
11216
11217fi
11218fi
11219CC=$ac_cv_prog_CC
11220if test -n "$CC"; then
11221  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11222$as_echo "$CC" >&6; }
11223else
11224  { $as_echo "$as_me:$LINENO: result: no" >&5
11225$as_echo "no" >&6; }
11226fi
11227
11228
11229  fi
11230fi
11231if test -z "$CC"; then
11232  # Extract the first word of "cc", so it can be a program name with args.
11233set dummy cc; ac_word=$2
11234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11235$as_echo_n "checking for $ac_word... " >&6; }
11236if test "${ac_cv_prog_CC+set}" = set; then
11237  $as_echo_n "(cached) " >&6
11238else
11239  if test -n "$CC"; then
11240  ac_cv_prog_CC="$CC" # Let the user override the test.
11241else
11242  ac_prog_rejected=no
11243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244for as_dir in $PATH
11245do
11246  IFS=$as_save_IFS
11247  test -z "$as_dir" && as_dir=.
11248  for ac_exec_ext in '' $ac_executable_extensions; do
11249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11250    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11251       ac_prog_rejected=yes
11252       continue
11253     fi
11254    ac_cv_prog_CC="cc"
11255    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11256    break 2
11257  fi
11258done
11259done
11260IFS=$as_save_IFS
11261
11262if test $ac_prog_rejected = yes; then
11263  # We found a bogon in the path, so make sure we never use it.
11264  set dummy $ac_cv_prog_CC
11265  shift
11266  if test $# != 0; then
11267    # We chose a different compiler from the bogus one.
11268    # However, it has the same basename, so the bogon will be chosen
11269    # first if we set CC to just the basename; use the full file name.
11270    shift
11271    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11272  fi
11273fi
11274fi
11275fi
11276CC=$ac_cv_prog_CC
11277if test -n "$CC"; then
11278  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11279$as_echo "$CC" >&6; }
11280else
11281  { $as_echo "$as_me:$LINENO: result: no" >&5
11282$as_echo "no" >&6; }
11283fi
11284
11285
11286fi
11287if test -z "$CC"; then
11288  if test -n "$ac_tool_prefix"; then
11289  for ac_prog in cl.exe
11290  do
11291    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11294$as_echo_n "checking for $ac_word... " >&6; }
11295if test "${ac_cv_prog_CC+set}" = set; then
11296  $as_echo_n "(cached) " >&6
11297else
11298  if test -n "$CC"; then
11299  ac_cv_prog_CC="$CC" # Let the user override the test.
11300else
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304  IFS=$as_save_IFS
11305  test -z "$as_dir" && as_dir=.
11306  for ac_exec_ext in '' $ac_executable_extensions; do
11307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11308    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11309    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310    break 2
11311  fi
11312done
11313done
11314IFS=$as_save_IFS
11315
11316fi
11317fi
11318CC=$ac_cv_prog_CC
11319if test -n "$CC"; then
11320  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11321$as_echo "$CC" >&6; }
11322else
11323  { $as_echo "$as_me:$LINENO: result: no" >&5
11324$as_echo "no" >&6; }
11325fi
11326
11327
11328    test -n "$CC" && break
11329  done
11330fi
11331if test -z "$CC"; then
11332  ac_ct_CC=$CC
11333  for ac_prog in cl.exe
11334do
11335  # Extract the first word of "$ac_prog", so it can be a program name with args.
11336set dummy $ac_prog; ac_word=$2
11337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11338$as_echo_n "checking for $ac_word... " >&6; }
11339if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11340  $as_echo_n "(cached) " >&6
11341else
11342  if test -n "$ac_ct_CC"; then
11343  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11344else
11345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $PATH
11347do
11348  IFS=$as_save_IFS
11349  test -z "$as_dir" && as_dir=.
11350  for ac_exec_ext in '' $ac_executable_extensions; do
11351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352    ac_cv_prog_ac_ct_CC="$ac_prog"
11353    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11354    break 2
11355  fi
11356done
11357done
11358IFS=$as_save_IFS
11359
11360fi
11361fi
11362ac_ct_CC=$ac_cv_prog_ac_ct_CC
11363if test -n "$ac_ct_CC"; then
11364  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11365$as_echo "$ac_ct_CC" >&6; }
11366else
11367  { $as_echo "$as_me:$LINENO: result: no" >&5
11368$as_echo "no" >&6; }
11369fi
11370
11371
11372  test -n "$ac_ct_CC" && break
11373done
11374
11375  if test "x$ac_ct_CC" = x; then
11376    CC=""
11377  else
11378    case $cross_compiling:$ac_tool_warned in
11379yes:)
11380{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11382ac_tool_warned=yes ;;
11383esac
11384    CC=$ac_ct_CC
11385  fi
11386fi
11387
11388fi
11389
11390
11391test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11393{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11394See \`config.log' for more details." >&5
11395$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11396See \`config.log' for more details." >&2;}
11397   { (exit 1); exit 1; }; }; }
11398
11399# Provide some information about the compiler.
11400$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11401set X $ac_compile
11402ac_compiler=$2
11403{ (ac_try="$ac_compiler --version >&5"
11404case "(($ac_try" in
11405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406  *) ac_try_echo=$ac_try;;
11407esac
11408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11409$as_echo "$ac_try_echo") >&5
11410  (eval "$ac_compiler --version >&5") 2>&5
11411  ac_status=$?
11412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413  (exit $ac_status); }
11414{ (ac_try="$ac_compiler -v >&5"
11415case "(($ac_try" in
11416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417  *) ac_try_echo=$ac_try;;
11418esac
11419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11420$as_echo "$ac_try_echo") >&5
11421  (eval "$ac_compiler -v >&5") 2>&5
11422  ac_status=$?
11423  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424  (exit $ac_status); }
11425{ (ac_try="$ac_compiler -V >&5"
11426case "(($ac_try" in
11427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428  *) ac_try_echo=$ac_try;;
11429esac
11430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11431$as_echo "$ac_try_echo") >&5
11432  (eval "$ac_compiler -V >&5") 2>&5
11433  ac_status=$?
11434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435  (exit $ac_status); }
11436
11437{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11438$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11439if test "${ac_cv_c_compiler_gnu+set}" = set; then
11440  $as_echo_n "(cached) " >&6
11441else
11442  cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h.  */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h.  */
11448
11449int
11450main ()
11451{
11452#ifndef __GNUC__
11453       choke me
11454#endif
11455
11456  ;
11457  return 0;
11458}
11459_ACEOF
11460rm -f conftest.$ac_objext
11461if { (ac_try="$ac_compile"
11462case "(($ac_try" in
11463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464  *) ac_try_echo=$ac_try;;
11465esac
11466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11467$as_echo "$ac_try_echo") >&5
11468  (eval "$ac_compile") 2>conftest.er1
11469  ac_status=$?
11470  grep -v '^ *+' conftest.er1 >conftest.err
11471  rm -f conftest.er1
11472  cat conftest.err >&5
11473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474  (exit $ac_status); } && {
11475	 test -z "$ac_c_werror_flag" ||
11476	 test ! -s conftest.err
11477       } && test -s conftest.$ac_objext; then
11478  ac_compiler_gnu=yes
11479else
11480  $as_echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483	ac_compiler_gnu=no
11484fi
11485
11486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487ac_cv_c_compiler_gnu=$ac_compiler_gnu
11488
11489fi
11490{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11491$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11492if test $ac_compiler_gnu = yes; then
11493  GCC=yes
11494else
11495  GCC=
11496fi
11497ac_test_CFLAGS=${CFLAGS+set}
11498ac_save_CFLAGS=$CFLAGS
11499{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11500$as_echo_n "checking whether $CC accepts -g... " >&6; }
11501if test "${ac_cv_prog_cc_g+set}" = set; then
11502  $as_echo_n "(cached) " >&6
11503else
11504  ac_save_c_werror_flag=$ac_c_werror_flag
11505   ac_c_werror_flag=yes
11506   ac_cv_prog_cc_g=no
11507   CFLAGS="-g"
11508   cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h.  */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h.  */
11514
11515int
11516main ()
11517{
11518
11519  ;
11520  return 0;
11521}
11522_ACEOF
11523rm -f conftest.$ac_objext
11524if { (ac_try="$ac_compile"
11525case "(($ac_try" in
11526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527  *) ac_try_echo=$ac_try;;
11528esac
11529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530$as_echo "$ac_try_echo") >&5
11531  (eval "$ac_compile") 2>conftest.er1
11532  ac_status=$?
11533  grep -v '^ *+' conftest.er1 >conftest.err
11534  rm -f conftest.er1
11535  cat conftest.err >&5
11536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537  (exit $ac_status); } && {
11538	 test -z "$ac_c_werror_flag" ||
11539	 test ! -s conftest.err
11540       } && test -s conftest.$ac_objext; then
11541  ac_cv_prog_cc_g=yes
11542else
11543  $as_echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
11545
11546	CFLAGS=""
11547      cat >conftest.$ac_ext <<_ACEOF
11548/* confdefs.h.  */
11549_ACEOF
11550cat confdefs.h >>conftest.$ac_ext
11551cat >>conftest.$ac_ext <<_ACEOF
11552/* end confdefs.h.  */
11553
11554int
11555main ()
11556{
11557
11558  ;
11559  return 0;
11560}
11561_ACEOF
11562rm -f conftest.$ac_objext
11563if { (ac_try="$ac_compile"
11564case "(($ac_try" in
11565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566  *) ac_try_echo=$ac_try;;
11567esac
11568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11569$as_echo "$ac_try_echo") >&5
11570  (eval "$ac_compile") 2>conftest.er1
11571  ac_status=$?
11572  grep -v '^ *+' conftest.er1 >conftest.err
11573  rm -f conftest.er1
11574  cat conftest.err >&5
11575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); } && {
11577	 test -z "$ac_c_werror_flag" ||
11578	 test ! -s conftest.err
11579       } && test -s conftest.$ac_objext; then
11580  :
11581else
11582  $as_echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585	ac_c_werror_flag=$ac_save_c_werror_flag
11586	 CFLAGS="-g"
11587	 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h.  */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h.  */
11593
11594int
11595main ()
11596{
11597
11598  ;
11599  return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext
11603if { (ac_try="$ac_compile"
11604case "(($ac_try" in
11605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606  *) ac_try_echo=$ac_try;;
11607esac
11608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11609$as_echo "$ac_try_echo") >&5
11610  (eval "$ac_compile") 2>conftest.er1
11611  ac_status=$?
11612  grep -v '^ *+' conftest.er1 >conftest.err
11613  rm -f conftest.er1
11614  cat conftest.err >&5
11615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616  (exit $ac_status); } && {
11617	 test -z "$ac_c_werror_flag" ||
11618	 test ! -s conftest.err
11619       } && test -s conftest.$ac_objext; then
11620  ac_cv_prog_cc_g=yes
11621else
11622  $as_echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625
11626fi
11627
11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629fi
11630
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632fi
11633
11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635   ac_c_werror_flag=$ac_save_c_werror_flag
11636fi
11637{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11638$as_echo "$ac_cv_prog_cc_g" >&6; }
11639if test "$ac_test_CFLAGS" = set; then
11640  CFLAGS=$ac_save_CFLAGS
11641elif test $ac_cv_prog_cc_g = yes; then
11642  if test "$GCC" = yes; then
11643    CFLAGS="-g -O2"
11644  else
11645    CFLAGS="-g"
11646  fi
11647else
11648  if test "$GCC" = yes; then
11649    CFLAGS="-O2"
11650  else
11651    CFLAGS=
11652  fi
11653fi
11654{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11655$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11656if test "${ac_cv_prog_cc_c89+set}" = set; then
11657  $as_echo_n "(cached) " >&6
11658else
11659  ac_cv_prog_cc_c89=no
11660ac_save_CC=$CC
11661cat >conftest.$ac_ext <<_ACEOF
11662/* confdefs.h.  */
11663_ACEOF
11664cat confdefs.h >>conftest.$ac_ext
11665cat >>conftest.$ac_ext <<_ACEOF
11666/* end confdefs.h.  */
11667#include <stdarg.h>
11668#include <stdio.h>
11669#include <sys/types.h>
11670#include <sys/stat.h>
11671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11672struct buf { int x; };
11673FILE * (*rcsopen) (struct buf *, struct stat *, int);
11674static char *e (p, i)
11675     char **p;
11676     int i;
11677{
11678  return p[i];
11679}
11680static char *f (char * (*g) (char **, int), char **p, ...)
11681{
11682  char *s;
11683  va_list v;
11684  va_start (v,p);
11685  s = g (p, va_arg (v,int));
11686  va_end (v);
11687  return s;
11688}
11689
11690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11691   function prototypes and stuff, but not '\xHH' hex character constants.
11692   These don't provoke an error unfortunately, instead are silently treated
11693   as 'x'.  The following induces an error, until -std is added to get
11694   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11695   array size at least.  It's necessary to write '\x00'==0 to get something
11696   that's true only with -std.  */
11697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11698
11699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11700   inside strings and character constants.  */
11701#define FOO(x) 'x'
11702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11703
11704int test (int i, double x);
11705struct s1 {int (*f) (int a);};
11706struct s2 {int (*f) (double a);};
11707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11708int argc;
11709char **argv;
11710int
11711main ()
11712{
11713return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11714  ;
11715  return 0;
11716}
11717_ACEOF
11718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11719	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11720do
11721  CC="$ac_save_CC $ac_arg"
11722  rm -f conftest.$ac_objext
11723if { (ac_try="$ac_compile"
11724case "(($ac_try" in
11725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726  *) ac_try_echo=$ac_try;;
11727esac
11728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11729$as_echo "$ac_try_echo") >&5
11730  (eval "$ac_compile") 2>conftest.er1
11731  ac_status=$?
11732  grep -v '^ *+' conftest.er1 >conftest.err
11733  rm -f conftest.er1
11734  cat conftest.err >&5
11735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736  (exit $ac_status); } && {
11737	 test -z "$ac_c_werror_flag" ||
11738	 test ! -s conftest.err
11739       } && test -s conftest.$ac_objext; then
11740  ac_cv_prog_cc_c89=$ac_arg
11741else
11742  $as_echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745
11746fi
11747
11748rm -f core conftest.err conftest.$ac_objext
11749  test "x$ac_cv_prog_cc_c89" != "xno" && break
11750done
11751rm -f conftest.$ac_ext
11752CC=$ac_save_CC
11753
11754fi
11755# AC_CACHE_VAL
11756case "x$ac_cv_prog_cc_c89" in
11757  x)
11758    { $as_echo "$as_me:$LINENO: result: none needed" >&5
11759$as_echo "none needed" >&6; } ;;
11760  xno)
11761    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11762$as_echo "unsupported" >&6; } ;;
11763  *)
11764    CC="$CC $ac_cv_prog_cc_c89"
11765    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11766$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11767esac
11768
11769
11770ac_ext=c
11771ac_cpp='$CPP $CPPFLAGS'
11772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774ac_compiler_gnu=$ac_cv_c_compiler_gnu
11775
11776depcc="$CC"   am_compiler_list=
11777
11778{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11779$as_echo_n "checking dependency style of $depcc... " >&6; }
11780if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11781  $as_echo_n "(cached) " >&6
11782else
11783  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11784  # We make a subdir and do the tests there.  Otherwise we can end up
11785  # making bogus files that we don't know about and never remove.  For
11786  # instance it was reported that on HP-UX the gcc test will end up
11787  # making a dummy file named `D' -- because `-MD' means `put the output
11788  # in D'.
11789  mkdir conftest.dir
11790  # Copy depcomp to subdir because otherwise we won't find it if we're
11791  # using a relative directory.
11792  cp "$am_depcomp" conftest.dir
11793  cd conftest.dir
11794  # We will build objects and dependencies in a subdirectory because
11795  # it helps to detect inapplicable dependency modes.  For instance
11796  # both Tru64's cc and ICC support -MD to output dependencies as a
11797  # side effect of compilation, but ICC will put the dependencies in
11798  # the current directory while Tru64 will put them in the object
11799  # directory.
11800  mkdir sub
11801
11802  am_cv_CC_dependencies_compiler_type=none
11803  if test "$am_compiler_list" = ""; then
11804     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11805  fi
11806  for depmode in $am_compiler_list; do
11807    # Setup a source with many dependencies, because some compilers
11808    # like to wrap large dependency lists on column 80 (with \), and
11809    # we should not choose a depcomp mode which is confused by this.
11810    #
11811    # We need to recreate these files for each test, as the compiler may
11812    # overwrite some of them when testing with obscure command lines.
11813    # This happens at least with the AIX C compiler.
11814    : > sub/conftest.c
11815    for i in 1 2 3 4 5 6; do
11816      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11817      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11818      # Solaris 8's {/usr,}/bin/sh.
11819      touch sub/conftst$i.h
11820    done
11821    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11822
11823    case $depmode in
11824    nosideeffect)
11825      # after this tag, mechanisms are not by side-effect, so they'll
11826      # only be used when explicitly requested
11827      if test "x$enable_dependency_tracking" = xyes; then
11828	continue
11829      else
11830	break
11831      fi
11832      ;;
11833    none) break ;;
11834    esac
11835    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11836    # mode.  It turns out that the SunPro C++ compiler does not properly
11837    # handle `-M -o', and we need to detect this.
11838    if depmode=$depmode \
11839       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11840       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11841       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11842         >/dev/null 2>conftest.err &&
11843       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11844       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11845       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11846       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11847      # icc doesn't choke on unknown options, it will just issue warnings
11848      # or remarks (even with -Werror).  So we grep stderr for any message
11849      # that says an option was ignored or not supported.
11850      # When given -MP, icc 7.0 and 7.1 complain thusly:
11851      #   icc: Command line warning: ignoring option '-M'; no argument required
11852      # The diagnosis changed in icc 8.0:
11853      #   icc: Command line remark: option '-MP' not supported
11854      if (grep 'ignoring option' conftest.err ||
11855          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11856        am_cv_CC_dependencies_compiler_type=$depmode
11857        break
11858      fi
11859    fi
11860  done
11861
11862  cd ..
11863  rm -rf conftest.dir
11864else
11865  am_cv_CC_dependencies_compiler_type=none
11866fi
11867
11868fi
11869{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11870$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11871CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11872
11873 if
11874  test "x$enable_dependency_tracking" != xno \
11875  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11876  am__fastdepCC_TRUE=
11877  am__fastdepCC_FALSE='#'
11878else
11879  am__fastdepCC_TRUE='#'
11880  am__fastdepCC_FALSE=
11881fi
11882
11883
11884
11885
11886
11887
11888
11889# Check whether --with-xorg-module-dir was given.
11890if test "${with_xorg_module_dir+set}" = set; then
11891  withval=$with_xorg_module_dir; moduledir="$withval"
11892else
11893  moduledir="$libdir/xorg/modules"
11894fi
11895
11896
11897# Checks for extensions
11898
11899	SAVE_CFLAGS="$CFLAGS"
11900	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11901	cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h.  */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h.  */
11907
11908#include "xorg-server.h"
11909#if !defined RANDR
11910#error RANDR not defined
11911#endif
11912
11913int
11914main ()
11915{
11916
11917  ;
11918  return 0;
11919}
11920_ACEOF
11921rm -f conftest.$ac_objext
11922if { (ac_try="$ac_compile"
11923case "(($ac_try" in
11924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925  *) ac_try_echo=$ac_try;;
11926esac
11927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11928$as_echo "$ac_try_echo") >&5
11929  (eval "$ac_compile") 2>conftest.er1
11930  ac_status=$?
11931  grep -v '^ *+' conftest.er1 >conftest.err
11932  rm -f conftest.er1
11933  cat conftest.err >&5
11934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935  (exit $ac_status); } && {
11936	 test -z "$ac_c_werror_flag" ||
11937	 test ! -s conftest.err
11938       } && test -s conftest.$ac_objext; then
11939  _EXT_CHECK=yes
11940else
11941  $as_echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944	_EXT_CHECK=no
11945fi
11946
11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948	CFLAGS="$SAVE_CFLAGS"
11949	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
11950$as_echo_n "checking if RANDR is defined... " >&6; }
11951	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
11952$as_echo "$_EXT_CHECK" >&6; }
11953	if test "$_EXT_CHECK" != no; then
11954		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11955	fi
11956
11957
11958	SAVE_CFLAGS="$CFLAGS"
11959	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11960	cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h.  */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h.  */
11966
11967#include "xorg-server.h"
11968#if !defined RENDER
11969#error RENDER not defined
11970#endif
11971
11972int
11973main ()
11974{
11975
11976  ;
11977  return 0;
11978}
11979_ACEOF
11980rm -f conftest.$ac_objext
11981if { (ac_try="$ac_compile"
11982case "(($ac_try" in
11983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984  *) ac_try_echo=$ac_try;;
11985esac
11986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11987$as_echo "$ac_try_echo") >&5
11988  (eval "$ac_compile") 2>conftest.er1
11989  ac_status=$?
11990  grep -v '^ *+' conftest.er1 >conftest.err
11991  rm -f conftest.er1
11992  cat conftest.err >&5
11993  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994  (exit $ac_status); } && {
11995	 test -z "$ac_c_werror_flag" ||
11996	 test ! -s conftest.err
11997       } && test -s conftest.$ac_objext; then
11998  _EXT_CHECK=yes
11999else
12000  $as_echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003	_EXT_CHECK=no
12004fi
12005
12006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12007	CFLAGS="$SAVE_CFLAGS"
12008	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12009$as_echo_n "checking if RENDER is defined... " >&6; }
12010	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12011$as_echo "$_EXT_CHECK" >&6; }
12012	if test "$_EXT_CHECK" != no; then
12013		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12014	fi
12015
12016
12017	SAVE_CFLAGS="$CFLAGS"
12018	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12019	cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h.  */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h.  */
12025
12026#include "xorg-server.h"
12027#if !defined DPMSExtension
12028#error DPMSExtension not defined
12029#endif
12030
12031int
12032main ()
12033{
12034
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039rm -f conftest.$ac_objext
12040if { (ac_try="$ac_compile"
12041case "(($ac_try" in
12042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043  *) ac_try_echo=$ac_try;;
12044esac
12045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12046$as_echo "$ac_try_echo") >&5
12047  (eval "$ac_compile") 2>conftest.er1
12048  ac_status=$?
12049  grep -v '^ *+' conftest.er1 >conftest.err
12050  rm -f conftest.er1
12051  cat conftest.err >&5
12052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053  (exit $ac_status); } && {
12054	 test -z "$ac_c_werror_flag" ||
12055	 test ! -s conftest.err
12056       } && test -s conftest.$ac_objext; then
12057  _EXT_CHECK=yes
12058else
12059  $as_echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062	_EXT_CHECK=no
12063fi
12064
12065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066	CFLAGS="$SAVE_CFLAGS"
12067	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12068$as_echo_n "checking if DPMSExtension is defined... " >&6; }
12069	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12070$as_echo "$_EXT_CHECK" >&6; }
12071	if test "$_EXT_CHECK" != no; then
12072		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12073	fi
12074
12075
12076# Checks for pkg-config packages
12077
12078
12079if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12080	if test -n "$ac_tool_prefix"; then
12081  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12082set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
12085if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12086  $as_echo_n "(cached) " >&6
12087else
12088  case $PKG_CONFIG in
12089  [\\/]* | ?:[\\/]*)
12090  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12091  ;;
12092  *)
12093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094for as_dir in $PATH
12095do
12096  IFS=$as_save_IFS
12097  test -z "$as_dir" && as_dir=.
12098  for ac_exec_ext in '' $ac_executable_extensions; do
12099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12101    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12102    break 2
12103  fi
12104done
12105done
12106IFS=$as_save_IFS
12107
12108  ;;
12109esac
12110fi
12111PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12112if test -n "$PKG_CONFIG"; then
12113  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12114$as_echo "$PKG_CONFIG" >&6; }
12115else
12116  { $as_echo "$as_me:$LINENO: result: no" >&5
12117$as_echo "no" >&6; }
12118fi
12119
12120
12121fi
12122if test -z "$ac_cv_path_PKG_CONFIG"; then
12123  ac_pt_PKG_CONFIG=$PKG_CONFIG
12124  # Extract the first word of "pkg-config", so it can be a program name with args.
12125set dummy pkg-config; ac_word=$2
12126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12127$as_echo_n "checking for $ac_word... " >&6; }
12128if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12129  $as_echo_n "(cached) " >&6
12130else
12131  case $ac_pt_PKG_CONFIG in
12132  [\\/]* | ?:[\\/]*)
12133  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12134  ;;
12135  *)
12136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137for as_dir in $PATH
12138do
12139  IFS=$as_save_IFS
12140  test -z "$as_dir" && as_dir=.
12141  for ac_exec_ext in '' $ac_executable_extensions; do
12142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12143    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12144    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12145    break 2
12146  fi
12147done
12148done
12149IFS=$as_save_IFS
12150
12151  ;;
12152esac
12153fi
12154ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12155if test -n "$ac_pt_PKG_CONFIG"; then
12156  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12157$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12158else
12159  { $as_echo "$as_me:$LINENO: result: no" >&5
12160$as_echo "no" >&6; }
12161fi
12162
12163  if test "x$ac_pt_PKG_CONFIG" = x; then
12164    PKG_CONFIG=""
12165  else
12166    case $cross_compiling:$ac_tool_warned in
12167yes:)
12168{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12170ac_tool_warned=yes ;;
12171esac
12172    PKG_CONFIG=$ac_pt_PKG_CONFIG
12173  fi
12174else
12175  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12176fi
12177
12178fi
12179if test -n "$PKG_CONFIG"; then
12180	_pkg_min_version=0.9.0
12181	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12182$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12183	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12184		{ $as_echo "$as_me:$LINENO: result: yes" >&5
12185$as_echo "yes" >&6; }
12186	else
12187		{ $as_echo "$as_me:$LINENO: result: no" >&5
12188$as_echo "no" >&6; }
12189		PKG_CONFIG=""
12190	fi
12191
12192fi
12193
12194pkg_failed=no
12195{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
12196$as_echo_n "checking for XORG... " >&6; }
12197
12198if test -n "$XORG_CFLAGS"; then
12199    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12200 elif test -n "$PKG_CONFIG"; then
12201    if test -n "$PKG_CONFIG" && \
12202    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12203  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12204  ac_status=$?
12205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206  (exit $ac_status); }; then
12207  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12208else
12209  pkg_failed=yes
12210fi
12211 else
12212    pkg_failed=untried
12213fi
12214if test -n "$XORG_LIBS"; then
12215    pkg_cv_XORG_LIBS="$XORG_LIBS"
12216 elif test -n "$PKG_CONFIG"; then
12217    if test -n "$PKG_CONFIG" && \
12218    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
12219  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
12220  ac_status=$?
12221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222  (exit $ac_status); }; then
12223  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
12224else
12225  pkg_failed=yes
12226fi
12227 else
12228    pkg_failed=untried
12229fi
12230
12231
12232
12233if test $pkg_failed = yes; then
12234
12235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12236        _pkg_short_errors_supported=yes
12237else
12238        _pkg_short_errors_supported=no
12239fi
12240        if test $_pkg_short_errors_supported = yes; then
12241	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12242        else
12243	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
12244        fi
12245	# Put the nasty error message in config.log where it belongs
12246	echo "$XORG_PKG_ERRORS" >&5
12247
12248	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12249
12250$XORG_PKG_ERRORS
12251
12252Consider adjusting the PKG_CONFIG_PATH environment variable if you
12253installed software in a non-standard prefix.
12254
12255Alternatively, you may set the environment variables XORG_CFLAGS
12256and XORG_LIBS to avoid the need to call pkg-config.
12257See the pkg-config man page for more details.
12258" >&5
12259$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
12260
12261$XORG_PKG_ERRORS
12262
12263Consider adjusting the PKG_CONFIG_PATH environment variable if you
12264installed software in a non-standard prefix.
12265
12266Alternatively, you may set the environment variables XORG_CFLAGS
12267and XORG_LIBS to avoid the need to call pkg-config.
12268See the pkg-config man page for more details.
12269" >&2;}
12270   { (exit 1); exit 1; }; }
12271elif test $pkg_failed = untried; then
12272	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12274{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12275is in your PATH or set the PKG_CONFIG environment variable to the full
12276path to pkg-config.
12277
12278Alternatively, you may set the environment variables XORG_CFLAGS
12279and XORG_LIBS to avoid the need to call pkg-config.
12280See the pkg-config man page for more details.
12281
12282To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12283See \`config.log' for more details." >&5
12284$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12285is in your PATH or set the PKG_CONFIG environment variable to the full
12286path to pkg-config.
12287
12288Alternatively, you may set the environment variables XORG_CFLAGS
12289and XORG_LIBS to avoid the need to call pkg-config.
12290See the pkg-config man page for more details.
12291
12292To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12293See \`config.log' for more details." >&2;}
12294   { (exit 1); exit 1; }; }; }
12295else
12296	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12297	XORG_LIBS=$pkg_cv_XORG_LIBS
12298        { $as_echo "$as_me:$LINENO: result: yes" >&5
12299$as_echo "yes" >&6; }
12300	:
12301fi
12302sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12303
12304# Checks for libraries.
12305SAVE_CPPFLAGS="$CPPFLAGS"
12306CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
12307{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12308$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12309if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12310  $as_echo_n "(cached) " >&6
12311else
12312  cat >conftest.$ac_ext <<_ACEOF
12313/* confdefs.h.  */
12314_ACEOF
12315cat confdefs.h >>conftest.$ac_ext
12316cat >>conftest.$ac_ext <<_ACEOF
12317/* end confdefs.h.  */
12318#include "xorg-server.h"
12319
12320int
12321main ()
12322{
12323#ifndef XSERVER_LIBPCIACCESS
12324  (void) XSERVER_LIBPCIACCESS;
12325#endif
12326
12327  ;
12328  return 0;
12329}
12330_ACEOF
12331rm -f conftest.$ac_objext
12332if { (ac_try="$ac_compile"
12333case "(($ac_try" in
12334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335  *) ac_try_echo=$ac_try;;
12336esac
12337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12338$as_echo "$ac_try_echo") >&5
12339  (eval "$ac_compile") 2>conftest.er1
12340  ac_status=$?
12341  grep -v '^ *+' conftest.er1 >conftest.err
12342  rm -f conftest.er1
12343  cat conftest.err >&5
12344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345  (exit $ac_status); } && {
12346	 test -z "$ac_c_werror_flag" ||
12347	 test ! -s conftest.err
12348       } && test -s conftest.$ac_objext; then
12349  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12350else
12351  $as_echo "$as_me: failed program was:" >&5
12352sed 's/^/| /' conftest.$ac_ext >&5
12353
12354	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12355fi
12356
12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358fi
12359{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12360$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12361if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12362  XSERVER_LIBPCIACCESS=yes
12363else
12364  XSERVER_LIBPCIACCESS=no
12365fi
12366
12367if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12368  { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
12369$as_echo_n "checking for xf1bpp.h... " >&6; }
12370if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12371  $as_echo_n "(cached) " >&6
12372fi
12373{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
12374$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
12375else
12376  # Is the header compilable?
12377{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
12378$as_echo_n "checking xf1bpp.h usability... " >&6; }
12379cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h.  */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h.  */
12385$ac_includes_default
12386#include <xf1bpp.h>
12387_ACEOF
12388rm -f conftest.$ac_objext
12389if { (ac_try="$ac_compile"
12390case "(($ac_try" in
12391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392  *) ac_try_echo=$ac_try;;
12393esac
12394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12395$as_echo "$ac_try_echo") >&5
12396  (eval "$ac_compile") 2>conftest.er1
12397  ac_status=$?
12398  grep -v '^ *+' conftest.er1 >conftest.err
12399  rm -f conftest.er1
12400  cat conftest.err >&5
12401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402  (exit $ac_status); } && {
12403	 test -z "$ac_c_werror_flag" ||
12404	 test ! -s conftest.err
12405       } && test -s conftest.$ac_objext; then
12406  ac_header_compiler=yes
12407else
12408  $as_echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411	ac_header_compiler=no
12412fi
12413
12414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12416$as_echo "$ac_header_compiler" >&6; }
12417
12418# Is the header present?
12419{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
12420$as_echo_n "checking xf1bpp.h presence... " >&6; }
12421cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h.  */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h.  */
12427#include <xf1bpp.h>
12428_ACEOF
12429if { (ac_try="$ac_cpp conftest.$ac_ext"
12430case "(($ac_try" in
12431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432  *) ac_try_echo=$ac_try;;
12433esac
12434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12435$as_echo "$ac_try_echo") >&5
12436  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12437  ac_status=$?
12438  grep -v '^ *+' conftest.er1 >conftest.err
12439  rm -f conftest.er1
12440  cat conftest.err >&5
12441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442  (exit $ac_status); } >/dev/null && {
12443	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12444	 test ! -s conftest.err
12445       }; then
12446  ac_header_preproc=yes
12447else
12448  $as_echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
12451  ac_header_preproc=no
12452fi
12453
12454rm -f conftest.err conftest.$ac_ext
12455{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12456$as_echo "$ac_header_preproc" >&6; }
12457
12458# So?  What about this header?
12459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12460  yes:no: )
12461    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12462$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12463    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
12464$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
12465    ac_header_preproc=yes
12466    ;;
12467  no:yes:* )
12468    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
12469$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
12470    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
12471$as_echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
12472    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
12473$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
12474    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
12475$as_echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12476    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
12477$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
12478    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
12479$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
12480    ( cat <<\_ASBOX
12481## ---------------------------------------------------------------------- ##
12482## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
12483## ---------------------------------------------------------------------- ##
12484_ASBOX
12485     ) | sed "s/^/$as_me: WARNING:     /" >&2
12486    ;;
12487esac
12488{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
12489$as_echo_n "checking for xf1bpp.h... " >&6; }
12490if test "${ac_cv_header_xf1bpp_h+set}" = set; then
12491  $as_echo_n "(cached) " >&6
12492else
12493  ac_cv_header_xf1bpp_h=$ac_header_preproc
12494fi
12495{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
12496$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
12497
12498fi
12499if test "x$ac_cv_header_xf1bpp_h" = x""yes; then
12500
12501cat >>confdefs.h <<\_ACEOF
12502#define HAVE_XF1BPP 1
12503_ACEOF
12504
12505fi
12506
12507
12508if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12509  { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
12510$as_echo_n "checking for xf4bpp.h... " >&6; }
12511if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12512  $as_echo_n "(cached) " >&6
12513fi
12514{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
12515$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
12516else
12517  # Is the header compilable?
12518{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
12519$as_echo_n "checking xf4bpp.h usability... " >&6; }
12520cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h.  */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h.  */
12526$ac_includes_default
12527#include <xf4bpp.h>
12528_ACEOF
12529rm -f conftest.$ac_objext
12530if { (ac_try="$ac_compile"
12531case "(($ac_try" in
12532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533  *) ac_try_echo=$ac_try;;
12534esac
12535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12536$as_echo "$ac_try_echo") >&5
12537  (eval "$ac_compile") 2>conftest.er1
12538  ac_status=$?
12539  grep -v '^ *+' conftest.er1 >conftest.err
12540  rm -f conftest.er1
12541  cat conftest.err >&5
12542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543  (exit $ac_status); } && {
12544	 test -z "$ac_c_werror_flag" ||
12545	 test ! -s conftest.err
12546       } && test -s conftest.$ac_objext; then
12547  ac_header_compiler=yes
12548else
12549  $as_echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552	ac_header_compiler=no
12553fi
12554
12555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12557$as_echo "$ac_header_compiler" >&6; }
12558
12559# Is the header present?
12560{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
12561$as_echo_n "checking xf4bpp.h presence... " >&6; }
12562cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h.  */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h.  */
12568#include <xf4bpp.h>
12569_ACEOF
12570if { (ac_try="$ac_cpp conftest.$ac_ext"
12571case "(($ac_try" in
12572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573  *) ac_try_echo=$ac_try;;
12574esac
12575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12576$as_echo "$ac_try_echo") >&5
12577  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12578  ac_status=$?
12579  grep -v '^ *+' conftest.er1 >conftest.err
12580  rm -f conftest.er1
12581  cat conftest.err >&5
12582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583  (exit $ac_status); } >/dev/null && {
12584	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12585	 test ! -s conftest.err
12586       }; then
12587  ac_header_preproc=yes
12588else
12589  $as_echo "$as_me: failed program was:" >&5
12590sed 's/^/| /' conftest.$ac_ext >&5
12591
12592  ac_header_preproc=no
12593fi
12594
12595rm -f conftest.err conftest.$ac_ext
12596{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12597$as_echo "$ac_header_preproc" >&6; }
12598
12599# So?  What about this header?
12600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12601  yes:no: )
12602    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12603$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12604    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
12605$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
12606    ac_header_preproc=yes
12607    ;;
12608  no:yes:* )
12609    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
12610$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
12611    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
12612$as_echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
12613    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
12614$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
12615    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
12616$as_echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12617    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
12618$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
12619    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
12620$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
12621    ( cat <<\_ASBOX
12622## ---------------------------------------------------------------------- ##
12623## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
12624## ---------------------------------------------------------------------- ##
12625_ASBOX
12626     ) | sed "s/^/$as_me: WARNING:     /" >&2
12627    ;;
12628esac
12629{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
12630$as_echo_n "checking for xf4bpp.h... " >&6; }
12631if test "${ac_cv_header_xf4bpp_h+set}" = set; then
12632  $as_echo_n "(cached) " >&6
12633else
12634  ac_cv_header_xf4bpp_h=$ac_header_preproc
12635fi
12636{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
12637$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
12638
12639fi
12640if test "x$ac_cv_header_xf4bpp_h" = x""yes; then
12641
12642cat >>confdefs.h <<\_ACEOF
12643#define HAVE_XF4BPP 1
12644_ACEOF
12645
12646fi
12647
12648
12649CPPFLAGS="$SAVE_CPPFLAGS"
12650
12651if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12652
12653pkg_failed=no
12654{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12655$as_echo_n "checking for PCIACCESS... " >&6; }
12656
12657if test -n "$PCIACCESS_CFLAGS"; then
12658    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12659 elif test -n "$PKG_CONFIG"; then
12660    if test -n "$PKG_CONFIG" && \
12661    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12662  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12663  ac_status=$?
12664  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665  (exit $ac_status); }; then
12666  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
12667else
12668  pkg_failed=yes
12669fi
12670 else
12671    pkg_failed=untried
12672fi
12673if test -n "$PCIACCESS_LIBS"; then
12674    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12675 elif test -n "$PKG_CONFIG"; then
12676    if test -n "$PKG_CONFIG" && \
12677    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
12678  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
12679  ac_status=$?
12680  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681  (exit $ac_status); }; then
12682  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
12683else
12684  pkg_failed=yes
12685fi
12686 else
12687    pkg_failed=untried
12688fi
12689
12690
12691
12692if test $pkg_failed = yes; then
12693
12694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12695        _pkg_short_errors_supported=yes
12696else
12697        _pkg_short_errors_supported=no
12698fi
12699        if test $_pkg_short_errors_supported = yes; then
12700	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
12701        else
12702	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
12703        fi
12704	# Put the nasty error message in config.log where it belongs
12705	echo "$PCIACCESS_PKG_ERRORS" >&5
12706
12707	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
12708
12709$PCIACCESS_PKG_ERRORS
12710
12711Consider adjusting the PKG_CONFIG_PATH environment variable if you
12712installed software in a non-standard prefix.
12713
12714Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12715and PCIACCESS_LIBS to avoid the need to call pkg-config.
12716See the pkg-config man page for more details.
12717" >&5
12718$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
12719
12720$PCIACCESS_PKG_ERRORS
12721
12722Consider adjusting the PKG_CONFIG_PATH environment variable if you
12723installed software in a non-standard prefix.
12724
12725Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12726and PCIACCESS_LIBS to avoid the need to call pkg-config.
12727See the pkg-config man page for more details.
12728" >&2;}
12729   { (exit 1); exit 1; }; }
12730elif test $pkg_failed = untried; then
12731	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12733{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12734is in your PATH or set the PKG_CONFIG environment variable to the full
12735path to pkg-config.
12736
12737Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12738and PCIACCESS_LIBS to avoid the need to call pkg-config.
12739See the pkg-config man page for more details.
12740
12741To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12742See \`config.log' for more details." >&5
12743$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12744is in your PATH or set the PKG_CONFIG environment variable to the full
12745path to pkg-config.
12746
12747Alternatively, you may set the environment variables PCIACCESS_CFLAGS
12748and PCIACCESS_LIBS to avoid the need to call pkg-config.
12749See the pkg-config man page for more details.
12750
12751To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12752See \`config.log' for more details." >&2;}
12753   { (exit 1); exit 1; }; }; }
12754else
12755	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12756	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12757        { $as_echo "$as_me:$LINENO: result: yes" >&5
12758$as_echo "yes" >&6; }
12759	:
12760fi
12761    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
12762fi
12763 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12764  XSERVER_LIBPCIACCESS_TRUE=
12765  XSERVER_LIBPCIACCESS_FALSE='#'
12766else
12767  XSERVER_LIBPCIACCESS_TRUE='#'
12768  XSERVER_LIBPCIACCESS_FALSE=
12769fi
12770
12771
12772# Checks for header files.
12773{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12774$as_echo_n "checking for ANSI C header files... " >&6; }
12775if test "${ac_cv_header_stdc+set}" = set; then
12776  $as_echo_n "(cached) " >&6
12777else
12778  cat >conftest.$ac_ext <<_ACEOF
12779/* confdefs.h.  */
12780_ACEOF
12781cat confdefs.h >>conftest.$ac_ext
12782cat >>conftest.$ac_ext <<_ACEOF
12783/* end confdefs.h.  */
12784#include <stdlib.h>
12785#include <stdarg.h>
12786#include <string.h>
12787#include <float.h>
12788
12789int
12790main ()
12791{
12792
12793  ;
12794  return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext
12798if { (ac_try="$ac_compile"
12799case "(($ac_try" in
12800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801  *) ac_try_echo=$ac_try;;
12802esac
12803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804$as_echo "$ac_try_echo") >&5
12805  (eval "$ac_compile") 2>conftest.er1
12806  ac_status=$?
12807  grep -v '^ *+' conftest.er1 >conftest.err
12808  rm -f conftest.er1
12809  cat conftest.err >&5
12810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811  (exit $ac_status); } && {
12812	 test -z "$ac_c_werror_flag" ||
12813	 test ! -s conftest.err
12814       } && test -s conftest.$ac_objext; then
12815  ac_cv_header_stdc=yes
12816else
12817  $as_echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820	ac_cv_header_stdc=no
12821fi
12822
12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824
12825if test $ac_cv_header_stdc = yes; then
12826  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12827  cat >conftest.$ac_ext <<_ACEOF
12828/* confdefs.h.  */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h.  */
12833#include <string.h>
12834
12835_ACEOF
12836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12837  $EGREP "memchr" >/dev/null 2>&1; then
12838  :
12839else
12840  ac_cv_header_stdc=no
12841fi
12842rm -f conftest*
12843
12844fi
12845
12846if test $ac_cv_header_stdc = yes; then
12847  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12848  cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h.  */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
12853/* end confdefs.h.  */
12854#include <stdlib.h>
12855
12856_ACEOF
12857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12858  $EGREP "free" >/dev/null 2>&1; then
12859  :
12860else
12861  ac_cv_header_stdc=no
12862fi
12863rm -f conftest*
12864
12865fi
12866
12867if test $ac_cv_header_stdc = yes; then
12868  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12869  if test "$cross_compiling" = yes; then
12870  :
12871else
12872  cat >conftest.$ac_ext <<_ACEOF
12873/* confdefs.h.  */
12874_ACEOF
12875cat confdefs.h >>conftest.$ac_ext
12876cat >>conftest.$ac_ext <<_ACEOF
12877/* end confdefs.h.  */
12878#include <ctype.h>
12879#include <stdlib.h>
12880#if ((' ' & 0x0FF) == 0x020)
12881# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12882# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12883#else
12884# define ISLOWER(c) \
12885		   (('a' <= (c) && (c) <= 'i') \
12886		     || ('j' <= (c) && (c) <= 'r') \
12887		     || ('s' <= (c) && (c) <= 'z'))
12888# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12889#endif
12890
12891#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12892int
12893main ()
12894{
12895  int i;
12896  for (i = 0; i < 256; i++)
12897    if (XOR (islower (i), ISLOWER (i))
12898	|| toupper (i) != TOUPPER (i))
12899      return 2;
12900  return 0;
12901}
12902_ACEOF
12903rm -f conftest$ac_exeext
12904if { (ac_try="$ac_link"
12905case "(($ac_try" in
12906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907  *) ac_try_echo=$ac_try;;
12908esac
12909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12910$as_echo "$ac_try_echo") >&5
12911  (eval "$ac_link") 2>&5
12912  ac_status=$?
12913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12915  { (case "(($ac_try" in
12916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917  *) ac_try_echo=$ac_try;;
12918esac
12919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12920$as_echo "$ac_try_echo") >&5
12921  (eval "$ac_try") 2>&5
12922  ac_status=$?
12923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924  (exit $ac_status); }; }; then
12925  :
12926else
12927  $as_echo "$as_me: program exited with status $ac_status" >&5
12928$as_echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
12931( exit $ac_status )
12932ac_cv_header_stdc=no
12933fi
12934rm -rf conftest.dSYM
12935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12936fi
12937
12938
12939fi
12940fi
12941{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12942$as_echo "$ac_cv_header_stdc" >&6; }
12943if test $ac_cv_header_stdc = yes; then
12944
12945cat >>confdefs.h <<\_ACEOF
12946#define STDC_HEADERS 1
12947_ACEOF
12948
12949fi
12950
12951
12952
12953for ac_header in elf.h elf_abi.h
12954do
12955as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12957  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12958$as_echo_n "checking for $ac_header... " >&6; }
12959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12960  $as_echo_n "(cached) " >&6
12961fi
12962ac_res=`eval 'as_val=${'$as_ac_Header'}
12963		 $as_echo "$as_val"'`
12964	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12965$as_echo "$ac_res" >&6; }
12966else
12967  # Is the header compilable?
12968{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12969$as_echo_n "checking $ac_header usability... " >&6; }
12970cat >conftest.$ac_ext <<_ACEOF
12971/* confdefs.h.  */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h.  */
12976$ac_includes_default
12977#include <$ac_header>
12978_ACEOF
12979rm -f conftest.$ac_objext
12980if { (ac_try="$ac_compile"
12981case "(($ac_try" in
12982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983  *) ac_try_echo=$ac_try;;
12984esac
12985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12986$as_echo "$ac_try_echo") >&5
12987  (eval "$ac_compile") 2>conftest.er1
12988  ac_status=$?
12989  grep -v '^ *+' conftest.er1 >conftest.err
12990  rm -f conftest.er1
12991  cat conftest.err >&5
12992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993  (exit $ac_status); } && {
12994	 test -z "$ac_c_werror_flag" ||
12995	 test ! -s conftest.err
12996       } && test -s conftest.$ac_objext; then
12997  ac_header_compiler=yes
12998else
12999  $as_echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002	ac_header_compiler=no
13003fi
13004
13005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13007$as_echo "$ac_header_compiler" >&6; }
13008
13009# Is the header present?
13010{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13011$as_echo_n "checking $ac_header presence... " >&6; }
13012cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h.  */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
13017/* end confdefs.h.  */
13018#include <$ac_header>
13019_ACEOF
13020if { (ac_try="$ac_cpp conftest.$ac_ext"
13021case "(($ac_try" in
13022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023  *) ac_try_echo=$ac_try;;
13024esac
13025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13026$as_echo "$ac_try_echo") >&5
13027  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13028  ac_status=$?
13029  grep -v '^ *+' conftest.er1 >conftest.err
13030  rm -f conftest.er1
13031  cat conftest.err >&5
13032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033  (exit $ac_status); } >/dev/null && {
13034	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13035	 test ! -s conftest.err
13036       }; then
13037  ac_header_preproc=yes
13038else
13039  $as_echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042  ac_header_preproc=no
13043fi
13044
13045rm -f conftest.err conftest.$ac_ext
13046{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13047$as_echo "$ac_header_preproc" >&6; }
13048
13049# So?  What about this header?
13050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13051  yes:no: )
13052    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13053$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13054    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13055$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13056    ac_header_preproc=yes
13057    ;;
13058  no:yes:* )
13059    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13060$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13061    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13062$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13063    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13064$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13065    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13066$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13067    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13068$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13069    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13070$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13071    ( cat <<\_ASBOX
13072## ---------------------------------------------------------------------- ##
13073## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
13074## ---------------------------------------------------------------------- ##
13075_ASBOX
13076     ) | sed "s/^/$as_me: WARNING:     /" >&2
13077    ;;
13078esac
13079{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13080$as_echo_n "checking for $ac_header... " >&6; }
13081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13082  $as_echo_n "(cached) " >&6
13083else
13084  eval "$as_ac_Header=\$ac_header_preproc"
13085fi
13086ac_res=`eval 'as_val=${'$as_ac_Header'}
13087		 $as_echo "$as_val"'`
13088	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13089$as_echo "$ac_res" >&6; }
13090
13091fi
13092as_val=`eval 'as_val=${'$as_ac_Header'}
13093		 $as_echo "$as_val"'`
13094   if test "x$as_val" = x""yes; then
13095  cat >>confdefs.h <<_ACEOF
13096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13097_ACEOF
13098
13099fi
13100
13101done
13102
13103
13104
13105
13106
13107DRIVER_NAME=rendition
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
13229
13230if test x$XORG_SGML_PATH = x ; then
13231    XORG_SGML_PATH=$prefix/share/sgml
13232fi
13233HAVE_DEFS_ENT=
13234
13235if test x"$cross_compiling" = x"yes" ; then
13236  HAVE_DEFS_ENT=no
13237else
13238  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
13239{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
13240$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
13241if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13242  $as_echo_n "(cached) " >&6
13243else
13244  test "$cross_compiling" = yes &&
13245  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13246$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13247   { (exit 1); exit 1; }; }
13248if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
13249  eval "$as_ac_File=yes"
13250else
13251  eval "$as_ac_File=no"
13252fi
13253fi
13254ac_res=`eval 'as_val=${'$as_ac_File'}
13255		 $as_echo "$as_val"'`
13256	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13257$as_echo "$ac_res" >&6; }
13258as_val=`eval 'as_val=${'$as_ac_File'}
13259		 $as_echo "$as_val"'`
13260   if test "x$as_val" = x""yes; then
13261  HAVE_DEFS_ENT=yes
13262fi
13263
13264fi
13265
13266# Extract the first word of "linuxdoc", so it can be a program name with args.
13267set dummy linuxdoc; ac_word=$2
13268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13269$as_echo_n "checking for $ac_word... " >&6; }
13270if test "${ac_cv_path_LINUXDOC+set}" = set; then
13271  $as_echo_n "(cached) " >&6
13272else
13273  case $LINUXDOC in
13274  [\\/]* | ?:[\\/]*)
13275  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
13276  ;;
13277  *)
13278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279for as_dir in $PATH
13280do
13281  IFS=$as_save_IFS
13282  test -z "$as_dir" && as_dir=.
13283  for ac_exec_ext in '' $ac_executable_extensions; do
13284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
13286    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13287    break 2
13288  fi
13289done
13290done
13291IFS=$as_save_IFS
13292
13293  ;;
13294esac
13295fi
13296LINUXDOC=$ac_cv_path_LINUXDOC
13297if test -n "$LINUXDOC"; then
13298  { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
13299$as_echo "$LINUXDOC" >&6; }
13300else
13301  { $as_echo "$as_me:$LINENO: result: no" >&5
13302$as_echo "no" >&6; }
13303fi
13304
13305
13306# Extract the first word of "ps2pdf", so it can be a program name with args.
13307set dummy ps2pdf; ac_word=$2
13308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13309$as_echo_n "checking for $ac_word... " >&6; }
13310if test "${ac_cv_path_PS2PDF+set}" = set; then
13311  $as_echo_n "(cached) " >&6
13312else
13313  case $PS2PDF in
13314  [\\/]* | ?:[\\/]*)
13315  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
13316  ;;
13317  *)
13318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319for as_dir in $PATH
13320do
13321  IFS=$as_save_IFS
13322  test -z "$as_dir" && as_dir=.
13323  for ac_exec_ext in '' $ac_executable_extensions; do
13324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13325    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
13326    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13327    break 2
13328  fi
13329done
13330done
13331IFS=$as_save_IFS
13332
13333  ;;
13334esac
13335fi
13336PS2PDF=$ac_cv_path_PS2PDF
13337if test -n "$PS2PDF"; then
13338  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
13339$as_echo "$PS2PDF" >&6; }
13340else
13341  { $as_echo "$as_me:$LINENO: result: no" >&5
13342$as_echo "no" >&6; }
13343fi
13344
13345
13346
13347{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
13348$as_echo_n "checking Whether to build documentation... " >&6; }
13349
13350if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
13351   BUILDDOC=yes
13352else
13353   BUILDDOC=no
13354fi
13355
13356 if test x$BUILDDOC = xyes; then
13357  BUILD_LINUXDOC_TRUE=
13358  BUILD_LINUXDOC_FALSE='#'
13359else
13360  BUILD_LINUXDOC_TRUE='#'
13361  BUILD_LINUXDOC_FALSE=
13362fi
13363
13364
13365{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
13366$as_echo "$BUILDDOC" >&6; }
13367
13368{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
13369$as_echo_n "checking Whether to build pdf documentation... " >&6; }
13370
13371if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
13372   BUILDPDFDOC=yes
13373else
13374   BUILDPDFDOC=no
13375fi
13376
13377 if test x$BUILDPDFDOC = xyes; then
13378  BUILD_PDFDOC_TRUE=
13379  BUILD_PDFDOC_FALSE='#'
13380else
13381  BUILD_PDFDOC_TRUE='#'
13382  BUILD_PDFDOC_FALSE=
13383fi
13384
13385
13386{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
13387$as_echo "$BUILDPDFDOC" >&6; }
13388
13389MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
13390MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
13391MAKE_PDF="$PS2PDF"
13392MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
13393
13394
13395
13396
13397
13398
13399
13400ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13401
13402cat >confcache <<\_ACEOF
13403# This file is a shell script that caches the results of configure
13404# tests run on this system so they can be shared between configure
13405# scripts and configure runs, see configure's option --config-cache.
13406# It is not useful on other systems.  If it contains results you don't
13407# want to keep, you may remove or edit it.
13408#
13409# config.status only pays attention to the cache file if you give it
13410# the --recheck option to rerun configure.
13411#
13412# `ac_cv_env_foo' variables (set or unset) will be overridden when
13413# loading this file, other *unset* `ac_cv_foo' will be assigned the
13414# following values.
13415
13416_ACEOF
13417
13418# The following way of writing the cache mishandles newlines in values,
13419# but we know of no workaround that is simple, portable, and efficient.
13420# So, we kill variables containing newlines.
13421# Ultrix sh set writes to stderr and can't be redirected directly,
13422# and sets the high bit in the cache file unless we assign to the vars.
13423(
13424  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13425    eval ac_val=\$$ac_var
13426    case $ac_val in #(
13427    *${as_nl}*)
13428      case $ac_var in #(
13429      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13431      esac
13432      case $ac_var in #(
13433      _ | IFS | as_nl) ;; #(
13434      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13435      *) $as_unset $ac_var ;;
13436      esac ;;
13437    esac
13438  done
13439
13440  (set) 2>&1 |
13441    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13442    *${as_nl}ac_space=\ *)
13443      # `set' does not quote correctly, so add quotes (double-quote
13444      # substitution turns \\\\ into \\, and sed turns \\ into \).
13445      sed -n \
13446	"s/'/'\\\\''/g;
13447	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13448      ;; #(
13449    *)
13450      # `set' quotes correctly as required by POSIX, so do not add quotes.
13451      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13452      ;;
13453    esac |
13454    sort
13455) |
13456  sed '
13457     /^ac_cv_env_/b end
13458     t clear
13459     :clear
13460     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13461     t end
13462     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13463     :end' >>confcache
13464if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13465  if test -w "$cache_file"; then
13466    test "x$cache_file" != "x/dev/null" &&
13467      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13468$as_echo "$as_me: updating cache $cache_file" >&6;}
13469    cat confcache >$cache_file
13470  else
13471    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13472$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13473  fi
13474fi
13475rm -f confcache
13476
13477test "x$prefix" = xNONE && prefix=$ac_default_prefix
13478# Let make expand exec_prefix.
13479test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13480
13481DEFS=-DHAVE_CONFIG_H
13482
13483ac_libobjs=
13484ac_ltlibobjs=
13485for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13486  # 1. Remove the extension, and $U if already installed.
13487  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13488  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13489  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13490  #    will be set to the directory where LIBOBJS objects are built.
13491  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13492  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13493done
13494LIBOBJS=$ac_libobjs
13495
13496LTLIBOBJS=$ac_ltlibobjs
13497
13498
13499if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13500  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13501Usually this means the macro was only invoked conditionally." >&5
13502$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13503Usually this means the macro was only invoked conditionally." >&2;}
13504   { (exit 1); exit 1; }; }
13505fi
13506if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13507  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13508Usually this means the macro was only invoked conditionally." >&5
13509$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13510Usually this means the macro was only invoked conditionally." >&2;}
13511   { (exit 1); exit 1; }; }
13512fi
13513if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13514  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13515Usually this means the macro was only invoked conditionally." >&5
13516$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13517Usually this means the macro was only invoked conditionally." >&2;}
13518   { (exit 1); exit 1; }; }
13519fi
13520if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13521  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13522Usually this means the macro was only invoked conditionally." >&5
13523$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13524Usually this means the macro was only invoked conditionally." >&2;}
13525   { (exit 1); exit 1; }; }
13526fi
13527if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13528  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13529Usually this means the macro was only invoked conditionally." >&5
13530$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13531Usually this means the macro was only invoked conditionally." >&2;}
13532   { (exit 1); exit 1; }; }
13533fi
13534if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
13535  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
13536Usually this means the macro was only invoked conditionally." >&5
13537$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
13538Usually this means the macro was only invoked conditionally." >&2;}
13539   { (exit 1); exit 1; }; }
13540fi
13541if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
13542  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
13543Usually this means the macro was only invoked conditionally." >&5
13544$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
13545Usually this means the macro was only invoked conditionally." >&2;}
13546   { (exit 1); exit 1; }; }
13547fi
13548
13549: ${CONFIG_STATUS=./config.status}
13550ac_write_fail=0
13551ac_clean_files_save=$ac_clean_files
13552ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13553{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13554$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13555cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13556#! $SHELL
13557# Generated by $as_me.
13558# Run this file to recreate the current configuration.
13559# Compiler output produced by configure, useful for debugging
13560# configure, is in config.log if it exists.
13561
13562debug=false
13563ac_cs_recheck=false
13564ac_cs_silent=false
13565SHELL=\${CONFIG_SHELL-$SHELL}
13566_ACEOF
13567
13568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13569## --------------------- ##
13570## M4sh Initialization.  ##
13571## --------------------- ##
13572
13573# Be more Bourne compatible
13574DUALCASE=1; export DUALCASE # for MKS sh
13575if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13576  emulate sh
13577  NULLCMD=:
13578  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13579  # is contrary to our usage.  Disable this feature.
13580  alias -g '${1+"$@"}'='"$@"'
13581  setopt NO_GLOB_SUBST
13582else
13583  case `(set -o) 2>/dev/null` in
13584  *posix*) set -o posix ;;
13585esac
13586
13587fi
13588
13589
13590
13591
13592# PATH needs CR
13593# Avoid depending upon Character Ranges.
13594as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13595as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13596as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13597as_cr_digits='0123456789'
13598as_cr_alnum=$as_cr_Letters$as_cr_digits
13599
13600as_nl='
13601'
13602export as_nl
13603# Printing a long string crashes Solaris 7 /usr/bin/printf.
13604as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13605as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13607if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13608  as_echo='printf %s\n'
13609  as_echo_n='printf %s'
13610else
13611  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13612    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13613    as_echo_n='/usr/ucb/echo -n'
13614  else
13615    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13616    as_echo_n_body='eval
13617      arg=$1;
13618      case $arg in
13619      *"$as_nl"*)
13620	expr "X$arg" : "X\\(.*\\)$as_nl";
13621	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13622      esac;
13623      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13624    '
13625    export as_echo_n_body
13626    as_echo_n='sh -c $as_echo_n_body as_echo'
13627  fi
13628  export as_echo_body
13629  as_echo='sh -c $as_echo_body as_echo'
13630fi
13631
13632# The user is always right.
13633if test "${PATH_SEPARATOR+set}" != set; then
13634  PATH_SEPARATOR=:
13635  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13636    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13637      PATH_SEPARATOR=';'
13638  }
13639fi
13640
13641# Support unset when possible.
13642if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13643  as_unset=unset
13644else
13645  as_unset=false
13646fi
13647
13648
13649# IFS
13650# We need space, tab and new line, in precisely that order.  Quoting is
13651# there to prevent editors from complaining about space-tab.
13652# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13653# splitting by setting IFS to empty value.)
13654IFS=" ""	$as_nl"
13655
13656# Find who we are.  Look in the path if we contain no directory separator.
13657case $0 in
13658  *[\\/]* ) as_myself=$0 ;;
13659  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662  IFS=$as_save_IFS
13663  test -z "$as_dir" && as_dir=.
13664  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13665done
13666IFS=$as_save_IFS
13667
13668     ;;
13669esac
13670# We did not find ourselves, most probably we were run as `sh COMMAND'
13671# in which case we are not to be found in the path.
13672if test "x$as_myself" = x; then
13673  as_myself=$0
13674fi
13675if test ! -f "$as_myself"; then
13676  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13677  { (exit 1); exit 1; }
13678fi
13679
13680# Work around bugs in pre-3.0 UWIN ksh.
13681for as_var in ENV MAIL MAILPATH
13682do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13683done
13684PS1='$ '
13685PS2='> '
13686PS4='+ '
13687
13688# NLS nuisances.
13689LC_ALL=C
13690export LC_ALL
13691LANGUAGE=C
13692export LANGUAGE
13693
13694# Required to use basename.
13695if expr a : '\(a\)' >/dev/null 2>&1 &&
13696   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13697  as_expr=expr
13698else
13699  as_expr=false
13700fi
13701
13702if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13703  as_basename=basename
13704else
13705  as_basename=false
13706fi
13707
13708
13709# Name of the executable.
13710as_me=`$as_basename -- "$0" ||
13711$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13712	 X"$0" : 'X\(//\)$' \| \
13713	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13714$as_echo X/"$0" |
13715    sed '/^.*\/\([^/][^/]*\)\/*$/{
13716	    s//\1/
13717	    q
13718	  }
13719	  /^X\/\(\/\/\)$/{
13720	    s//\1/
13721	    q
13722	  }
13723	  /^X\/\(\/\).*/{
13724	    s//\1/
13725	    q
13726	  }
13727	  s/.*/./; q'`
13728
13729# CDPATH.
13730$as_unset CDPATH
13731
13732
13733
13734  as_lineno_1=$LINENO
13735  as_lineno_2=$LINENO
13736  test "x$as_lineno_1" != "x$as_lineno_2" &&
13737  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13738
13739  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13740  # uniformly replaced by the line number.  The first 'sed' inserts a
13741  # line-number line after each line using $LINENO; the second 'sed'
13742  # does the real work.  The second script uses 'N' to pair each
13743  # line-number line with the line containing $LINENO, and appends
13744  # trailing '-' during substitution so that $LINENO is not a special
13745  # case at line end.
13746  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13747  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13748  # E. McMahon (1931-1989) for sed's syntax.  :-)
13749  sed -n '
13750    p
13751    /[$]LINENO/=
13752  ' <$as_myself |
13753    sed '
13754      s/[$]LINENO.*/&-/
13755      t lineno
13756      b
13757      :lineno
13758      N
13759      :loop
13760      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13761      t loop
13762      s/-\n.*//
13763    ' >$as_me.lineno &&
13764  chmod +x "$as_me.lineno" ||
13765    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13766   { (exit 1); exit 1; }; }
13767
13768  # Don't try to exec as it changes $[0], causing all sort of problems
13769  # (the dirname of $[0] is not the place where we might find the
13770  # original and so on.  Autoconf is especially sensitive to this).
13771  . "./$as_me.lineno"
13772  # Exit status is that of the last command.
13773  exit
13774}
13775
13776
13777if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13778  as_dirname=dirname
13779else
13780  as_dirname=false
13781fi
13782
13783ECHO_C= ECHO_N= ECHO_T=
13784case `echo -n x` in
13785-n*)
13786  case `echo 'x\c'` in
13787  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13788  *)   ECHO_C='\c';;
13789  esac;;
13790*)
13791  ECHO_N='-n';;
13792esac
13793if expr a : '\(a\)' >/dev/null 2>&1 &&
13794   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13795  as_expr=expr
13796else
13797  as_expr=false
13798fi
13799
13800rm -f conf$$ conf$$.exe conf$$.file
13801if test -d conf$$.dir; then
13802  rm -f conf$$.dir/conf$$.file
13803else
13804  rm -f conf$$.dir
13805  mkdir conf$$.dir 2>/dev/null
13806fi
13807if (echo >conf$$.file) 2>/dev/null; then
13808  if ln -s conf$$.file conf$$ 2>/dev/null; then
13809    as_ln_s='ln -s'
13810    # ... but there are two gotchas:
13811    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13812    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13813    # In both cases, we have to default to `cp -p'.
13814    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13815      as_ln_s='cp -p'
13816  elif ln conf$$.file conf$$ 2>/dev/null; then
13817    as_ln_s=ln
13818  else
13819    as_ln_s='cp -p'
13820  fi
13821else
13822  as_ln_s='cp -p'
13823fi
13824rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13825rmdir conf$$.dir 2>/dev/null
13826
13827if mkdir -p . 2>/dev/null; then
13828  as_mkdir_p=:
13829else
13830  test -d ./-p && rmdir ./-p
13831  as_mkdir_p=false
13832fi
13833
13834if test -x / >/dev/null 2>&1; then
13835  as_test_x='test -x'
13836else
13837  if ls -dL / >/dev/null 2>&1; then
13838    as_ls_L_option=L
13839  else
13840    as_ls_L_option=
13841  fi
13842  as_test_x='
13843    eval sh -c '\''
13844      if test -d "$1"; then
13845	test -d "$1/.";
13846      else
13847	case $1 in
13848	-*)set "./$1";;
13849	esac;
13850	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13851	???[sx]*):;;*)false;;esac;fi
13852    '\'' sh
13853  '
13854fi
13855as_executable_p=$as_test_x
13856
13857# Sed expression to map a string onto a valid CPP name.
13858as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13859
13860# Sed expression to map a string onto a valid variable name.
13861as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13862
13863
13864exec 6>&1
13865
13866# Save the log message, to keep $[0] and so on meaningful, and to
13867# report actual input values of CONFIG_FILES etc. instead of their
13868# values after options handling.
13869ac_log="
13870This file was extended by xf86-video-rendition $as_me 4.2.2, which was
13871generated by GNU Autoconf 2.63.  Invocation command line was
13872
13873  CONFIG_FILES    = $CONFIG_FILES
13874  CONFIG_HEADERS  = $CONFIG_HEADERS
13875  CONFIG_LINKS    = $CONFIG_LINKS
13876  CONFIG_COMMANDS = $CONFIG_COMMANDS
13877  $ $0 $@
13878
13879on `(hostname || uname -n) 2>/dev/null | sed 1q`
13880"
13881
13882_ACEOF
13883
13884case $ac_config_files in *"
13885"*) set x $ac_config_files; shift; ac_config_files=$*;;
13886esac
13887
13888case $ac_config_headers in *"
13889"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13890esac
13891
13892
13893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13894# Files that config.status was made for.
13895config_files="$ac_config_files"
13896config_headers="$ac_config_headers"
13897config_commands="$ac_config_commands"
13898
13899_ACEOF
13900
13901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13902ac_cs_usage="\
13903\`$as_me' instantiates files from templates according to the
13904current configuration.
13905
13906Usage: $0 [OPTION]... [FILE]...
13907
13908  -h, --help       print this help, then exit
13909  -V, --version    print version number and configuration settings, then exit
13910  -q, --quiet, --silent
13911                   do not print progress messages
13912  -d, --debug      don't remove temporary files
13913      --recheck    update $as_me by reconfiguring in the same conditions
13914      --file=FILE[:TEMPLATE]
13915                   instantiate the configuration file FILE
13916      --header=FILE[:TEMPLATE]
13917                   instantiate the configuration header FILE
13918
13919Configuration files:
13920$config_files
13921
13922Configuration headers:
13923$config_headers
13924
13925Configuration commands:
13926$config_commands
13927
13928Report bugs to <bug-autoconf@gnu.org>."
13929
13930_ACEOF
13931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13932ac_cs_version="\\
13933xf86-video-rendition config.status 4.2.2
13934configured by $0, generated by GNU Autoconf 2.63,
13935  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13936
13937Copyright (C) 2008 Free Software Foundation, Inc.
13938This config.status script is free software; the Free Software Foundation
13939gives unlimited permission to copy, distribute and modify it."
13940
13941ac_pwd='$ac_pwd'
13942srcdir='$srcdir'
13943INSTALL='$INSTALL'
13944MKDIR_P='$MKDIR_P'
13945AWK='$AWK'
13946test -n "\$AWK" || AWK=awk
13947_ACEOF
13948
13949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13950# The default lists apply if the user does not specify any file.
13951ac_need_defaults=:
13952while test $# != 0
13953do
13954  case $1 in
13955  --*=*)
13956    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13957    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13958    ac_shift=:
13959    ;;
13960  *)
13961    ac_option=$1
13962    ac_optarg=$2
13963    ac_shift=shift
13964    ;;
13965  esac
13966
13967  case $ac_option in
13968  # Handling of the options.
13969  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13970    ac_cs_recheck=: ;;
13971  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13972    $as_echo "$ac_cs_version"; exit ;;
13973  --debug | --debu | --deb | --de | --d | -d )
13974    debug=: ;;
13975  --file | --fil | --fi | --f )
13976    $ac_shift
13977    case $ac_optarg in
13978    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13979    esac
13980    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13981    ac_need_defaults=false;;
13982  --header | --heade | --head | --hea )
13983    $ac_shift
13984    case $ac_optarg in
13985    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13986    esac
13987    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13988    ac_need_defaults=false;;
13989  --he | --h)
13990    # Conflict between --help and --header
13991    { $as_echo "$as_me: error: ambiguous option: $1
13992Try \`$0 --help' for more information." >&2
13993   { (exit 1); exit 1; }; };;
13994  --help | --hel | -h )
13995    $as_echo "$ac_cs_usage"; exit ;;
13996  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13997  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13998    ac_cs_silent=: ;;
13999
14000  # This is an error.
14001  -*) { $as_echo "$as_me: error: unrecognized option: $1
14002Try \`$0 --help' for more information." >&2
14003   { (exit 1); exit 1; }; } ;;
14004
14005  *) ac_config_targets="$ac_config_targets $1"
14006     ac_need_defaults=false ;;
14007
14008  esac
14009  shift
14010done
14011
14012ac_configure_extra_args=
14013
14014if $ac_cs_silent; then
14015  exec 6>/dev/null
14016  ac_configure_extra_args="$ac_configure_extra_args --silent"
14017fi
14018
14019_ACEOF
14020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021if \$ac_cs_recheck; then
14022  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14023  shift
14024  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14025  CONFIG_SHELL='$SHELL'
14026  export CONFIG_SHELL
14027  exec "\$@"
14028fi
14029
14030_ACEOF
14031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14032exec 5>>config.log
14033{
14034  echo
14035  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14036## Running $as_me. ##
14037_ASBOX
14038  $as_echo "$ac_log"
14039} >&5
14040
14041_ACEOF
14042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14043#
14044# INIT-COMMANDS
14045#
14046AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14047
14048
14049# The HP-UX ksh and POSIX shell print the target directory to stdout
14050# if CDPATH is set.
14051(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14052
14053sed_quote_subst='$sed_quote_subst'
14054double_quote_subst='$double_quote_subst'
14055delay_variable_subst='$delay_variable_subst'
14056enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14057macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14058macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14059enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14060pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14061enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14062host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14063host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14064host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14065build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14066build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14067build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14068SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14069Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14070GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14071EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14072FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14073LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14074NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14075LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14076max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14077ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14078exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14079lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14080lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14081lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14082reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14083reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14084OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14085deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14086file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14087AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14088AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14089STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14090RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14091old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14092old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14093old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14094CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14095CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14096compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14097GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14098lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14099lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14100lt_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"`'
14101lt_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"`'
14102objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14103SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14104ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14105MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14106lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14107lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14108lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14109lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14110lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14111need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14112DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14113NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14114LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14115OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14116OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14117libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14118shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14119extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14120archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14121enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14122export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14123whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14124compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14125old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14126old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14127archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14128archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14129module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14130module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14131with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14132allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14133no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14134hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14135hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14136hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14137hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14138hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14139hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14140hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14141hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14142inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14143link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14144fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14145always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14146export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14147exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14148include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14149prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14150file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14151variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14152need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14153need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14154version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14155runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14156shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14157shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14158libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14159library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14160soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14161postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14162postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14163finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14164finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14165hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14166sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14167sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14168hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14169enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14170enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14171enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14172old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14173striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14174
14175LTCC='$LTCC'
14176LTCFLAGS='$LTCFLAGS'
14177compiler='$compiler_DEFAULT'
14178
14179# Quote evaled strings.
14180for var in SED \
14181GREP \
14182EGREP \
14183FGREP \
14184LD \
14185NM \
14186LN_S \
14187lt_SP2NL \
14188lt_NL2SP \
14189reload_flag \
14190OBJDUMP \
14191deplibs_check_method \
14192file_magic_cmd \
14193AR \
14194AR_FLAGS \
14195STRIP \
14196RANLIB \
14197CC \
14198CFLAGS \
14199compiler \
14200lt_cv_sys_global_symbol_pipe \
14201lt_cv_sys_global_symbol_to_cdecl \
14202lt_cv_sys_global_symbol_to_c_name_address \
14203lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14204SHELL \
14205ECHO \
14206lt_prog_compiler_no_builtin_flag \
14207lt_prog_compiler_wl \
14208lt_prog_compiler_pic \
14209lt_prog_compiler_static \
14210lt_cv_prog_compiler_c_o \
14211need_locks \
14212DSYMUTIL \
14213NMEDIT \
14214LIPO \
14215OTOOL \
14216OTOOL64 \
14217shrext_cmds \
14218export_dynamic_flag_spec \
14219whole_archive_flag_spec \
14220compiler_needs_object \
14221with_gnu_ld \
14222allow_undefined_flag \
14223no_undefined_flag \
14224hardcode_libdir_flag_spec \
14225hardcode_libdir_flag_spec_ld \
14226hardcode_libdir_separator \
14227fix_srcfile_path \
14228exclude_expsyms \
14229include_expsyms \
14230file_list_spec \
14231variables_saved_for_relink \
14232libname_spec \
14233library_names_spec \
14234soname_spec \
14235finish_eval \
14236old_striplib \
14237striplib; do
14238    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14239    *[\\\\\\\`\\"\\\$]*)
14240      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14241      ;;
14242    *)
14243      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14244      ;;
14245    esac
14246done
14247
14248# Double-quote double-evaled strings.
14249for var in reload_cmds \
14250old_postinstall_cmds \
14251old_postuninstall_cmds \
14252old_archive_cmds \
14253extract_expsyms_cmds \
14254old_archive_from_new_cmds \
14255old_archive_from_expsyms_cmds \
14256archive_cmds \
14257archive_expsym_cmds \
14258module_cmds \
14259module_expsym_cmds \
14260export_symbols_cmds \
14261prelink_cmds \
14262postinstall_cmds \
14263postuninstall_cmds \
14264finish_cmds \
14265sys_lib_search_path_spec \
14266sys_lib_dlsearch_path_spec; do
14267    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14268    *[\\\\\\\`\\"\\\$]*)
14269      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14270      ;;
14271    *)
14272      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14273      ;;
14274    esac
14275done
14276
14277# Fix-up fallback echo if it was mangled by the above quoting rules.
14278case \$lt_ECHO in
14279*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14280  ;;
14281esac
14282
14283ac_aux_dir='$ac_aux_dir'
14284xsi_shell='$xsi_shell'
14285lt_shell_append='$lt_shell_append'
14286
14287# See if we are running on zsh, and set the options which allow our
14288# commands through without removal of \ escapes INIT.
14289if test -n "\${ZSH_VERSION+set}" ; then
14290   setopt NO_GLOB_SUBST
14291fi
14292
14293
14294    PACKAGE='$PACKAGE'
14295    VERSION='$VERSION'
14296    TIMESTAMP='$TIMESTAMP'
14297    RM='$RM'
14298    ofile='$ofile'
14299
14300
14301
14302
14303_ACEOF
14304
14305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14306
14307# Handling of arguments.
14308for ac_config_target in $ac_config_targets
14309do
14310  case $ac_config_target in
14311    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14312    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14313    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14314    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14315    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14316    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14317
14318  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14319$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14320   { (exit 1); exit 1; }; };;
14321  esac
14322done
14323
14324
14325# If the user did not use the arguments to specify the items to instantiate,
14326# then the envvar interface is used.  Set only those that are not.
14327# We use the long form for the default assignment because of an extremely
14328# bizarre bug on SunOS 4.1.3.
14329if $ac_need_defaults; then
14330  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14331  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14332  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14333fi
14334
14335# Have a temporary directory for convenience.  Make it in the build tree
14336# simply because there is no reason against having it here, and in addition,
14337# creating and moving files from /tmp can sometimes cause problems.
14338# Hook for its removal unless debugging.
14339# Note that there is a small window in which the directory will not be cleaned:
14340# after its creation but before its name has been assigned to `$tmp'.
14341$debug ||
14342{
14343  tmp=
14344  trap 'exit_status=$?
14345  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14346' 0
14347  trap '{ (exit 1); exit 1; }' 1 2 13 15
14348}
14349# Create a (secure) tmp directory for tmp files.
14350
14351{
14352  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14353  test -n "$tmp" && test -d "$tmp"
14354}  ||
14355{
14356  tmp=./conf$$-$RANDOM
14357  (umask 077 && mkdir "$tmp")
14358} ||
14359{
14360   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14361   { (exit 1); exit 1; }
14362}
14363
14364# Set up the scripts for CONFIG_FILES section.
14365# No need to generate them if there are no CONFIG_FILES.
14366# This happens for instance with `./config.status config.h'.
14367if test -n "$CONFIG_FILES"; then
14368
14369
14370ac_cr='
14371'
14372ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14373if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14374  ac_cs_awk_cr='\\r'
14375else
14376  ac_cs_awk_cr=$ac_cr
14377fi
14378
14379echo 'BEGIN {' >"$tmp/subs1.awk" &&
14380_ACEOF
14381
14382
14383{
14384  echo "cat >conf$$subs.awk <<_ACEOF" &&
14385  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14386  echo "_ACEOF"
14387} >conf$$subs.sh ||
14388  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14389$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14390   { (exit 1); exit 1; }; }
14391ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14392ac_delim='%!_!# '
14393for ac_last_try in false false false false false :; do
14394  . ./conf$$subs.sh ||
14395    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14396$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14397   { (exit 1); exit 1; }; }
14398
14399  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14400  if test $ac_delim_n = $ac_delim_num; then
14401    break
14402  elif $ac_last_try; then
14403    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14404$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14405   { (exit 1); exit 1; }; }
14406  else
14407    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14408  fi
14409done
14410rm -f conf$$subs.sh
14411
14412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14414_ACEOF
14415sed -n '
14416h
14417s/^/S["/; s/!.*/"]=/
14418p
14419g
14420s/^[^!]*!//
14421:repl
14422t repl
14423s/'"$ac_delim"'$//
14424t delim
14425:nl
14426h
14427s/\(.\{148\}\).*/\1/
14428t more1
14429s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14430p
14431n
14432b repl
14433:more1
14434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14435p
14436g
14437s/.\{148\}//
14438t nl
14439:delim
14440h
14441s/\(.\{148\}\).*/\1/
14442t more2
14443s/["\\]/\\&/g; s/^/"/; s/$/"/
14444p
14445b
14446:more2
14447s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14448p
14449g
14450s/.\{148\}//
14451t delim
14452' <conf$$subs.awk | sed '
14453/^[^""]/{
14454  N
14455  s/\n//
14456}
14457' >>$CONFIG_STATUS || ac_write_fail=1
14458rm -f conf$$subs.awk
14459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14460_ACAWK
14461cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14462  for (key in S) S_is_set[key] = 1
14463  FS = ""
14464
14465}
14466{
14467  line = $ 0
14468  nfields = split(line, field, "@")
14469  substed = 0
14470  len = length(field[1])
14471  for (i = 2; i < nfields; i++) {
14472    key = field[i]
14473    keylen = length(key)
14474    if (S_is_set[key]) {
14475      value = S[key]
14476      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14477      len += length(value) + length(field[++i])
14478      substed = 1
14479    } else
14480      len += 1 + keylen
14481  }
14482
14483  print line
14484}
14485
14486_ACAWK
14487_ACEOF
14488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14489if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14490  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14491else
14492  cat
14493fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14494  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14495$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14496   { (exit 1); exit 1; }; }
14497_ACEOF
14498
14499# VPATH may cause trouble with some makes, so we remove $(srcdir),
14500# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14501# trailing colons and then remove the whole line if VPATH becomes empty
14502# (actually we leave an empty line to preserve line numbers).
14503if test "x$srcdir" = x.; then
14504  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14505s/:*\$(srcdir):*/:/
14506s/:*\${srcdir}:*/:/
14507s/:*@srcdir@:*/:/
14508s/^\([^=]*=[	 ]*\):*/\1/
14509s/:*$//
14510s/^[^=]*=[	 ]*$//
14511}'
14512fi
14513
14514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14515fi # test -n "$CONFIG_FILES"
14516
14517# Set up the scripts for CONFIG_HEADERS section.
14518# No need to generate them if there are no CONFIG_HEADERS.
14519# This happens for instance with `./config.status Makefile'.
14520if test -n "$CONFIG_HEADERS"; then
14521cat >"$tmp/defines.awk" <<\_ACAWK ||
14522BEGIN {
14523_ACEOF
14524
14525# Transform confdefs.h into an awk script `defines.awk', embedded as
14526# here-document in config.status, that substitutes the proper values into
14527# config.h.in to produce config.h.
14528
14529# Create a delimiter string that does not exist in confdefs.h, to ease
14530# handling of long lines.
14531ac_delim='%!_!# '
14532for ac_last_try in false false :; do
14533  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14534  if test -z "$ac_t"; then
14535    break
14536  elif $ac_last_try; then
14537    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14538$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14539   { (exit 1); exit 1; }; }
14540  else
14541    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14542  fi
14543done
14544
14545# For the awk script, D is an array of macro values keyed by name,
14546# likewise P contains macro parameters if any.  Preserve backslash
14547# newline sequences.
14548
14549ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14550sed -n '
14551s/.\{148\}/&'"$ac_delim"'/g
14552t rset
14553:rset
14554s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14555t def
14556d
14557:def
14558s/\\$//
14559t bsnl
14560s/["\\]/\\&/g
14561s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14562D["\1"]=" \3"/p
14563s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14564d
14565:bsnl
14566s/["\\]/\\&/g
14567s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14568D["\1"]=" \3\\\\\\n"\\/p
14569t cont
14570s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14571t cont
14572d
14573:cont
14574n
14575s/.\{148\}/&'"$ac_delim"'/g
14576t clear
14577:clear
14578s/\\$//
14579t bsnlc
14580s/["\\]/\\&/g; s/^/"/; s/$/"/p
14581d
14582:bsnlc
14583s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14584b cont
14585' <confdefs.h | sed '
14586s/'"$ac_delim"'/"\\\
14587"/g' >>$CONFIG_STATUS || ac_write_fail=1
14588
14589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14590  for (key in D) D_is_set[key] = 1
14591  FS = ""
14592}
14593/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14594  line = \$ 0
14595  split(line, arg, " ")
14596  if (arg[1] == "#") {
14597    defundef = arg[2]
14598    mac1 = arg[3]
14599  } else {
14600    defundef = substr(arg[1], 2)
14601    mac1 = arg[2]
14602  }
14603  split(mac1, mac2, "(") #)
14604  macro = mac2[1]
14605  prefix = substr(line, 1, index(line, defundef) - 1)
14606  if (D_is_set[macro]) {
14607    # Preserve the white space surrounding the "#".
14608    print prefix "define", macro P[macro] D[macro]
14609    next
14610  } else {
14611    # Replace #undef with comments.  This is necessary, for example,
14612    # in the case of _POSIX_SOURCE, which is predefined and required
14613    # on some systems where configure will not decide to define it.
14614    if (defundef == "undef") {
14615      print "/*", prefix defundef, macro, "*/"
14616      next
14617    }
14618  }
14619}
14620{ print }
14621_ACAWK
14622_ACEOF
14623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14624  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14625$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14626   { (exit 1); exit 1; }; }
14627fi # test -n "$CONFIG_HEADERS"
14628
14629
14630eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14631shift
14632for ac_tag
14633do
14634  case $ac_tag in
14635  :[FHLC]) ac_mode=$ac_tag; continue;;
14636  esac
14637  case $ac_mode$ac_tag in
14638  :[FHL]*:*);;
14639  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14640$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14641   { (exit 1); exit 1; }; };;
14642  :[FH]-) ac_tag=-:-;;
14643  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14644  esac
14645  ac_save_IFS=$IFS
14646  IFS=:
14647  set x $ac_tag
14648  IFS=$ac_save_IFS
14649  shift
14650  ac_file=$1
14651  shift
14652
14653  case $ac_mode in
14654  :L) ac_source=$1;;
14655  :[FH])
14656    ac_file_inputs=
14657    for ac_f
14658    do
14659      case $ac_f in
14660      -) ac_f="$tmp/stdin";;
14661      *) # Look for the file first in the build tree, then in the source tree
14662	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14663	 # because $ac_f cannot contain `:'.
14664	 test -f "$ac_f" ||
14665	   case $ac_f in
14666	   [\\/$]*) false;;
14667	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14668	   esac ||
14669	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14670$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14671   { (exit 1); exit 1; }; };;
14672      esac
14673      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14674      ac_file_inputs="$ac_file_inputs '$ac_f'"
14675    done
14676
14677    # Let's still pretend it is `configure' which instantiates (i.e., don't
14678    # use $as_me), people would be surprised to read:
14679    #    /* config.h.  Generated by config.status.  */
14680    configure_input='Generated from '`
14681	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14682	`' by configure.'
14683    if test x"$ac_file" != x-; then
14684      configure_input="$ac_file.  $configure_input"
14685      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14686$as_echo "$as_me: creating $ac_file" >&6;}
14687    fi
14688    # Neutralize special characters interpreted by sed in replacement strings.
14689    case $configure_input in #(
14690    *\&* | *\|* | *\\* )
14691       ac_sed_conf_input=`$as_echo "$configure_input" |
14692       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14693    *) ac_sed_conf_input=$configure_input;;
14694    esac
14695
14696    case $ac_tag in
14697    *:-:* | *:-) cat >"$tmp/stdin" \
14698      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14699$as_echo "$as_me: error: could not create $ac_file" >&2;}
14700   { (exit 1); exit 1; }; } ;;
14701    esac
14702    ;;
14703  esac
14704
14705  ac_dir=`$as_dirname -- "$ac_file" ||
14706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14707	 X"$ac_file" : 'X\(//\)[^/]' \| \
14708	 X"$ac_file" : 'X\(//\)$' \| \
14709	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14710$as_echo X"$ac_file" |
14711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14712	    s//\1/
14713	    q
14714	  }
14715	  /^X\(\/\/\)[^/].*/{
14716	    s//\1/
14717	    q
14718	  }
14719	  /^X\(\/\/\)$/{
14720	    s//\1/
14721	    q
14722	  }
14723	  /^X\(\/\).*/{
14724	    s//\1/
14725	    q
14726	  }
14727	  s/.*/./; q'`
14728  { as_dir="$ac_dir"
14729  case $as_dir in #(
14730  -*) as_dir=./$as_dir;;
14731  esac
14732  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14733    as_dirs=
14734    while :; do
14735      case $as_dir in #(
14736      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14737      *) as_qdir=$as_dir;;
14738      esac
14739      as_dirs="'$as_qdir' $as_dirs"
14740      as_dir=`$as_dirname -- "$as_dir" ||
14741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14742	 X"$as_dir" : 'X\(//\)[^/]' \| \
14743	 X"$as_dir" : 'X\(//\)$' \| \
14744	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14745$as_echo X"$as_dir" |
14746    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14747	    s//\1/
14748	    q
14749	  }
14750	  /^X\(\/\/\)[^/].*/{
14751	    s//\1/
14752	    q
14753	  }
14754	  /^X\(\/\/\)$/{
14755	    s//\1/
14756	    q
14757	  }
14758	  /^X\(\/\).*/{
14759	    s//\1/
14760	    q
14761	  }
14762	  s/.*/./; q'`
14763      test -d "$as_dir" && break
14764    done
14765    test -z "$as_dirs" || eval "mkdir $as_dirs"
14766  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14767$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14768   { (exit 1); exit 1; }; }; }
14769  ac_builddir=.
14770
14771case "$ac_dir" in
14772.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14773*)
14774  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14775  # A ".." for each directory in $ac_dir_suffix.
14776  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14777  case $ac_top_builddir_sub in
14778  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14779  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14780  esac ;;
14781esac
14782ac_abs_top_builddir=$ac_pwd
14783ac_abs_builddir=$ac_pwd$ac_dir_suffix
14784# for backward compatibility:
14785ac_top_builddir=$ac_top_build_prefix
14786
14787case $srcdir in
14788  .)  # We are building in place.
14789    ac_srcdir=.
14790    ac_top_srcdir=$ac_top_builddir_sub
14791    ac_abs_top_srcdir=$ac_pwd ;;
14792  [\\/]* | ?:[\\/]* )  # Absolute name.
14793    ac_srcdir=$srcdir$ac_dir_suffix;
14794    ac_top_srcdir=$srcdir
14795    ac_abs_top_srcdir=$srcdir ;;
14796  *) # Relative name.
14797    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14798    ac_top_srcdir=$ac_top_build_prefix$srcdir
14799    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14800esac
14801ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14802
14803
14804  case $ac_mode in
14805  :F)
14806  #
14807  # CONFIG_FILE
14808  #
14809
14810  case $INSTALL in
14811  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14812  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14813  esac
14814  ac_MKDIR_P=$MKDIR_P
14815  case $MKDIR_P in
14816  [\\/$]* | ?:[\\/]* ) ;;
14817  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14818  esac
14819_ACEOF
14820
14821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14822# If the template does not know about datarootdir, expand it.
14823# FIXME: This hack should be removed a few years after 2.60.
14824ac_datarootdir_hack=; ac_datarootdir_seen=
14825
14826ac_sed_dataroot='
14827/datarootdir/ {
14828  p
14829  q
14830}
14831/@datadir@/p
14832/@docdir@/p
14833/@infodir@/p
14834/@localedir@/p
14835/@mandir@/p
14836'
14837case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14838*datarootdir*) ac_datarootdir_seen=yes;;
14839*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14840  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14841$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14842_ACEOF
14843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844  ac_datarootdir_hack='
14845  s&@datadir@&$datadir&g
14846  s&@docdir@&$docdir&g
14847  s&@infodir@&$infodir&g
14848  s&@localedir@&$localedir&g
14849  s&@mandir@&$mandir&g
14850    s&\\\${datarootdir}&$datarootdir&g' ;;
14851esac
14852_ACEOF
14853
14854# Neutralize VPATH when `$srcdir' = `.'.
14855# Shell code in configure.ac might set extrasub.
14856# FIXME: do we really want to maintain this feature?
14857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858ac_sed_extra="$ac_vpsub
14859$extrasub
14860_ACEOF
14861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862:t
14863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14864s|@configure_input@|$ac_sed_conf_input|;t t
14865s&@top_builddir@&$ac_top_builddir_sub&;t t
14866s&@top_build_prefix@&$ac_top_build_prefix&;t t
14867s&@srcdir@&$ac_srcdir&;t t
14868s&@abs_srcdir@&$ac_abs_srcdir&;t t
14869s&@top_srcdir@&$ac_top_srcdir&;t t
14870s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14871s&@builddir@&$ac_builddir&;t t
14872s&@abs_builddir@&$ac_abs_builddir&;t t
14873s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14874s&@INSTALL@&$ac_INSTALL&;t t
14875s&@MKDIR_P@&$ac_MKDIR_P&;t t
14876$ac_datarootdir_hack
14877"
14878eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14879  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14880$as_echo "$as_me: error: could not create $ac_file" >&2;}
14881   { (exit 1); exit 1; }; }
14882
14883test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14884  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14885  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14886  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14887which seems to be undefined.  Please make sure it is defined." >&5
14888$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14889which seems to be undefined.  Please make sure it is defined." >&2;}
14890
14891  rm -f "$tmp/stdin"
14892  case $ac_file in
14893  -) cat "$tmp/out" && rm -f "$tmp/out";;
14894  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14895  esac \
14896  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14897$as_echo "$as_me: error: could not create $ac_file" >&2;}
14898   { (exit 1); exit 1; }; }
14899 ;;
14900  :H)
14901  #
14902  # CONFIG_HEADER
14903  #
14904  if test x"$ac_file" != x-; then
14905    {
14906      $as_echo "/* $configure_input  */" \
14907      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14908    } >"$tmp/config.h" \
14909      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14910$as_echo "$as_me: error: could not create $ac_file" >&2;}
14911   { (exit 1); exit 1; }; }
14912    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14913      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14914$as_echo "$as_me: $ac_file is unchanged" >&6;}
14915    else
14916      rm -f "$ac_file"
14917      mv "$tmp/config.h" "$ac_file" \
14918	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14919$as_echo "$as_me: error: could not create $ac_file" >&2;}
14920   { (exit 1); exit 1; }; }
14921    fi
14922  else
14923    $as_echo "/* $configure_input  */" \
14924      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14925      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14926$as_echo "$as_me: error: could not create -" >&2;}
14927   { (exit 1); exit 1; }; }
14928  fi
14929# Compute "$ac_file"'s index in $config_headers.
14930_am_arg="$ac_file"
14931_am_stamp_count=1
14932for _am_header in $config_headers :; do
14933  case $_am_header in
14934    $_am_arg | $_am_arg:* )
14935      break ;;
14936    * )
14937      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14938  esac
14939done
14940echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14941$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14942	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14943	 X"$_am_arg" : 'X\(//\)$' \| \
14944	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14945$as_echo X"$_am_arg" |
14946    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14947	    s//\1/
14948	    q
14949	  }
14950	  /^X\(\/\/\)[^/].*/{
14951	    s//\1/
14952	    q
14953	  }
14954	  /^X\(\/\/\)$/{
14955	    s//\1/
14956	    q
14957	  }
14958	  /^X\(\/\).*/{
14959	    s//\1/
14960	    q
14961	  }
14962	  s/.*/./; q'`/stamp-h$_am_stamp_count
14963 ;;
14964
14965  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14966$as_echo "$as_me: executing $ac_file commands" >&6;}
14967 ;;
14968  esac
14969
14970
14971  case $ac_file$ac_mode in
14972    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14973# are listed without --file.  Let's play safe and only enable the eval
14974# if we detect the quoting.
14975case $CONFIG_FILES in
14976*\'*) eval set x "$CONFIG_FILES" ;;
14977*)   set x $CONFIG_FILES ;;
14978esac
14979shift
14980for mf
14981do
14982  # Strip MF so we end up with the name of the file.
14983  mf=`echo "$mf" | sed -e 's/:.*$//'`
14984  # Check whether this is an Automake generated Makefile or not.
14985  # We used to match only the files named `Makefile.in', but
14986  # some people rename them; so instead we look at the file content.
14987  # Grep'ing the first line is not enough: some people post-process
14988  # each Makefile.in and add a new line on top of each file to say so.
14989  # Grep'ing the whole file is not good either: AIX grep has a line
14990  # limit of 2048, but all sed's we know have understand at least 4000.
14991  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14992    dirpart=`$as_dirname -- "$mf" ||
14993$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14994	 X"$mf" : 'X\(//\)[^/]' \| \
14995	 X"$mf" : 'X\(//\)$' \| \
14996	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14997$as_echo X"$mf" |
14998    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14999	    s//\1/
15000	    q
15001	  }
15002	  /^X\(\/\/\)[^/].*/{
15003	    s//\1/
15004	    q
15005	  }
15006	  /^X\(\/\/\)$/{
15007	    s//\1/
15008	    q
15009	  }
15010	  /^X\(\/\).*/{
15011	    s//\1/
15012	    q
15013	  }
15014	  s/.*/./; q'`
15015  else
15016    continue
15017  fi
15018  # Extract the definition of DEPDIR, am__include, and am__quote
15019  # from the Makefile without running `make'.
15020  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15021  test -z "$DEPDIR" && continue
15022  am__include=`sed -n 's/^am__include = //p' < "$mf"`
15023  test -z "am__include" && continue
15024  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15025  # When using ansi2knr, U may be empty or an underscore; expand it
15026  U=`sed -n 's/^U = //p' < "$mf"`
15027  # Find all dependency output files, they are included files with
15028  # $(DEPDIR) in their names.  We invoke sed twice because it is the
15029  # simplest approach to changing $(DEPDIR) to its actual value in the
15030  # expansion.
15031  for file in `sed -n "
15032    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15033       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15034    # Make sure the directory exists.
15035    test -f "$dirpart/$file" && continue
15036    fdir=`$as_dirname -- "$file" ||
15037$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15038	 X"$file" : 'X\(//\)[^/]' \| \
15039	 X"$file" : 'X\(//\)$' \| \
15040	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15041$as_echo X"$file" |
15042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15043	    s//\1/
15044	    q
15045	  }
15046	  /^X\(\/\/\)[^/].*/{
15047	    s//\1/
15048	    q
15049	  }
15050	  /^X\(\/\/\)$/{
15051	    s//\1/
15052	    q
15053	  }
15054	  /^X\(\/\).*/{
15055	    s//\1/
15056	    q
15057	  }
15058	  s/.*/./; q'`
15059    { as_dir=$dirpart/$fdir
15060  case $as_dir in #(
15061  -*) as_dir=./$as_dir;;
15062  esac
15063  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15064    as_dirs=
15065    while :; do
15066      case $as_dir in #(
15067      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15068      *) as_qdir=$as_dir;;
15069      esac
15070      as_dirs="'$as_qdir' $as_dirs"
15071      as_dir=`$as_dirname -- "$as_dir" ||
15072$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15073	 X"$as_dir" : 'X\(//\)[^/]' \| \
15074	 X"$as_dir" : 'X\(//\)$' \| \
15075	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15076$as_echo X"$as_dir" |
15077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15078	    s//\1/
15079	    q
15080	  }
15081	  /^X\(\/\/\)[^/].*/{
15082	    s//\1/
15083	    q
15084	  }
15085	  /^X\(\/\/\)$/{
15086	    s//\1/
15087	    q
15088	  }
15089	  /^X\(\/\).*/{
15090	    s//\1/
15091	    q
15092	  }
15093	  s/.*/./; q'`
15094      test -d "$as_dir" && break
15095    done
15096    test -z "$as_dirs" || eval "mkdir $as_dirs"
15097  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15098$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15099   { (exit 1); exit 1; }; }; }
15100    # echo "creating $dirpart/$file"
15101    echo '# dummy' > "$dirpart/$file"
15102  done
15103done
15104 ;;
15105    "libtool":C)
15106
15107    # See if we are running on zsh, and set the options which allow our
15108    # commands through without removal of \ escapes.
15109    if test -n "${ZSH_VERSION+set}" ; then
15110      setopt NO_GLOB_SUBST
15111    fi
15112
15113    cfgfile="${ofile}T"
15114    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15115    $RM "$cfgfile"
15116
15117    cat <<_LT_EOF >> "$cfgfile"
15118#! $SHELL
15119
15120# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15121# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15122# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15123# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15124#
15125#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15126#                 2006, 2007, 2008 Free Software Foundation, Inc.
15127#   Written by Gordon Matzigkeit, 1996
15128#
15129#   This file is part of GNU Libtool.
15130#
15131# GNU Libtool is free software; you can redistribute it and/or
15132# modify it under the terms of the GNU General Public License as
15133# published by the Free Software Foundation; either version 2 of
15134# the License, or (at your option) any later version.
15135#
15136# As a special exception to the GNU General Public License,
15137# if you distribute this file as part of a program or library that
15138# is built using GNU Libtool, you may include this file under the
15139# same distribution terms that you use for the rest of that program.
15140#
15141# GNU Libtool is distributed in the hope that it will be useful,
15142# but WITHOUT ANY WARRANTY; without even the implied warranty of
15143# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15144# GNU General Public License for more details.
15145#
15146# You should have received a copy of the GNU General Public License
15147# along with GNU Libtool; see the file COPYING.  If not, a copy
15148# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15149# obtained by writing to the Free Software Foundation, Inc.,
15150# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15151
15152
15153# The names of the tagged configurations supported by this script.
15154available_tags=""
15155
15156# ### BEGIN LIBTOOL CONFIG
15157
15158# Whether or not to build static libraries.
15159build_old_libs=$enable_static
15160
15161# Which release of libtool.m4 was used?
15162macro_version=$macro_version
15163macro_revision=$macro_revision
15164
15165# Whether or not to build shared libraries.
15166build_libtool_libs=$enable_shared
15167
15168# What type of objects to build.
15169pic_mode=$pic_mode
15170
15171# Whether or not to optimize for fast installation.
15172fast_install=$enable_fast_install
15173
15174# The host system.
15175host_alias=$host_alias
15176host=$host
15177host_os=$host_os
15178
15179# The build system.
15180build_alias=$build_alias
15181build=$build
15182build_os=$build_os
15183
15184# A sed program that does not truncate output.
15185SED=$lt_SED
15186
15187# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15188Xsed="\$SED -e 1s/^X//"
15189
15190# A grep program that handles long lines.
15191GREP=$lt_GREP
15192
15193# An ERE matcher.
15194EGREP=$lt_EGREP
15195
15196# A literal string matcher.
15197FGREP=$lt_FGREP
15198
15199# A BSD- or MS-compatible name lister.
15200NM=$lt_NM
15201
15202# Whether we need soft or hard links.
15203LN_S=$lt_LN_S
15204
15205# What is the maximum length of a command?
15206max_cmd_len=$max_cmd_len
15207
15208# Object file suffix (normally "o").
15209objext=$ac_objext
15210
15211# Executable file suffix (normally "").
15212exeext=$exeext
15213
15214# whether the shell understands "unset".
15215lt_unset=$lt_unset
15216
15217# turn spaces into newlines.
15218SP2NL=$lt_lt_SP2NL
15219
15220# turn newlines into spaces.
15221NL2SP=$lt_lt_NL2SP
15222
15223# How to create reloadable object files.
15224reload_flag=$lt_reload_flag
15225reload_cmds=$lt_reload_cmds
15226
15227# An object symbol dumper.
15228OBJDUMP=$lt_OBJDUMP
15229
15230# Method to check whether dependent libraries are shared objects.
15231deplibs_check_method=$lt_deplibs_check_method
15232
15233# Command to use when deplibs_check_method == "file_magic".
15234file_magic_cmd=$lt_file_magic_cmd
15235
15236# The archiver.
15237AR=$lt_AR
15238AR_FLAGS=$lt_AR_FLAGS
15239
15240# A symbol stripping program.
15241STRIP=$lt_STRIP
15242
15243# Commands used to install an old-style archive.
15244RANLIB=$lt_RANLIB
15245old_postinstall_cmds=$lt_old_postinstall_cmds
15246old_postuninstall_cmds=$lt_old_postuninstall_cmds
15247
15248# A C compiler.
15249LTCC=$lt_CC
15250
15251# LTCC compiler flags.
15252LTCFLAGS=$lt_CFLAGS
15253
15254# Take the output of nm and produce a listing of raw symbols and C names.
15255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15256
15257# Transform the output of nm in a proper C declaration.
15258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15259
15260# Transform the output of nm in a C name address pair.
15261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15262
15263# Transform the output of nm in a C name address pair when lib prefix is needed.
15264global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15265
15266# The name of the directory that contains temporary libtool files.
15267objdir=$objdir
15268
15269# Shell to use when invoking shell scripts.
15270SHELL=$lt_SHELL
15271
15272# An echo program that does not interpret backslashes.
15273ECHO=$lt_ECHO
15274
15275# Used to examine libraries when file_magic_cmd begins with "file".
15276MAGIC_CMD=$MAGIC_CMD
15277
15278# Must we lock files when doing compilation?
15279need_locks=$lt_need_locks
15280
15281# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15282DSYMUTIL=$lt_DSYMUTIL
15283
15284# Tool to change global to local symbols on Mac OS X.
15285NMEDIT=$lt_NMEDIT
15286
15287# Tool to manipulate fat objects and archives on Mac OS X.
15288LIPO=$lt_LIPO
15289
15290# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15291OTOOL=$lt_OTOOL
15292
15293# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15294OTOOL64=$lt_OTOOL64
15295
15296# Old archive suffix (normally "a").
15297libext=$libext
15298
15299# Shared library suffix (normally ".so").
15300shrext_cmds=$lt_shrext_cmds
15301
15302# The commands to extract the exported symbol list from a shared archive.
15303extract_expsyms_cmds=$lt_extract_expsyms_cmds
15304
15305# Variables whose values should be saved in libtool wrapper scripts and
15306# restored at link time.
15307variables_saved_for_relink=$lt_variables_saved_for_relink
15308
15309# Do we need the "lib" prefix for modules?
15310need_lib_prefix=$need_lib_prefix
15311
15312# Do we need a version for libraries?
15313need_version=$need_version
15314
15315# Library versioning type.
15316version_type=$version_type
15317
15318# Shared library runtime path variable.
15319runpath_var=$runpath_var
15320
15321# Shared library path variable.
15322shlibpath_var=$shlibpath_var
15323
15324# Is shlibpath searched before the hard-coded library search path?
15325shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15326
15327# Format of library name prefix.
15328libname_spec=$lt_libname_spec
15329
15330# List of archive names.  First name is the real one, the rest are links.
15331# The last name is the one that the linker finds with -lNAME
15332library_names_spec=$lt_library_names_spec
15333
15334# The coded name of the library, if different from the real name.
15335soname_spec=$lt_soname_spec
15336
15337# Command to use after installation of a shared archive.
15338postinstall_cmds=$lt_postinstall_cmds
15339
15340# Command to use after uninstallation of a shared archive.
15341postuninstall_cmds=$lt_postuninstall_cmds
15342
15343# Commands used to finish a libtool library installation in a directory.
15344finish_cmds=$lt_finish_cmds
15345
15346# As "finish_cmds", except a single script fragment to be evaled but
15347# not shown.
15348finish_eval=$lt_finish_eval
15349
15350# Whether we should hardcode library paths into libraries.
15351hardcode_into_libs=$hardcode_into_libs
15352
15353# Compile-time system search path for libraries.
15354sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15355
15356# Run-time system search path for libraries.
15357sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15358
15359# Whether dlopen is supported.
15360dlopen_support=$enable_dlopen
15361
15362# Whether dlopen of programs is supported.
15363dlopen_self=$enable_dlopen_self
15364
15365# Whether dlopen of statically linked programs is supported.
15366dlopen_self_static=$enable_dlopen_self_static
15367
15368# Commands to strip libraries.
15369old_striplib=$lt_old_striplib
15370striplib=$lt_striplib
15371
15372
15373# The linker used to build libraries.
15374LD=$lt_LD
15375
15376# Commands used to build an old-style archive.
15377old_archive_cmds=$lt_old_archive_cmds
15378
15379# A language specific compiler.
15380CC=$lt_compiler
15381
15382# Is the compiler the GNU compiler?
15383with_gcc=$GCC
15384
15385# Compiler flag to turn off builtin functions.
15386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15387
15388# How to pass a linker flag through the compiler.
15389wl=$lt_lt_prog_compiler_wl
15390
15391# Additional compiler flags for building library objects.
15392pic_flag=$lt_lt_prog_compiler_pic
15393
15394# Compiler flag to prevent dynamic linking.
15395link_static_flag=$lt_lt_prog_compiler_static
15396
15397# Does compiler simultaneously support -c and -o options?
15398compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15399
15400# Whether or not to add -lc for building shared libraries.
15401build_libtool_need_lc=$archive_cmds_need_lc
15402
15403# Whether or not to disallow shared libs when runtime libs are static.
15404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15405
15406# Compiler flag to allow reflexive dlopens.
15407export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15408
15409# Compiler flag to generate shared objects directly from archives.
15410whole_archive_flag_spec=$lt_whole_archive_flag_spec
15411
15412# Whether the compiler copes with passing no objects directly.
15413compiler_needs_object=$lt_compiler_needs_object
15414
15415# Create an old-style archive from a shared archive.
15416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15417
15418# Create a temporary old-style archive to link instead of a shared archive.
15419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15420
15421# Commands used to build a shared archive.
15422archive_cmds=$lt_archive_cmds
15423archive_expsym_cmds=$lt_archive_expsym_cmds
15424
15425# Commands used to build a loadable module if different from building
15426# a shared archive.
15427module_cmds=$lt_module_cmds
15428module_expsym_cmds=$lt_module_expsym_cmds
15429
15430# Whether we are building with GNU ld or not.
15431with_gnu_ld=$lt_with_gnu_ld
15432
15433# Flag that allows shared libraries with undefined symbols to be built.
15434allow_undefined_flag=$lt_allow_undefined_flag
15435
15436# Flag that enforces no undefined symbols.
15437no_undefined_flag=$lt_no_undefined_flag
15438
15439# Flag to hardcode \$libdir into a binary during linking.
15440# This must work even if \$libdir does not exist
15441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15442
15443# If ld is used when linking, flag to hardcode \$libdir into a binary
15444# during linking.  This must work even if \$libdir does not exist.
15445hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15446
15447# Whether we need a single "-rpath" flag with a separated argument.
15448hardcode_libdir_separator=$lt_hardcode_libdir_separator
15449
15450# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15451# DIR into the resulting binary.
15452hardcode_direct=$hardcode_direct
15453
15454# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15455# DIR into the resulting binary and the resulting library dependency is
15456# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15457# library is relocated.
15458hardcode_direct_absolute=$hardcode_direct_absolute
15459
15460# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15461# into the resulting binary.
15462hardcode_minus_L=$hardcode_minus_L
15463
15464# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15465# into the resulting binary.
15466hardcode_shlibpath_var=$hardcode_shlibpath_var
15467
15468# Set to "yes" if building a shared library automatically hardcodes DIR
15469# into the library and all subsequent libraries and executables linked
15470# against it.
15471hardcode_automatic=$hardcode_automatic
15472
15473# Set to yes if linker adds runtime paths of dependent libraries
15474# to runtime path list.
15475inherit_rpath=$inherit_rpath
15476
15477# Whether libtool must link a program against all its dependency libraries.
15478link_all_deplibs=$link_all_deplibs
15479
15480# Fix the shell variable \$srcfile for the compiler.
15481fix_srcfile_path=$lt_fix_srcfile_path
15482
15483# Set to "yes" if exported symbols are required.
15484always_export_symbols=$always_export_symbols
15485
15486# The commands to list exported symbols.
15487export_symbols_cmds=$lt_export_symbols_cmds
15488
15489# Symbols that should not be listed in the preloaded symbols.
15490exclude_expsyms=$lt_exclude_expsyms
15491
15492# Symbols that must always be exported.
15493include_expsyms=$lt_include_expsyms
15494
15495# Commands necessary for linking programs (against libraries) with templates.
15496prelink_cmds=$lt_prelink_cmds
15497
15498# Specify filename containing input files.
15499file_list_spec=$lt_file_list_spec
15500
15501# How to hardcode a shared library path into an executable.
15502hardcode_action=$hardcode_action
15503
15504# ### END LIBTOOL CONFIG
15505
15506_LT_EOF
15507
15508  case $host_os in
15509  aix3*)
15510    cat <<\_LT_EOF >> "$cfgfile"
15511# AIX sometimes has problems with the GCC collect2 program.  For some
15512# reason, if we set the COLLECT_NAMES environment variable, the problems
15513# vanish in a puff of smoke.
15514if test "X${COLLECT_NAMES+set}" != Xset; then
15515  COLLECT_NAMES=
15516  export COLLECT_NAMES
15517fi
15518_LT_EOF
15519    ;;
15520  esac
15521
15522
15523ltmain="$ac_aux_dir/ltmain.sh"
15524
15525
15526  # We use sed instead of cat because bash on DJGPP gets confused if
15527  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15528  # text mode, it properly converts lines to CR/LF.  This bash problem
15529  # is reportedly fixed, but why not run on old versions too?
15530  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15531    || (rm -f "$cfgfile"; exit 1)
15532
15533  case $xsi_shell in
15534  yes)
15535    cat << \_LT_EOF >> "$cfgfile"
15536
15537# func_dirname file append nondir_replacement
15538# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15539# otherwise set result to NONDIR_REPLACEMENT.
15540func_dirname ()
15541{
15542  case ${1} in
15543    */*) func_dirname_result="${1%/*}${2}" ;;
15544    *  ) func_dirname_result="${3}" ;;
15545  esac
15546}
15547
15548# func_basename file
15549func_basename ()
15550{
15551  func_basename_result="${1##*/}"
15552}
15553
15554# func_dirname_and_basename file append nondir_replacement
15555# perform func_basename and func_dirname in a single function
15556# call:
15557#   dirname:  Compute the dirname of FILE.  If nonempty,
15558#             add APPEND to the result, otherwise set result
15559#             to NONDIR_REPLACEMENT.
15560#             value returned in "$func_dirname_result"
15561#   basename: Compute filename of FILE.
15562#             value retuned in "$func_basename_result"
15563# Implementation must be kept synchronized with func_dirname
15564# and func_basename. For efficiency, we do not delegate to
15565# those functions but instead duplicate the functionality here.
15566func_dirname_and_basename ()
15567{
15568  case ${1} in
15569    */*) func_dirname_result="${1%/*}${2}" ;;
15570    *  ) func_dirname_result="${3}" ;;
15571  esac
15572  func_basename_result="${1##*/}"
15573}
15574
15575# func_stripname prefix suffix name
15576# strip PREFIX and SUFFIX off of NAME.
15577# PREFIX and SUFFIX must not contain globbing or regex special
15578# characters, hashes, percent signs, but SUFFIX may contain a leading
15579# dot (in which case that matches only a dot).
15580func_stripname ()
15581{
15582  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15583  # positional parameters, so assign one to ordinary parameter first.
15584  func_stripname_result=${3}
15585  func_stripname_result=${func_stripname_result#"${1}"}
15586  func_stripname_result=${func_stripname_result%"${2}"}
15587}
15588
15589# func_opt_split
15590func_opt_split ()
15591{
15592  func_opt_split_opt=${1%%=*}
15593  func_opt_split_arg=${1#*=}
15594}
15595
15596# func_lo2o object
15597func_lo2o ()
15598{
15599  case ${1} in
15600    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15601    *)    func_lo2o_result=${1} ;;
15602  esac
15603}
15604
15605# func_xform libobj-or-source
15606func_xform ()
15607{
15608  func_xform_result=${1%.*}.lo
15609}
15610
15611# func_arith arithmetic-term...
15612func_arith ()
15613{
15614  func_arith_result=$(( $* ))
15615}
15616
15617# func_len string
15618# STRING may not start with a hyphen.
15619func_len ()
15620{
15621  func_len_result=${#1}
15622}
15623
15624_LT_EOF
15625    ;;
15626  *) # Bourne compatible functions.
15627    cat << \_LT_EOF >> "$cfgfile"
15628
15629# func_dirname file append nondir_replacement
15630# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15631# otherwise set result to NONDIR_REPLACEMENT.
15632func_dirname ()
15633{
15634  # Extract subdirectory from the argument.
15635  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15636  if test "X$func_dirname_result" = "X${1}"; then
15637    func_dirname_result="${3}"
15638  else
15639    func_dirname_result="$func_dirname_result${2}"
15640  fi
15641}
15642
15643# func_basename file
15644func_basename ()
15645{
15646  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15647}
15648
15649
15650# func_stripname prefix suffix name
15651# strip PREFIX and SUFFIX off of NAME.
15652# PREFIX and SUFFIX must not contain globbing or regex special
15653# characters, hashes, percent signs, but SUFFIX may contain a leading
15654# dot (in which case that matches only a dot).
15655# func_strip_suffix prefix name
15656func_stripname ()
15657{
15658  case ${2} in
15659    .*) func_stripname_result=`$ECHO "X${3}" \
15660           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15661    *)  func_stripname_result=`$ECHO "X${3}" \
15662           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15663  esac
15664}
15665
15666# sed scripts:
15667my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15668my_sed_long_arg='1s/^-[^=]*=//'
15669
15670# func_opt_split
15671func_opt_split ()
15672{
15673  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15674  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15675}
15676
15677# func_lo2o object
15678func_lo2o ()
15679{
15680  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15681}
15682
15683# func_xform libobj-or-source
15684func_xform ()
15685{
15686  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15687}
15688
15689# func_arith arithmetic-term...
15690func_arith ()
15691{
15692  func_arith_result=`expr "$@"`
15693}
15694
15695# func_len string
15696# STRING may not start with a hyphen.
15697func_len ()
15698{
15699  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15700}
15701
15702_LT_EOF
15703esac
15704
15705case $lt_shell_append in
15706  yes)
15707    cat << \_LT_EOF >> "$cfgfile"
15708
15709# func_append var value
15710# Append VALUE to the end of shell variable VAR.
15711func_append ()
15712{
15713  eval "$1+=\$2"
15714}
15715_LT_EOF
15716    ;;
15717  *)
15718    cat << \_LT_EOF >> "$cfgfile"
15719
15720# func_append var value
15721# Append VALUE to the end of shell variable VAR.
15722func_append ()
15723{
15724  eval "$1=\$$1\$2"
15725}
15726
15727_LT_EOF
15728    ;;
15729  esac
15730
15731
15732  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15733    || (rm -f "$cfgfile"; exit 1)
15734
15735  mv -f "$cfgfile" "$ofile" ||
15736    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15737  chmod +x "$ofile"
15738
15739 ;;
15740
15741  esac
15742done # for ac_tag
15743
15744
15745{ (exit 0); exit 0; }
15746_ACEOF
15747chmod +x $CONFIG_STATUS
15748ac_clean_files=$ac_clean_files_save
15749
15750test $ac_write_fail = 0 ||
15751  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15752$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15753   { (exit 1); exit 1; }; }
15754
15755
15756# configure is writing to config.log, and then calls config.status.
15757# config.status does its own redirection, appending to config.log.
15758# Unfortunately, on DOS this fails, as config.log is still kept open
15759# by configure, so config.status won't be able to write to it; its
15760# output is simply discarded.  So we exec the FD to /dev/null,
15761# effectively closing config.log, so it can be properly (re)opened and
15762# appended to by config.status.  When coming back to configure, we
15763# need to make the FD available again.
15764if test "$no_create" != yes; then
15765  ac_cs_success=:
15766  ac_config_status_args=
15767  test "$silent" = yes &&
15768    ac_config_status_args="$ac_config_status_args --quiet"
15769  exec 5>/dev/null
15770  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15771  exec 5>>config.log
15772  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15773  # would make configure fail if this is the last instruction.
15774  $ac_cs_success || { (exit 1); exit 1; }
15775fi
15776if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15777  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15778$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15779fi
15780
15781