configure revision 28d65773
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libpciaccess 0.12.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
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='libpciaccess'
747PACKAGE_TARNAME='libpciaccess'
748PACKAGE_VERSION='0.12.0'
749PACKAGE_STRING='libpciaccess 0.12.0'
750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess'
751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766#  include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771#  include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
788ac_subst_vars='am__EXEEXT_FALSE
789am__EXEEXT_TRUE
790LTLIBOBJS
791LIBOBJS
792PCIACCESS_LIBS
793PCIACCESS_CFLAGS
794GNU_FALSE
795GNU_TRUE
796SOLARIS_FALSE
797SOLARIS_TRUE
798OPENBSD_FALSE
799OPENBSD_TRUE
800NETBSD_FALSE
801NETBSD_TRUE
802FREEBSD_FALSE
803FREEBSD_TRUE
804LINUX_FALSE
805LINUX_TRUE
806PCIIDS_PATH
807OTOOL64
808OTOOL
809LIPO
810NMEDIT
811DSYMUTIL
812lt_ECHO
813RANLIB
814AR
815OBJDUMP
816LN_S
817NM
818ac_ct_DUMPBIN
819DUMPBIN
820LD
821FGREP
822LIBTOOL
823AM_BACKSLASH
824AM_DEFAULT_VERBOSITY
825MAN_SUBSTS
826XORG_MAN_PAGE
827ADMIN_MAN_DIR
828DRIVER_MAN_DIR
829MISC_MAN_DIR
830FILE_MAN_DIR
831LIB_MAN_DIR
832APP_MAN_DIR
833ADMIN_MAN_SUFFIX
834DRIVER_MAN_SUFFIX
835MISC_MAN_SUFFIX
836FILE_MAN_SUFFIX
837LIB_MAN_SUFFIX
838APP_MAN_SUFFIX
839SED
840host_os
841host_vendor
842host_cpu
843host
844build_os
845build_vendor
846build_cpu
847build
848INSTALL_CMD
849PKG_CONFIG
850CHANGELOG_CMD
851CWARNFLAGS
852EGREP
853GREP
854CPP
855am__fastdepCC_FALSE
856am__fastdepCC_TRUE
857CCDEPMODE
858AMDEPBACKSLASH
859AMDEP_FALSE
860AMDEP_TRUE
861am__quote
862am__include
863DEPDIR
864OBJEXT
865EXEEXT
866ac_ct_CC
867CPPFLAGS
868LDFLAGS
869CFLAGS
870CC
871MAINT
872MAINTAINER_MODE_FALSE
873MAINTAINER_MODE_TRUE
874am__untar
875am__tar
876AMTAR
877am__leading_dot
878SET_MAKE
879AWK
880mkdir_p
881MKDIR_P
882INSTALL_STRIP_PROGRAM
883STRIP
884install_sh
885MAKEINFO
886AUTOHEADER
887AUTOMAKE
888AUTOCONF
889ACLOCAL
890VERSION
891PACKAGE
892CYGPATH_W
893am__isrc
894INSTALL_DATA
895INSTALL_SCRIPT
896INSTALL_PROGRAM
897target_alias
898host_alias
899build_alias
900LIBS
901ECHO_T
902ECHO_N
903ECHO_C
904DEFS
905mandir
906localedir
907libdir
908psdir
909pdfdir
910dvidir
911htmldir
912infodir
913docdir
914oldincludedir
915includedir
916localstatedir
917sharedstatedir
918sysconfdir
919datadir
920datarootdir
921libexecdir
922sbindir
923bindir
924program_transform_name
925prefix
926exec_prefix
927PACKAGE_BUGREPORT
928PACKAGE_STRING
929PACKAGE_VERSION
930PACKAGE_TARNAME
931PACKAGE_NAME
932PATH_SEPARATOR
933SHELL'
934ac_subst_files=''
935ac_user_opts='
936enable_option_checking
937enable_maintainer_mode
938enable_dependency_tracking
939enable_strict_compilation
940enable_silent_rules
941enable_shared
942enable_static
943with_pic
944enable_fast_install
945with_gnu_ld
946enable_libtool_lock
947with_pciids_path
948enable_linux_rom_fallback
949with_zlib
950enable_largefile
951'
952      ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
958LIBS
959CPPFLAGS
960CPP
961PKG_CONFIG'
962
963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
967ac_unrecognized_opts=
968ac_unrecognized_sep=
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
991# (The list follows the same order as the GNU Coding Standards.)
992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
1000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
1002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
1011
1012ac_prev=
1013ac_dashdash=
1014for ac_option
1015do
1016  # If the previous option needs an argument, assign it.
1017  if test -n "$ac_prev"; then
1018    eval $ac_prev=\$ac_option
1019    ac_prev=
1020    continue
1021  fi
1022
1023  case $ac_option in
1024  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025  *)	ac_optarg=yes ;;
1026  esac
1027
1028  # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030  case $ac_dashdash$ac_option in
1031  --)
1032    ac_dashdash=yes ;;
1033
1034  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035    ac_prev=bindir ;;
1036  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037    bindir=$ac_optarg ;;
1038
1039  -build | --build | --buil | --bui | --bu)
1040    ac_prev=build_alias ;;
1041  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042    build_alias=$ac_optarg ;;
1043
1044  -cache-file | --cache-file | --cache-fil | --cache-fi \
1045  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046    ac_prev=cache_file ;;
1047  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049    cache_file=$ac_optarg ;;
1050
1051  --config-cache | -C)
1052    cache_file=config.cache ;;
1053
1054  -datadir | --datadir | --datadi | --datad)
1055    ac_prev=datadir ;;
1056  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057    datadir=$ac_optarg ;;
1058
1059  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060  | --dataroo | --dataro | --datar)
1061    ac_prev=datarootdir ;;
1062  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064    datarootdir=$ac_optarg ;;
1065
1066  -disable-* | --disable-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071   { (exit 1); exit 1; }; }
1072    ac_useropt_orig=$ac_useropt
1073    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074    case $ac_user_opts in
1075      *"
1076"enable_$ac_useropt"
1077"*) ;;
1078      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079	 ac_unrecognized_sep=', ';;
1080    esac
1081    eval enable_$ac_useropt=no ;;
1082
1083  -docdir | --docdir | --docdi | --doc | --do)
1084    ac_prev=docdir ;;
1085  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086    docdir=$ac_optarg ;;
1087
1088  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089    ac_prev=dvidir ;;
1090  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091    dvidir=$ac_optarg ;;
1092
1093  -enable-* | --enable-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1098   { (exit 1); exit 1; }; }
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"enable_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval enable_$ac_useropt=\$ac_optarg ;;
1109
1110  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112  | --exec | --exe | --ex)
1113    ac_prev=exec_prefix ;;
1114  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116  | --exec=* | --exe=* | --ex=*)
1117    exec_prefix=$ac_optarg ;;
1118
1119  -gas | --gas | --ga | --g)
1120    # Obsolete; use --with-gas.
1121    with_gas=yes ;;
1122
1123  -help | --help | --hel | --he | -h)
1124    ac_init_help=long ;;
1125  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126    ac_init_help=recursive ;;
1127  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128    ac_init_help=short ;;
1129
1130  -host | --host | --hos | --ho)
1131    ac_prev=host_alias ;;
1132  -host=* | --host=* | --hos=* | --ho=*)
1133    host_alias=$ac_optarg ;;
1134
1135  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136    ac_prev=htmldir ;;
1137  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138  | --ht=*)
1139    htmldir=$ac_optarg ;;
1140
1141  -includedir | --includedir | --includedi | --included | --include \
1142  | --includ | --inclu | --incl | --inc)
1143    ac_prev=includedir ;;
1144  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145  | --includ=* | --inclu=* | --incl=* | --inc=*)
1146    includedir=$ac_optarg ;;
1147
1148  -infodir | --infodir | --infodi | --infod | --info | --inf)
1149    ac_prev=infodir ;;
1150  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151    infodir=$ac_optarg ;;
1152
1153  -libdir | --libdir | --libdi | --libd)
1154    ac_prev=libdir ;;
1155  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156    libdir=$ac_optarg ;;
1157
1158  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159  | --libexe | --libex | --libe)
1160    ac_prev=libexecdir ;;
1161  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162  | --libexe=* | --libex=* | --libe=*)
1163    libexecdir=$ac_optarg ;;
1164
1165  -localedir | --localedir | --localedi | --localed | --locale)
1166    ac_prev=localedir ;;
1167  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168    localedir=$ac_optarg ;;
1169
1170  -localstatedir | --localstatedir | --localstatedi | --localstated \
1171  | --localstate | --localstat | --localsta | --localst | --locals)
1172    ac_prev=localstatedir ;;
1173  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175    localstatedir=$ac_optarg ;;
1176
1177  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178    ac_prev=mandir ;;
1179  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180    mandir=$ac_optarg ;;
1181
1182  -nfp | --nfp | --nf)
1183    # Obsolete; use --without-fp.
1184    with_fp=no ;;
1185
1186  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187  | --no-cr | --no-c | -n)
1188    no_create=yes ;;
1189
1190  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192    no_recursion=yes ;;
1193
1194  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196  | --oldin | --oldi | --old | --ol | --o)
1197    ac_prev=oldincludedir ;;
1198  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201    oldincludedir=$ac_optarg ;;
1202
1203  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204    ac_prev=prefix ;;
1205  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206    prefix=$ac_optarg ;;
1207
1208  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209  | --program-pre | --program-pr | --program-p)
1210    ac_prev=program_prefix ;;
1211  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213    program_prefix=$ac_optarg ;;
1214
1215  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216  | --program-suf | --program-su | --program-s)
1217    ac_prev=program_suffix ;;
1218  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220    program_suffix=$ac_optarg ;;
1221
1222  -program-transform-name | --program-transform-name \
1223  | --program-transform-nam | --program-transform-na \
1224  | --program-transform-n | --program-transform- \
1225  | --program-transform | --program-transfor \
1226  | --program-transfo | --program-transf \
1227  | --program-trans | --program-tran \
1228  | --progr-tra | --program-tr | --program-t)
1229    ac_prev=program_transform_name ;;
1230  -program-transform-name=* | --program-transform-name=* \
1231  | --program-transform-nam=* | --program-transform-na=* \
1232  | --program-transform-n=* | --program-transform-=* \
1233  | --program-transform=* | --program-transfor=* \
1234  | --program-transfo=* | --program-transf=* \
1235  | --program-trans=* | --program-tran=* \
1236  | --progr-tra=* | --program-tr=* | --program-t=*)
1237    program_transform_name=$ac_optarg ;;
1238
1239  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240    ac_prev=pdfdir ;;
1241  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242    pdfdir=$ac_optarg ;;
1243
1244  -psdir | --psdir | --psdi | --psd | --ps)
1245    ac_prev=psdir ;;
1246  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247    psdir=$ac_optarg ;;
1248
1249  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250  | -silent | --silent | --silen | --sile | --sil)
1251    silent=yes ;;
1252
1253  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254    ac_prev=sbindir ;;
1255  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256  | --sbi=* | --sb=*)
1257    sbindir=$ac_optarg ;;
1258
1259  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261  | --sharedst | --shareds | --shared | --share | --shar \
1262  | --sha | --sh)
1263    ac_prev=sharedstatedir ;;
1264  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267  | --sha=* | --sh=*)
1268    sharedstatedir=$ac_optarg ;;
1269
1270  -site | --site | --sit)
1271    ac_prev=site ;;
1272  -site=* | --site=* | --sit=*)
1273    site=$ac_optarg ;;
1274
1275  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276    ac_prev=srcdir ;;
1277  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278    srcdir=$ac_optarg ;;
1279
1280  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281  | --syscon | --sysco | --sysc | --sys | --sy)
1282    ac_prev=sysconfdir ;;
1283  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285    sysconfdir=$ac_optarg ;;
1286
1287  -target | --target | --targe | --targ | --tar | --ta | --t)
1288    ac_prev=target_alias ;;
1289  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290    target_alias=$ac_optarg ;;
1291
1292  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293    verbose=yes ;;
1294
1295  -version | --version | --versio | --versi | --vers | -V)
1296    ac_init_version=: ;;
1297
1298  -with-* | --with-*)
1299    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300    # Reject names that are not valid shell variable names.
1301    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1303   { (exit 1); exit 1; }; }
1304    ac_useropt_orig=$ac_useropt
1305    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306    case $ac_user_opts in
1307      *"
1308"with_$ac_useropt"
1309"*) ;;
1310      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311	 ac_unrecognized_sep=', ';;
1312    esac
1313    eval with_$ac_useropt=\$ac_optarg ;;
1314
1315  -without-* | --without-*)
1316    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320   { (exit 1); exit 1; }; }
1321    ac_useropt_orig=$ac_useropt
1322    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323    case $ac_user_opts in
1324      *"
1325"with_$ac_useropt"
1326"*) ;;
1327      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328	 ac_unrecognized_sep=', ';;
1329    esac
1330    eval with_$ac_useropt=no ;;
1331
1332  --x)
1333    # Obsolete; use --with-x.
1334    with_x=yes ;;
1335
1336  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337  | --x-incl | --x-inc | --x-in | --x-i)
1338    ac_prev=x_includes ;;
1339  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341    x_includes=$ac_optarg ;;
1342
1343  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345    ac_prev=x_libraries ;;
1346  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348    x_libraries=$ac_optarg ;;
1349
1350  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1351Try \`$0 --help' for more information." >&2
1352   { (exit 1); exit 1; }; }
1353    ;;
1354
1355  *=*)
1356    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357    # Reject names that are not valid shell variable names.
1358    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1359      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1360   { (exit 1); exit 1; }; }
1361    eval $ac_envvar=\$ac_optarg
1362    export $ac_envvar ;;
1363
1364  *)
1365    # FIXME: should be removed in autoconf 3.0.
1366    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1370    ;;
1371
1372  esac
1373done
1374
1375if test -n "$ac_prev"; then
1376  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1378   { (exit 1); exit 1; }; }
1379fi
1380
1381if test -n "$ac_unrecognized_opts"; then
1382  case $enable_option_checking in
1383    no) ;;
1384    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1385   { (exit 1); exit 1; }; } ;;
1386    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387  esac
1388fi
1389
1390# Check all directory arguments for consistency.
1391for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392		datadir sysconfdir sharedstatedir localstatedir includedir \
1393		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394		libdir localedir mandir
1395do
1396  eval ac_val=\$$ac_var
1397  # Remove trailing slashes.
1398  case $ac_val in
1399    */ )
1400      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401      eval $ac_var=\$ac_val;;
1402  esac
1403  # Be sure to have absolute directory names.
1404  case $ac_val in
1405    [\\/$]* | ?:[\\/]* )  continue;;
1406    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407  esac
1408  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1409   { (exit 1); exit 1; }; }
1410done
1411
1412# There might be people who depend on the old broken behavior: `$host'
1413# used to hold the argument of --host etc.
1414# FIXME: To remove some day.
1415build=$build_alias
1416host=$host_alias
1417target=$target_alias
1418
1419# FIXME: To remove some day.
1420if test "x$host_alias" != x; then
1421  if test "x$build_alias" = x; then
1422    cross_compiling=maybe
1423    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424    If a cross compiler is detected then cross compile mode will be used." >&2
1425  elif test "x$build_alias" != "x$host_alias"; then
1426    cross_compiling=yes
1427  fi
1428fi
1429
1430ac_tool_prefix=
1431test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433test "$silent" = yes && exec 6>/dev/null
1434
1435
1436ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437ac_ls_di=`ls -di .` &&
1438ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1440   { (exit 1); exit 1; }; }
1441test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1443   { (exit 1); exit 1; }; }
1444
1445
1446# Find the source files, if location was not specified.
1447if test -z "$srcdir"; then
1448  ac_srcdir_defaulted=yes
1449  # Try the directory containing this script, then the parent directory.
1450  ac_confdir=`$as_dirname -- "$as_myself" ||
1451$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452	 X"$as_myself" : 'X\(//\)[^/]' \| \
1453	 X"$as_myself" : 'X\(//\)$' \| \
1454	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455$as_echo X"$as_myself" |
1456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\/\)[^/].*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  /^X\(\/\/\)$/{
1465	    s//\1/
1466	    q
1467	  }
1468	  /^X\(\/\).*/{
1469	    s//\1/
1470	    q
1471	  }
1472	  s/.*/./; q'`
1473  srcdir=$ac_confdir
1474  if test ! -r "$srcdir/$ac_unique_file"; then
1475    srcdir=..
1476  fi
1477else
1478  ac_srcdir_defaulted=no
1479fi
1480if test ! -r "$srcdir/$ac_unique_file"; then
1481  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1483   { (exit 1); exit 1; }; }
1484fi
1485ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486ac_abs_confdir=`(
1487	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1488   { (exit 1); exit 1; }; }
1489	pwd)`
1490# When building in place, set srcdir=.
1491if test "$ac_abs_confdir" = "$ac_pwd"; then
1492  srcdir=.
1493fi
1494# Remove unnecessary trailing slashes from srcdir.
1495# Double slashes in file names in object file debugging info
1496# mess up M-x gdb in Emacs.
1497case $srcdir in
1498*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499esac
1500for ac_var in $ac_precious_vars; do
1501  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502  eval ac_env_${ac_var}_value=\$${ac_var}
1503  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505done
1506
1507#
1508# Report the --help message.
1509#
1510if test "$ac_init_help" = "long"; then
1511  # Omit some internal or obsolete options to make the list less imposing.
1512  # This message is too long to be a string in the A/UX 3.1 sh.
1513  cat <<_ACEOF
1514\`configure' configures libpciaccess 0.12.0 to adapt to many kinds of systems.
1515
1516Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519VAR=VALUE.  See below for descriptions of some of the useful variables.
1520
1521Defaults for the options are specified in brackets.
1522
1523Configuration:
1524  -h, --help              display this help and exit
1525      --help=short        display options specific to this package
1526      --help=recursive    display the short help of all the included packages
1527  -V, --version           display version information and exit
1528  -q, --quiet, --silent   do not print \`checking...' messages
1529      --cache-file=FILE   cache test results in FILE [disabled]
1530  -C, --config-cache      alias for \`--cache-file=config.cache'
1531  -n, --no-create         do not create output files
1532      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533
1534Installation directories:
1535  --prefix=PREFIX         install architecture-independent files in PREFIX
1536                          [$ac_default_prefix]
1537  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1538                          [PREFIX]
1539
1540By default, \`make install' will install all the files in
1541\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1542an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543for instance \`--prefix=\$HOME'.
1544
1545For better control, use the options below.
1546
1547Fine tuning of the installation directories:
1548  --bindir=DIR            user executables [EPREFIX/bin]
1549  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1550  --libexecdir=DIR        program executables [EPREFIX/libexec]
1551  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1552  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1553  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1554  --libdir=DIR            object code libraries [EPREFIX/lib]
1555  --includedir=DIR        C header files [PREFIX/include]
1556  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1557  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1558  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1559  --infodir=DIR           info documentation [DATAROOTDIR/info]
1560  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1561  --mandir=DIR            man documentation [DATAROOTDIR/man]
1562  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpciaccess]
1563  --htmldir=DIR           html documentation [DOCDIR]
1564  --dvidir=DIR            dvi documentation [DOCDIR]
1565  --pdfdir=DIR            pdf documentation [DOCDIR]
1566  --psdir=DIR             ps documentation [DOCDIR]
1567_ACEOF
1568
1569  cat <<\_ACEOF
1570
1571Program names:
1572  --program-prefix=PREFIX            prepend PREFIX to installed program names
1573  --program-suffix=SUFFIX            append SUFFIX to installed program names
1574  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1575
1576System types:
1577  --build=BUILD     configure for building on BUILD [guessed]
1578  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1579_ACEOF
1580fi
1581
1582if test -n "$ac_init_help"; then
1583  case $ac_init_help in
1584     short | recursive ) echo "Configuration of libpciaccess 0.12.0:";;
1585   esac
1586  cat <<\_ACEOF
1587
1588Optional Features:
1589  --disable-option-checking  ignore unrecognized --enable/--with options
1590  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1591  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1592  --enable-maintainer-mode  enable make rules and dependencies not useful
1593			  (and sometimes confusing) to the casual installer
1594  --disable-dependency-tracking  speeds up one-time build
1595  --enable-dependency-tracking   do not reject slow dependency extractors
1596  --enable-strict-compilation
1597                          Enable all warnings from compiler and make them
1598                          errors (default: disabled)
1599  --enable-silent-rules          less verbose build output (undo: `make V=1')
1600  --disable-silent-rules         verbose build output (undo: `make V=0')
1601  --enable-shared[=PKGS]  build shared libraries [default=yes]
1602  --enable-static[=PKGS]  build static libraries [default=yes]
1603  --enable-fast-install[=PKGS]
1604                          optimize for fast installation [default=yes]
1605  --disable-libtool-lock  avoid locking (might break parallel builds)
1606  --enable-linux-rom-fallback
1607                          Enable support for falling back to /dev/mem for roms
1608                          (default: disabled)
1609  --disable-largefile     omit support for large files
1610
1611Optional Packages:
1612  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1613  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1614  --with-pic              try to use only PIC/non-PIC objects [default=use
1615                          both]
1616  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1617  --with-pciids-path=PCIIDS_PATH
1618                          Path to pci.ids file
1619  --with-zlib             Enable zlib support to read gzip compressed pci.ids
1620
1621Some influential environment variables:
1622  CC          C compiler command
1623  CFLAGS      C compiler flags
1624  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1625              nonstandard directory <lib dir>
1626  LIBS        libraries to pass to the linker, e.g. -l<library>
1627  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1628              you have headers in a nonstandard directory <include dir>
1629  CPP         C preprocessor
1630  PKG_CONFIG  path to pkg-config utility
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
1635Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
1636_ACEOF
1637ac_status=$?
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641  # If there are subdirs, report their specific --help.
1642  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643    test -d "$ac_dir" ||
1644      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645      continue
1646    ac_builddir=.
1647
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
1651  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652  # A ".." for each directory in $ac_dir_suffix.
1653  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654  case $ac_top_builddir_sub in
1655  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657  esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
1663
1664case $srcdir in
1665  .)  # We are building in place.
1666    ac_srcdir=.
1667    ac_top_srcdir=$ac_top_builddir_sub
1668    ac_abs_top_srcdir=$ac_pwd ;;
1669  [\\/]* | ?:[\\/]* )  # Absolute name.
1670    ac_srcdir=$srcdir$ac_dir_suffix;
1671    ac_top_srcdir=$srcdir
1672    ac_abs_top_srcdir=$srcdir ;;
1673  *) # Relative name.
1674    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675    ac_top_srcdir=$ac_top_build_prefix$srcdir
1676    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677esac
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680    cd "$ac_dir" || { ac_status=$?; continue; }
1681    # Check for guested configure.
1682    if test -f "$ac_srcdir/configure.gnu"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685    elif test -f "$ac_srcdir/configure"; then
1686      echo &&
1687      $SHELL "$ac_srcdir/configure" --help=recursive
1688    else
1689      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690    fi || ac_status=$?
1691    cd "$ac_pwd" || { ac_status=$?; break; }
1692  done
1693fi
1694
1695test -n "$ac_init_help" && exit $ac_status
1696if $ac_init_version; then
1697  cat <<\_ACEOF
1698libpciaccess configure 0.12.0
1699generated by GNU Autoconf 2.63
1700
1701Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17022002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1703This configure script is free software; the Free Software Foundation
1704gives unlimited permission to copy, distribute and modify it.
1705_ACEOF
1706  exit
1707fi
1708cat >config.log <<_ACEOF
1709This file contains any messages produced by compilers while
1710running configure, to aid debugging if configure makes a mistake.
1711
1712It was created by libpciaccess $as_me 0.12.0, which was
1713generated by GNU Autoconf 2.63.  Invocation command line was
1714
1715  $ $0 $@
1716
1717_ACEOF
1718exec 5>>config.log
1719{
1720cat <<_ASUNAME
1721## --------- ##
1722## Platform. ##
1723## --------- ##
1724
1725hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1726uname -m = `(uname -m) 2>/dev/null || echo unknown`
1727uname -r = `(uname -r) 2>/dev/null || echo unknown`
1728uname -s = `(uname -s) 2>/dev/null || echo unknown`
1729uname -v = `(uname -v) 2>/dev/null || echo unknown`
1730
1731/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1732/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1733
1734/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1735/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1736/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1737/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1738/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1739/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1740/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1741
1742_ASUNAME
1743
1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745for as_dir in $PATH
1746do
1747  IFS=$as_save_IFS
1748  test -z "$as_dir" && as_dir=.
1749  $as_echo "PATH: $as_dir"
1750done
1751IFS=$as_save_IFS
1752
1753} >&5
1754
1755cat >&5 <<_ACEOF
1756
1757
1758## ----------- ##
1759## Core tests. ##
1760## ----------- ##
1761
1762_ACEOF
1763
1764
1765# Keep a trace of the command line.
1766# Strip out --no-create and --no-recursion so they do not pile up.
1767# Strip out --silent because we don't want to record it for future runs.
1768# Also quote any args containing shell meta-characters.
1769# Make two passes to allow for proper duplicate-argument suppression.
1770ac_configure_args=
1771ac_configure_args0=
1772ac_configure_args1=
1773ac_must_keep_next=false
1774for ac_pass in 1 2
1775do
1776  for ac_arg
1777  do
1778    case $ac_arg in
1779    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1780    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1781    | -silent | --silent | --silen | --sile | --sil)
1782      continue ;;
1783    *\'*)
1784      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1785    esac
1786    case $ac_pass in
1787    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1788    2)
1789      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1790      if test $ac_must_keep_next = true; then
1791	ac_must_keep_next=false # Got value, back to normal.
1792      else
1793	case $ac_arg in
1794	  *=* | --config-cache | -C | -disable-* | --disable-* \
1795	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1796	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1797	  | -with-* | --with-* | -without-* | --without-* | --x)
1798	    case "$ac_configure_args0 " in
1799	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1800	    esac
1801	    ;;
1802	  -* ) ac_must_keep_next=true ;;
1803	esac
1804      fi
1805      ac_configure_args="$ac_configure_args '$ac_arg'"
1806      ;;
1807    esac
1808  done
1809done
1810$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1811$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1812
1813# When interrupted or exit'd, cleanup temporary files, and complete
1814# config.log.  We remove comments because anyway the quotes in there
1815# would cause problems or look ugly.
1816# WARNING: Use '\'' to represent an apostrophe within the trap.
1817# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1818trap 'exit_status=$?
1819  # Save into config.log some information that might help in debugging.
1820  {
1821    echo
1822
1823    cat <<\_ASBOX
1824## ---------------- ##
1825## Cache variables. ##
1826## ---------------- ##
1827_ASBOX
1828    echo
1829    # The following way of writing the cache mishandles newlines in values,
1830(
1831  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1832    eval ac_val=\$$ac_var
1833    case $ac_val in #(
1834    *${as_nl}*)
1835      case $ac_var in #(
1836      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1837$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1838      esac
1839      case $ac_var in #(
1840      _ | IFS | as_nl) ;; #(
1841      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1842      *) $as_unset $ac_var ;;
1843      esac ;;
1844    esac
1845  done
1846  (set) 2>&1 |
1847    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848    *${as_nl}ac_space=\ *)
1849      sed -n \
1850	"s/'\''/'\''\\\\'\'''\''/g;
1851	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852      ;; #(
1853    *)
1854      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855      ;;
1856    esac |
1857    sort
1858)
1859    echo
1860
1861    cat <<\_ASBOX
1862## ----------------- ##
1863## Output variables. ##
1864## ----------------- ##
1865_ASBOX
1866    echo
1867    for ac_var in $ac_subst_vars
1868    do
1869      eval ac_val=\$$ac_var
1870      case $ac_val in
1871      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872      esac
1873      $as_echo "$ac_var='\''$ac_val'\''"
1874    done | sort
1875    echo
1876
1877    if test -n "$ac_subst_files"; then
1878      cat <<\_ASBOX
1879## ------------------- ##
1880## File substitutions. ##
1881## ------------------- ##
1882_ASBOX
1883      echo
1884      for ac_var in $ac_subst_files
1885      do
1886	eval ac_val=\$$ac_var
1887	case $ac_val in
1888	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889	esac
1890	$as_echo "$ac_var='\''$ac_val'\''"
1891      done | sort
1892      echo
1893    fi
1894
1895    if test -s confdefs.h; then
1896      cat <<\_ASBOX
1897## ----------- ##
1898## confdefs.h. ##
1899## ----------- ##
1900_ASBOX
1901      echo
1902      cat confdefs.h
1903      echo
1904    fi
1905    test "$ac_signal" != 0 &&
1906      $as_echo "$as_me: caught signal $ac_signal"
1907    $as_echo "$as_me: exit $exit_status"
1908  } >&5
1909  rm -f core *.core core.conftest.* &&
1910    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911    exit $exit_status
1912' 0
1913for ac_signal in 1 2 13 15; do
1914  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1915done
1916ac_signal=0
1917
1918# confdefs.h avoids OS command line length limits that DEFS can exceed.
1919rm -f -r conftest* confdefs.h
1920
1921# Predefined preprocessor variables.
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_NAME "$PACKAGE_NAME"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_VERSION "$PACKAGE_VERSION"
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_STRING "$PACKAGE_STRING"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945_ACEOF
1946
1947
1948# Let the site file select an alternate cache file if it wants to.
1949# Prefer an explicitly selected file to automatically selected ones.
1950ac_site_file1=NONE
1951ac_site_file2=NONE
1952if test -n "$CONFIG_SITE"; then
1953  ac_site_file1=$CONFIG_SITE
1954elif test "x$prefix" != xNONE; then
1955  ac_site_file1=$prefix/share/config.site
1956  ac_site_file2=$prefix/etc/config.site
1957else
1958  ac_site_file1=$ac_default_prefix/share/config.site
1959  ac_site_file2=$ac_default_prefix/etc/config.site
1960fi
1961for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1962do
1963  test "x$ac_site_file" = xNONE && continue
1964  if test -r "$ac_site_file"; then
1965    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1967    sed 's/^/| /' "$ac_site_file" >&5
1968    . "$ac_site_file"
1969  fi
1970done
1971
1972if test -r "$cache_file"; then
1973  # Some versions of bash will fail to source /dev/null (special
1974  # files actually), so we avoid doing that.
1975  if test -f "$cache_file"; then
1976    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977$as_echo "$as_me: loading cache $cache_file" >&6;}
1978    case $cache_file in
1979      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980      *)                      . "./$cache_file";;
1981    esac
1982  fi
1983else
1984  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985$as_echo "$as_me: creating cache $cache_file" >&6;}
1986  >$cache_file
1987fi
1988
1989# Check that the precious variables saved in the cache have kept the same
1990# value.
1991ac_cache_corrupted=false
1992for ac_var in $ac_precious_vars; do
1993  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1994  eval ac_new_set=\$ac_env_${ac_var}_set
1995  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1996  eval ac_new_val=\$ac_env_${ac_var}_value
1997  case $ac_old_set,$ac_new_set in
1998    set,)
1999      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2000$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2001      ac_cache_corrupted=: ;;
2002    ,set)
2003      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2004$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2005      ac_cache_corrupted=: ;;
2006    ,);;
2007    *)
2008      if test "x$ac_old_val" != "x$ac_new_val"; then
2009	# differences in whitespace do not lead to failure.
2010	ac_old_val_w=`echo x $ac_old_val`
2011	ac_new_val_w=`echo x $ac_new_val`
2012	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2013	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2014$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2015	  ac_cache_corrupted=:
2016	else
2017	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2018$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2019	  eval $ac_var=\$ac_old_val
2020	fi
2021	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2022$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2023	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2024$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2025      fi;;
2026  esac
2027  # Pass precious variables to config.status.
2028  if test "$ac_new_set" = set; then
2029    case $ac_new_val in
2030    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2031    *) ac_arg=$ac_var=$ac_new_val ;;
2032    esac
2033    case " $ac_configure_args " in
2034      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2035      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2036    esac
2037  fi
2038done
2039if $ac_cache_corrupted; then
2040  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2043$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2044  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2045$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2046   { (exit 1); exit 1; }; }
2047fi
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073ac_ext=c
2074ac_cpp='$CPP $CPPFLAGS'
2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078
2079
2080am__api_version='1.11'
2081
2082ac_aux_dir=
2083for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2084  if test -f "$ac_dir/install-sh"; then
2085    ac_aux_dir=$ac_dir
2086    ac_install_sh="$ac_aux_dir/install-sh -c"
2087    break
2088  elif test -f "$ac_dir/install.sh"; then
2089    ac_aux_dir=$ac_dir
2090    ac_install_sh="$ac_aux_dir/install.sh -c"
2091    break
2092  elif test -f "$ac_dir/shtool"; then
2093    ac_aux_dir=$ac_dir
2094    ac_install_sh="$ac_aux_dir/shtool install -c"
2095    break
2096  fi
2097done
2098if test -z "$ac_aux_dir"; then
2099  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2100$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2101   { (exit 1); exit 1; }; }
2102fi
2103
2104# These three variables are undocumented and unsupported,
2105# and are intended to be withdrawn in a future Autoconf release.
2106# They can cause serious problems if a builder's source tree is in a directory
2107# whose full name contains unusual characters.
2108ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2109ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2110ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2111
2112
2113# Find a good install program.  We prefer a C program (faster),
2114# so one script is as good as another.  But avoid the broken or
2115# incompatible versions:
2116# SysV /etc/install, /usr/sbin/install
2117# SunOS /usr/etc/install
2118# IRIX /sbin/install
2119# AIX /bin/install
2120# AmigaOS /C/install, which installs bootblocks on floppy discs
2121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2122# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2124# OS/2's system install, which has a completely different semantic
2125# ./install, which can be erroneously created by make from ./install.sh.
2126# Reject install programs that cannot install multiple files.
2127{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128$as_echo_n "checking for a BSD-compatible install... " >&6; }
2129if test -z "$INSTALL"; then
2130if test "${ac_cv_path_install+set}" = set; then
2131  $as_echo_n "(cached) " >&6
2132else
2133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138  # Account for people who put trailing slashes in PATH elements.
2139case $as_dir/ in
2140  ./ | .// | /cC/* | \
2141  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2143  /usr/ucb/* ) ;;
2144  *)
2145    # OSF1 and SCO ODT 3.0 have their own names for install.
2146    # Don't use installbsd from OSF since it installs stuff as root
2147    # by default.
2148    for ac_prog in ginstall scoinst install; do
2149      for ac_exec_ext in '' $ac_executable_extensions; do
2150	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151	  if test $ac_prog = install &&
2152	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153	    # AIX install.  It has an incompatible calling convention.
2154	    :
2155	  elif test $ac_prog = install &&
2156	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157	    # program-specific install script used by HP pwplus--don't use.
2158	    :
2159	  else
2160	    rm -rf conftest.one conftest.two conftest.dir
2161	    echo one > conftest.one
2162	    echo two > conftest.two
2163	    mkdir conftest.dir
2164	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2165	      test -s conftest.one && test -s conftest.two &&
2166	      test -s conftest.dir/conftest.one &&
2167	      test -s conftest.dir/conftest.two
2168	    then
2169	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170	      break 3
2171	    fi
2172	  fi
2173	fi
2174      done
2175    done
2176    ;;
2177esac
2178
2179done
2180IFS=$as_save_IFS
2181
2182rm -rf conftest.one conftest.two conftest.dir
2183
2184fi
2185  if test "${ac_cv_path_install+set}" = set; then
2186    INSTALL=$ac_cv_path_install
2187  else
2188    # As a last resort, use the slow shell script.  Don't cache a
2189    # value for INSTALL within a source directory, because that will
2190    # break other packages using the cache if that directory is
2191    # removed, or if the value is a relative name.
2192    INSTALL=$ac_install_sh
2193  fi
2194fi
2195{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2196$as_echo "$INSTALL" >&6; }
2197
2198# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2199# It thinks the first close brace ends the variable substitution.
2200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2201
2202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2203
2204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2205
2206{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2207$as_echo_n "checking whether build environment is sane... " >&6; }
2208# Just in case
2209sleep 1
2210echo timestamp > conftest.file
2211# Reject unsafe characters in $srcdir or the absolute working directory
2212# name.  Accept space and tab only in the latter.
2213am_lf='
2214'
2215case `pwd` in
2216  *[\\\"\#\$\&\'\`$am_lf]*)
2217    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2218$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2219   { (exit 1); exit 1; }; };;
2220esac
2221case $srcdir in
2222  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2223    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2224$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2225   { (exit 1); exit 1; }; };;
2226esac
2227
2228# Do `set' in a subshell so we don't clobber the current shell's
2229# arguments.  Must try -L first in case configure is actually a
2230# symlink; some systems play weird games with the mod time of symlinks
2231# (eg FreeBSD returns the mod time of the symlink's containing
2232# directory).
2233if (
2234   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2235   if test "$*" = "X"; then
2236      # -L didn't work.
2237      set X `ls -t "$srcdir/configure" conftest.file`
2238   fi
2239   rm -f conftest.file
2240   if test "$*" != "X $srcdir/configure conftest.file" \
2241      && test "$*" != "X conftest.file $srcdir/configure"; then
2242
2243      # If neither matched, then we have a broken ls.  This can happen
2244      # if, for instance, CONFIG_SHELL is bash and it inherits a
2245      # broken ls alias from the environment.  This has actually
2246      # happened.  Such a system could not be considered "sane".
2247      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2248alias in your environment" >&5
2249$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2250alias in your environment" >&2;}
2251   { (exit 1); exit 1; }; }
2252   fi
2253
2254   test "$2" = conftest.file
2255   )
2256then
2257   # Ok.
2258   :
2259else
2260   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2261Check your system clock" >&5
2262$as_echo "$as_me: error: newly created file is older than distributed files!
2263Check your system clock" >&2;}
2264   { (exit 1); exit 1; }; }
2265fi
2266{ $as_echo "$as_me:$LINENO: result: yes" >&5
2267$as_echo "yes" >&6; }
2268test "$program_prefix" != NONE &&
2269  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2270# Use a double $ so make ignores it.
2271test "$program_suffix" != NONE &&
2272  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2273# Double any \ or $.
2274# By default was `s,x,x', remove it if useless.
2275ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2276program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2277
2278# expand $ac_aux_dir to an absolute path
2279am_aux_dir=`cd $ac_aux_dir && pwd`
2280
2281if test x"${MISSING+set}" != xset; then
2282  case $am_aux_dir in
2283  *\ * | *\	*)
2284    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2285  *)
2286    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2287  esac
2288fi
2289# Use eval to expand $SHELL
2290if eval "$MISSING --run true"; then
2291  am_missing_run="$MISSING --run "
2292else
2293  am_missing_run=
2294  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2295$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2296fi
2297
2298if test x"${install_sh}" != xset; then
2299  case $am_aux_dir in
2300  *\ * | *\	*)
2301    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2302  *)
2303    install_sh="\${SHELL} $am_aux_dir/install-sh"
2304  esac
2305fi
2306
2307# Installed binaries are usually stripped using `strip' when the user
2308# run `make install-strip'.  However `strip' might not be the right
2309# tool to use in cross-compilation environments, therefore Automake
2310# will honor the `STRIP' environment variable to overrule this program.
2311if test "$cross_compiling" != no; then
2312  if test -n "$ac_tool_prefix"; then
2313  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314set dummy ${ac_tool_prefix}strip; ac_word=$2
2315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316$as_echo_n "checking for $ac_word... " >&6; }
2317if test "${ac_cv_prog_STRIP+set}" = set; then
2318  $as_echo_n "(cached) " >&6
2319else
2320  if test -n "$STRIP"; then
2321  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328  for ac_exec_ext in '' $ac_executable_extensions; do
2329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2331    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332    break 2
2333  fi
2334done
2335done
2336IFS=$as_save_IFS
2337
2338fi
2339fi
2340STRIP=$ac_cv_prog_STRIP
2341if test -n "$STRIP"; then
2342  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2343$as_echo "$STRIP" >&6; }
2344else
2345  { $as_echo "$as_me:$LINENO: result: no" >&5
2346$as_echo "no" >&6; }
2347fi
2348
2349
2350fi
2351if test -z "$ac_cv_prog_STRIP"; then
2352  ac_ct_STRIP=$STRIP
2353  # Extract the first word of "strip", so it can be a program name with args.
2354set dummy strip; ac_word=$2
2355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356$as_echo_n "checking for $ac_word... " >&6; }
2357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2358  $as_echo_n "(cached) " >&6
2359else
2360  if test -n "$ac_ct_STRIP"; then
2361  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366  IFS=$as_save_IFS
2367  test -z "$as_dir" && as_dir=.
2368  for ac_exec_ext in '' $ac_executable_extensions; do
2369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370    ac_cv_prog_ac_ct_STRIP="strip"
2371    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372    break 2
2373  fi
2374done
2375done
2376IFS=$as_save_IFS
2377
2378fi
2379fi
2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2381if test -n "$ac_ct_STRIP"; then
2382  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2383$as_echo "$ac_ct_STRIP" >&6; }
2384else
2385  { $as_echo "$as_me:$LINENO: result: no" >&5
2386$as_echo "no" >&6; }
2387fi
2388
2389  if test "x$ac_ct_STRIP" = x; then
2390    STRIP=":"
2391  else
2392    case $cross_compiling:$ac_tool_warned in
2393yes:)
2394{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2396ac_tool_warned=yes ;;
2397esac
2398    STRIP=$ac_ct_STRIP
2399  fi
2400else
2401  STRIP="$ac_cv_prog_STRIP"
2402fi
2403
2404fi
2405INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2406
2407{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2408$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2409if test -z "$MKDIR_P"; then
2410  if test "${ac_cv_path_mkdir+set}" = set; then
2411  $as_echo_n "(cached) " >&6
2412else
2413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2415do
2416  IFS=$as_save_IFS
2417  test -z "$as_dir" && as_dir=.
2418  for ac_prog in mkdir gmkdir; do
2419	 for ac_exec_ext in '' $ac_executable_extensions; do
2420	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2421	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2422	     'mkdir (GNU coreutils) '* | \
2423	     'mkdir (coreutils) '* | \
2424	     'mkdir (fileutils) '4.1*)
2425	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2426	       break 3;;
2427	   esac
2428	 done
2429       done
2430done
2431IFS=$as_save_IFS
2432
2433fi
2434
2435  if test "${ac_cv_path_mkdir+set}" = set; then
2436    MKDIR_P="$ac_cv_path_mkdir -p"
2437  else
2438    # As a last resort, use the slow shell script.  Don't cache a
2439    # value for MKDIR_P within a source directory, because that will
2440    # break other packages using the cache if that directory is
2441    # removed, or if the value is a relative name.
2442    test -d ./--version && rmdir ./--version
2443    MKDIR_P="$ac_install_sh -d"
2444  fi
2445fi
2446{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2447$as_echo "$MKDIR_P" >&6; }
2448
2449mkdir_p="$MKDIR_P"
2450case $mkdir_p in
2451  [\\/$]* | ?:[\\/]*) ;;
2452  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2453esac
2454
2455for ac_prog in gawk mawk nawk awk
2456do
2457  # Extract the first word of "$ac_prog", so it can be a program name with args.
2458set dummy $ac_prog; ac_word=$2
2459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2460$as_echo_n "checking for $ac_word... " >&6; }
2461if test "${ac_cv_prog_AWK+set}" = set; then
2462  $as_echo_n "(cached) " >&6
2463else
2464  if test -n "$AWK"; then
2465  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470  IFS=$as_save_IFS
2471  test -z "$as_dir" && as_dir=.
2472  for ac_exec_ext in '' $ac_executable_extensions; do
2473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474    ac_cv_prog_AWK="$ac_prog"
2475    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476    break 2
2477  fi
2478done
2479done
2480IFS=$as_save_IFS
2481
2482fi
2483fi
2484AWK=$ac_cv_prog_AWK
2485if test -n "$AWK"; then
2486  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2487$as_echo "$AWK" >&6; }
2488else
2489  { $as_echo "$as_me:$LINENO: result: no" >&5
2490$as_echo "no" >&6; }
2491fi
2492
2493
2494  test -n "$AWK" && break
2495done
2496
2497{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2499set x ${MAKE-make}
2500ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2501if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2502  $as_echo_n "(cached) " >&6
2503else
2504  cat >conftest.make <<\_ACEOF
2505SHELL = /bin/sh
2506all:
2507	@echo '@@@%%%=$(MAKE)=@@@%%%'
2508_ACEOF
2509# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510case `${MAKE-make} -f conftest.make 2>/dev/null` in
2511  *@@@%%%=?*=@@@%%%*)
2512    eval ac_cv_prog_make_${ac_make}_set=yes;;
2513  *)
2514    eval ac_cv_prog_make_${ac_make}_set=no;;
2515esac
2516rm -f conftest.make
2517fi
2518if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2519  { $as_echo "$as_me:$LINENO: result: yes" >&5
2520$as_echo "yes" >&6; }
2521  SET_MAKE=
2522else
2523  { $as_echo "$as_me:$LINENO: result: no" >&5
2524$as_echo "no" >&6; }
2525  SET_MAKE="MAKE=${MAKE-make}"
2526fi
2527
2528rm -rf .tst 2>/dev/null
2529mkdir .tst 2>/dev/null
2530if test -d .tst; then
2531  am__leading_dot=.
2532else
2533  am__leading_dot=_
2534fi
2535rmdir .tst 2>/dev/null
2536
2537if test "`cd $srcdir && pwd`" != "`pwd`"; then
2538  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2539  # is not polluted with repeated "-I."
2540  am__isrc=' -I$(srcdir)'
2541  # test to see if srcdir already configured
2542  if test -f $srcdir/config.status; then
2543    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2544$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2545   { (exit 1); exit 1; }; }
2546  fi
2547fi
2548
2549# test whether we have cygpath
2550if test -z "$CYGPATH_W"; then
2551  if (cygpath --version) >/dev/null 2>/dev/null; then
2552    CYGPATH_W='cygpath -w'
2553  else
2554    CYGPATH_W=echo
2555  fi
2556fi
2557
2558
2559# Define the identity of the package.
2560 PACKAGE='libpciaccess'
2561 VERSION='0.12.0'
2562
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE "$PACKAGE"
2566_ACEOF
2567
2568
2569cat >>confdefs.h <<_ACEOF
2570#define VERSION "$VERSION"
2571_ACEOF
2572
2573# Some tools Automake needs.
2574
2575ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2576
2577
2578AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2579
2580
2581AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2582
2583
2584AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2585
2586
2587MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2588
2589# We need awk for the "check" target.  The system "awk" is bad on
2590# some platforms.
2591# Always define AMTAR for backward compatibility.
2592
2593AMTAR=${AMTAR-"${am_missing_run}tar"}
2594
2595am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2596
2597
2598
2599
2600
2601
2602{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2603$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2604    # Check whether --enable-maintainer-mode was given.
2605if test "${enable_maintainer_mode+set}" = set; then
2606  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2607else
2608  USE_MAINTAINER_MODE=no
2609fi
2610
2611  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2612$as_echo "$USE_MAINTAINER_MODE" >&6; }
2613   if test $USE_MAINTAINER_MODE = yes; then
2614  MAINTAINER_MODE_TRUE=
2615  MAINTAINER_MODE_FALSE='#'
2616else
2617  MAINTAINER_MODE_TRUE='#'
2618  MAINTAINER_MODE_FALSE=
2619fi
2620
2621  MAINT=$MAINTAINER_MODE_TRUE
2622
2623
2624
2625# Require xorg-macros: XORG_DEFAULT_OPTIONS
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637DEPDIR="${am__leading_dot}deps"
2638
2639ac_config_commands="$ac_config_commands depfiles"
2640
2641
2642am_make=${MAKE-make}
2643cat > confinc << 'END'
2644am__doit:
2645	@echo this is the am__doit target
2646.PHONY: am__doit
2647END
2648# If we don't find an include directive, just comment out the code.
2649{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2650$as_echo_n "checking for style of include used by $am_make... " >&6; }
2651am__include="#"
2652am__quote=
2653_am_result=none
2654# First try GNU make style include.
2655echo "include confinc" > confmf
2656# Ignore all kinds of additional output from `make'.
2657case `$am_make -s -f confmf 2> /dev/null` in #(
2658*the\ am__doit\ target*)
2659  am__include=include
2660  am__quote=
2661  _am_result=GNU
2662  ;;
2663esac
2664# Now try BSD make style include.
2665if test "$am__include" = "#"; then
2666   echo '.include "confinc"' > confmf
2667   case `$am_make -s -f confmf 2> /dev/null` in #(
2668   *the\ am__doit\ target*)
2669     am__include=.include
2670     am__quote="\""
2671     _am_result=BSD
2672     ;;
2673   esac
2674fi
2675
2676
2677{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2678$as_echo "$_am_result" >&6; }
2679rm -f confinc confmf
2680
2681# Check whether --enable-dependency-tracking was given.
2682if test "${enable_dependency_tracking+set}" = set; then
2683  enableval=$enable_dependency_tracking;
2684fi
2685
2686if test "x$enable_dependency_tracking" != xno; then
2687  am_depcomp="$ac_aux_dir/depcomp"
2688  AMDEPBACKSLASH='\'
2689fi
2690 if test "x$enable_dependency_tracking" != xno; then
2691  AMDEP_TRUE=
2692  AMDEP_FALSE='#'
2693else
2694  AMDEP_TRUE='#'
2695  AMDEP_FALSE=
2696fi
2697
2698
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704if test -n "$ac_tool_prefix"; then
2705  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if test "${ac_cv_prog_CC+set}" = set; then
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$CC"; then
2713  ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720  for ac_exec_ext in '' $ac_executable_extensions; do
2721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732CC=$ac_cv_prog_CC
2733if test -n "$CC"; then
2734  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2735$as_echo "$CC" >&6; }
2736else
2737  { $as_echo "$as_me:$LINENO: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742fi
2743if test -z "$ac_cv_prog_CC"; then
2744  ac_ct_CC=$CC
2745  # Extract the first word of "gcc", so it can be a program name with args.
2746set dummy gcc; ac_word=$2
2747{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2750  $as_echo_n "(cached) " >&6
2751else
2752  if test -n "$ac_ct_CC"; then
2753  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  test -z "$as_dir" && as_dir=.
2760  for ac_exec_ext in '' $ac_executable_extensions; do
2761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762    ac_cv_prog_ac_ct_CC="gcc"
2763    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764    break 2
2765  fi
2766done
2767done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773if test -n "$ac_ct_CC"; then
2774  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2775$as_echo "$ac_ct_CC" >&6; }
2776else
2777  { $as_echo "$as_me:$LINENO: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781  if test "x$ac_ct_CC" = x; then
2782    CC=""
2783  else
2784    case $cross_compiling:$ac_tool_warned in
2785yes:)
2786{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790    CC=$ac_ct_CC
2791  fi
2792else
2793  CC="$ac_cv_prog_CC"
2794fi
2795
2796if test -z "$CC"; then
2797          if test -n "$ac_tool_prefix"; then
2798    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799set dummy ${ac_tool_prefix}cc; ac_word=$2
2800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801$as_echo_n "checking for $ac_word... " >&6; }
2802if test "${ac_cv_prog_CC+set}" = set; then
2803  $as_echo_n "(cached) " >&6
2804else
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811  IFS=$as_save_IFS
2812  test -z "$as_dir" && as_dir=.
2813  for ac_exec_ext in '' $ac_executable_extensions; do
2814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815    ac_cv_prog_CC="${ac_tool_prefix}cc"
2816    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820done
2821IFS=$as_save_IFS
2822
2823fi
2824fi
2825CC=$ac_cv_prog_CC
2826if test -n "$CC"; then
2827  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2828$as_echo "$CC" >&6; }
2829else
2830  { $as_echo "$as_me:$LINENO: result: no" >&5
2831$as_echo "no" >&6; }
2832fi
2833
2834
2835  fi
2836fi
2837if test -z "$CC"; then
2838  # Extract the first word of "cc", so it can be a program name with args.
2839set dummy cc; ac_word=$2
2840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if test "${ac_cv_prog_CC+set}" = set; then
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$CC"; then
2846  ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848  ac_prog_rejected=no
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854  for ac_exec_ext in '' $ac_executable_extensions; do
2855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857       ac_prog_rejected=yes
2858       continue
2859     fi
2860    ac_cv_prog_CC="cc"
2861    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862    break 2
2863  fi
2864done
2865done
2866IFS=$as_save_IFS
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885$as_echo "$CC" >&6; }
2886else
2887  { $as_echo "$as_me:$LINENO: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
2892fi
2893if test -z "$CC"; then
2894  if test -n "$ac_tool_prefix"; then
2895  for ac_prog in cl.exe
2896  do
2897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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    test -n "$CC" && break
2935  done
2936fi
2937if test -z "$CC"; then
2938  ac_ct_CC=$CC
2939  for ac_prog in cl.exe
2940do
2941  # Extract the first word of "$ac_prog", so it can be a program name with args.
2942set dummy $ac_prog; ac_word=$2
2943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2946  $as_echo_n "(cached) " >&6
2947else
2948  if test -n "$ac_ct_CC"; then
2949  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  test -z "$as_dir" && as_dir=.
2956  for ac_exec_ext in '' $ac_executable_extensions; do
2957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958    ac_cv_prog_ac_ct_CC="$ac_prog"
2959    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969if test -n "$ac_ct_CC"; then
2970  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2971$as_echo "$ac_ct_CC" >&6; }
2972else
2973  { $as_echo "$as_me:$LINENO: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978  test -n "$ac_ct_CC" && break
2979done
2980
2981  if test "x$ac_ct_CC" = x; then
2982    CC=""
2983  else
2984    case $cross_compiling:$ac_tool_warned in
2985yes:)
2986{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988ac_tool_warned=yes ;;
2989esac
2990    CC=$ac_ct_CC
2991  fi
2992fi
2993
2994fi
2995
2996
2997test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3000See \`config.log' for more details." >&5
3001$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3002See \`config.log' for more details." >&2;}
3003   { (exit 1); exit 1; }; }; }
3004
3005# Provide some information about the compiler.
3006$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3007set X $ac_compile
3008ac_compiler=$2
3009{ (ac_try="$ac_compiler --version >&5"
3010case "(($ac_try" in
3011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012  *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3015$as_echo "$ac_try_echo") >&5
3016  (eval "$ac_compiler --version >&5") 2>&5
3017  ac_status=$?
3018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }
3020{ (ac_try="$ac_compiler -v >&5"
3021case "(($ac_try" in
3022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023  *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3026$as_echo "$ac_try_echo") >&5
3027  (eval "$ac_compiler -v >&5") 2>&5
3028  ac_status=$?
3029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }
3031{ (ac_try="$ac_compiler -V >&5"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3037$as_echo "$ac_try_echo") >&5
3038  (eval "$ac_compiler -V >&5") 2>&5
3039  ac_status=$?
3040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); }
3042
3043cat >conftest.$ac_ext <<_ACEOF
3044/* confdefs.h.  */
3045_ACEOF
3046cat confdefs.h >>conftest.$ac_ext
3047cat >>conftest.$ac_ext <<_ACEOF
3048/* end confdefs.h.  */
3049
3050int
3051main ()
3052{
3053
3054  ;
3055  return 0;
3056}
3057_ACEOF
3058ac_clean_files_save=$ac_clean_files
3059ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3060# Try to create an executable without -o first, disregard a.out.
3061# It will help us diagnose broken compilers, and finding out an intuition
3062# of exeext.
3063{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3064$as_echo_n "checking for C compiler default output file name... " >&6; }
3065ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3066
3067# The possible output files:
3068ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3069
3070ac_rmfiles=
3071for ac_file in $ac_files
3072do
3073  case $ac_file in
3074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076  esac
3077done
3078rm -f $ac_rmfiles
3079
3080if { (ac_try="$ac_link_default"
3081case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086$as_echo "$ac_try_echo") >&5
3087  (eval "$ac_link_default") 2>&5
3088  ac_status=$?
3089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; then
3091  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3092# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3093# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3094# so that the user can short-circuit this test for compilers unknown to
3095# Autoconf.
3096for ac_file in $ac_files ''
3097do
3098  test -f "$ac_file" || continue
3099  case $ac_file in
3100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3101	;;
3102    [ab].out )
3103	# We found the default executable, but exeext='' is most
3104	# certainly right.
3105	break;;
3106    *.* )
3107        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3108	then :; else
3109	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110	fi
3111	# We set ac_cv_exeext here because the later test for it is not
3112	# safe: cross compilers may not add the suffix if given an `-o'
3113	# argument, so we may need to know it at that point already.
3114	# Even if this section looks crufty: it has the advantage of
3115	# actually working.
3116	break;;
3117    * )
3118	break;;
3119  esac
3120done
3121test "$ac_cv_exeext" = no && ac_cv_exeext=
3122
3123else
3124  ac_file=''
3125fi
3126
3127{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3128$as_echo "$ac_file" >&6; }
3129if test -z "$ac_file"; then
3130  $as_echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3136See \`config.log' for more details." >&5
3137$as_echo "$as_me: error: C compiler cannot create executables
3138See \`config.log' for more details." >&2;}
3139   { (exit 77); exit 77; }; }; }
3140fi
3141
3142ac_exeext=$ac_cv_exeext
3143
3144# Check that the compiler produces executables we can run.  If not, either
3145# the compiler is broken, or we cross compile.
3146{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3147$as_echo_n "checking whether the C compiler works... " >&6; }
3148# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3149# If not cross compiling, check that we can run a simple program.
3150if test "$cross_compiling" != yes; then
3151  if { ac_try='./$ac_file'
3152  { (case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3157$as_echo "$ac_try_echo") >&5
3158  (eval "$ac_try") 2>&5
3159  ac_status=$?
3160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162    cross_compiling=no
3163  else
3164    if test "$cross_compiling" = maybe; then
3165	cross_compiling=yes
3166    else
3167	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3170If you meant to cross compile, use \`--host'.
3171See \`config.log' for more details." >&5
3172$as_echo "$as_me: error: cannot run C compiled programs.
3173If you meant to cross compile, use \`--host'.
3174See \`config.log' for more details." >&2;}
3175   { (exit 1); exit 1; }; }; }
3176    fi
3177  fi
3178fi
3179{ $as_echo "$as_me:$LINENO: result: yes" >&5
3180$as_echo "yes" >&6; }
3181
3182rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3183ac_clean_files=$ac_clean_files_save
3184# Check that the compiler produces executables we can run.  If not, either
3185# the compiler is broken, or we cross compile.
3186{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187$as_echo_n "checking whether we are cross compiling... " >&6; }
3188{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189$as_echo "$cross_compiling" >&6; }
3190
3191{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192$as_echo_n "checking for suffix of executables... " >&6; }
3193if { (ac_try="$ac_link"
3194case "(($ac_try" in
3195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196  *) ac_try_echo=$ac_try;;
3197esac
3198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3199$as_echo "$ac_try_echo") >&5
3200  (eval "$ac_link") 2>&5
3201  ac_status=$?
3202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }; then
3204  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3205# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3206# work properly (i.e., refer to `conftest.exe'), while it won't with
3207# `rm'.
3208for ac_file in conftest.exe conftest conftest.*; do
3209  test -f "$ac_file" || continue
3210  case $ac_file in
3211    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3212    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213	  break;;
3214    * ) break;;
3215  esac
3216done
3217else
3218  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3221See \`config.log' for more details." >&5
3222$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3223See \`config.log' for more details." >&2;}
3224   { (exit 1); exit 1; }; }; }
3225fi
3226
3227rm -f conftest$ac_cv_exeext
3228{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3229$as_echo "$ac_cv_exeext" >&6; }
3230
3231rm -f conftest.$ac_ext
3232EXEEXT=$ac_cv_exeext
3233ac_exeext=$EXEEXT
3234{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3235$as_echo_n "checking for suffix of object files... " >&6; }
3236if test "${ac_cv_objext+set}" = set; then
3237  $as_echo_n "(cached) " >&6
3238else
3239  cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h.  */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h.  */
3245
3246int
3247main ()
3248{
3249
3250  ;
3251  return 0;
3252}
3253_ACEOF
3254rm -f conftest.o conftest.obj
3255if { (ac_try="$ac_compile"
3256case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3261$as_echo "$ac_try_echo") >&5
3262  (eval "$ac_compile") 2>&5
3263  ac_status=$?
3264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); }; then
3266  for ac_file in conftest.o conftest.obj conftest.*; do
3267  test -f "$ac_file" || continue;
3268  case $ac_file in
3269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3270    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3271       break;;
3272  esac
3273done
3274else
3275  $as_echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3281See \`config.log' for more details." >&5
3282$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3283See \`config.log' for more details." >&2;}
3284   { (exit 1); exit 1; }; }; }
3285fi
3286
3287rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288fi
3289{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3290$as_echo "$ac_cv_objext" >&6; }
3291OBJEXT=$ac_cv_objext
3292ac_objext=$OBJEXT
3293{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3294$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3295if test "${ac_cv_c_compiler_gnu+set}" = set; then
3296  $as_echo_n "(cached) " >&6
3297else
3298  cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h.  */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h.  */
3304
3305int
3306main ()
3307{
3308#ifndef __GNUC__
3309       choke me
3310#endif
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323$as_echo "$ac_try_echo") >&5
3324  (eval "$ac_compile") 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } && {
3331	 test -z "$ac_c_werror_flag" ||
3332	 test ! -s conftest.err
3333       } && test -s conftest.$ac_objext; then
3334  ac_compiler_gnu=yes
3335else
3336  $as_echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339	ac_compiler_gnu=no
3340fi
3341
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344
3345fi
3346{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3347$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348if test $ac_compiler_gnu = yes; then
3349  GCC=yes
3350else
3351  GCC=
3352fi
3353ac_test_CFLAGS=${CFLAGS+set}
3354ac_save_CFLAGS=$CFLAGS
3355{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3356$as_echo_n "checking whether $CC accepts -g... " >&6; }
3357if test "${ac_cv_prog_cc_g+set}" = set; then
3358  $as_echo_n "(cached) " >&6
3359else
3360  ac_save_c_werror_flag=$ac_c_werror_flag
3361   ac_c_werror_flag=yes
3362   ac_cv_prog_cc_g=no
3363   CFLAGS="-g"
3364   cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h.  */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (ac_try="$ac_compile"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386$as_echo "$ac_try_echo") >&5
3387  (eval "$ac_compile") 2>conftest.er1
3388  ac_status=$?
3389  grep -v '^ *+' conftest.er1 >conftest.err
3390  rm -f conftest.er1
3391  cat conftest.err >&5
3392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); } && {
3394	 test -z "$ac_c_werror_flag" ||
3395	 test ! -s conftest.err
3396       } && test -s conftest.$ac_objext; then
3397  ac_cv_prog_cc_g=yes
3398else
3399  $as_echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
3402	CFLAGS=""
3403      cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h.  */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h.  */
3409
3410int
3411main ()
3412{
3413
3414  ;
3415  return 0;
3416}
3417_ACEOF
3418rm -f conftest.$ac_objext
3419if { (ac_try="$ac_compile"
3420case "(($ac_try" in
3421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422  *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3425$as_echo "$ac_try_echo") >&5
3426  (eval "$ac_compile") 2>conftest.er1
3427  ac_status=$?
3428  grep -v '^ *+' conftest.er1 >conftest.err
3429  rm -f conftest.er1
3430  cat conftest.err >&5
3431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); } && {
3433	 test -z "$ac_c_werror_flag" ||
3434	 test ! -s conftest.err
3435       } && test -s conftest.$ac_objext; then
3436  :
3437else
3438  $as_echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441	ac_c_werror_flag=$ac_save_c_werror_flag
3442	 CFLAGS="-g"
3443	 cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h.  */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h.  */
3449
3450int
3451main ()
3452{
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
3459if { (ac_try="$ac_compile"
3460case "(($ac_try" in
3461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462  *) ac_try_echo=$ac_try;;
3463esac
3464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465$as_echo "$ac_try_echo") >&5
3466  (eval "$ac_compile") 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } && {
3473	 test -z "$ac_c_werror_flag" ||
3474	 test ! -s conftest.err
3475       } && test -s conftest.$ac_objext; then
3476  ac_cv_prog_cc_g=yes
3477else
3478  $as_echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481
3482fi
3483
3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485fi
3486
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488fi
3489
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491   ac_c_werror_flag=$ac_save_c_werror_flag
3492fi
3493{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3494$as_echo "$ac_cv_prog_cc_g" >&6; }
3495if test "$ac_test_CFLAGS" = set; then
3496  CFLAGS=$ac_save_CFLAGS
3497elif test $ac_cv_prog_cc_g = yes; then
3498  if test "$GCC" = yes; then
3499    CFLAGS="-g -O2"
3500  else
3501    CFLAGS="-g"
3502  fi
3503else
3504  if test "$GCC" = yes; then
3505    CFLAGS="-O2"
3506  else
3507    CFLAGS=
3508  fi
3509fi
3510{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3511$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512if test "${ac_cv_prog_cc_c89+set}" = set; then
3513  $as_echo_n "(cached) " >&6
3514else
3515  ac_cv_prog_cc_c89=no
3516ac_save_CC=$CC
3517cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h.  */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h.  */
3523#include <stdarg.h>
3524#include <stdio.h>
3525#include <sys/types.h>
3526#include <sys/stat.h>
3527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3528struct buf { int x; };
3529FILE * (*rcsopen) (struct buf *, struct stat *, int);
3530static char *e (p, i)
3531     char **p;
3532     int i;
3533{
3534  return p[i];
3535}
3536static char *f (char * (*g) (char **, int), char **p, ...)
3537{
3538  char *s;
3539  va_list v;
3540  va_start (v,p);
3541  s = g (p, va_arg (v,int));
3542  va_end (v);
3543  return s;
3544}
3545
3546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3547   function prototypes and stuff, but not '\xHH' hex character constants.
3548   These don't provoke an error unfortunately, instead are silently treated
3549   as 'x'.  The following induces an error, until -std is added to get
3550   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3551   array size at least.  It's necessary to write '\x00'==0 to get something
3552   that's true only with -std.  */
3553int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3554
3555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3556   inside strings and character constants.  */
3557#define FOO(x) 'x'
3558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3559
3560int test (int i, double x);
3561struct s1 {int (*f) (int a);};
3562struct s2 {int (*f) (double a);};
3563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3564int argc;
3565char **argv;
3566int
3567main ()
3568{
3569return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3575	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3576do
3577  CC="$ac_save_CC $ac_arg"
3578  rm -f conftest.$ac_objext
3579if { (ac_try="$ac_compile"
3580case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585$as_echo "$ac_try_echo") >&5
3586  (eval "$ac_compile") 2>conftest.er1
3587  ac_status=$?
3588  grep -v '^ *+' conftest.er1 >conftest.err
3589  rm -f conftest.er1
3590  cat conftest.err >&5
3591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } && {
3593	 test -z "$ac_c_werror_flag" ||
3594	 test ! -s conftest.err
3595       } && test -s conftest.$ac_objext; then
3596  ac_cv_prog_cc_c89=$ac_arg
3597else
3598  $as_echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601
3602fi
3603
3604rm -f core conftest.err conftest.$ac_objext
3605  test "x$ac_cv_prog_cc_c89" != "xno" && break
3606done
3607rm -f conftest.$ac_ext
3608CC=$ac_save_CC
3609
3610fi
3611# AC_CACHE_VAL
3612case "x$ac_cv_prog_cc_c89" in
3613  x)
3614    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3615$as_echo "none needed" >&6; } ;;
3616  xno)
3617    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3618$as_echo "unsupported" >&6; } ;;
3619  *)
3620    CC="$CC $ac_cv_prog_cc_c89"
3621    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3623esac
3624
3625
3626ac_ext=c
3627ac_cpp='$CPP $CPPFLAGS'
3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631
3632depcc="$CC"   am_compiler_list=
3633
3634{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3635$as_echo_n "checking dependency style of $depcc... " >&6; }
3636if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3637  $as_echo_n "(cached) " >&6
3638else
3639  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3640  # We make a subdir and do the tests there.  Otherwise we can end up
3641  # making bogus files that we don't know about and never remove.  For
3642  # instance it was reported that on HP-UX the gcc test will end up
3643  # making a dummy file named `D' -- because `-MD' means `put the output
3644  # in D'.
3645  mkdir conftest.dir
3646  # Copy depcomp to subdir because otherwise we won't find it if we're
3647  # using a relative directory.
3648  cp "$am_depcomp" conftest.dir
3649  cd conftest.dir
3650  # We will build objects and dependencies in a subdirectory because
3651  # it helps to detect inapplicable dependency modes.  For instance
3652  # both Tru64's cc and ICC support -MD to output dependencies as a
3653  # side effect of compilation, but ICC will put the dependencies in
3654  # the current directory while Tru64 will put them in the object
3655  # directory.
3656  mkdir sub
3657
3658  am_cv_CC_dependencies_compiler_type=none
3659  if test "$am_compiler_list" = ""; then
3660     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3661  fi
3662  am__universal=false
3663  case " $depcc " in #(
3664     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3665     esac
3666
3667  for depmode in $am_compiler_list; do
3668    # Setup a source with many dependencies, because some compilers
3669    # like to wrap large dependency lists on column 80 (with \), and
3670    # we should not choose a depcomp mode which is confused by this.
3671    #
3672    # We need to recreate these files for each test, as the compiler may
3673    # overwrite some of them when testing with obscure command lines.
3674    # This happens at least with the AIX C compiler.
3675    : > sub/conftest.c
3676    for i in 1 2 3 4 5 6; do
3677      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3678      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3679      # Solaris 8's {/usr,}/bin/sh.
3680      touch sub/conftst$i.h
3681    done
3682    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3683
3684    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3685    # mode.  It turns out that the SunPro C++ compiler does not properly
3686    # handle `-M -o', and we need to detect this.  Also, some Intel
3687    # versions had trouble with output in subdirs
3688    am__obj=sub/conftest.${OBJEXT-o}
3689    am__minus_obj="-o $am__obj"
3690    case $depmode in
3691    gcc)
3692      # This depmode causes a compiler race in universal mode.
3693      test "$am__universal" = false || continue
3694      ;;
3695    nosideeffect)
3696      # after this tag, mechanisms are not by side-effect, so they'll
3697      # only be used when explicitly requested
3698      if test "x$enable_dependency_tracking" = xyes; then
3699	continue
3700      else
3701	break
3702      fi
3703      ;;
3704    msvisualcpp | msvcmsys)
3705      # This compiler won't grok `-c -o', but also, the minuso test has
3706      # not run yet.  These depmodes are late enough in the game, and
3707      # so weak that their functioning should not be impacted.
3708      am__obj=conftest.${OBJEXT-o}
3709      am__minus_obj=
3710      ;;
3711    none) break ;;
3712    esac
3713    if depmode=$depmode \
3714       source=sub/conftest.c object=$am__obj \
3715       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3716       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3717         >/dev/null 2>conftest.err &&
3718       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3719       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3720       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3721       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3722      # icc doesn't choke on unknown options, it will just issue warnings
3723      # or remarks (even with -Werror).  So we grep stderr for any message
3724      # that says an option was ignored or not supported.
3725      # When given -MP, icc 7.0 and 7.1 complain thusly:
3726      #   icc: Command line warning: ignoring option '-M'; no argument required
3727      # The diagnosis changed in icc 8.0:
3728      #   icc: Command line remark: option '-MP' not supported
3729      if (grep 'ignoring option' conftest.err ||
3730          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3731        am_cv_CC_dependencies_compiler_type=$depmode
3732        break
3733      fi
3734    fi
3735  done
3736
3737  cd ..
3738  rm -rf conftest.dir
3739else
3740  am_cv_CC_dependencies_compiler_type=none
3741fi
3742
3743fi
3744{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3745$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3746CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3747
3748 if
3749  test "x$enable_dependency_tracking" != xno \
3750  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3751  am__fastdepCC_TRUE=
3752  am__fastdepCC_FALSE='#'
3753else
3754  am__fastdepCC_TRUE='#'
3755  am__fastdepCC_FALSE=
3756fi
3757
3758
3759   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3760$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3761if test "${ac_cv_prog_cc_c99+set}" = set; then
3762  $as_echo_n "(cached) " >&6
3763else
3764  ac_cv_prog_cc_c99=no
3765ac_save_CC=$CC
3766cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h.  */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h.  */
3772#include <stdarg.h>
3773#include <stdbool.h>
3774#include <stdlib.h>
3775#include <wchar.h>
3776#include <stdio.h>
3777
3778// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3779#define debug(...) fprintf (stderr, __VA_ARGS__)
3780#define showlist(...) puts (#__VA_ARGS__)
3781#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3782static void
3783test_varargs_macros (void)
3784{
3785  int x = 1234;
3786  int y = 5678;
3787  debug ("Flag");
3788  debug ("X = %d\n", x);
3789  showlist (The first, second, and third items.);
3790  report (x>y, "x is %d but y is %d", x, y);
3791}
3792
3793// Check long long types.
3794#define BIG64 18446744073709551615ull
3795#define BIG32 4294967295ul
3796#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3797#if !BIG_OK
3798  your preprocessor is broken;
3799#endif
3800#if BIG_OK
3801#else
3802  your preprocessor is broken;
3803#endif
3804static long long int bignum = -9223372036854775807LL;
3805static unsigned long long int ubignum = BIG64;
3806
3807struct incomplete_array
3808{
3809  int datasize;
3810  double data[];
3811};
3812
3813struct named_init {
3814  int number;
3815  const wchar_t *name;
3816  double average;
3817};
3818
3819typedef const char *ccp;
3820
3821static inline int
3822test_restrict (ccp restrict text)
3823{
3824  // See if C++-style comments work.
3825  // Iterate through items via the restricted pointer.
3826  // Also check for declarations in for loops.
3827  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3828    continue;
3829  return 0;
3830}
3831
3832// Check varargs and va_copy.
3833static void
3834test_varargs (const char *format, ...)
3835{
3836  va_list args;
3837  va_start (args, format);
3838  va_list args_copy;
3839  va_copy (args_copy, args);
3840
3841  const char *str;
3842  int number;
3843  float fnumber;
3844
3845  while (*format)
3846    {
3847      switch (*format++)
3848	{
3849	case 's': // string
3850	  str = va_arg (args_copy, const char *);
3851	  break;
3852	case 'd': // int
3853	  number = va_arg (args_copy, int);
3854	  break;
3855	case 'f': // float
3856	  fnumber = va_arg (args_copy, double);
3857	  break;
3858	default:
3859	  break;
3860	}
3861    }
3862  va_end (args_copy);
3863  va_end (args);
3864}
3865
3866int
3867main ()
3868{
3869
3870  // Check bool.
3871  _Bool success = false;
3872
3873  // Check restrict.
3874  if (test_restrict ("String literal") == 0)
3875    success = true;
3876  char *restrict newvar = "Another string";
3877
3878  // Check varargs.
3879  test_varargs ("s, d' f .", "string", 65, 34.234);
3880  test_varargs_macros ();
3881
3882  // Check flexible array members.
3883  struct incomplete_array *ia =
3884    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3885  ia->datasize = 10;
3886  for (int i = 0; i < ia->datasize; ++i)
3887    ia->data[i] = i * 1.234;
3888
3889  // Check named initializers.
3890  struct named_init ni = {
3891    .number = 34,
3892    .name = L"Test wide string",
3893    .average = 543.34343,
3894  };
3895
3896  ni.number = 58;
3897
3898  int dynamic_array[ni.number];
3899  dynamic_array[ni.number - 1] = 543;
3900
3901  // work around unused variable warnings
3902  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3903	  || dynamic_array[ni.number - 1] != 543);
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3910do
3911  CC="$ac_save_CC $ac_arg"
3912  rm -f conftest.$ac_objext
3913if { (ac_try="$ac_compile"
3914case "(($ac_try" in
3915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916  *) ac_try_echo=$ac_try;;
3917esac
3918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3919$as_echo "$ac_try_echo") >&5
3920  (eval "$ac_compile") 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } && {
3927	 test -z "$ac_c_werror_flag" ||
3928	 test ! -s conftest.err
3929       } && test -s conftest.$ac_objext; then
3930  ac_cv_prog_cc_c99=$ac_arg
3931else
3932  $as_echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935
3936fi
3937
3938rm -f core conftest.err conftest.$ac_objext
3939  test "x$ac_cv_prog_cc_c99" != "xno" && break
3940done
3941rm -f conftest.$ac_ext
3942CC=$ac_save_CC
3943
3944fi
3945# AC_CACHE_VAL
3946case "x$ac_cv_prog_cc_c99" in
3947  x)
3948    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3949$as_echo "none needed" >&6; } ;;
3950  xno)
3951    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3952$as_echo "unsupported" >&6; } ;;
3953  *)
3954    CC="$CC $ac_cv_prog_cc_c99"
3955    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3956$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3957esac
3958
3959
3960
3961
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3968$as_echo_n "checking how to run the C preprocessor... " >&6; }
3969# On Suns, sometimes $CPP names a directory.
3970if test -n "$CPP" && test -d "$CPP"; then
3971  CPP=
3972fi
3973if test -z "$CPP"; then
3974  if test "${ac_cv_prog_CPP+set}" = set; then
3975  $as_echo_n "(cached) " >&6
3976else
3977      # Double quotes because CPP needs to be expanded
3978    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3979    do
3980      ac_preproc_ok=false
3981for ac_c_preproc_warn_flag in '' yes
3982do
3983  # Use a header file that comes with gcc, so configuring glibc
3984  # with a fresh cross-compiler works.
3985  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3986  # <limits.h> exists even on freestanding compilers.
3987  # On the NeXT, cc -E runs the code through the compiler's parser,
3988  # not just through cpp. "Syntax error" is here to catch this case.
3989  cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h.  */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h.  */
3995#ifdef __STDC__
3996# include <limits.h>
3997#else
3998# include <assert.h>
3999#endif
4000		     Syntax error
4001_ACEOF
4002if { (ac_try="$ac_cpp conftest.$ac_ext"
4003case "(($ac_try" in
4004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005  *) ac_try_echo=$ac_try;;
4006esac
4007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4008$as_echo "$ac_try_echo") >&5
4009  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4010  ac_status=$?
4011  grep -v '^ *+' conftest.er1 >conftest.err
4012  rm -f conftest.er1
4013  cat conftest.err >&5
4014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); } >/dev/null && {
4016	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4017	 test ! -s conftest.err
4018       }; then
4019  :
4020else
4021  $as_echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024  # Broken: fails on valid input.
4025continue
4026fi
4027
4028rm -f conftest.err conftest.$ac_ext
4029
4030  # OK, works on sane cases.  Now check whether nonexistent headers
4031  # can be detected and how.
4032  cat >conftest.$ac_ext <<_ACEOF
4033/* confdefs.h.  */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h.  */
4038#include <ac_nonexistent.h>
4039_ACEOF
4040if { (ac_try="$ac_cpp conftest.$ac_ext"
4041case "(($ac_try" in
4042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043  *) ac_try_echo=$ac_try;;
4044esac
4045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046$as_echo "$ac_try_echo") >&5
4047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4048  ac_status=$?
4049  grep -v '^ *+' conftest.er1 >conftest.err
4050  rm -f conftest.er1
4051  cat conftest.err >&5
4052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); } >/dev/null && {
4054	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4055	 test ! -s conftest.err
4056       }; then
4057  # Broken: success on invalid input.
4058continue
4059else
4060  $as_echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063  # Passes both tests.
4064ac_preproc_ok=:
4065break
4066fi
4067
4068rm -f conftest.err conftest.$ac_ext
4069
4070done
4071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4072rm -f conftest.err conftest.$ac_ext
4073if $ac_preproc_ok; then
4074  break
4075fi
4076
4077    done
4078    ac_cv_prog_CPP=$CPP
4079
4080fi
4081  CPP=$ac_cv_prog_CPP
4082else
4083  ac_cv_prog_CPP=$CPP
4084fi
4085{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4086$as_echo "$CPP" >&6; }
4087ac_preproc_ok=false
4088for ac_c_preproc_warn_flag in '' yes
4089do
4090  # Use a header file that comes with gcc, so configuring glibc
4091  # with a fresh cross-compiler works.
4092  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093  # <limits.h> exists even on freestanding compilers.
4094  # On the NeXT, cc -E runs the code through the compiler's parser,
4095  # not just through cpp. "Syntax error" is here to catch this case.
4096  cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h.  */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h.  */
4102#ifdef __STDC__
4103# include <limits.h>
4104#else
4105# include <assert.h>
4106#endif
4107		     Syntax error
4108_ACEOF
4109if { (ac_try="$ac_cpp conftest.$ac_ext"
4110case "(($ac_try" in
4111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112  *) ac_try_echo=$ac_try;;
4113esac
4114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115$as_echo "$ac_try_echo") >&5
4116  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4117  ac_status=$?
4118  grep -v '^ *+' conftest.er1 >conftest.err
4119  rm -f conftest.er1
4120  cat conftest.err >&5
4121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } >/dev/null && {
4123	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4124	 test ! -s conftest.err
4125       }; then
4126  :
4127else
4128  $as_echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131  # Broken: fails on valid input.
4132continue
4133fi
4134
4135rm -f conftest.err conftest.$ac_ext
4136
4137  # OK, works on sane cases.  Now check whether nonexistent headers
4138  # can be detected and how.
4139  cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h.  */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h.  */
4145#include <ac_nonexistent.h>
4146_ACEOF
4147if { (ac_try="$ac_cpp conftest.$ac_ext"
4148case "(($ac_try" in
4149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150  *) ac_try_echo=$ac_try;;
4151esac
4152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4153$as_echo "$ac_try_echo") >&5
4154  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4155  ac_status=$?
4156  grep -v '^ *+' conftest.er1 >conftest.err
4157  rm -f conftest.er1
4158  cat conftest.err >&5
4159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160  (exit $ac_status); } >/dev/null && {
4161	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4162	 test ! -s conftest.err
4163       }; then
4164  # Broken: success on invalid input.
4165continue
4166else
4167  $as_echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170  # Passes both tests.
4171ac_preproc_ok=:
4172break
4173fi
4174
4175rm -f conftest.err conftest.$ac_ext
4176
4177done
4178# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179rm -f conftest.err conftest.$ac_ext
4180if $ac_preproc_ok; then
4181  :
4182else
4183  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4186See \`config.log' for more details." >&5
4187$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4188See \`config.log' for more details." >&2;}
4189   { (exit 1); exit 1; }; }; }
4190fi
4191
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198
4199{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4200$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201if test "${ac_cv_path_GREP+set}" = set; then
4202  $as_echo_n "(cached) " >&6
4203else
4204  if test -z "$GREP"; then
4205  ac_path_GREP_found=false
4206  # Loop through the user's path and test for each of PROGNAME-LIST
4207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209do
4210  IFS=$as_save_IFS
4211  test -z "$as_dir" && as_dir=.
4212  for ac_prog in grep ggrep; do
4213    for ac_exec_ext in '' $ac_executable_extensions; do
4214      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216# Check for GNU ac_path_GREP and select it if it is found.
4217  # Check for GNU $ac_path_GREP
4218case `"$ac_path_GREP" --version 2>&1` in
4219*GNU*)
4220  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4221*)
4222  ac_count=0
4223  $as_echo_n 0123456789 >"conftest.in"
4224  while :
4225  do
4226    cat "conftest.in" "conftest.in" >"conftest.tmp"
4227    mv "conftest.tmp" "conftest.in"
4228    cp "conftest.in" "conftest.nl"
4229    $as_echo 'GREP' >> "conftest.nl"
4230    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232    ac_count=`expr $ac_count + 1`
4233    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234      # Best one so far, save it but keep looking for a better one
4235      ac_cv_path_GREP="$ac_path_GREP"
4236      ac_path_GREP_max=$ac_count
4237    fi
4238    # 10*(2^10) chars as input seems more than enough
4239    test $ac_count -gt 10 && break
4240  done
4241  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242esac
4243
4244      $ac_path_GREP_found && break 3
4245    done
4246  done
4247done
4248IFS=$as_save_IFS
4249  if test -z "$ac_cv_path_GREP"; then
4250    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4251$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4252   { (exit 1); exit 1; }; }
4253  fi
4254else
4255  ac_cv_path_GREP=$GREP
4256fi
4257
4258fi
4259{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4260$as_echo "$ac_cv_path_GREP" >&6; }
4261 GREP="$ac_cv_path_GREP"
4262
4263
4264{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4265$as_echo_n "checking for egrep... " >&6; }
4266if test "${ac_cv_path_EGREP+set}" = set; then
4267  $as_echo_n "(cached) " >&6
4268else
4269  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4270   then ac_cv_path_EGREP="$GREP -E"
4271   else
4272     if test -z "$EGREP"; then
4273  ac_path_EGREP_found=false
4274  # Loop through the user's path and test for each of PROGNAME-LIST
4275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277do
4278  IFS=$as_save_IFS
4279  test -z "$as_dir" && as_dir=.
4280  for ac_prog in egrep; do
4281    for ac_exec_ext in '' $ac_executable_extensions; do
4282      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4283      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4284# Check for GNU ac_path_EGREP and select it if it is found.
4285  # Check for GNU $ac_path_EGREP
4286case `"$ac_path_EGREP" --version 2>&1` in
4287*GNU*)
4288  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4289*)
4290  ac_count=0
4291  $as_echo_n 0123456789 >"conftest.in"
4292  while :
4293  do
4294    cat "conftest.in" "conftest.in" >"conftest.tmp"
4295    mv "conftest.tmp" "conftest.in"
4296    cp "conftest.in" "conftest.nl"
4297    $as_echo 'EGREP' >> "conftest.nl"
4298    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300    ac_count=`expr $ac_count + 1`
4301    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4302      # Best one so far, save it but keep looking for a better one
4303      ac_cv_path_EGREP="$ac_path_EGREP"
4304      ac_path_EGREP_max=$ac_count
4305    fi
4306    # 10*(2^10) chars as input seems more than enough
4307    test $ac_count -gt 10 && break
4308  done
4309  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310esac
4311
4312      $ac_path_EGREP_found && break 3
4313    done
4314  done
4315done
4316IFS=$as_save_IFS
4317  if test -z "$ac_cv_path_EGREP"; then
4318    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4319$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4320   { (exit 1); exit 1; }; }
4321  fi
4322else
4323  ac_cv_path_EGREP=$EGREP
4324fi
4325
4326   fi
4327fi
4328{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4329$as_echo "$ac_cv_path_EGREP" >&6; }
4330 EGREP="$ac_cv_path_EGREP"
4331
4332
4333{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4334$as_echo_n "checking for ANSI C header files... " >&6; }
4335if test "${ac_cv_header_stdc+set}" = set; then
4336  $as_echo_n "(cached) " >&6
4337else
4338  cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
4344#include <stdlib.h>
4345#include <stdarg.h>
4346#include <string.h>
4347#include <float.h>
4348
4349int
4350main ()
4351{
4352
4353  ;
4354  return 0;
4355}
4356_ACEOF
4357rm -f conftest.$ac_objext
4358if { (ac_try="$ac_compile"
4359case "(($ac_try" in
4360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361  *) ac_try_echo=$ac_try;;
4362esac
4363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4364$as_echo "$ac_try_echo") >&5
4365  (eval "$ac_compile") 2>conftest.er1
4366  ac_status=$?
4367  grep -v '^ *+' conftest.er1 >conftest.err
4368  rm -f conftest.er1
4369  cat conftest.err >&5
4370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); } && {
4372	 test -z "$ac_c_werror_flag" ||
4373	 test ! -s conftest.err
4374       } && test -s conftest.$ac_objext; then
4375  ac_cv_header_stdc=yes
4376else
4377  $as_echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380	ac_cv_header_stdc=no
4381fi
4382
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384
4385if test $ac_cv_header_stdc = yes; then
4386  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4387  cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h.  */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h.  */
4393#include <string.h>
4394
4395_ACEOF
4396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4397  $EGREP "memchr" >/dev/null 2>&1; then
4398  :
4399else
4400  ac_cv_header_stdc=no
4401fi
4402rm -f conftest*
4403
4404fi
4405
4406if test $ac_cv_header_stdc = yes; then
4407  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4408  cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h.  */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h.  */
4414#include <stdlib.h>
4415
4416_ACEOF
4417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418  $EGREP "free" >/dev/null 2>&1; then
4419  :
4420else
4421  ac_cv_header_stdc=no
4422fi
4423rm -f conftest*
4424
4425fi
4426
4427if test $ac_cv_header_stdc = yes; then
4428  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4429  if test "$cross_compiling" = yes; then
4430  :
4431else
4432  cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h.  */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h.  */
4438#include <ctype.h>
4439#include <stdlib.h>
4440#if ((' ' & 0x0FF) == 0x020)
4441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4443#else
4444# define ISLOWER(c) \
4445		   (('a' <= (c) && (c) <= 'i') \
4446		     || ('j' <= (c) && (c) <= 'r') \
4447		     || ('s' <= (c) && (c) <= 'z'))
4448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4449#endif
4450
4451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4452int
4453main ()
4454{
4455  int i;
4456  for (i = 0; i < 256; i++)
4457    if (XOR (islower (i), ISLOWER (i))
4458	|| toupper (i) != TOUPPER (i))
4459      return 2;
4460  return 0;
4461}
4462_ACEOF
4463rm -f conftest$ac_exeext
4464if { (ac_try="$ac_link"
4465case "(($ac_try" in
4466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467  *) ac_try_echo=$ac_try;;
4468esac
4469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470$as_echo "$ac_try_echo") >&5
4471  (eval "$ac_link") 2>&5
4472  ac_status=$?
4473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4475  { (case "(($ac_try" in
4476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477  *) ac_try_echo=$ac_try;;
4478esac
4479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4480$as_echo "$ac_try_echo") >&5
4481  (eval "$ac_try") 2>&5
4482  ac_status=$?
4483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484  (exit $ac_status); }; }; then
4485  :
4486else
4487  $as_echo "$as_me: program exited with status $ac_status" >&5
4488$as_echo "$as_me: failed program was:" >&5
4489sed 's/^/| /' conftest.$ac_ext >&5
4490
4491( exit $ac_status )
4492ac_cv_header_stdc=no
4493fi
4494rm -rf conftest.dSYM
4495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4496fi
4497
4498
4499fi
4500fi
4501{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4502$as_echo "$ac_cv_header_stdc" >&6; }
4503if test $ac_cv_header_stdc = yes; then
4504
4505cat >>confdefs.h <<\_ACEOF
4506#define STDC_HEADERS 1
4507_ACEOF
4508
4509fi
4510
4511# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522		  inttypes.h stdint.h unistd.h
4523do
4524as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4526$as_echo_n "checking for $ac_header... " >&6; }
4527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4528  $as_echo_n "(cached) " >&6
4529else
4530  cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536$ac_includes_default
4537
4538#include <$ac_header>
4539_ACEOF
4540rm -f conftest.$ac_objext
4541if { (ac_try="$ac_compile"
4542case "(($ac_try" in
4543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544  *) ac_try_echo=$ac_try;;
4545esac
4546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4547$as_echo "$ac_try_echo") >&5
4548  (eval "$ac_compile") 2>conftest.er1
4549  ac_status=$?
4550  grep -v '^ *+' conftest.er1 >conftest.err
4551  rm -f conftest.er1
4552  cat conftest.err >&5
4553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); } && {
4555	 test -z "$ac_c_werror_flag" ||
4556	 test ! -s conftest.err
4557       } && test -s conftest.$ac_objext; then
4558  eval "$as_ac_Header=yes"
4559else
4560  $as_echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563	eval "$as_ac_Header=no"
4564fi
4565
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567fi
4568ac_res=`eval 'as_val=${'$as_ac_Header'}
4569		 $as_echo "$as_val"'`
4570	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4571$as_echo "$ac_res" >&6; }
4572as_val=`eval 'as_val=${'$as_ac_Header'}
4573		 $as_echo "$as_val"'`
4574   if test "x$as_val" = x""yes; then
4575  cat >>confdefs.h <<_ACEOF
4576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4577_ACEOF
4578
4579fi
4580
4581done
4582
4583
4584
4585
4586if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4587	if test -n "$ac_tool_prefix"; then
4588  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4589set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4590{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
4592if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4593  $as_echo_n "(cached) " >&6
4594else
4595  case $PKG_CONFIG in
4596  [\\/]* | ?:[\\/]*)
4597  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4598  ;;
4599  *)
4600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603  IFS=$as_save_IFS
4604  test -z "$as_dir" && as_dir=.
4605  for ac_exec_ext in '' $ac_executable_extensions; do
4606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4608    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609    break 2
4610  fi
4611done
4612done
4613IFS=$as_save_IFS
4614
4615  ;;
4616esac
4617fi
4618PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4619if test -n "$PKG_CONFIG"; then
4620  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4621$as_echo "$PKG_CONFIG" >&6; }
4622else
4623  { $as_echo "$as_me:$LINENO: result: no" >&5
4624$as_echo "no" >&6; }
4625fi
4626
4627
4628fi
4629if test -z "$ac_cv_path_PKG_CONFIG"; then
4630  ac_pt_PKG_CONFIG=$PKG_CONFIG
4631  # Extract the first word of "pkg-config", so it can be a program name with args.
4632set dummy pkg-config; ac_word=$2
4633{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4634$as_echo_n "checking for $ac_word... " >&6; }
4635if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4636  $as_echo_n "(cached) " >&6
4637else
4638  case $ac_pt_PKG_CONFIG in
4639  [\\/]* | ?:[\\/]*)
4640  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4641  ;;
4642  *)
4643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646  IFS=$as_save_IFS
4647  test -z "$as_dir" && as_dir=.
4648  for ac_exec_ext in '' $ac_executable_extensions; do
4649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4651    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652    break 2
4653  fi
4654done
4655done
4656IFS=$as_save_IFS
4657
4658  ;;
4659esac
4660fi
4661ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4662if test -n "$ac_pt_PKG_CONFIG"; then
4663  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4664$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4665else
4666  { $as_echo "$as_me:$LINENO: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
4669
4670  if test "x$ac_pt_PKG_CONFIG" = x; then
4671    PKG_CONFIG=""
4672  else
4673    case $cross_compiling:$ac_tool_warned in
4674yes:)
4675{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677ac_tool_warned=yes ;;
4678esac
4679    PKG_CONFIG=$ac_pt_PKG_CONFIG
4680  fi
4681else
4682  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4683fi
4684
4685fi
4686if test -n "$PKG_CONFIG"; then
4687	_pkg_min_version=0.9.0
4688	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4689$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4690	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4691		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4692$as_echo "yes" >&6; }
4693	else
4694		{ $as_echo "$as_me:$LINENO: result: no" >&5
4695$as_echo "no" >&6; }
4696		PKG_CONFIG=""
4697	fi
4698
4699fi
4700# Make sure we can run config.sub.
4701$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4702  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4703$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4704   { (exit 1); exit 1; }; }
4705
4706{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4707$as_echo_n "checking build system type... " >&6; }
4708if test "${ac_cv_build+set}" = set; then
4709  $as_echo_n "(cached) " >&6
4710else
4711  ac_build_alias=$build_alias
4712test "x$ac_build_alias" = x &&
4713  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4714test "x$ac_build_alias" = x &&
4715  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4716$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4717   { (exit 1); exit 1; }; }
4718ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4719  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4720$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4721   { (exit 1); exit 1; }; }
4722
4723fi
4724{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4725$as_echo "$ac_cv_build" >&6; }
4726case $ac_cv_build in
4727*-*-*) ;;
4728*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4729$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4730   { (exit 1); exit 1; }; };;
4731esac
4732build=$ac_cv_build
4733ac_save_IFS=$IFS; IFS='-'
4734set x $ac_cv_build
4735shift
4736build_cpu=$1
4737build_vendor=$2
4738shift; shift
4739# Remember, the first character of IFS is used to create $*,
4740# except with old shells:
4741build_os=$*
4742IFS=$ac_save_IFS
4743case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4744
4745
4746{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4747$as_echo_n "checking host system type... " >&6; }
4748if test "${ac_cv_host+set}" = set; then
4749  $as_echo_n "(cached) " >&6
4750else
4751  if test "x$host_alias" = x; then
4752  ac_cv_host=$ac_cv_build
4753else
4754  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4755    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4756$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4757   { (exit 1); exit 1; }; }
4758fi
4759
4760fi
4761{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4762$as_echo "$ac_cv_host" >&6; }
4763case $ac_cv_host in
4764*-*-*) ;;
4765*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4766$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4767   { (exit 1); exit 1; }; };;
4768esac
4769host=$ac_cv_host
4770ac_save_IFS=$IFS; IFS='-'
4771set x $ac_cv_host
4772shift
4773host_cpu=$1
4774host_vendor=$2
4775shift; shift
4776# Remember, the first character of IFS is used to create $*,
4777# except with old shells:
4778host_os=$*
4779IFS=$ac_save_IFS
4780case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4781
4782
4783{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4784$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4785if test "${ac_cv_path_SED+set}" = set; then
4786  $as_echo_n "(cached) " >&6
4787else
4788            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4789     for ac_i in 1 2 3 4 5 6 7; do
4790       ac_script="$ac_script$as_nl$ac_script"
4791     done
4792     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4793     $as_unset ac_script || ac_script=
4794     if test -z "$SED"; then
4795  ac_path_SED_found=false
4796  # Loop through the user's path and test for each of PROGNAME-LIST
4797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800  IFS=$as_save_IFS
4801  test -z "$as_dir" && as_dir=.
4802  for ac_prog in sed gsed; do
4803    for ac_exec_ext in '' $ac_executable_extensions; do
4804      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4805      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4806# Check for GNU ac_path_SED and select it if it is found.
4807  # Check for GNU $ac_path_SED
4808case `"$ac_path_SED" --version 2>&1` in
4809*GNU*)
4810  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4811*)
4812  ac_count=0
4813  $as_echo_n 0123456789 >"conftest.in"
4814  while :
4815  do
4816    cat "conftest.in" "conftest.in" >"conftest.tmp"
4817    mv "conftest.tmp" "conftest.in"
4818    cp "conftest.in" "conftest.nl"
4819    $as_echo '' >> "conftest.nl"
4820    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822    ac_count=`expr $ac_count + 1`
4823    if test $ac_count -gt ${ac_path_SED_max-0}; then
4824      # Best one so far, save it but keep looking for a better one
4825      ac_cv_path_SED="$ac_path_SED"
4826      ac_path_SED_max=$ac_count
4827    fi
4828    # 10*(2^10) chars as input seems more than enough
4829    test $ac_count -gt 10 && break
4830  done
4831  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832esac
4833
4834      $ac_path_SED_found && break 3
4835    done
4836  done
4837done
4838IFS=$as_save_IFS
4839  if test -z "$ac_cv_path_SED"; then
4840    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4841$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4842   { (exit 1); exit 1; }; }
4843  fi
4844else
4845  ac_cv_path_SED=$SED
4846fi
4847
4848fi
4849{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4850$as_echo "$ac_cv_path_SED" >&6; }
4851 SED="$ac_cv_path_SED"
4852  rm -f conftest.sed
4853
4854
4855
4856
4857
4858if  test "x$GCC" = xyes ; then
4859    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4860-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4861-Wbad-function-cast -Wformat=2"
4862    case `$CC -dumpversion` in
4863    3.4.* | 4.*)
4864	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4865	;;
4866    esac
4867else
4868    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4869$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4870if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4871  $as_echo_n "(cached) " >&6
4872else
4873  cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h.  */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h.  */
4879$ac_includes_default
4880int
4881main ()
4882{
4883#ifndef __SUNPRO_C
4884  (void) __SUNPRO_C;
4885#endif
4886
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891rm -f conftest.$ac_objext
4892if { (ac_try="$ac_compile"
4893case "(($ac_try" in
4894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895  *) ac_try_echo=$ac_try;;
4896esac
4897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898$as_echo "$ac_try_echo") >&5
4899  (eval "$ac_compile") 2>conftest.er1
4900  ac_status=$?
4901  grep -v '^ *+' conftest.er1 >conftest.err
4902  rm -f conftest.er1
4903  cat conftest.err >&5
4904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); } && {
4906	 test -z "$ac_c_werror_flag" ||
4907	 test ! -s conftest.err
4908       } && test -s conftest.$ac_objext; then
4909  ac_cv_have_decl___SUNPRO_C=yes
4910else
4911  $as_echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914	ac_cv_have_decl___SUNPRO_C=no
4915fi
4916
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918fi
4919{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4920$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4921if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4922  SUNCC="yes"
4923else
4924  SUNCC="no"
4925fi
4926
4927    if test "x$SUNCC" = "xyes"; then
4928	CWARNFLAGS="-v"
4929    fi
4930fi
4931
4932
4933
4934# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4935
4936
4937
4938# Check whether --enable-strict-compilation was given.
4939if test "${enable_strict_compilation+set}" = set; then
4940  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4941else
4942  STRICT_COMPILE=no
4943fi
4944
4945if test "x$STRICT_COMPILE" = "xyes"; then
4946	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4947$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4948if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4949  $as_echo_n "(cached) " >&6
4950else
4951  cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h.  */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h.  */
4957$ac_includes_default
4958int
4959main ()
4960{
4961#ifndef __SUNPRO_C
4962  (void) __SUNPRO_C;
4963#endif
4964
4965  ;
4966  return 0;
4967}
4968_ACEOF
4969rm -f conftest.$ac_objext
4970if { (ac_try="$ac_compile"
4971case "(($ac_try" in
4972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973  *) ac_try_echo=$ac_try;;
4974esac
4975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4976$as_echo "$ac_try_echo") >&5
4977  (eval "$ac_compile") 2>conftest.er1
4978  ac_status=$?
4979  grep -v '^ *+' conftest.er1 >conftest.err
4980  rm -f conftest.er1
4981  cat conftest.err >&5
4982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); } && {
4984	 test -z "$ac_c_werror_flag" ||
4985	 test ! -s conftest.err
4986       } && test -s conftest.$ac_objext; then
4987  ac_cv_have_decl___SUNPRO_C=yes
4988else
4989  $as_echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992	ac_cv_have_decl___SUNPRO_C=no
4993fi
4994
4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996fi
4997{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4998$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4999if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
5000  SUNCC="yes"
5001else
5002  SUNCC="no"
5003fi
5004
5005	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
5006$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
5007if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
5008  $as_echo_n "(cached) " >&6
5009else
5010  cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h.  */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h.  */
5016$ac_includes_default
5017int
5018main ()
5019{
5020#ifndef __INTEL_COMPILER
5021  (void) __INTEL_COMPILER;
5022#endif
5023
5024  ;
5025  return 0;
5026}
5027_ACEOF
5028rm -f conftest.$ac_objext
5029if { (ac_try="$ac_compile"
5030case "(($ac_try" in
5031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032  *) ac_try_echo=$ac_try;;
5033esac
5034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5035$as_echo "$ac_try_echo") >&5
5036  (eval "$ac_compile") 2>conftest.er1
5037  ac_status=$?
5038  grep -v '^ *+' conftest.er1 >conftest.err
5039  rm -f conftest.er1
5040  cat conftest.err >&5
5041  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); } && {
5043	 test -z "$ac_c_werror_flag" ||
5044	 test ! -s conftest.err
5045       } && test -s conftest.$ac_objext; then
5046  ac_cv_have_decl___INTEL_COMPILER=yes
5047else
5048  $as_echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
5051	ac_cv_have_decl___INTEL_COMPILER=no
5052fi
5053
5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055fi
5056{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5057$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5058if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
5059  INTELCC="yes"
5060else
5061  INTELCC="no"
5062fi
5063
5064	if test "x$GCC" = xyes ; then
5065		STRICT_CFLAGS="-pedantic -Werror"
5066	elif test "x$SUNCC" = "xyes"; then
5067		STRICT_CFLAGS="-errwarn"
5068    elif test "x$INTELCC" = "xyes"; then
5069		STRICT_CFLAGS="-Werror"
5070	fi
5071fi
5072CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5073
5074
5075
5076
5077cat >>confdefs.h <<_ACEOF
5078#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5079_ACEOF
5080
5081	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5082	if test "x$PVM" = "x"; then
5083		PVM="0"
5084	fi
5085
5086cat >>confdefs.h <<_ACEOF
5087#define PACKAGE_VERSION_MINOR $PVM
5088_ACEOF
5089
5090	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5091	if test "x$PVP" = "x"; then
5092		PVP="0"
5093	fi
5094
5095cat >>confdefs.h <<_ACEOF
5096#define PACKAGE_VERSION_PATCHLEVEL $PVP
5097_ACEOF
5098
5099
5100
5101CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5102mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5103|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5104echo 'git directory not found: installing possibly empty changelog.' >&2)"
5105
5106
5107
5108
5109macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5110INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5111mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5112|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5113echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5114
5115
5116
5117
5118
5119
5120if test x$APP_MAN_SUFFIX = x    ; then
5121    APP_MAN_SUFFIX=1
5122fi
5123if test x$APP_MAN_DIR = x    ; then
5124    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5125fi
5126
5127if test x$LIB_MAN_SUFFIX = x    ; then
5128    LIB_MAN_SUFFIX=3
5129fi
5130if test x$LIB_MAN_DIR = x    ; then
5131    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5132fi
5133
5134if test x$FILE_MAN_SUFFIX = x    ; then
5135    case $host_os in
5136	solaris*)	FILE_MAN_SUFFIX=4  ;;
5137	*)		FILE_MAN_SUFFIX=5  ;;
5138    esac
5139fi
5140if test x$FILE_MAN_DIR = x    ; then
5141    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5142fi
5143
5144if test x$MISC_MAN_SUFFIX = x    ; then
5145    case $host_os in
5146	solaris*)	MISC_MAN_SUFFIX=5  ;;
5147	*)		MISC_MAN_SUFFIX=7  ;;
5148    esac
5149fi
5150if test x$MISC_MAN_DIR = x    ; then
5151    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5152fi
5153
5154if test x$DRIVER_MAN_SUFFIX = x    ; then
5155    case $host_os in
5156	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5157	*)		DRIVER_MAN_SUFFIX=4  ;;
5158    esac
5159fi
5160if test x$DRIVER_MAN_DIR = x    ; then
5161    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5162fi
5163
5164if test x$ADMIN_MAN_SUFFIX = x    ; then
5165    case $host_os in
5166	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5167	*)		ADMIN_MAN_SUFFIX=8  ;;
5168    esac
5169fi
5170if test x$ADMIN_MAN_DIR = x    ; then
5171    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5172fi
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188XORG_MAN_PAGE="X Version 11"
5189
5190MAN_SUBSTS="\
5191	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5192	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5193	-e 's|__xservername__|Xorg|g' \
5194	-e 's|__xconfigfile__|xorg.conf|g' \
5195	-e 's|__projectroot__|\$(prefix)|g' \
5196	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5197	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5198	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5199	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5200	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5201	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5202
5203
5204
5205# Check whether --enable-silent-rules was given.
5206if test "${enable_silent_rules+set}" = set; then
5207  enableval=$enable_silent_rules;
5208fi
5209
5210case $enable_silent_rules in
5211yes) AM_DEFAULT_VERBOSITY=0;;
5212no)  AM_DEFAULT_VERBOSITY=1;;
5213*)   AM_DEFAULT_VERBOSITY=0;;
5214esac
5215AM_BACKSLASH='\'
5216
5217
5218ac_config_headers="$ac_config_headers config.h"
5219
5220
5221# Check for progs
5222ac_ext=c
5223ac_cpp='$CPP $CPPFLAGS'
5224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227if test -n "$ac_tool_prefix"; then
5228  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5229set dummy ${ac_tool_prefix}gcc; ac_word=$2
5230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5231$as_echo_n "checking for $ac_word... " >&6; }
5232if test "${ac_cv_prog_CC+set}" = set; then
5233  $as_echo_n "(cached) " >&6
5234else
5235  if test -n "$CC"; then
5236  ac_cv_prog_CC="$CC" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241  IFS=$as_save_IFS
5242  test -z "$as_dir" && as_dir=.
5243  for ac_exec_ext in '' $ac_executable_extensions; do
5244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5246    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247    break 2
5248  fi
5249done
5250done
5251IFS=$as_save_IFS
5252
5253fi
5254fi
5255CC=$ac_cv_prog_CC
5256if test -n "$CC"; then
5257  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5258$as_echo "$CC" >&6; }
5259else
5260  { $as_echo "$as_me:$LINENO: result: no" >&5
5261$as_echo "no" >&6; }
5262fi
5263
5264
5265fi
5266if test -z "$ac_cv_prog_CC"; then
5267  ac_ct_CC=$CC
5268  # Extract the first word of "gcc", so it can be a program name with args.
5269set dummy gcc; ac_word=$2
5270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5271$as_echo_n "checking for $ac_word... " >&6; }
5272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5273  $as_echo_n "(cached) " >&6
5274else
5275  if test -n "$ac_ct_CC"; then
5276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281  IFS=$as_save_IFS
5282  test -z "$as_dir" && as_dir=.
5283  for ac_exec_ext in '' $ac_executable_extensions; do
5284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285    ac_cv_prog_ac_ct_CC="gcc"
5286    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287    break 2
5288  fi
5289done
5290done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295ac_ct_CC=$ac_cv_prog_ac_ct_CC
5296if test -n "$ac_ct_CC"; then
5297  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5298$as_echo "$ac_ct_CC" >&6; }
5299else
5300  { $as_echo "$as_me:$LINENO: result: no" >&5
5301$as_echo "no" >&6; }
5302fi
5303
5304  if test "x$ac_ct_CC" = x; then
5305    CC=""
5306  else
5307    case $cross_compiling:$ac_tool_warned in
5308yes:)
5309{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311ac_tool_warned=yes ;;
5312esac
5313    CC=$ac_ct_CC
5314  fi
5315else
5316  CC="$ac_cv_prog_CC"
5317fi
5318
5319if test -z "$CC"; then
5320          if test -n "$ac_tool_prefix"; then
5321    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5322set dummy ${ac_tool_prefix}cc; ac_word=$2
5323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
5325if test "${ac_cv_prog_CC+set}" = set; then
5326  $as_echo_n "(cached) " >&6
5327else
5328  if test -n "$CC"; then
5329  ac_cv_prog_CC="$CC" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334  IFS=$as_save_IFS
5335  test -z "$as_dir" && as_dir=.
5336  for ac_exec_ext in '' $ac_executable_extensions; do
5337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338    ac_cv_prog_CC="${ac_tool_prefix}cc"
5339    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340    break 2
5341  fi
5342done
5343done
5344IFS=$as_save_IFS
5345
5346fi
5347fi
5348CC=$ac_cv_prog_CC
5349if test -n "$CC"; then
5350  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5351$as_echo "$CC" >&6; }
5352else
5353  { $as_echo "$as_me:$LINENO: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356
5357
5358  fi
5359fi
5360if test -z "$CC"; then
5361  # Extract the first word of "cc", so it can be a program name with args.
5362set dummy cc; ac_word=$2
5363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if test "${ac_cv_prog_CC+set}" = set; then
5366  $as_echo_n "(cached) " >&6
5367else
5368  if test -n "$CC"; then
5369  ac_cv_prog_CC="$CC" # Let the user override the test.
5370else
5371  ac_prog_rejected=no
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  for ac_exec_ext in '' $ac_executable_extensions; do
5378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5380       ac_prog_rejected=yes
5381       continue
5382     fi
5383    ac_cv_prog_CC="cc"
5384    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385    break 2
5386  fi
5387done
5388done
5389IFS=$as_save_IFS
5390
5391if test $ac_prog_rejected = yes; then
5392  # We found a bogon in the path, so make sure we never use it.
5393  set dummy $ac_cv_prog_CC
5394  shift
5395  if test $# != 0; then
5396    # We chose a different compiler from the bogus one.
5397    # However, it has the same basename, so the bogon will be chosen
5398    # first if we set CC to just the basename; use the full file name.
5399    shift
5400    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5401  fi
5402fi
5403fi
5404fi
5405CC=$ac_cv_prog_CC
5406if test -n "$CC"; then
5407  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5408$as_echo "$CC" >&6; }
5409else
5410  { $as_echo "$as_me:$LINENO: result: no" >&5
5411$as_echo "no" >&6; }
5412fi
5413
5414
5415fi
5416if test -z "$CC"; then
5417  if test -n "$ac_tool_prefix"; then
5418  for ac_prog in cl.exe
5419  do
5420    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if test "${ac_cv_prog_CC+set}" = set; then
5425  $as_echo_n "(cached) " >&6
5426else
5427  if test -n "$CC"; then
5428  ac_cv_prog_CC="$CC" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433  IFS=$as_save_IFS
5434  test -z "$as_dir" && as_dir=.
5435  for ac_exec_ext in '' $ac_executable_extensions; do
5436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5438    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439    break 2
5440  fi
5441done
5442done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447CC=$ac_cv_prog_CC
5448if test -n "$CC"; then
5449  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5450$as_echo "$CC" >&6; }
5451else
5452  { $as_echo "$as_me:$LINENO: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457    test -n "$CC" && break
5458  done
5459fi
5460if test -z "$CC"; then
5461  ac_ct_CC=$CC
5462  for ac_prog in cl.exe
5463do
5464  # Extract the first word of "$ac_prog", so it can be a program name with args.
5465set dummy $ac_prog; ac_word=$2
5466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
5468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5469  $as_echo_n "(cached) " >&6
5470else
5471  if test -n "$ac_ct_CC"; then
5472  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477  IFS=$as_save_IFS
5478  test -z "$as_dir" && as_dir=.
5479  for ac_exec_ext in '' $ac_executable_extensions; do
5480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481    ac_cv_prog_ac_ct_CC="$ac_prog"
5482    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483    break 2
5484  fi
5485done
5486done
5487IFS=$as_save_IFS
5488
5489fi
5490fi
5491ac_ct_CC=$ac_cv_prog_ac_ct_CC
5492if test -n "$ac_ct_CC"; then
5493  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5494$as_echo "$ac_ct_CC" >&6; }
5495else
5496  { $as_echo "$as_me:$LINENO: result: no" >&5
5497$as_echo "no" >&6; }
5498fi
5499
5500
5501  test -n "$ac_ct_CC" && break
5502done
5503
5504  if test "x$ac_ct_CC" = x; then
5505    CC=""
5506  else
5507    case $cross_compiling:$ac_tool_warned in
5508yes:)
5509{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511ac_tool_warned=yes ;;
5512esac
5513    CC=$ac_ct_CC
5514  fi
5515fi
5516
5517fi
5518
5519
5520test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5522{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5523See \`config.log' for more details." >&5
5524$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5525See \`config.log' for more details." >&2;}
5526   { (exit 1); exit 1; }; }; }
5527
5528# Provide some information about the compiler.
5529$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5530set X $ac_compile
5531ac_compiler=$2
5532{ (ac_try="$ac_compiler --version >&5"
5533case "(($ac_try" in
5534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535  *) ac_try_echo=$ac_try;;
5536esac
5537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5538$as_echo "$ac_try_echo") >&5
5539  (eval "$ac_compiler --version >&5") 2>&5
5540  ac_status=$?
5541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542  (exit $ac_status); }
5543{ (ac_try="$ac_compiler -v >&5"
5544case "(($ac_try" in
5545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546  *) ac_try_echo=$ac_try;;
5547esac
5548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5549$as_echo "$ac_try_echo") >&5
5550  (eval "$ac_compiler -v >&5") 2>&5
5551  ac_status=$?
5552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553  (exit $ac_status); }
5554{ (ac_try="$ac_compiler -V >&5"
5555case "(($ac_try" in
5556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557  *) ac_try_echo=$ac_try;;
5558esac
5559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5560$as_echo "$ac_try_echo") >&5
5561  (eval "$ac_compiler -V >&5") 2>&5
5562  ac_status=$?
5563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); }
5565
5566{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5567$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5568if test "${ac_cv_c_compiler_gnu+set}" = set; then
5569  $as_echo_n "(cached) " >&6
5570else
5571  cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h.  */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
5576/* end confdefs.h.  */
5577
5578int
5579main ()
5580{
5581#ifndef __GNUC__
5582       choke me
5583#endif
5584
5585  ;
5586  return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext
5590if { (ac_try="$ac_compile"
5591case "(($ac_try" in
5592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593  *) ac_try_echo=$ac_try;;
5594esac
5595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5596$as_echo "$ac_try_echo") >&5
5597  (eval "$ac_compile") 2>conftest.er1
5598  ac_status=$?
5599  grep -v '^ *+' conftest.er1 >conftest.err
5600  rm -f conftest.er1
5601  cat conftest.err >&5
5602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); } && {
5604	 test -z "$ac_c_werror_flag" ||
5605	 test ! -s conftest.err
5606       } && test -s conftest.$ac_objext; then
5607  ac_compiler_gnu=yes
5608else
5609  $as_echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
5612	ac_compiler_gnu=no
5613fi
5614
5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616ac_cv_c_compiler_gnu=$ac_compiler_gnu
5617
5618fi
5619{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5620$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5621if test $ac_compiler_gnu = yes; then
5622  GCC=yes
5623else
5624  GCC=
5625fi
5626ac_test_CFLAGS=${CFLAGS+set}
5627ac_save_CFLAGS=$CFLAGS
5628{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5629$as_echo_n "checking whether $CC accepts -g... " >&6; }
5630if test "${ac_cv_prog_cc_g+set}" = set; then
5631  $as_echo_n "(cached) " >&6
5632else
5633  ac_save_c_werror_flag=$ac_c_werror_flag
5634   ac_c_werror_flag=yes
5635   ac_cv_prog_cc_g=no
5636   CFLAGS="-g"
5637   cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h.  */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h.  */
5643
5644int
5645main ()
5646{
5647
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656  *) ac_try_echo=$ac_try;;
5657esac
5658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659$as_echo "$ac_try_echo") >&5
5660  (eval "$ac_compile") 2>conftest.er1
5661  ac_status=$?
5662  grep -v '^ *+' conftest.er1 >conftest.err
5663  rm -f conftest.er1
5664  cat conftest.err >&5
5665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } && {
5667	 test -z "$ac_c_werror_flag" ||
5668	 test ! -s conftest.err
5669       } && test -s conftest.$ac_objext; then
5670  ac_cv_prog_cc_g=yes
5671else
5672  $as_echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675	CFLAGS=""
5676      cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h.  */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h.  */
5682
5683int
5684main ()
5685{
5686
5687  ;
5688  return 0;
5689}
5690_ACEOF
5691rm -f conftest.$ac_objext
5692if { (ac_try="$ac_compile"
5693case "(($ac_try" in
5694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695  *) ac_try_echo=$ac_try;;
5696esac
5697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698$as_echo "$ac_try_echo") >&5
5699  (eval "$ac_compile") 2>conftest.er1
5700  ac_status=$?
5701  grep -v '^ *+' conftest.er1 >conftest.err
5702  rm -f conftest.er1
5703  cat conftest.err >&5
5704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); } && {
5706	 test -z "$ac_c_werror_flag" ||
5707	 test ! -s conftest.err
5708       } && test -s conftest.$ac_objext; then
5709  :
5710else
5711  $as_echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714	ac_c_werror_flag=$ac_save_c_werror_flag
5715	 CFLAGS="-g"
5716	 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h.  */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h.  */
5722
5723int
5724main ()
5725{
5726
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (ac_try="$ac_compile"
5733case "(($ac_try" in
5734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735  *) ac_try_echo=$ac_try;;
5736esac
5737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5738$as_echo "$ac_try_echo") >&5
5739  (eval "$ac_compile") 2>conftest.er1
5740  ac_status=$?
5741  grep -v '^ *+' conftest.er1 >conftest.err
5742  rm -f conftest.er1
5743  cat conftest.err >&5
5744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); } && {
5746	 test -z "$ac_c_werror_flag" ||
5747	 test ! -s conftest.err
5748       } && test -s conftest.$ac_objext; then
5749  ac_cv_prog_cc_g=yes
5750else
5751  $as_echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754
5755fi
5756
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761fi
5762
5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764   ac_c_werror_flag=$ac_save_c_werror_flag
5765fi
5766{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5767$as_echo "$ac_cv_prog_cc_g" >&6; }
5768if test "$ac_test_CFLAGS" = set; then
5769  CFLAGS=$ac_save_CFLAGS
5770elif test $ac_cv_prog_cc_g = yes; then
5771  if test "$GCC" = yes; then
5772    CFLAGS="-g -O2"
5773  else
5774    CFLAGS="-g"
5775  fi
5776else
5777  if test "$GCC" = yes; then
5778    CFLAGS="-O2"
5779  else
5780    CFLAGS=
5781  fi
5782fi
5783{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5784$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5785if test "${ac_cv_prog_cc_c89+set}" = set; then
5786  $as_echo_n "(cached) " >&6
5787else
5788  ac_cv_prog_cc_c89=no
5789ac_save_CC=$CC
5790cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h.  */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h.  */
5796#include <stdarg.h>
5797#include <stdio.h>
5798#include <sys/types.h>
5799#include <sys/stat.h>
5800/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5801struct buf { int x; };
5802FILE * (*rcsopen) (struct buf *, struct stat *, int);
5803static char *e (p, i)
5804     char **p;
5805     int i;
5806{
5807  return p[i];
5808}
5809static char *f (char * (*g) (char **, int), char **p, ...)
5810{
5811  char *s;
5812  va_list v;
5813  va_start (v,p);
5814  s = g (p, va_arg (v,int));
5815  va_end (v);
5816  return s;
5817}
5818
5819/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5820   function prototypes and stuff, but not '\xHH' hex character constants.
5821   These don't provoke an error unfortunately, instead are silently treated
5822   as 'x'.  The following induces an error, until -std is added to get
5823   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5824   array size at least.  It's necessary to write '\x00'==0 to get something
5825   that's true only with -std.  */
5826int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5827
5828/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5829   inside strings and character constants.  */
5830#define FOO(x) 'x'
5831int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5832
5833int test (int i, double x);
5834struct s1 {int (*f) (int a);};
5835struct s2 {int (*f) (double a);};
5836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5837int argc;
5838char **argv;
5839int
5840main ()
5841{
5842return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5843  ;
5844  return 0;
5845}
5846_ACEOF
5847for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5848	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5849do
5850  CC="$ac_save_CC $ac_arg"
5851  rm -f conftest.$ac_objext
5852if { (ac_try="$ac_compile"
5853case "(($ac_try" in
5854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855  *) ac_try_echo=$ac_try;;
5856esac
5857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858$as_echo "$ac_try_echo") >&5
5859  (eval "$ac_compile") 2>conftest.er1
5860  ac_status=$?
5861  grep -v '^ *+' conftest.er1 >conftest.err
5862  rm -f conftest.er1
5863  cat conftest.err >&5
5864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); } && {
5866	 test -z "$ac_c_werror_flag" ||
5867	 test ! -s conftest.err
5868       } && test -s conftest.$ac_objext; then
5869  ac_cv_prog_cc_c89=$ac_arg
5870else
5871  $as_echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874
5875fi
5876
5877rm -f core conftest.err conftest.$ac_objext
5878  test "x$ac_cv_prog_cc_c89" != "xno" && break
5879done
5880rm -f conftest.$ac_ext
5881CC=$ac_save_CC
5882
5883fi
5884# AC_CACHE_VAL
5885case "x$ac_cv_prog_cc_c89" in
5886  x)
5887    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5888$as_echo "none needed" >&6; } ;;
5889  xno)
5890    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5891$as_echo "unsupported" >&6; } ;;
5892  *)
5893    CC="$CC $ac_cv_prog_cc_c89"
5894    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5895$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5896esac
5897
5898
5899ac_ext=c
5900ac_cpp='$CPP $CPPFLAGS'
5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904
5905depcc="$CC"   am_compiler_list=
5906
5907{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5908$as_echo_n "checking dependency style of $depcc... " >&6; }
5909if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5910  $as_echo_n "(cached) " >&6
5911else
5912  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5913  # We make a subdir and do the tests there.  Otherwise we can end up
5914  # making bogus files that we don't know about and never remove.  For
5915  # instance it was reported that on HP-UX the gcc test will end up
5916  # making a dummy file named `D' -- because `-MD' means `put the output
5917  # in D'.
5918  mkdir conftest.dir
5919  # Copy depcomp to subdir because otherwise we won't find it if we're
5920  # using a relative directory.
5921  cp "$am_depcomp" conftest.dir
5922  cd conftest.dir
5923  # We will build objects and dependencies in a subdirectory because
5924  # it helps to detect inapplicable dependency modes.  For instance
5925  # both Tru64's cc and ICC support -MD to output dependencies as a
5926  # side effect of compilation, but ICC will put the dependencies in
5927  # the current directory while Tru64 will put them in the object
5928  # directory.
5929  mkdir sub
5930
5931  am_cv_CC_dependencies_compiler_type=none
5932  if test "$am_compiler_list" = ""; then
5933     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5934  fi
5935  am__universal=false
5936  case " $depcc " in #(
5937     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5938     esac
5939
5940  for depmode in $am_compiler_list; do
5941    # Setup a source with many dependencies, because some compilers
5942    # like to wrap large dependency lists on column 80 (with \), and
5943    # we should not choose a depcomp mode which is confused by this.
5944    #
5945    # We need to recreate these files for each test, as the compiler may
5946    # overwrite some of them when testing with obscure command lines.
5947    # This happens at least with the AIX C compiler.
5948    : > sub/conftest.c
5949    for i in 1 2 3 4 5 6; do
5950      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5951      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5952      # Solaris 8's {/usr,}/bin/sh.
5953      touch sub/conftst$i.h
5954    done
5955    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5956
5957    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5958    # mode.  It turns out that the SunPro C++ compiler does not properly
5959    # handle `-M -o', and we need to detect this.  Also, some Intel
5960    # versions had trouble with output in subdirs
5961    am__obj=sub/conftest.${OBJEXT-o}
5962    am__minus_obj="-o $am__obj"
5963    case $depmode in
5964    gcc)
5965      # This depmode causes a compiler race in universal mode.
5966      test "$am__universal" = false || continue
5967      ;;
5968    nosideeffect)
5969      # after this tag, mechanisms are not by side-effect, so they'll
5970      # only be used when explicitly requested
5971      if test "x$enable_dependency_tracking" = xyes; then
5972	continue
5973      else
5974	break
5975      fi
5976      ;;
5977    msvisualcpp | msvcmsys)
5978      # This compiler won't grok `-c -o', but also, the minuso test has
5979      # not run yet.  These depmodes are late enough in the game, and
5980      # so weak that their functioning should not be impacted.
5981      am__obj=conftest.${OBJEXT-o}
5982      am__minus_obj=
5983      ;;
5984    none) break ;;
5985    esac
5986    if depmode=$depmode \
5987       source=sub/conftest.c object=$am__obj \
5988       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5989       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5990         >/dev/null 2>conftest.err &&
5991       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5992       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5993       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5994       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5995      # icc doesn't choke on unknown options, it will just issue warnings
5996      # or remarks (even with -Werror).  So we grep stderr for any message
5997      # that says an option was ignored or not supported.
5998      # When given -MP, icc 7.0 and 7.1 complain thusly:
5999      #   icc: Command line warning: ignoring option '-M'; no argument required
6000      # The diagnosis changed in icc 8.0:
6001      #   icc: Command line remark: option '-MP' not supported
6002      if (grep 'ignoring option' conftest.err ||
6003          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6004        am_cv_CC_dependencies_compiler_type=$depmode
6005        break
6006      fi
6007    fi
6008  done
6009
6010  cd ..
6011  rm -rf conftest.dir
6012else
6013  am_cv_CC_dependencies_compiler_type=none
6014fi
6015
6016fi
6017{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6018$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6019CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6020
6021 if
6022  test "x$enable_dependency_tracking" != xno \
6023  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6024  am__fastdepCC_TRUE=
6025  am__fastdepCC_FALSE='#'
6026else
6027  am__fastdepCC_TRUE='#'
6028  am__fastdepCC_FALSE=
6029fi
6030
6031
6032case `pwd` in
6033  *\ * | *\	*)
6034    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6035$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6036esac
6037
6038
6039
6040macro_version='2.2.6b'
6041macro_revision='1.3017'
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055ltmain="$ac_aux_dir/ltmain.sh"
6056
6057{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6058$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6059if test "${ac_cv_path_SED+set}" = set; then
6060  $as_echo_n "(cached) " >&6
6061else
6062            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6063     for ac_i in 1 2 3 4 5 6 7; do
6064       ac_script="$ac_script$as_nl$ac_script"
6065     done
6066     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6067     $as_unset ac_script || ac_script=
6068     if test -z "$SED"; then
6069  ac_path_SED_found=false
6070  # Loop through the user's path and test for each of PROGNAME-LIST
6071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074  IFS=$as_save_IFS
6075  test -z "$as_dir" && as_dir=.
6076  for ac_prog in sed gsed; do
6077    for ac_exec_ext in '' $ac_executable_extensions; do
6078      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6079      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6080# Check for GNU ac_path_SED and select it if it is found.
6081  # Check for GNU $ac_path_SED
6082case `"$ac_path_SED" --version 2>&1` in
6083*GNU*)
6084  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6085*)
6086  ac_count=0
6087  $as_echo_n 0123456789 >"conftest.in"
6088  while :
6089  do
6090    cat "conftest.in" "conftest.in" >"conftest.tmp"
6091    mv "conftest.tmp" "conftest.in"
6092    cp "conftest.in" "conftest.nl"
6093    $as_echo '' >> "conftest.nl"
6094    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6095    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6096    ac_count=`expr $ac_count + 1`
6097    if test $ac_count -gt ${ac_path_SED_max-0}; then
6098      # Best one so far, save it but keep looking for a better one
6099      ac_cv_path_SED="$ac_path_SED"
6100      ac_path_SED_max=$ac_count
6101    fi
6102    # 10*(2^10) chars as input seems more than enough
6103    test $ac_count -gt 10 && break
6104  done
6105  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6106esac
6107
6108      $ac_path_SED_found && break 3
6109    done
6110  done
6111done
6112IFS=$as_save_IFS
6113  if test -z "$ac_cv_path_SED"; then
6114    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6115$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6116   { (exit 1); exit 1; }; }
6117  fi
6118else
6119  ac_cv_path_SED=$SED
6120fi
6121
6122fi
6123{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6124$as_echo "$ac_cv_path_SED" >&6; }
6125 SED="$ac_cv_path_SED"
6126  rm -f conftest.sed
6127
6128test -z "$SED" && SED=sed
6129Xsed="$SED -e 1s/^X//"
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6142$as_echo_n "checking for fgrep... " >&6; }
6143if test "${ac_cv_path_FGREP+set}" = set; then
6144  $as_echo_n "(cached) " >&6
6145else
6146  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6147   then ac_cv_path_FGREP="$GREP -F"
6148   else
6149     if test -z "$FGREP"; then
6150  ac_path_FGREP_found=false
6151  # Loop through the user's path and test for each of PROGNAME-LIST
6152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6154do
6155  IFS=$as_save_IFS
6156  test -z "$as_dir" && as_dir=.
6157  for ac_prog in fgrep; do
6158    for ac_exec_ext in '' $ac_executable_extensions; do
6159      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6160      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6161# Check for GNU ac_path_FGREP and select it if it is found.
6162  # Check for GNU $ac_path_FGREP
6163case `"$ac_path_FGREP" --version 2>&1` in
6164*GNU*)
6165  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6166*)
6167  ac_count=0
6168  $as_echo_n 0123456789 >"conftest.in"
6169  while :
6170  do
6171    cat "conftest.in" "conftest.in" >"conftest.tmp"
6172    mv "conftest.tmp" "conftest.in"
6173    cp "conftest.in" "conftest.nl"
6174    $as_echo 'FGREP' >> "conftest.nl"
6175    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177    ac_count=`expr $ac_count + 1`
6178    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6179      # Best one so far, save it but keep looking for a better one
6180      ac_cv_path_FGREP="$ac_path_FGREP"
6181      ac_path_FGREP_max=$ac_count
6182    fi
6183    # 10*(2^10) chars as input seems more than enough
6184    test $ac_count -gt 10 && break
6185  done
6186  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187esac
6188
6189      $ac_path_FGREP_found && break 3
6190    done
6191  done
6192done
6193IFS=$as_save_IFS
6194  if test -z "$ac_cv_path_FGREP"; then
6195    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6196$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6197   { (exit 1); exit 1; }; }
6198  fi
6199else
6200  ac_cv_path_FGREP=$FGREP
6201fi
6202
6203   fi
6204fi
6205{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6206$as_echo "$ac_cv_path_FGREP" >&6; }
6207 FGREP="$ac_cv_path_FGREP"
6208
6209
6210test -z "$GREP" && GREP=grep
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230# Check whether --with-gnu-ld was given.
6231if test "${with_gnu_ld+set}" = set; then
6232  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6233else
6234  with_gnu_ld=no
6235fi
6236
6237ac_prog=ld
6238if test "$GCC" = yes; then
6239  # Check if gcc -print-prog-name=ld gives a path.
6240  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6241$as_echo_n "checking for ld used by $CC... " >&6; }
6242  case $host in
6243  *-*-mingw*)
6244    # gcc leaves a trailing carriage return which upsets mingw
6245    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6246  *)
6247    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6248  esac
6249  case $ac_prog in
6250    # Accept absolute paths.
6251    [\\/]* | ?:[\\/]*)
6252      re_direlt='/[^/][^/]*/\.\./'
6253      # Canonicalize the pathname of ld
6254      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6255      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6256	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6257      done
6258      test -z "$LD" && LD="$ac_prog"
6259      ;;
6260  "")
6261    # If it fails, then pretend we aren't using GCC.
6262    ac_prog=ld
6263    ;;
6264  *)
6265    # If it is relative, then search for the first ld in PATH.
6266    with_gnu_ld=unknown
6267    ;;
6268  esac
6269elif test "$with_gnu_ld" = yes; then
6270  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6271$as_echo_n "checking for GNU ld... " >&6; }
6272else
6273  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6274$as_echo_n "checking for non-GNU ld... " >&6; }
6275fi
6276if test "${lt_cv_path_LD+set}" = set; then
6277  $as_echo_n "(cached) " >&6
6278else
6279  if test -z "$LD"; then
6280  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6281  for ac_dir in $PATH; do
6282    IFS="$lt_save_ifs"
6283    test -z "$ac_dir" && ac_dir=.
6284    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6285      lt_cv_path_LD="$ac_dir/$ac_prog"
6286      # Check to see if the program is GNU ld.  I'd rather use --version,
6287      # but apparently some variants of GNU ld only accept -v.
6288      # Break only if it was the GNU/non-GNU ld that we prefer.
6289      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6290      *GNU* | *'with BFD'*)
6291	test "$with_gnu_ld" != no && break
6292	;;
6293      *)
6294	test "$with_gnu_ld" != yes && break
6295	;;
6296      esac
6297    fi
6298  done
6299  IFS="$lt_save_ifs"
6300else
6301  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6302fi
6303fi
6304
6305LD="$lt_cv_path_LD"
6306if test -n "$LD"; then
6307  { $as_echo "$as_me:$LINENO: result: $LD" >&5
6308$as_echo "$LD" >&6; }
6309else
6310  { $as_echo "$as_me:$LINENO: result: no" >&5
6311$as_echo "no" >&6; }
6312fi
6313test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6314$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6315   { (exit 1); exit 1; }; }
6316{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6317$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6318if test "${lt_cv_prog_gnu_ld+set}" = set; then
6319  $as_echo_n "(cached) " >&6
6320else
6321  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6322case `$LD -v 2>&1 </dev/null` in
6323*GNU* | *'with BFD'*)
6324  lt_cv_prog_gnu_ld=yes
6325  ;;
6326*)
6327  lt_cv_prog_gnu_ld=no
6328  ;;
6329esac
6330fi
6331{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6332$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6333with_gnu_ld=$lt_cv_prog_gnu_ld
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6344$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6345if test "${lt_cv_path_NM+set}" = set; then
6346  $as_echo_n "(cached) " >&6
6347else
6348  if test -n "$NM"; then
6349  # Let the user override the test.
6350  lt_cv_path_NM="$NM"
6351else
6352  lt_nm_to_check="${ac_tool_prefix}nm"
6353  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6354    lt_nm_to_check="$lt_nm_to_check nm"
6355  fi
6356  for lt_tmp_nm in $lt_nm_to_check; do
6357    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6358    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6359      IFS="$lt_save_ifs"
6360      test -z "$ac_dir" && ac_dir=.
6361      tmp_nm="$ac_dir/$lt_tmp_nm"
6362      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6363	# Check to see if the nm accepts a BSD-compat flag.
6364	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6365	#   nm: unknown option "B" ignored
6366	# Tru64's nm complains that /dev/null is an invalid object file
6367	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6368	*/dev/null* | *'Invalid file or object type'*)
6369	  lt_cv_path_NM="$tmp_nm -B"
6370	  break
6371	  ;;
6372	*)
6373	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6374	  */dev/null*)
6375	    lt_cv_path_NM="$tmp_nm -p"
6376	    break
6377	    ;;
6378	  *)
6379	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6380	    continue # so that we can try to find one that supports BSD flags
6381	    ;;
6382	  esac
6383	  ;;
6384	esac
6385      fi
6386    done
6387    IFS="$lt_save_ifs"
6388  done
6389  : ${lt_cv_path_NM=no}
6390fi
6391fi
6392{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6393$as_echo "$lt_cv_path_NM" >&6; }
6394if test "$lt_cv_path_NM" != "no"; then
6395  NM="$lt_cv_path_NM"
6396else
6397  # Didn't find any BSD compatible name lister, look for dumpbin.
6398  if test -n "$ac_tool_prefix"; then
6399  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6400  do
6401    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6404$as_echo_n "checking for $ac_word... " >&6; }
6405if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6406  $as_echo_n "(cached) " >&6
6407else
6408  if test -n "$DUMPBIN"; then
6409  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6410else
6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412for as_dir in $PATH
6413do
6414  IFS=$as_save_IFS
6415  test -z "$as_dir" && as_dir=.
6416  for ac_exec_ext in '' $ac_executable_extensions; do
6417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6419    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420    break 2
6421  fi
6422done
6423done
6424IFS=$as_save_IFS
6425
6426fi
6427fi
6428DUMPBIN=$ac_cv_prog_DUMPBIN
6429if test -n "$DUMPBIN"; then
6430  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6431$as_echo "$DUMPBIN" >&6; }
6432else
6433  { $as_echo "$as_me:$LINENO: result: no" >&5
6434$as_echo "no" >&6; }
6435fi
6436
6437
6438    test -n "$DUMPBIN" && break
6439  done
6440fi
6441if test -z "$DUMPBIN"; then
6442  ac_ct_DUMPBIN=$DUMPBIN
6443  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6444do
6445  # Extract the first word of "$ac_prog", so it can be a program name with args.
6446set dummy $ac_prog; ac_word=$2
6447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6448$as_echo_n "checking for $ac_word... " >&6; }
6449if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6450  $as_echo_n "(cached) " >&6
6451else
6452  if test -n "$ac_ct_DUMPBIN"; then
6453  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458  IFS=$as_save_IFS
6459  test -z "$as_dir" && as_dir=.
6460  for ac_exec_ext in '' $ac_executable_extensions; do
6461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6463    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464    break 2
6465  fi
6466done
6467done
6468IFS=$as_save_IFS
6469
6470fi
6471fi
6472ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6473if test -n "$ac_ct_DUMPBIN"; then
6474  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6475$as_echo "$ac_ct_DUMPBIN" >&6; }
6476else
6477  { $as_echo "$as_me:$LINENO: result: no" >&5
6478$as_echo "no" >&6; }
6479fi
6480
6481
6482  test -n "$ac_ct_DUMPBIN" && break
6483done
6484
6485  if test "x$ac_ct_DUMPBIN" = x; then
6486    DUMPBIN=":"
6487  else
6488    case $cross_compiling:$ac_tool_warned in
6489yes:)
6490{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6492ac_tool_warned=yes ;;
6493esac
6494    DUMPBIN=$ac_ct_DUMPBIN
6495  fi
6496fi
6497
6498
6499  if test "$DUMPBIN" != ":"; then
6500    NM="$DUMPBIN"
6501  fi
6502fi
6503test -z "$NM" && NM=nm
6504
6505
6506
6507
6508
6509
6510{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6511$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6512if test "${lt_cv_nm_interface+set}" = set; then
6513  $as_echo_n "(cached) " >&6
6514else
6515  lt_cv_nm_interface="BSD nm"
6516  echo "int some_variable = 0;" > conftest.$ac_ext
6517  (eval echo "\"\$as_me:6517: $ac_compile\"" >&5)
6518  (eval "$ac_compile" 2>conftest.err)
6519  cat conftest.err >&5
6520  (eval echo "\"\$as_me:6520: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6521  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6522  cat conftest.err >&5
6523  (eval echo "\"\$as_me:6523: output\"" >&5)
6524  cat conftest.out >&5
6525  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6526    lt_cv_nm_interface="MS dumpbin"
6527  fi
6528  rm -f conftest*
6529fi
6530{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6531$as_echo "$lt_cv_nm_interface" >&6; }
6532
6533{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6534$as_echo_n "checking whether ln -s works... " >&6; }
6535LN_S=$as_ln_s
6536if test "$LN_S" = "ln -s"; then
6537  { $as_echo "$as_me:$LINENO: result: yes" >&5
6538$as_echo "yes" >&6; }
6539else
6540  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6541$as_echo "no, using $LN_S" >&6; }
6542fi
6543
6544# find the maximum length of command line arguments
6545{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6546$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6547if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6548  $as_echo_n "(cached) " >&6
6549else
6550    i=0
6551  teststring="ABCD"
6552
6553  case $build_os in
6554  msdosdjgpp*)
6555    # On DJGPP, this test can blow up pretty badly due to problems in libc
6556    # (any single argument exceeding 2000 bytes causes a buffer overrun
6557    # during glob expansion).  Even if it were fixed, the result of this
6558    # check would be larger than it should be.
6559    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6560    ;;
6561
6562  gnu*)
6563    # Under GNU Hurd, this test is not required because there is
6564    # no limit to the length of command line arguments.
6565    # Libtool will interpret -1 as no limit whatsoever
6566    lt_cv_sys_max_cmd_len=-1;
6567    ;;
6568
6569  cygwin* | mingw* | cegcc*)
6570    # On Win9x/ME, this test blows up -- it succeeds, but takes
6571    # about 5 minutes as the teststring grows exponentially.
6572    # Worse, since 9x/ME are not pre-emptively multitasking,
6573    # you end up with a "frozen" computer, even though with patience
6574    # the test eventually succeeds (with a max line length of 256k).
6575    # Instead, let's just punt: use the minimum linelength reported by
6576    # all of the supported platforms: 8192 (on NT/2K/XP).
6577    lt_cv_sys_max_cmd_len=8192;
6578    ;;
6579
6580  amigaos*)
6581    # On AmigaOS with pdksh, this test takes hours, literally.
6582    # So we just punt and use a minimum line length of 8192.
6583    lt_cv_sys_max_cmd_len=8192;
6584    ;;
6585
6586  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6587    # This has been around since 386BSD, at least.  Likely further.
6588    if test -x /sbin/sysctl; then
6589      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6590    elif test -x /usr/sbin/sysctl; then
6591      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6592    else
6593      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6594    fi
6595    # And add a safety zone
6596    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6597    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6598    ;;
6599
6600  interix*)
6601    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6602    lt_cv_sys_max_cmd_len=196608
6603    ;;
6604
6605  osf*)
6606    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6607    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6608    # nice to cause kernel panics so lets avoid the loop below.
6609    # First set a reasonable default.
6610    lt_cv_sys_max_cmd_len=16384
6611    #
6612    if test -x /sbin/sysconfig; then
6613      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6614        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6615      esac
6616    fi
6617    ;;
6618  sco3.2v5*)
6619    lt_cv_sys_max_cmd_len=102400
6620    ;;
6621  sysv5* | sco5v6* | sysv4.2uw2*)
6622    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6623    if test -n "$kargmax"; then
6624      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6625    else
6626      lt_cv_sys_max_cmd_len=32768
6627    fi
6628    ;;
6629  *)
6630    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6631    if test -n "$lt_cv_sys_max_cmd_len"; then
6632      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6633      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6634    else
6635      # Make teststring a little bigger before we do anything with it.
6636      # a 1K string should be a reasonable start.
6637      for i in 1 2 3 4 5 6 7 8 ; do
6638        teststring=$teststring$teststring
6639      done
6640      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6641      # If test is not a shell built-in, we'll probably end up computing a
6642      # maximum length that is only half of the actual maximum length, but
6643      # we can't tell.
6644      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6645	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6646	      test $i != 17 # 1/2 MB should be enough
6647      do
6648        i=`expr $i + 1`
6649        teststring=$teststring$teststring
6650      done
6651      # Only check the string length outside the loop.
6652      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6653      teststring=
6654      # Add a significant safety factor because C++ compilers can tack on
6655      # massive amounts of additional arguments before passing them to the
6656      # linker.  It appears as though 1/2 is a usable value.
6657      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6658    fi
6659    ;;
6660  esac
6661
6662fi
6663
6664if test -n $lt_cv_sys_max_cmd_len ; then
6665  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6666$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6667else
6668  { $as_echo "$as_me:$LINENO: result: none" >&5
6669$as_echo "none" >&6; }
6670fi
6671max_cmd_len=$lt_cv_sys_max_cmd_len
6672
6673
6674
6675
6676
6677
6678: ${CP="cp -f"}
6679: ${MV="mv -f"}
6680: ${RM="rm -f"}
6681
6682{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6683$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6684# Try some XSI features
6685xsi_shell=no
6686( _lt_dummy="a/b/c"
6687  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6688      = c,a/b,, \
6689    && eval 'test $(( 1 + 1 )) -eq 2 \
6690    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6691  && xsi_shell=yes
6692{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6693$as_echo "$xsi_shell" >&6; }
6694
6695
6696{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6697$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6698lt_shell_append=no
6699( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6700    >/dev/null 2>&1 \
6701  && lt_shell_append=yes
6702{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6703$as_echo "$lt_shell_append" >&6; }
6704
6705
6706if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6707  lt_unset=unset
6708else
6709  lt_unset=false
6710fi
6711
6712
6713
6714
6715
6716# test EBCDIC or ASCII
6717case `echo X|tr X '\101'` in
6718 A) # ASCII based system
6719    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6720  lt_SP2NL='tr \040 \012'
6721  lt_NL2SP='tr \015\012 \040\040'
6722  ;;
6723 *) # EBCDIC based system
6724  lt_SP2NL='tr \100 \n'
6725  lt_NL2SP='tr \r\n \100\100'
6726  ;;
6727esac
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6738$as_echo_n "checking for $LD option to reload object files... " >&6; }
6739if test "${lt_cv_ld_reload_flag+set}" = set; then
6740  $as_echo_n "(cached) " >&6
6741else
6742  lt_cv_ld_reload_flag='-r'
6743fi
6744{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6745$as_echo "$lt_cv_ld_reload_flag" >&6; }
6746reload_flag=$lt_cv_ld_reload_flag
6747case $reload_flag in
6748"" | " "*) ;;
6749*) reload_flag=" $reload_flag" ;;
6750esac
6751reload_cmds='$LD$reload_flag -o $output$reload_objs'
6752case $host_os in
6753  darwin*)
6754    if test "$GCC" = yes; then
6755      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6756    else
6757      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758    fi
6759    ;;
6760esac
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770if test -n "$ac_tool_prefix"; then
6771  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6772set dummy ${ac_tool_prefix}objdump; ac_word=$2
6773{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6774$as_echo_n "checking for $ac_word... " >&6; }
6775if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6776  $as_echo_n "(cached) " >&6
6777else
6778  if test -n "$OBJDUMP"; then
6779  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6780else
6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782for as_dir in $PATH
6783do
6784  IFS=$as_save_IFS
6785  test -z "$as_dir" && as_dir=.
6786  for ac_exec_ext in '' $ac_executable_extensions; do
6787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6789    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790    break 2
6791  fi
6792done
6793done
6794IFS=$as_save_IFS
6795
6796fi
6797fi
6798OBJDUMP=$ac_cv_prog_OBJDUMP
6799if test -n "$OBJDUMP"; then
6800  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6801$as_echo "$OBJDUMP" >&6; }
6802else
6803  { $as_echo "$as_me:$LINENO: result: no" >&5
6804$as_echo "no" >&6; }
6805fi
6806
6807
6808fi
6809if test -z "$ac_cv_prog_OBJDUMP"; then
6810  ac_ct_OBJDUMP=$OBJDUMP
6811  # Extract the first word of "objdump", so it can be a program name with args.
6812set dummy objdump; ac_word=$2
6813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6816  $as_echo_n "(cached) " >&6
6817else
6818  if test -n "$ac_ct_OBJDUMP"; then
6819  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824  IFS=$as_save_IFS
6825  test -z "$as_dir" && as_dir=.
6826  for ac_exec_ext in '' $ac_executable_extensions; do
6827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6829    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830    break 2
6831  fi
6832done
6833done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6839if test -n "$ac_ct_OBJDUMP"; then
6840  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6841$as_echo "$ac_ct_OBJDUMP" >&6; }
6842else
6843  { $as_echo "$as_me:$LINENO: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847  if test "x$ac_ct_OBJDUMP" = x; then
6848    OBJDUMP="false"
6849  else
6850    case $cross_compiling:$ac_tool_warned in
6851yes:)
6852{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6854ac_tool_warned=yes ;;
6855esac
6856    OBJDUMP=$ac_ct_OBJDUMP
6857  fi
6858else
6859  OBJDUMP="$ac_cv_prog_OBJDUMP"
6860fi
6861
6862test -z "$OBJDUMP" && OBJDUMP=objdump
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6873$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6874if test "${lt_cv_deplibs_check_method+set}" = set; then
6875  $as_echo_n "(cached) " >&6
6876else
6877  lt_cv_file_magic_cmd='$MAGIC_CMD'
6878lt_cv_file_magic_test_file=
6879lt_cv_deplibs_check_method='unknown'
6880# Need to set the preceding variable on all platforms that support
6881# interlibrary dependencies.
6882# 'none' -- dependencies not supported.
6883# `unknown' -- same as none, but documents that we really don't know.
6884# 'pass_all' -- all dependencies passed with no checks.
6885# 'test_compile' -- check by making test program.
6886# 'file_magic [[regex]]' -- check by looking for files in library path
6887# which responds to the $file_magic_cmd with a given extended regex.
6888# If you have `file' or equivalent on your system and you're not sure
6889# whether `pass_all' will *always* work, you probably want this one.
6890
6891case $host_os in
6892aix[4-9]*)
6893  lt_cv_deplibs_check_method=pass_all
6894  ;;
6895
6896beos*)
6897  lt_cv_deplibs_check_method=pass_all
6898  ;;
6899
6900bsdi[45]*)
6901  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6902  lt_cv_file_magic_cmd='/usr/bin/file -L'
6903  lt_cv_file_magic_test_file=/shlib/libc.so
6904  ;;
6905
6906cygwin*)
6907  # func_win32_libid is a shell function defined in ltmain.sh
6908  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6909  lt_cv_file_magic_cmd='func_win32_libid'
6910  ;;
6911
6912mingw* | pw32*)
6913  # Base MSYS/MinGW do not provide the 'file' command needed by
6914  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6915  # unless we find 'file', for example because we are cross-compiling.
6916  if ( file / ) >/dev/null 2>&1; then
6917    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6918    lt_cv_file_magic_cmd='func_win32_libid'
6919  else
6920    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6921    lt_cv_file_magic_cmd='$OBJDUMP -f'
6922  fi
6923  ;;
6924
6925cegcc)
6926  # use the weaker test based on 'objdump'. See mingw*.
6927  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6928  lt_cv_file_magic_cmd='$OBJDUMP -f'
6929  ;;
6930
6931darwin* | rhapsody*)
6932  lt_cv_deplibs_check_method=pass_all
6933  ;;
6934
6935freebsd* | dragonfly*)
6936  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6937    case $host_cpu in
6938    i*86 )
6939      # Not sure whether the presence of OpenBSD here was a mistake.
6940      # Let's accept both of them until this is cleared up.
6941      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6942      lt_cv_file_magic_cmd=/usr/bin/file
6943      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6944      ;;
6945    esac
6946  else
6947    lt_cv_deplibs_check_method=pass_all
6948  fi
6949  ;;
6950
6951gnu*)
6952  lt_cv_deplibs_check_method=pass_all
6953  ;;
6954
6955hpux10.20* | hpux11*)
6956  lt_cv_file_magic_cmd=/usr/bin/file
6957  case $host_cpu in
6958  ia64*)
6959    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6960    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6961    ;;
6962  hppa*64*)
6963    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]'
6964    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6965    ;;
6966  *)
6967    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6968    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6969    ;;
6970  esac
6971  ;;
6972
6973interix[3-9]*)
6974  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6975  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6976  ;;
6977
6978irix5* | irix6* | nonstopux*)
6979  case $LD in
6980  *-32|*"-32 ") libmagic=32-bit;;
6981  *-n32|*"-n32 ") libmagic=N32;;
6982  *-64|*"-64 ") libmagic=64-bit;;
6983  *) libmagic=never-match;;
6984  esac
6985  lt_cv_deplibs_check_method=pass_all
6986  ;;
6987
6988# This must be Linux ELF.
6989linux* | k*bsd*-gnu)
6990  lt_cv_deplibs_check_method=pass_all
6991  ;;
6992
6993netbsd*)
6994  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6995    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6996  else
6997    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6998  fi
6999  ;;
7000
7001newos6*)
7002  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7003  lt_cv_file_magic_cmd=/usr/bin/file
7004  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7005  ;;
7006
7007*nto* | *qnx*)
7008  lt_cv_deplibs_check_method=pass_all
7009  ;;
7010
7011openbsd*)
7012  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7013    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7014  else
7015    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7016  fi
7017  ;;
7018
7019osf3* | osf4* | osf5*)
7020  lt_cv_deplibs_check_method=pass_all
7021  ;;
7022
7023rdos*)
7024  lt_cv_deplibs_check_method=pass_all
7025  ;;
7026
7027solaris*)
7028  lt_cv_deplibs_check_method=pass_all
7029  ;;
7030
7031sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7032  lt_cv_deplibs_check_method=pass_all
7033  ;;
7034
7035sysv4 | sysv4.3*)
7036  case $host_vendor in
7037  motorola)
7038    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]'
7039    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7040    ;;
7041  ncr)
7042    lt_cv_deplibs_check_method=pass_all
7043    ;;
7044  sequent)
7045    lt_cv_file_magic_cmd='/bin/file'
7046    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7047    ;;
7048  sni)
7049    lt_cv_file_magic_cmd='/bin/file'
7050    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7051    lt_cv_file_magic_test_file=/lib/libc.so
7052    ;;
7053  siemens)
7054    lt_cv_deplibs_check_method=pass_all
7055    ;;
7056  pc)
7057    lt_cv_deplibs_check_method=pass_all
7058    ;;
7059  esac
7060  ;;
7061
7062tpf*)
7063  lt_cv_deplibs_check_method=pass_all
7064  ;;
7065esac
7066
7067fi
7068{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7069$as_echo "$lt_cv_deplibs_check_method" >&6; }
7070file_magic_cmd=$lt_cv_file_magic_cmd
7071deplibs_check_method=$lt_cv_deplibs_check_method
7072test -z "$deplibs_check_method" && deplibs_check_method=unknown
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085if test -n "$ac_tool_prefix"; then
7086  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7087set dummy ${ac_tool_prefix}ar; ac_word=$2
7088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7089$as_echo_n "checking for $ac_word... " >&6; }
7090if test "${ac_cv_prog_AR+set}" = set; then
7091  $as_echo_n "(cached) " >&6
7092else
7093  if test -n "$AR"; then
7094  ac_cv_prog_AR="$AR" # Let the user override the test.
7095else
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099  IFS=$as_save_IFS
7100  test -z "$as_dir" && as_dir=.
7101  for ac_exec_ext in '' $ac_executable_extensions; do
7102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103    ac_cv_prog_AR="${ac_tool_prefix}ar"
7104    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105    break 2
7106  fi
7107done
7108done
7109IFS=$as_save_IFS
7110
7111fi
7112fi
7113AR=$ac_cv_prog_AR
7114if test -n "$AR"; then
7115  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7116$as_echo "$AR" >&6; }
7117else
7118  { $as_echo "$as_me:$LINENO: result: no" >&5
7119$as_echo "no" >&6; }
7120fi
7121
7122
7123fi
7124if test -z "$ac_cv_prog_AR"; then
7125  ac_ct_AR=$AR
7126  # Extract the first word of "ar", so it can be a program name with args.
7127set dummy ar; ac_word=$2
7128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7129$as_echo_n "checking for $ac_word... " >&6; }
7130if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7131  $as_echo_n "(cached) " >&6
7132else
7133  if test -n "$ac_ct_AR"; then
7134  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  test -z "$as_dir" && as_dir=.
7141  for ac_exec_ext in '' $ac_executable_extensions; do
7142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143    ac_cv_prog_ac_ct_AR="ar"
7144    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145    break 2
7146  fi
7147done
7148done
7149IFS=$as_save_IFS
7150
7151fi
7152fi
7153ac_ct_AR=$ac_cv_prog_ac_ct_AR
7154if test -n "$ac_ct_AR"; then
7155  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7156$as_echo "$ac_ct_AR" >&6; }
7157else
7158  { $as_echo "$as_me:$LINENO: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162  if test "x$ac_ct_AR" = x; then
7163    AR="false"
7164  else
7165    case $cross_compiling:$ac_tool_warned in
7166yes:)
7167{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169ac_tool_warned=yes ;;
7170esac
7171    AR=$ac_ct_AR
7172  fi
7173else
7174  AR="$ac_cv_prog_AR"
7175fi
7176
7177test -z "$AR" && AR=ar
7178test -z "$AR_FLAGS" && AR_FLAGS=cru
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190if test -n "$ac_tool_prefix"; then
7191  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7192set dummy ${ac_tool_prefix}strip; ac_word=$2
7193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7194$as_echo_n "checking for $ac_word... " >&6; }
7195if test "${ac_cv_prog_STRIP+set}" = set; then
7196  $as_echo_n "(cached) " >&6
7197else
7198  if test -n "$STRIP"; then
7199  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204  IFS=$as_save_IFS
7205  test -z "$as_dir" && as_dir=.
7206  for ac_exec_ext in '' $ac_executable_extensions; do
7207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7209    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210    break 2
7211  fi
7212done
7213done
7214IFS=$as_save_IFS
7215
7216fi
7217fi
7218STRIP=$ac_cv_prog_STRIP
7219if test -n "$STRIP"; then
7220  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7221$as_echo "$STRIP" >&6; }
7222else
7223  { $as_echo "$as_me:$LINENO: result: no" >&5
7224$as_echo "no" >&6; }
7225fi
7226
7227
7228fi
7229if test -z "$ac_cv_prog_STRIP"; then
7230  ac_ct_STRIP=$STRIP
7231  # Extract the first word of "strip", so it can be a program name with args.
7232set dummy strip; ac_word=$2
7233{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7234$as_echo_n "checking for $ac_word... " >&6; }
7235if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7236  $as_echo_n "(cached) " >&6
7237else
7238  if test -n "$ac_ct_STRIP"; then
7239  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244  IFS=$as_save_IFS
7245  test -z "$as_dir" && as_dir=.
7246  for ac_exec_ext in '' $ac_executable_extensions; do
7247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248    ac_cv_prog_ac_ct_STRIP="strip"
7249    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250    break 2
7251  fi
7252done
7253done
7254IFS=$as_save_IFS
7255
7256fi
7257fi
7258ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7259if test -n "$ac_ct_STRIP"; then
7260  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7261$as_echo "$ac_ct_STRIP" >&6; }
7262else
7263  { $as_echo "$as_me:$LINENO: result: no" >&5
7264$as_echo "no" >&6; }
7265fi
7266
7267  if test "x$ac_ct_STRIP" = x; then
7268    STRIP=":"
7269  else
7270    case $cross_compiling:$ac_tool_warned in
7271yes:)
7272{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274ac_tool_warned=yes ;;
7275esac
7276    STRIP=$ac_ct_STRIP
7277  fi
7278else
7279  STRIP="$ac_cv_prog_STRIP"
7280fi
7281
7282test -z "$STRIP" && STRIP=:
7283
7284
7285
7286
7287
7288
7289if test -n "$ac_tool_prefix"; then
7290  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7291set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7293$as_echo_n "checking for $ac_word... " >&6; }
7294if test "${ac_cv_prog_RANLIB+set}" = set; then
7295  $as_echo_n "(cached) " >&6
7296else
7297  if test -n "$RANLIB"; then
7298  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303  IFS=$as_save_IFS
7304  test -z "$as_dir" && as_dir=.
7305  for ac_exec_ext in '' $ac_executable_extensions; do
7306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7308    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309    break 2
7310  fi
7311done
7312done
7313IFS=$as_save_IFS
7314
7315fi
7316fi
7317RANLIB=$ac_cv_prog_RANLIB
7318if test -n "$RANLIB"; then
7319  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7320$as_echo "$RANLIB" >&6; }
7321else
7322  { $as_echo "$as_me:$LINENO: result: no" >&5
7323$as_echo "no" >&6; }
7324fi
7325
7326
7327fi
7328if test -z "$ac_cv_prog_RANLIB"; then
7329  ac_ct_RANLIB=$RANLIB
7330  # Extract the first word of "ranlib", so it can be a program name with args.
7331set dummy ranlib; ac_word=$2
7332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7333$as_echo_n "checking for $ac_word... " >&6; }
7334if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7335  $as_echo_n "(cached) " >&6
7336else
7337  if test -n "$ac_ct_RANLIB"; then
7338  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343  IFS=$as_save_IFS
7344  test -z "$as_dir" && as_dir=.
7345  for ac_exec_ext in '' $ac_executable_extensions; do
7346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347    ac_cv_prog_ac_ct_RANLIB="ranlib"
7348    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349    break 2
7350  fi
7351done
7352done
7353IFS=$as_save_IFS
7354
7355fi
7356fi
7357ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7358if test -n "$ac_ct_RANLIB"; then
7359  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7360$as_echo "$ac_ct_RANLIB" >&6; }
7361else
7362  { $as_echo "$as_me:$LINENO: result: no" >&5
7363$as_echo "no" >&6; }
7364fi
7365
7366  if test "x$ac_ct_RANLIB" = x; then
7367    RANLIB=":"
7368  else
7369    case $cross_compiling:$ac_tool_warned in
7370yes:)
7371{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373ac_tool_warned=yes ;;
7374esac
7375    RANLIB=$ac_ct_RANLIB
7376  fi
7377else
7378  RANLIB="$ac_cv_prog_RANLIB"
7379fi
7380
7381test -z "$RANLIB" && RANLIB=:
7382
7383
7384
7385
7386
7387
7388# Determine commands to create old-style static archives.
7389old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7390old_postinstall_cmds='chmod 644 $oldlib'
7391old_postuninstall_cmds=
7392
7393if test -n "$RANLIB"; then
7394  case $host_os in
7395  openbsd*)
7396    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7397    ;;
7398  *)
7399    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7400    ;;
7401  esac
7402  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7403fi
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438# If no C compiler was specified, use CC.
7439LTCC=${LTCC-"$CC"}
7440
7441# If no C compiler flags were specified, use CFLAGS.
7442LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7443
7444# Allow CC to be a program name with arguments.
7445compiler=$CC
7446
7447
7448# Check for command to grab the raw symbol name followed by C symbol from nm.
7449{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7450$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7451if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7452  $as_echo_n "(cached) " >&6
7453else
7454
7455# These are sane defaults that work on at least a few old systems.
7456# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7457
7458# Character class describing NM global symbol codes.
7459symcode='[BCDEGRST]'
7460
7461# Regexp to match symbols that can be accessed directly from C.
7462sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7463
7464# Define system-specific variables.
7465case $host_os in
7466aix*)
7467  symcode='[BCDT]'
7468  ;;
7469cygwin* | mingw* | pw32* | cegcc*)
7470  symcode='[ABCDGISTW]'
7471  ;;
7472hpux*)
7473  if test "$host_cpu" = ia64; then
7474    symcode='[ABCDEGRST]'
7475  fi
7476  ;;
7477irix* | nonstopux*)
7478  symcode='[BCDEGRST]'
7479  ;;
7480osf*)
7481  symcode='[BCDEGQRST]'
7482  ;;
7483solaris*)
7484  symcode='[BDRT]'
7485  ;;
7486sco3.2v5*)
7487  symcode='[DT]'
7488  ;;
7489sysv4.2uw2*)
7490  symcode='[DT]'
7491  ;;
7492sysv5* | sco5v6* | unixware* | OpenUNIX*)
7493  symcode='[ABDT]'
7494  ;;
7495sysv4)
7496  symcode='[DFNSTU]'
7497  ;;
7498esac
7499
7500# If we're using GNU nm, then use its standard symbol codes.
7501case `$NM -V 2>&1` in
7502*GNU* | *'with BFD'*)
7503  symcode='[ABCDGIRSTW]' ;;
7504esac
7505
7506# Transform an extracted symbol line into a proper C declaration.
7507# Some systems (esp. on ia64) link data and code symbols differently,
7508# so use this general approach.
7509lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7510
7511# Transform an extracted symbol line into symbol name and symbol address
7512lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7513lt_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'"
7514
7515# Handle CRLF in mingw tool chain
7516opt_cr=
7517case $build_os in
7518mingw*)
7519  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7520  ;;
7521esac
7522
7523# Try without a prefix underscore, then with it.
7524for ac_symprfx in "" "_"; do
7525
7526  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7527  symxfrm="\\1 $ac_symprfx\\2 \\2"
7528
7529  # Write the raw and C identifiers.
7530  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7531    # Fake it for dumpbin and say T for any non-static function
7532    # and D for any global variable.
7533    # Also find C++ and __fastcall symbols from MSVC++,
7534    # which start with @ or ?.
7535    lt_cv_sys_global_symbol_pipe="$AWK '"\
7536"     {last_section=section; section=\$ 3};"\
7537"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7538"     \$ 0!~/External *\|/{next};"\
7539"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7540"     {if(hide[section]) next};"\
7541"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7542"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7543"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7544"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7545"     ' prfx=^$ac_symprfx"
7546  else
7547    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7548  fi
7549
7550  # Check to see that the pipe works correctly.
7551  pipe_works=no
7552
7553  rm -f conftest*
7554  cat > conftest.$ac_ext <<_LT_EOF
7555#ifdef __cplusplus
7556extern "C" {
7557#endif
7558char nm_test_var;
7559void nm_test_func(void);
7560void nm_test_func(void){}
7561#ifdef __cplusplus
7562}
7563#endif
7564int main(){nm_test_var='a';nm_test_func();return(0);}
7565_LT_EOF
7566
7567  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568  (eval $ac_compile) 2>&5
7569  ac_status=$?
7570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571  (exit $ac_status); }; then
7572    # Now try to grab the symbols.
7573    nlist=conftest.nm
7574    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7575  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7576  ac_status=$?
7577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); } && test -s "$nlist"; then
7579      # Try sorting and uniquifying the output.
7580      if sort "$nlist" | uniq > "$nlist"T; then
7581	mv -f "$nlist"T "$nlist"
7582      else
7583	rm -f "$nlist"T
7584      fi
7585
7586      # Make sure that we snagged all the symbols we need.
7587      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7588	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7589	  cat <<_LT_EOF > conftest.$ac_ext
7590#ifdef __cplusplus
7591extern "C" {
7592#endif
7593
7594_LT_EOF
7595	  # Now generate the symbol file.
7596	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7597
7598	  cat <<_LT_EOF >> conftest.$ac_ext
7599
7600/* The mapping between symbol names and symbols.  */
7601const struct {
7602  const char *name;
7603  void       *address;
7604}
7605lt__PROGRAM__LTX_preloaded_symbols[] =
7606{
7607  { "@PROGRAM@", (void *) 0 },
7608_LT_EOF
7609	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7610	  cat <<\_LT_EOF >> conftest.$ac_ext
7611  {0, (void *) 0}
7612};
7613
7614/* This works around a problem in FreeBSD linker */
7615#ifdef FREEBSD_WORKAROUND
7616static const void *lt_preloaded_setup() {
7617  return lt__PROGRAM__LTX_preloaded_symbols;
7618}
7619#endif
7620
7621#ifdef __cplusplus
7622}
7623#endif
7624_LT_EOF
7625	  # Now try linking the two files.
7626	  mv conftest.$ac_objext conftstm.$ac_objext
7627	  lt_save_LIBS="$LIBS"
7628	  lt_save_CFLAGS="$CFLAGS"
7629	  LIBS="conftstm.$ac_objext"
7630	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7631	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632  (eval $ac_link) 2>&5
7633  ac_status=$?
7634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7636	    pipe_works=yes
7637	  fi
7638	  LIBS="$lt_save_LIBS"
7639	  CFLAGS="$lt_save_CFLAGS"
7640	else
7641	  echo "cannot find nm_test_func in $nlist" >&5
7642	fi
7643      else
7644	echo "cannot find nm_test_var in $nlist" >&5
7645      fi
7646    else
7647      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7648    fi
7649  else
7650    echo "$progname: failed program was:" >&5
7651    cat conftest.$ac_ext >&5
7652  fi
7653  rm -rf conftest* conftst*
7654
7655  # Do not use the global_symbol_pipe unless it works.
7656  if test "$pipe_works" = yes; then
7657    break
7658  else
7659    lt_cv_sys_global_symbol_pipe=
7660  fi
7661done
7662
7663fi
7664
7665if test -z "$lt_cv_sys_global_symbol_pipe"; then
7666  lt_cv_sys_global_symbol_to_cdecl=
7667fi
7668if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7669  { $as_echo "$as_me:$LINENO: result: failed" >&5
7670$as_echo "failed" >&6; }
7671else
7672  { $as_echo "$as_me:$LINENO: result: ok" >&5
7673$as_echo "ok" >&6; }
7674fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697# Check whether --enable-libtool-lock was given.
7698if test "${enable_libtool_lock+set}" = set; then
7699  enableval=$enable_libtool_lock;
7700fi
7701
7702test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7703
7704# Some flags need to be propagated to the compiler or linker for good
7705# libtool support.
7706case $host in
7707ia64-*-hpux*)
7708  # Find out which ABI we are using.
7709  echo 'int i;' > conftest.$ac_ext
7710  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711  (eval $ac_compile) 2>&5
7712  ac_status=$?
7713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714  (exit $ac_status); }; then
7715    case `/usr/bin/file conftest.$ac_objext` in
7716      *ELF-32*)
7717	HPUX_IA64_MODE="32"
7718	;;
7719      *ELF-64*)
7720	HPUX_IA64_MODE="64"
7721	;;
7722    esac
7723  fi
7724  rm -rf conftest*
7725  ;;
7726*-*-irix6*)
7727  # Find out which ABI we are using.
7728  echo '#line 7728 "configure"' > conftest.$ac_ext
7729  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730  (eval $ac_compile) 2>&5
7731  ac_status=$?
7732  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); }; then
7734    if test "$lt_cv_prog_gnu_ld" = yes; then
7735      case `/usr/bin/file conftest.$ac_objext` in
7736	*32-bit*)
7737	  LD="${LD-ld} -melf32bsmip"
7738	  ;;
7739	*N32*)
7740	  LD="${LD-ld} -melf32bmipn32"
7741	  ;;
7742	*64-bit*)
7743	  LD="${LD-ld} -melf64bmip"
7744	;;
7745      esac
7746    else
7747      case `/usr/bin/file conftest.$ac_objext` in
7748	*32-bit*)
7749	  LD="${LD-ld} -32"
7750	  ;;
7751	*N32*)
7752	  LD="${LD-ld} -n32"
7753	  ;;
7754	*64-bit*)
7755	  LD="${LD-ld} -64"
7756	  ;;
7757      esac
7758    fi
7759  fi
7760  rm -rf conftest*
7761  ;;
7762
7763x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7764s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7765  # Find out which ABI we are using.
7766  echo 'int i;' > conftest.$ac_ext
7767  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768  (eval $ac_compile) 2>&5
7769  ac_status=$?
7770  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771  (exit $ac_status); }; then
7772    case `/usr/bin/file conftest.o` in
7773      *32-bit*)
7774	case $host in
7775	  x86_64-*kfreebsd*-gnu)
7776	    LD="${LD-ld} -m elf_i386_fbsd"
7777	    ;;
7778	  x86_64-*linux*)
7779	    LD="${LD-ld} -m elf_i386"
7780	    ;;
7781	  ppc64-*linux*|powerpc64-*linux*)
7782	    LD="${LD-ld} -m elf32ppclinux"
7783	    ;;
7784	  s390x-*linux*)
7785	    LD="${LD-ld} -m elf_s390"
7786	    ;;
7787	  sparc64-*linux*)
7788	    LD="${LD-ld} -m elf32_sparc"
7789	    ;;
7790	esac
7791	;;
7792      *64-bit*)
7793	case $host in
7794	  x86_64-*kfreebsd*-gnu)
7795	    LD="${LD-ld} -m elf_x86_64_fbsd"
7796	    ;;
7797	  x86_64-*linux*)
7798	    LD="${LD-ld} -m elf_x86_64"
7799	    ;;
7800	  ppc*-*linux*|powerpc*-*linux*)
7801	    LD="${LD-ld} -m elf64ppc"
7802	    ;;
7803	  s390*-*linux*|s390*-*tpf*)
7804	    LD="${LD-ld} -m elf64_s390"
7805	    ;;
7806	  sparc*-*linux*)
7807	    LD="${LD-ld} -m elf64_sparc"
7808	    ;;
7809	esac
7810	;;
7811    esac
7812  fi
7813  rm -rf conftest*
7814  ;;
7815
7816*-*-sco3.2v5*)
7817  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7818  SAVE_CFLAGS="$CFLAGS"
7819  CFLAGS="$CFLAGS -belf"
7820  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7821$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7822if test "${lt_cv_cc_needs_belf+set}" = set; then
7823  $as_echo_n "(cached) " >&6
7824else
7825  ac_ext=c
7826ac_cpp='$CPP $CPPFLAGS'
7827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830
7831     cat >conftest.$ac_ext <<_ACEOF
7832/* confdefs.h.  */
7833_ACEOF
7834cat confdefs.h >>conftest.$ac_ext
7835cat >>conftest.$ac_ext <<_ACEOF
7836/* end confdefs.h.  */
7837
7838int
7839main ()
7840{
7841
7842  ;
7843  return 0;
7844}
7845_ACEOF
7846rm -f conftest.$ac_objext conftest$ac_exeext
7847if { (ac_try="$ac_link"
7848case "(($ac_try" in
7849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850  *) ac_try_echo=$ac_try;;
7851esac
7852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853$as_echo "$ac_try_echo") >&5
7854  (eval "$ac_link") 2>conftest.er1
7855  ac_status=$?
7856  grep -v '^ *+' conftest.er1 >conftest.err
7857  rm -f conftest.er1
7858  cat conftest.err >&5
7859  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860  (exit $ac_status); } && {
7861	 test -z "$ac_c_werror_flag" ||
7862	 test ! -s conftest.err
7863       } && test -s conftest$ac_exeext && {
7864	 test "$cross_compiling" = yes ||
7865	 $as_test_x conftest$ac_exeext
7866       }; then
7867  lt_cv_cc_needs_belf=yes
7868else
7869  $as_echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872	lt_cv_cc_needs_belf=no
7873fi
7874
7875rm -rf conftest.dSYM
7876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7877      conftest$ac_exeext conftest.$ac_ext
7878     ac_ext=c
7879ac_cpp='$CPP $CPPFLAGS'
7880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883
7884fi
7885{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7886$as_echo "$lt_cv_cc_needs_belf" >&6; }
7887  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7888    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7889    CFLAGS="$SAVE_CFLAGS"
7890  fi
7891  ;;
7892sparc*-*solaris*)
7893  # Find out which ABI we are using.
7894  echo 'int i;' > conftest.$ac_ext
7895  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7896  (eval $ac_compile) 2>&5
7897  ac_status=$?
7898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899  (exit $ac_status); }; then
7900    case `/usr/bin/file conftest.o` in
7901    *64-bit*)
7902      case $lt_cv_prog_gnu_ld in
7903      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7904      *)
7905	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7906	  LD="${LD-ld} -64"
7907	fi
7908	;;
7909      esac
7910      ;;
7911    esac
7912  fi
7913  rm -rf conftest*
7914  ;;
7915esac
7916
7917need_locks="$enable_libtool_lock"
7918
7919
7920  case $host_os in
7921    rhapsody* | darwin*)
7922    if test -n "$ac_tool_prefix"; then
7923  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7924set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7925{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
7927if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7928  $as_echo_n "(cached) " >&6
7929else
7930  if test -n "$DSYMUTIL"; then
7931  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936  IFS=$as_save_IFS
7937  test -z "$as_dir" && as_dir=.
7938  for ac_exec_ext in '' $ac_executable_extensions; do
7939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7941    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942    break 2
7943  fi
7944done
7945done
7946IFS=$as_save_IFS
7947
7948fi
7949fi
7950DSYMUTIL=$ac_cv_prog_DSYMUTIL
7951if test -n "$DSYMUTIL"; then
7952  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7953$as_echo "$DSYMUTIL" >&6; }
7954else
7955  { $as_echo "$as_me:$LINENO: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958
7959
7960fi
7961if test -z "$ac_cv_prog_DSYMUTIL"; then
7962  ac_ct_DSYMUTIL=$DSYMUTIL
7963  # Extract the first word of "dsymutil", so it can be a program name with args.
7964set dummy dsymutil; ac_word=$2
7965{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7966$as_echo_n "checking for $ac_word... " >&6; }
7967if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7968  $as_echo_n "(cached) " >&6
7969else
7970  if test -n "$ac_ct_DSYMUTIL"; then
7971  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7972else
7973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976  IFS=$as_save_IFS
7977  test -z "$as_dir" && as_dir=.
7978  for ac_exec_ext in '' $ac_executable_extensions; do
7979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7981    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982    break 2
7983  fi
7984done
7985done
7986IFS=$as_save_IFS
7987
7988fi
7989fi
7990ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7991if test -n "$ac_ct_DSYMUTIL"; then
7992  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7993$as_echo "$ac_ct_DSYMUTIL" >&6; }
7994else
7995  { $as_echo "$as_me:$LINENO: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999  if test "x$ac_ct_DSYMUTIL" = x; then
8000    DSYMUTIL=":"
8001  else
8002    case $cross_compiling:$ac_tool_warned in
8003yes:)
8004{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006ac_tool_warned=yes ;;
8007esac
8008    DSYMUTIL=$ac_ct_DSYMUTIL
8009  fi
8010else
8011  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8012fi
8013
8014    if test -n "$ac_tool_prefix"; then
8015  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8016set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8017{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if test "${ac_cv_prog_NMEDIT+set}" = set; then
8020  $as_echo_n "(cached) " >&6
8021else
8022  if test -n "$NMEDIT"; then
8023  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  test -z "$as_dir" && as_dir=.
8030  for ac_exec_ext in '' $ac_executable_extensions; do
8031  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8033    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034    break 2
8035  fi
8036done
8037done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042NMEDIT=$ac_cv_prog_NMEDIT
8043if test -n "$NMEDIT"; then
8044  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8045$as_echo "$NMEDIT" >&6; }
8046else
8047  { $as_echo "$as_me:$LINENO: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051
8052fi
8053if test -z "$ac_cv_prog_NMEDIT"; then
8054  ac_ct_NMEDIT=$NMEDIT
8055  # Extract the first word of "nmedit", so it can be a program name with args.
8056set dummy nmedit; ac_word=$2
8057{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8058$as_echo_n "checking for $ac_word... " >&6; }
8059if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8060  $as_echo_n "(cached) " >&6
8061else
8062  if test -n "$ac_ct_NMEDIT"; then
8063  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068  IFS=$as_save_IFS
8069  test -z "$as_dir" && as_dir=.
8070  for ac_exec_ext in '' $ac_executable_extensions; do
8071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8072    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8073    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074    break 2
8075  fi
8076done
8077done
8078IFS=$as_save_IFS
8079
8080fi
8081fi
8082ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8083if test -n "$ac_ct_NMEDIT"; then
8084  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8085$as_echo "$ac_ct_NMEDIT" >&6; }
8086else
8087  { $as_echo "$as_me:$LINENO: result: no" >&5
8088$as_echo "no" >&6; }
8089fi
8090
8091  if test "x$ac_ct_NMEDIT" = x; then
8092    NMEDIT=":"
8093  else
8094    case $cross_compiling:$ac_tool_warned in
8095yes:)
8096{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098ac_tool_warned=yes ;;
8099esac
8100    NMEDIT=$ac_ct_NMEDIT
8101  fi
8102else
8103  NMEDIT="$ac_cv_prog_NMEDIT"
8104fi
8105
8106    if test -n "$ac_tool_prefix"; then
8107  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8108set dummy ${ac_tool_prefix}lipo; ac_word=$2
8109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if test "${ac_cv_prog_LIPO+set}" = set; then
8112  $as_echo_n "(cached) " >&6
8113else
8114  if test -n "$LIPO"; then
8115  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122  for ac_exec_ext in '' $ac_executable_extensions; do
8123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8125    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134LIPO=$ac_cv_prog_LIPO
8135if test -n "$LIPO"; then
8136  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8137$as_echo "$LIPO" >&6; }
8138else
8139  { $as_echo "$as_me:$LINENO: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143
8144fi
8145if test -z "$ac_cv_prog_LIPO"; then
8146  ac_ct_LIPO=$LIPO
8147  # Extract the first word of "lipo", so it can be a program name with args.
8148set dummy lipo; ac_word=$2
8149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8150$as_echo_n "checking for $ac_word... " >&6; }
8151if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8152  $as_echo_n "(cached) " >&6
8153else
8154  if test -n "$ac_ct_LIPO"; then
8155  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8156else
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160  IFS=$as_save_IFS
8161  test -z "$as_dir" && as_dir=.
8162  for ac_exec_ext in '' $ac_executable_extensions; do
8163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8164    ac_cv_prog_ac_ct_LIPO="lipo"
8165    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166    break 2
8167  fi
8168done
8169done
8170IFS=$as_save_IFS
8171
8172fi
8173fi
8174ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8175if test -n "$ac_ct_LIPO"; then
8176  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8177$as_echo "$ac_ct_LIPO" >&6; }
8178else
8179  { $as_echo "$as_me:$LINENO: result: no" >&5
8180$as_echo "no" >&6; }
8181fi
8182
8183  if test "x$ac_ct_LIPO" = x; then
8184    LIPO=":"
8185  else
8186    case $cross_compiling:$ac_tool_warned in
8187yes:)
8188{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190ac_tool_warned=yes ;;
8191esac
8192    LIPO=$ac_ct_LIPO
8193  fi
8194else
8195  LIPO="$ac_cv_prog_LIPO"
8196fi
8197
8198    if test -n "$ac_tool_prefix"; then
8199  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8200set dummy ${ac_tool_prefix}otool; ac_word=$2
8201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8202$as_echo_n "checking for $ac_word... " >&6; }
8203if test "${ac_cv_prog_OTOOL+set}" = set; then
8204  $as_echo_n "(cached) " >&6
8205else
8206  if test -n "$OTOOL"; then
8207  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8208else
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212  IFS=$as_save_IFS
8213  test -z "$as_dir" && as_dir=.
8214  for ac_exec_ext in '' $ac_executable_extensions; do
8215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8217    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218    break 2
8219  fi
8220done
8221done
8222IFS=$as_save_IFS
8223
8224fi
8225fi
8226OTOOL=$ac_cv_prog_OTOOL
8227if test -n "$OTOOL"; then
8228  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8229$as_echo "$OTOOL" >&6; }
8230else
8231  { $as_echo "$as_me:$LINENO: result: no" >&5
8232$as_echo "no" >&6; }
8233fi
8234
8235
8236fi
8237if test -z "$ac_cv_prog_OTOOL"; then
8238  ac_ct_OTOOL=$OTOOL
8239  # Extract the first word of "otool", so it can be a program name with args.
8240set dummy otool; ac_word=$2
8241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8242$as_echo_n "checking for $ac_word... " >&6; }
8243if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8244  $as_echo_n "(cached) " >&6
8245else
8246  if test -n "$ac_ct_OTOOL"; then
8247  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8248else
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252  IFS=$as_save_IFS
8253  test -z "$as_dir" && as_dir=.
8254  for ac_exec_ext in '' $ac_executable_extensions; do
8255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8256    ac_cv_prog_ac_ct_OTOOL="otool"
8257    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8258    break 2
8259  fi
8260done
8261done
8262IFS=$as_save_IFS
8263
8264fi
8265fi
8266ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8267if test -n "$ac_ct_OTOOL"; then
8268  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8269$as_echo "$ac_ct_OTOOL" >&6; }
8270else
8271  { $as_echo "$as_me:$LINENO: result: no" >&5
8272$as_echo "no" >&6; }
8273fi
8274
8275  if test "x$ac_ct_OTOOL" = x; then
8276    OTOOL=":"
8277  else
8278    case $cross_compiling:$ac_tool_warned in
8279yes:)
8280{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282ac_tool_warned=yes ;;
8283esac
8284    OTOOL=$ac_ct_OTOOL
8285  fi
8286else
8287  OTOOL="$ac_cv_prog_OTOOL"
8288fi
8289
8290    if test -n "$ac_tool_prefix"; then
8291  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8292set dummy ${ac_tool_prefix}otool64; ac_word=$2
8293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8294$as_echo_n "checking for $ac_word... " >&6; }
8295if test "${ac_cv_prog_OTOOL64+set}" = set; then
8296  $as_echo_n "(cached) " >&6
8297else
8298  if test -n "$OTOOL64"; then
8299  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8300else
8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
8303do
8304  IFS=$as_save_IFS
8305  test -z "$as_dir" && as_dir=.
8306  for ac_exec_ext in '' $ac_executable_extensions; do
8307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8309    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310    break 2
8311  fi
8312done
8313done
8314IFS=$as_save_IFS
8315
8316fi
8317fi
8318OTOOL64=$ac_cv_prog_OTOOL64
8319if test -n "$OTOOL64"; then
8320  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8321$as_echo "$OTOOL64" >&6; }
8322else
8323  { $as_echo "$as_me:$LINENO: result: no" >&5
8324$as_echo "no" >&6; }
8325fi
8326
8327
8328fi
8329if test -z "$ac_cv_prog_OTOOL64"; then
8330  ac_ct_OTOOL64=$OTOOL64
8331  # Extract the first word of "otool64", so it can be a program name with args.
8332set dummy otool64; ac_word=$2
8333{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8336  $as_echo_n "(cached) " >&6
8337else
8338  if test -n "$ac_ct_OTOOL64"; then
8339  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344  IFS=$as_save_IFS
8345  test -z "$as_dir" && as_dir=.
8346  for ac_exec_ext in '' $ac_executable_extensions; do
8347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348    ac_cv_prog_ac_ct_OTOOL64="otool64"
8349    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8350    break 2
8351  fi
8352done
8353done
8354IFS=$as_save_IFS
8355
8356fi
8357fi
8358ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8359if test -n "$ac_ct_OTOOL64"; then
8360  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8361$as_echo "$ac_ct_OTOOL64" >&6; }
8362else
8363  { $as_echo "$as_me:$LINENO: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367  if test "x$ac_ct_OTOOL64" = x; then
8368    OTOOL64=":"
8369  else
8370    case $cross_compiling:$ac_tool_warned in
8371yes:)
8372{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374ac_tool_warned=yes ;;
8375esac
8376    OTOOL64=$ac_ct_OTOOL64
8377  fi
8378else
8379  OTOOL64="$ac_cv_prog_OTOOL64"
8380fi
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8409$as_echo_n "checking for -single_module linker flag... " >&6; }
8410if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8411  $as_echo_n "(cached) " >&6
8412else
8413  lt_cv_apple_cc_single_mod=no
8414      if test -z "${LT_MULTI_MODULE}"; then
8415	# By default we will add the -single_module flag. You can override
8416	# by either setting the environment variable LT_MULTI_MODULE
8417	# non-empty at configure time, or by adding -multi_module to the
8418	# link flags.
8419	rm -rf libconftest.dylib*
8420	echo "int foo(void){return 1;}" > conftest.c
8421	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8422-dynamiclib -Wl,-single_module conftest.c" >&5
8423	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8424	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8425        _lt_result=$?
8426	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8427	  lt_cv_apple_cc_single_mod=yes
8428	else
8429	  cat conftest.err >&5
8430	fi
8431	rm -rf libconftest.dylib*
8432	rm -f conftest.*
8433      fi
8434fi
8435{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8436$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8437    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8438$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8439if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8440  $as_echo_n "(cached) " >&6
8441else
8442  lt_cv_ld_exported_symbols_list=no
8443      save_LDFLAGS=$LDFLAGS
8444      echo "_main" > conftest.sym
8445      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8446      cat >conftest.$ac_ext <<_ACEOF
8447/* confdefs.h.  */
8448_ACEOF
8449cat confdefs.h >>conftest.$ac_ext
8450cat >>conftest.$ac_ext <<_ACEOF
8451/* end confdefs.h.  */
8452
8453int
8454main ()
8455{
8456
8457  ;
8458  return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext conftest$ac_exeext
8462if { (ac_try="$ac_link"
8463case "(($ac_try" in
8464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465  *) ac_try_echo=$ac_try;;
8466esac
8467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468$as_echo "$ac_try_echo") >&5
8469  (eval "$ac_link") 2>conftest.er1
8470  ac_status=$?
8471  grep -v '^ *+' conftest.er1 >conftest.err
8472  rm -f conftest.er1
8473  cat conftest.err >&5
8474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475  (exit $ac_status); } && {
8476	 test -z "$ac_c_werror_flag" ||
8477	 test ! -s conftest.err
8478       } && test -s conftest$ac_exeext && {
8479	 test "$cross_compiling" = yes ||
8480	 $as_test_x conftest$ac_exeext
8481       }; then
8482  lt_cv_ld_exported_symbols_list=yes
8483else
8484  $as_echo "$as_me: failed program was:" >&5
8485sed 's/^/| /' conftest.$ac_ext >&5
8486
8487	lt_cv_ld_exported_symbols_list=no
8488fi
8489
8490rm -rf conftest.dSYM
8491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8492      conftest$ac_exeext conftest.$ac_ext
8493	LDFLAGS="$save_LDFLAGS"
8494
8495fi
8496{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8497$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8498    case $host_os in
8499    rhapsody* | darwin1.[012])
8500      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8501    darwin1.*)
8502      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8503    darwin*) # darwin 5.x on
8504      # if running on 10.5 or later, the deployment target defaults
8505      # to the OS version, if on x86, and 10.4, the deployment
8506      # target defaults to 10.4. Don't you love it?
8507      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8508	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8509	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8510	10.[012]*)
8511	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8512	10.*)
8513	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8514      esac
8515    ;;
8516  esac
8517    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8518      _lt_dar_single_mod='$single_module'
8519    fi
8520    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8521      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8522    else
8523      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8524    fi
8525    if test "$DSYMUTIL" != ":"; then
8526      _lt_dsymutil='~$DSYMUTIL $lib || :'
8527    else
8528      _lt_dsymutil=
8529    fi
8530    ;;
8531  esac
8532
8533
8534for ac_header in dlfcn.h
8535do
8536as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8537{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8538$as_echo_n "checking for $ac_header... " >&6; }
8539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8540  $as_echo_n "(cached) " >&6
8541else
8542  cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h.  */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h.  */
8548$ac_includes_default
8549
8550#include <$ac_header>
8551_ACEOF
8552rm -f conftest.$ac_objext
8553if { (ac_try="$ac_compile"
8554case "(($ac_try" in
8555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556  *) ac_try_echo=$ac_try;;
8557esac
8558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8559$as_echo "$ac_try_echo") >&5
8560  (eval "$ac_compile") 2>conftest.er1
8561  ac_status=$?
8562  grep -v '^ *+' conftest.er1 >conftest.err
8563  rm -f conftest.er1
8564  cat conftest.err >&5
8565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); } && {
8567	 test -z "$ac_c_werror_flag" ||
8568	 test ! -s conftest.err
8569       } && test -s conftest.$ac_objext; then
8570  eval "$as_ac_Header=yes"
8571else
8572  $as_echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575	eval "$as_ac_Header=no"
8576fi
8577
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579fi
8580ac_res=`eval 'as_val=${'$as_ac_Header'}
8581		 $as_echo "$as_val"'`
8582	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8583$as_echo "$ac_res" >&6; }
8584as_val=`eval 'as_val=${'$as_ac_Header'}
8585		 $as_echo "$as_val"'`
8586   if test "x$as_val" = x""yes; then
8587  cat >>confdefs.h <<_ACEOF
8588#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8589_ACEOF
8590
8591fi
8592
8593done
8594
8595
8596
8597# Set options
8598
8599
8600
8601        enable_dlopen=no
8602
8603
8604  enable_win32_dll=no
8605
8606
8607            # Check whether --enable-shared was given.
8608if test "${enable_shared+set}" = set; then
8609  enableval=$enable_shared; p=${PACKAGE-default}
8610    case $enableval in
8611    yes) enable_shared=yes ;;
8612    no) enable_shared=no ;;
8613    *)
8614      enable_shared=no
8615      # Look at the argument we got.  We use all the common list separators.
8616      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8617      for pkg in $enableval; do
8618	IFS="$lt_save_ifs"
8619	if test "X$pkg" = "X$p"; then
8620	  enable_shared=yes
8621	fi
8622      done
8623      IFS="$lt_save_ifs"
8624      ;;
8625    esac
8626else
8627  enable_shared=yes
8628fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638  # Check whether --enable-static was given.
8639if test "${enable_static+set}" = set; then
8640  enableval=$enable_static; p=${PACKAGE-default}
8641    case $enableval in
8642    yes) enable_static=yes ;;
8643    no) enable_static=no ;;
8644    *)
8645     enable_static=no
8646      # Look at the argument we got.  We use all the common list separators.
8647      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648      for pkg in $enableval; do
8649	IFS="$lt_save_ifs"
8650	if test "X$pkg" = "X$p"; then
8651	  enable_static=yes
8652	fi
8653      done
8654      IFS="$lt_save_ifs"
8655      ;;
8656    esac
8657else
8658  enable_static=yes
8659fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670# Check whether --with-pic was given.
8671if test "${with_pic+set}" = set; then
8672  withval=$with_pic; pic_mode="$withval"
8673else
8674  pic_mode=default
8675fi
8676
8677
8678test -z "$pic_mode" && pic_mode=default
8679
8680
8681
8682
8683
8684
8685
8686  # Check whether --enable-fast-install was given.
8687if test "${enable_fast_install+set}" = set; then
8688  enableval=$enable_fast_install; p=${PACKAGE-default}
8689    case $enableval in
8690    yes) enable_fast_install=yes ;;
8691    no) enable_fast_install=no ;;
8692    *)
8693      enable_fast_install=no
8694      # Look at the argument we got.  We use all the common list separators.
8695      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8696      for pkg in $enableval; do
8697	IFS="$lt_save_ifs"
8698	if test "X$pkg" = "X$p"; then
8699	  enable_fast_install=yes
8700	fi
8701      done
8702      IFS="$lt_save_ifs"
8703      ;;
8704    esac
8705else
8706  enable_fast_install=yes
8707fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719# This can be used to rebuild libtool when needed
8720LIBTOOL_DEPS="$ltmain"
8721
8722# Always use our own libtool.
8723LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749test -z "$LN_S" && LN_S="ln -s"
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764if test -n "${ZSH_VERSION+set}" ; then
8765   setopt NO_GLOB_SUBST
8766fi
8767
8768{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8769$as_echo_n "checking for objdir... " >&6; }
8770if test "${lt_cv_objdir+set}" = set; then
8771  $as_echo_n "(cached) " >&6
8772else
8773  rm -f .libs 2>/dev/null
8774mkdir .libs 2>/dev/null
8775if test -d .libs; then
8776  lt_cv_objdir=.libs
8777else
8778  # MS-DOS does not allow filenames that begin with a dot.
8779  lt_cv_objdir=_libs
8780fi
8781rmdir .libs 2>/dev/null
8782fi
8783{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8784$as_echo "$lt_cv_objdir" >&6; }
8785objdir=$lt_cv_objdir
8786
8787
8788
8789
8790
8791cat >>confdefs.h <<_ACEOF
8792#define LT_OBJDIR "$lt_cv_objdir/"
8793_ACEOF
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811case $host_os in
8812aix3*)
8813  # AIX sometimes has problems with the GCC collect2 program.  For some
8814  # reason, if we set the COLLECT_NAMES environment variable, the problems
8815  # vanish in a puff of smoke.
8816  if test "X${COLLECT_NAMES+set}" != Xset; then
8817    COLLECT_NAMES=
8818    export COLLECT_NAMES
8819  fi
8820  ;;
8821esac
8822
8823# Sed substitution that helps us do robust quoting.  It backslashifies
8824# metacharacters that are still active within double-quoted strings.
8825sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8826
8827# Same as above, but do not quote variable references.
8828double_quote_subst='s/\(["`\\]\)/\\\1/g'
8829
8830# Sed substitution to delay expansion of an escaped shell variable in a
8831# double_quote_subst'ed string.
8832delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8833
8834# Sed substitution to delay expansion of an escaped single quote.
8835delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8836
8837# Sed substitution to avoid accidental globbing in evaled expressions
8838no_glob_subst='s/\*/\\\*/g'
8839
8840# Global variables:
8841ofile=libtool
8842can_build_shared=yes
8843
8844# All known linkers require a `.a' archive for static linking (except MSVC,
8845# which needs '.lib').
8846libext=a
8847
8848with_gnu_ld="$lt_cv_prog_gnu_ld"
8849
8850old_CC="$CC"
8851old_CFLAGS="$CFLAGS"
8852
8853# Set sane defaults for various variables
8854test -z "$CC" && CC=cc
8855test -z "$LTCC" && LTCC=$CC
8856test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8857test -z "$LD" && LD=ld
8858test -z "$ac_objext" && ac_objext=o
8859
8860for cc_temp in $compiler""; do
8861  case $cc_temp in
8862    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8863    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8864    \-*) ;;
8865    *) break;;
8866  esac
8867done
8868cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8869
8870
8871# Only perform the check for file, if the check method requires it
8872test -z "$MAGIC_CMD" && MAGIC_CMD=file
8873case $deplibs_check_method in
8874file_magic*)
8875  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8876    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8877$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8878if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8879  $as_echo_n "(cached) " >&6
8880else
8881  case $MAGIC_CMD in
8882[\\/*] |  ?:[\\/]*)
8883  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8884  ;;
8885*)
8886  lt_save_MAGIC_CMD="$MAGIC_CMD"
8887  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8888  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8889  for ac_dir in $ac_dummy; do
8890    IFS="$lt_save_ifs"
8891    test -z "$ac_dir" && ac_dir=.
8892    if test -f $ac_dir/${ac_tool_prefix}file; then
8893      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8894      if test -n "$file_magic_test_file"; then
8895	case $deplibs_check_method in
8896	"file_magic "*)
8897	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8898	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8899	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8900	    $EGREP "$file_magic_regex" > /dev/null; then
8901	    :
8902	  else
8903	    cat <<_LT_EOF 1>&2
8904
8905*** Warning: the command libtool uses to detect shared libraries,
8906*** $file_magic_cmd, produces output that libtool cannot recognize.
8907*** The result is that libtool may fail to recognize shared libraries
8908*** as such.  This will affect the creation of libtool libraries that
8909*** depend on shared libraries, but programs linked with such libtool
8910*** libraries will work regardless of this problem.  Nevertheless, you
8911*** may want to report the problem to your system manager and/or to
8912*** bug-libtool@gnu.org
8913
8914_LT_EOF
8915	  fi ;;
8916	esac
8917      fi
8918      break
8919    fi
8920  done
8921  IFS="$lt_save_ifs"
8922  MAGIC_CMD="$lt_save_MAGIC_CMD"
8923  ;;
8924esac
8925fi
8926
8927MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8928if test -n "$MAGIC_CMD"; then
8929  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8930$as_echo "$MAGIC_CMD" >&6; }
8931else
8932  { $as_echo "$as_me:$LINENO: result: no" >&5
8933$as_echo "no" >&6; }
8934fi
8935
8936
8937
8938
8939
8940if test -z "$lt_cv_path_MAGIC_CMD"; then
8941  if test -n "$ac_tool_prefix"; then
8942    { $as_echo "$as_me:$LINENO: checking for file" >&5
8943$as_echo_n "checking for file... " >&6; }
8944if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8945  $as_echo_n "(cached) " >&6
8946else
8947  case $MAGIC_CMD in
8948[\\/*] |  ?:[\\/]*)
8949  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8950  ;;
8951*)
8952  lt_save_MAGIC_CMD="$MAGIC_CMD"
8953  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8954  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8955  for ac_dir in $ac_dummy; do
8956    IFS="$lt_save_ifs"
8957    test -z "$ac_dir" && ac_dir=.
8958    if test -f $ac_dir/file; then
8959      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8960      if test -n "$file_magic_test_file"; then
8961	case $deplibs_check_method in
8962	"file_magic "*)
8963	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8964	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8965	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8966	    $EGREP "$file_magic_regex" > /dev/null; then
8967	    :
8968	  else
8969	    cat <<_LT_EOF 1>&2
8970
8971*** Warning: the command libtool uses to detect shared libraries,
8972*** $file_magic_cmd, produces output that libtool cannot recognize.
8973*** The result is that libtool may fail to recognize shared libraries
8974*** as such.  This will affect the creation of libtool libraries that
8975*** depend on shared libraries, but programs linked with such libtool
8976*** libraries will work regardless of this problem.  Nevertheless, you
8977*** may want to report the problem to your system manager and/or to
8978*** bug-libtool@gnu.org
8979
8980_LT_EOF
8981	  fi ;;
8982	esac
8983      fi
8984      break
8985    fi
8986  done
8987  IFS="$lt_save_ifs"
8988  MAGIC_CMD="$lt_save_MAGIC_CMD"
8989  ;;
8990esac
8991fi
8992
8993MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8994if test -n "$MAGIC_CMD"; then
8995  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8996$as_echo "$MAGIC_CMD" >&6; }
8997else
8998  { $as_echo "$as_me:$LINENO: result: no" >&5
8999$as_echo "no" >&6; }
9000fi
9001
9002
9003  else
9004    MAGIC_CMD=:
9005  fi
9006fi
9007
9008  fi
9009  ;;
9010esac
9011
9012# Use C for the default configuration in the libtool script
9013
9014lt_save_CC="$CC"
9015ac_ext=c
9016ac_cpp='$CPP $CPPFLAGS'
9017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9019ac_compiler_gnu=$ac_cv_c_compiler_gnu
9020
9021
9022# Source file extension for C test sources.
9023ac_ext=c
9024
9025# Object file extension for compiled C test sources.
9026objext=o
9027objext=$objext
9028
9029# Code to be used in simple compile tests
9030lt_simple_compile_test_code="int some_variable = 0;"
9031
9032# Code to be used in simple link tests
9033lt_simple_link_test_code='int main(){return(0);}'
9034
9035
9036
9037
9038
9039
9040
9041# If no C compiler was specified, use CC.
9042LTCC=${LTCC-"$CC"}
9043
9044# If no C compiler flags were specified, use CFLAGS.
9045LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9046
9047# Allow CC to be a program name with arguments.
9048compiler=$CC
9049
9050# Save the default compiler, since it gets overwritten when the other
9051# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9052compiler_DEFAULT=$CC
9053
9054# save warnings/boilerplate of simple test code
9055ac_outfile=conftest.$ac_objext
9056echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9057eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9058_lt_compiler_boilerplate=`cat conftest.err`
9059$RM conftest*
9060
9061ac_outfile=conftest.$ac_objext
9062echo "$lt_simple_link_test_code" >conftest.$ac_ext
9063eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9064_lt_linker_boilerplate=`cat conftest.err`
9065$RM -r conftest*
9066
9067
9068## CAVEAT EMPTOR:
9069## There is no encapsulation within the following macros, do not change
9070## the running order or otherwise move them around unless you know exactly
9071## what you are doing...
9072if test -n "$compiler"; then
9073
9074lt_prog_compiler_no_builtin_flag=
9075
9076if test "$GCC" = yes; then
9077  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9078
9079  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9080$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9081if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9082  $as_echo_n "(cached) " >&6
9083else
9084  lt_cv_prog_compiler_rtti_exceptions=no
9085   ac_outfile=conftest.$ac_objext
9086   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087   lt_compiler_flag="-fno-rtti -fno-exceptions"
9088   # Insert the option either (1) after the last *FLAGS variable, or
9089   # (2) before a word containing "conftest.", or (3) at the end.
9090   # Note that $ac_compile itself does not contain backslashes and begins
9091   # with a dollar sign (not a hyphen), so the echo should work correctly.
9092   # The option is referenced via a variable to avoid confusing sed.
9093   lt_compile=`echo "$ac_compile" | $SED \
9094   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096   -e 's:$: $lt_compiler_flag:'`
9097   (eval echo "\"\$as_me:9097: $lt_compile\"" >&5)
9098   (eval "$lt_compile" 2>conftest.err)
9099   ac_status=$?
9100   cat conftest.err >&5
9101   echo "$as_me:9101: \$? = $ac_status" >&5
9102   if (exit $ac_status) && test -s "$ac_outfile"; then
9103     # The compiler can only warn and ignore the option if not recognized
9104     # So say no if there are warnings other than the usual output.
9105     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9106     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9108       lt_cv_prog_compiler_rtti_exceptions=yes
9109     fi
9110   fi
9111   $RM conftest*
9112
9113fi
9114{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9115$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9116
9117if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9118    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9119else
9120    :
9121fi
9122
9123fi
9124
9125
9126
9127
9128
9129
9130  lt_prog_compiler_wl=
9131lt_prog_compiler_pic=
9132lt_prog_compiler_static=
9133
9134{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9135$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9136
9137  if test "$GCC" = yes; then
9138    lt_prog_compiler_wl='-Wl,'
9139    lt_prog_compiler_static='-static'
9140
9141    case $host_os in
9142      aix*)
9143      # All AIX code is PIC.
9144      if test "$host_cpu" = ia64; then
9145	# AIX 5 now supports IA64 processor
9146	lt_prog_compiler_static='-Bstatic'
9147      fi
9148      ;;
9149
9150    amigaos*)
9151      case $host_cpu in
9152      powerpc)
9153            # see comment about AmigaOS4 .so support
9154            lt_prog_compiler_pic='-fPIC'
9155        ;;
9156      m68k)
9157            # FIXME: we need at least 68020 code to build shared libraries, but
9158            # adding the `-m68020' flag to GCC prevents building anything better,
9159            # like `-m68040'.
9160            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9161        ;;
9162      esac
9163      ;;
9164
9165    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9166      # PIC is the default for these OSes.
9167      ;;
9168
9169    mingw* | cygwin* | pw32* | os2* | cegcc*)
9170      # This hack is so that the source file can tell whether it is being
9171      # built for inclusion in a dll (and should export symbols for example).
9172      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9173      # (--disable-auto-import) libraries
9174      lt_prog_compiler_pic='-DDLL_EXPORT'
9175      ;;
9176
9177    darwin* | rhapsody*)
9178      # PIC is the default on this platform
9179      # Common symbols not allowed in MH_DYLIB files
9180      lt_prog_compiler_pic='-fno-common'
9181      ;;
9182
9183    hpux*)
9184      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9185      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9186      # sets the default TLS model and affects inlining.
9187      case $host_cpu in
9188      hppa*64*)
9189	# +Z the default
9190	;;
9191      *)
9192	lt_prog_compiler_pic='-fPIC'
9193	;;
9194      esac
9195      ;;
9196
9197    interix[3-9]*)
9198      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9199      # Instead, we relocate shared libraries at runtime.
9200      ;;
9201
9202    msdosdjgpp*)
9203      # Just because we use GCC doesn't mean we suddenly get shared libraries
9204      # on systems that don't support them.
9205      lt_prog_compiler_can_build_shared=no
9206      enable_shared=no
9207      ;;
9208
9209    *nto* | *qnx*)
9210      # QNX uses GNU C++, but need to define -shared option too, otherwise
9211      # it will coredump.
9212      lt_prog_compiler_pic='-fPIC -shared'
9213      ;;
9214
9215    sysv4*MP*)
9216      if test -d /usr/nec; then
9217	lt_prog_compiler_pic=-Kconform_pic
9218      fi
9219      ;;
9220
9221    *)
9222      lt_prog_compiler_pic='-fPIC'
9223      ;;
9224    esac
9225  else
9226    # PORTME Check for flag to pass linker flags through the system compiler.
9227    case $host_os in
9228    aix*)
9229      lt_prog_compiler_wl='-Wl,'
9230      if test "$host_cpu" = ia64; then
9231	# AIX 5 now supports IA64 processor
9232	lt_prog_compiler_static='-Bstatic'
9233      else
9234	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9235      fi
9236      ;;
9237
9238    mingw* | cygwin* | pw32* | os2* | cegcc*)
9239      # This hack is so that the source file can tell whether it is being
9240      # built for inclusion in a dll (and should export symbols for example).
9241      lt_prog_compiler_pic='-DDLL_EXPORT'
9242      ;;
9243
9244    hpux9* | hpux10* | hpux11*)
9245      lt_prog_compiler_wl='-Wl,'
9246      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9247      # not for PA HP-UX.
9248      case $host_cpu in
9249      hppa*64*|ia64*)
9250	# +Z the default
9251	;;
9252      *)
9253	lt_prog_compiler_pic='+Z'
9254	;;
9255      esac
9256      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9257      lt_prog_compiler_static='${wl}-a ${wl}archive'
9258      ;;
9259
9260    irix5* | irix6* | nonstopux*)
9261      lt_prog_compiler_wl='-Wl,'
9262      # PIC (with -KPIC) is the default.
9263      lt_prog_compiler_static='-non_shared'
9264      ;;
9265
9266    linux* | k*bsd*-gnu)
9267      case $cc_basename in
9268      # old Intel for x86_64 which still supported -KPIC.
9269      ecc*)
9270	lt_prog_compiler_wl='-Wl,'
9271	lt_prog_compiler_pic='-KPIC'
9272	lt_prog_compiler_static='-static'
9273        ;;
9274      # icc used to be incompatible with GCC.
9275      # ICC 10 doesn't accept -KPIC any more.
9276      icc* | ifort*)
9277	lt_prog_compiler_wl='-Wl,'
9278	lt_prog_compiler_pic='-fPIC'
9279	lt_prog_compiler_static='-static'
9280        ;;
9281      # Lahey Fortran 8.1.
9282      lf95*)
9283	lt_prog_compiler_wl='-Wl,'
9284	lt_prog_compiler_pic='--shared'
9285	lt_prog_compiler_static='--static'
9286	;;
9287      pgcc* | pgf77* | pgf90* | pgf95*)
9288        # Portland Group compilers (*not* the Pentium gcc compiler,
9289	# which looks to be a dead project)
9290	lt_prog_compiler_wl='-Wl,'
9291	lt_prog_compiler_pic='-fpic'
9292	lt_prog_compiler_static='-Bstatic'
9293        ;;
9294      ccc*)
9295        lt_prog_compiler_wl='-Wl,'
9296        # All Alpha code is PIC.
9297        lt_prog_compiler_static='-non_shared'
9298        ;;
9299      xl*)
9300	# IBM XL C 8.0/Fortran 10.1 on PPC
9301	lt_prog_compiler_wl='-Wl,'
9302	lt_prog_compiler_pic='-qpic'
9303	lt_prog_compiler_static='-qstaticlink'
9304	;;
9305      *)
9306	case `$CC -V 2>&1 | sed 5q` in
9307	*Sun\ C*)
9308	  # Sun C 5.9
9309	  lt_prog_compiler_pic='-KPIC'
9310	  lt_prog_compiler_static='-Bstatic'
9311	  lt_prog_compiler_wl='-Wl,'
9312	  ;;
9313	*Sun\ F*)
9314	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9315	  lt_prog_compiler_pic='-KPIC'
9316	  lt_prog_compiler_static='-Bstatic'
9317	  lt_prog_compiler_wl=''
9318	  ;;
9319	esac
9320	;;
9321      esac
9322      ;;
9323
9324    newsos6)
9325      lt_prog_compiler_pic='-KPIC'
9326      lt_prog_compiler_static='-Bstatic'
9327      ;;
9328
9329    *nto* | *qnx*)
9330      # QNX uses GNU C++, but need to define -shared option too, otherwise
9331      # it will coredump.
9332      lt_prog_compiler_pic='-fPIC -shared'
9333      ;;
9334
9335    osf3* | osf4* | osf5*)
9336      lt_prog_compiler_wl='-Wl,'
9337      # All OSF/1 code is PIC.
9338      lt_prog_compiler_static='-non_shared'
9339      ;;
9340
9341    rdos*)
9342      lt_prog_compiler_static='-non_shared'
9343      ;;
9344
9345    solaris*)
9346      lt_prog_compiler_pic='-KPIC'
9347      lt_prog_compiler_static='-Bstatic'
9348      case $cc_basename in
9349      f77* | f90* | f95*)
9350	lt_prog_compiler_wl='-Qoption ld ';;
9351      *)
9352	lt_prog_compiler_wl='-Wl,';;
9353      esac
9354      ;;
9355
9356    sunos4*)
9357      lt_prog_compiler_wl='-Qoption ld '
9358      lt_prog_compiler_pic='-PIC'
9359      lt_prog_compiler_static='-Bstatic'
9360      ;;
9361
9362    sysv4 | sysv4.2uw2* | sysv4.3*)
9363      lt_prog_compiler_wl='-Wl,'
9364      lt_prog_compiler_pic='-KPIC'
9365      lt_prog_compiler_static='-Bstatic'
9366      ;;
9367
9368    sysv4*MP*)
9369      if test -d /usr/nec ;then
9370	lt_prog_compiler_pic='-Kconform_pic'
9371	lt_prog_compiler_static='-Bstatic'
9372      fi
9373      ;;
9374
9375    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9376      lt_prog_compiler_wl='-Wl,'
9377      lt_prog_compiler_pic='-KPIC'
9378      lt_prog_compiler_static='-Bstatic'
9379      ;;
9380
9381    unicos*)
9382      lt_prog_compiler_wl='-Wl,'
9383      lt_prog_compiler_can_build_shared=no
9384      ;;
9385
9386    uts4*)
9387      lt_prog_compiler_pic='-pic'
9388      lt_prog_compiler_static='-Bstatic'
9389      ;;
9390
9391    *)
9392      lt_prog_compiler_can_build_shared=no
9393      ;;
9394    esac
9395  fi
9396
9397case $host_os in
9398  # For platforms which do not support PIC, -DPIC is meaningless:
9399  *djgpp*)
9400    lt_prog_compiler_pic=
9401    ;;
9402  *)
9403    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9404    ;;
9405esac
9406{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9407$as_echo "$lt_prog_compiler_pic" >&6; }
9408
9409
9410
9411
9412
9413
9414#
9415# Check to make sure the PIC flag actually works.
9416#
9417if test -n "$lt_prog_compiler_pic"; then
9418  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9419$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9420if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9421  $as_echo_n "(cached) " >&6
9422else
9423  lt_cv_prog_compiler_pic_works=no
9424   ac_outfile=conftest.$ac_objext
9425   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9427   # Insert the option either (1) after the last *FLAGS variable, or
9428   # (2) before a word containing "conftest.", or (3) at the end.
9429   # Note that $ac_compile itself does not contain backslashes and begins
9430   # with a dollar sign (not a hyphen), so the echo should work correctly.
9431   # The option is referenced via a variable to avoid confusing sed.
9432   lt_compile=`echo "$ac_compile" | $SED \
9433   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9434   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9435   -e 's:$: $lt_compiler_flag:'`
9436   (eval echo "\"\$as_me:9436: $lt_compile\"" >&5)
9437   (eval "$lt_compile" 2>conftest.err)
9438   ac_status=$?
9439   cat conftest.err >&5
9440   echo "$as_me:9440: \$? = $ac_status" >&5
9441   if (exit $ac_status) && test -s "$ac_outfile"; then
9442     # The compiler can only warn and ignore the option if not recognized
9443     # So say no if there are warnings other than the usual output.
9444     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9445     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9446     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9447       lt_cv_prog_compiler_pic_works=yes
9448     fi
9449   fi
9450   $RM conftest*
9451
9452fi
9453{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9454$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9455
9456if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9457    case $lt_prog_compiler_pic in
9458     "" | " "*) ;;
9459     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9460     esac
9461else
9462    lt_prog_compiler_pic=
9463     lt_prog_compiler_can_build_shared=no
9464fi
9465
9466fi
9467
9468
9469
9470
9471
9472
9473#
9474# Check to make sure the static flag actually works.
9475#
9476wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9477{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9478$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9479if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9480  $as_echo_n "(cached) " >&6
9481else
9482  lt_cv_prog_compiler_static_works=no
9483   save_LDFLAGS="$LDFLAGS"
9484   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9485   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9486   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9487     # The linker can only warn and ignore the option if not recognized
9488     # So say no if there are warnings
9489     if test -s conftest.err; then
9490       # Append any errors to the config.log.
9491       cat conftest.err 1>&5
9492       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9493       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9494       if diff conftest.exp conftest.er2 >/dev/null; then
9495         lt_cv_prog_compiler_static_works=yes
9496       fi
9497     else
9498       lt_cv_prog_compiler_static_works=yes
9499     fi
9500   fi
9501   $RM -r conftest*
9502   LDFLAGS="$save_LDFLAGS"
9503
9504fi
9505{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9506$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9507
9508if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9509    :
9510else
9511    lt_prog_compiler_static=
9512fi
9513
9514
9515
9516
9517
9518
9519
9520  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9521$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9522if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9523  $as_echo_n "(cached) " >&6
9524else
9525  lt_cv_prog_compiler_c_o=no
9526   $RM -r conftest 2>/dev/null
9527   mkdir conftest
9528   cd conftest
9529   mkdir out
9530   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531
9532   lt_compiler_flag="-o out/conftest2.$ac_objext"
9533   # Insert the option either (1) after the last *FLAGS variable, or
9534   # (2) before a word containing "conftest.", or (3) at the end.
9535   # Note that $ac_compile itself does not contain backslashes and begins
9536   # with a dollar sign (not a hyphen), so the echo should work correctly.
9537   lt_compile=`echo "$ac_compile" | $SED \
9538   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540   -e 's:$: $lt_compiler_flag:'`
9541   (eval echo "\"\$as_me:9541: $lt_compile\"" >&5)
9542   (eval "$lt_compile" 2>out/conftest.err)
9543   ac_status=$?
9544   cat out/conftest.err >&5
9545   echo "$as_me:9545: \$? = $ac_status" >&5
9546   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9547   then
9548     # The compiler can only warn and ignore the option if not recognized
9549     # So say no if there are warnings
9550     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9551     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9552     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9553       lt_cv_prog_compiler_c_o=yes
9554     fi
9555   fi
9556   chmod u+w . 2>&5
9557   $RM conftest*
9558   # SGI C++ compiler will create directory out/ii_files/ for
9559   # template instantiation
9560   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9561   $RM out/* && rmdir out
9562   cd ..
9563   $RM -r conftest
9564   $RM conftest*
9565
9566fi
9567{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9568$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9569
9570
9571
9572
9573
9574
9575  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9576$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9577if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9578  $as_echo_n "(cached) " >&6
9579else
9580  lt_cv_prog_compiler_c_o=no
9581   $RM -r conftest 2>/dev/null
9582   mkdir conftest
9583   cd conftest
9584   mkdir out
9585   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9586
9587   lt_compiler_flag="-o out/conftest2.$ac_objext"
9588   # Insert the option either (1) after the last *FLAGS variable, or
9589   # (2) before a word containing "conftest.", or (3) at the end.
9590   # Note that $ac_compile itself does not contain backslashes and begins
9591   # with a dollar sign (not a hyphen), so the echo should work correctly.
9592   lt_compile=`echo "$ac_compile" | $SED \
9593   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9594   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9595   -e 's:$: $lt_compiler_flag:'`
9596   (eval echo "\"\$as_me:9596: $lt_compile\"" >&5)
9597   (eval "$lt_compile" 2>out/conftest.err)
9598   ac_status=$?
9599   cat out/conftest.err >&5
9600   echo "$as_me:9600: \$? = $ac_status" >&5
9601   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9602   then
9603     # The compiler can only warn and ignore the option if not recognized
9604     # So say no if there are warnings
9605     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9606     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9607     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9608       lt_cv_prog_compiler_c_o=yes
9609     fi
9610   fi
9611   chmod u+w . 2>&5
9612   $RM conftest*
9613   # SGI C++ compiler will create directory out/ii_files/ for
9614   # template instantiation
9615   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9616   $RM out/* && rmdir out
9617   cd ..
9618   $RM -r conftest
9619   $RM conftest*
9620
9621fi
9622{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9623$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9624
9625
9626
9627
9628hard_links="nottested"
9629if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9630  # do not overwrite the value of need_locks provided by the user
9631  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9632$as_echo_n "checking if we can lock with hard links... " >&6; }
9633  hard_links=yes
9634  $RM conftest*
9635  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9636  touch conftest.a
9637  ln conftest.a conftest.b 2>&5 || hard_links=no
9638  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9639  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9640$as_echo "$hard_links" >&6; }
9641  if test "$hard_links" = no; then
9642    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9643$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9644    need_locks=warn
9645  fi
9646else
9647  need_locks=no
9648fi
9649
9650
9651
9652
9653
9654
9655  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9656$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9657
9658  runpath_var=
9659  allow_undefined_flag=
9660  always_export_symbols=no
9661  archive_cmds=
9662  archive_expsym_cmds=
9663  compiler_needs_object=no
9664  enable_shared_with_static_runtimes=no
9665  export_dynamic_flag_spec=
9666  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9667  hardcode_automatic=no
9668  hardcode_direct=no
9669  hardcode_direct_absolute=no
9670  hardcode_libdir_flag_spec=
9671  hardcode_libdir_flag_spec_ld=
9672  hardcode_libdir_separator=
9673  hardcode_minus_L=no
9674  hardcode_shlibpath_var=unsupported
9675  inherit_rpath=no
9676  link_all_deplibs=unknown
9677  module_cmds=
9678  module_expsym_cmds=
9679  old_archive_from_new_cmds=
9680  old_archive_from_expsyms_cmds=
9681  thread_safe_flag_spec=
9682  whole_archive_flag_spec=
9683  # include_expsyms should be a list of space-separated symbols to be *always*
9684  # included in the symbol list
9685  include_expsyms=
9686  # exclude_expsyms can be an extended regexp of symbols to exclude
9687  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9688  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9689  # as well as any symbol that contains `d'.
9690  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9691  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9692  # platforms (ab)use it in PIC code, but their linkers get confused if
9693  # the symbol is explicitly referenced.  Since portable code cannot
9694  # rely on this symbol name, it's probably fine to never include it in
9695  # preloaded symbol tables.
9696  # Exclude shared library initialization/finalization symbols.
9697  extract_expsyms_cmds=
9698
9699  case $host_os in
9700  cygwin* | mingw* | pw32* | cegcc*)
9701    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9702    # When not using gcc, we currently assume that we are using
9703    # Microsoft Visual C++.
9704    if test "$GCC" != yes; then
9705      with_gnu_ld=no
9706    fi
9707    ;;
9708  interix*)
9709    # we just hope/assume this is gcc and not c89 (= MSVC++)
9710    with_gnu_ld=yes
9711    ;;
9712  openbsd*)
9713    with_gnu_ld=no
9714    ;;
9715  esac
9716
9717  ld_shlibs=yes
9718  if test "$with_gnu_ld" = yes; then
9719    # If archive_cmds runs LD, not CC, wlarc should be empty
9720    wlarc='${wl}'
9721
9722    # Set some defaults for GNU ld with shared library support. These
9723    # are reset later if shared libraries are not supported. Putting them
9724    # here allows them to be overridden if necessary.
9725    runpath_var=LD_RUN_PATH
9726    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9727    export_dynamic_flag_spec='${wl}--export-dynamic'
9728    # ancient GNU ld didn't support --whole-archive et. al.
9729    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9730      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9731    else
9732      whole_archive_flag_spec=
9733    fi
9734    supports_anon_versioning=no
9735    case `$LD -v 2>&1` in
9736      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9737      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9738      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9739      *\ 2.11.*) ;; # other 2.11 versions
9740      *) supports_anon_versioning=yes ;;
9741    esac
9742
9743    # See if GNU ld supports shared libraries.
9744    case $host_os in
9745    aix[3-9]*)
9746      # On AIX/PPC, the GNU linker is very broken
9747      if test "$host_cpu" != ia64; then
9748	ld_shlibs=no
9749	cat <<_LT_EOF 1>&2
9750
9751*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9752*** to be unable to reliably create shared libraries on AIX.
9753*** Therefore, libtool is disabling shared libraries support.  If you
9754*** really care for shared libraries, you may want to modify your PATH
9755*** so that a non-GNU linker is found, and then restart.
9756
9757_LT_EOF
9758      fi
9759      ;;
9760
9761    amigaos*)
9762      case $host_cpu in
9763      powerpc)
9764            # see comment about AmigaOS4 .so support
9765            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766            archive_expsym_cmds=''
9767        ;;
9768      m68k)
9769            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)'
9770            hardcode_libdir_flag_spec='-L$libdir'
9771            hardcode_minus_L=yes
9772        ;;
9773      esac
9774      ;;
9775
9776    beos*)
9777      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9778	allow_undefined_flag=unsupported
9779	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9780	# support --undefined.  This deserves some investigation.  FIXME
9781	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782      else
9783	ld_shlibs=no
9784      fi
9785      ;;
9786
9787    cygwin* | mingw* | pw32* | cegcc*)
9788      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9789      # as there is no search path for DLLs.
9790      hardcode_libdir_flag_spec='-L$libdir'
9791      allow_undefined_flag=unsupported
9792      always_export_symbols=no
9793      enable_shared_with_static_runtimes=yes
9794      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9795
9796      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9797        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9798	# If the export-symbols file already is a .def file (1st line
9799	# is EXPORTS), use it as is; otherwise, prepend...
9800	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9801	  cp $export_symbols $output_objdir/$soname.def;
9802	else
9803	  echo EXPORTS > $output_objdir/$soname.def;
9804	  cat $export_symbols >> $output_objdir/$soname.def;
9805	fi~
9806	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9807      else
9808	ld_shlibs=no
9809      fi
9810      ;;
9811
9812    interix[3-9]*)
9813      hardcode_direct=no
9814      hardcode_shlibpath_var=no
9815      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9816      export_dynamic_flag_spec='${wl}-E'
9817      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9818      # Instead, shared libraries are loaded at an image base (0x10000000 by
9819      # default) and relocated if they conflict, which is a slow very memory
9820      # consuming and fragmenting process.  To avoid this, we pick a random,
9821      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9822      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9823      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9824      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'
9825      ;;
9826
9827    gnu* | linux* | tpf* | k*bsd*-gnu)
9828      tmp_diet=no
9829      if test "$host_os" = linux-dietlibc; then
9830	case $cc_basename in
9831	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9832	esac
9833      fi
9834      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9835	 && test "$tmp_diet" = no
9836      then
9837	tmp_addflag=
9838	tmp_sharedflag='-shared'
9839	case $cc_basename,$host_cpu in
9840        pgcc*)				# Portland Group C compiler
9841	  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'
9842	  tmp_addflag=' $pic_flag'
9843	  ;;
9844	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9845	  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'
9846	  tmp_addflag=' $pic_flag -Mnomain' ;;
9847	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9848	  tmp_addflag=' -i_dynamic' ;;
9849	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9850	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9851	ifc* | ifort*)			# Intel Fortran compiler
9852	  tmp_addflag=' -nofor_main' ;;
9853	lf95*)				# Lahey Fortran 8.1
9854	  whole_archive_flag_spec=
9855	  tmp_sharedflag='--shared' ;;
9856	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9857	  tmp_sharedflag='-qmkshrobj'
9858	  tmp_addflag= ;;
9859	esac
9860	case `$CC -V 2>&1 | sed 5q` in
9861	*Sun\ C*)			# Sun C 5.9
9862	  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'
9863	  compiler_needs_object=yes
9864	  tmp_sharedflag='-G' ;;
9865	*Sun\ F*)			# Sun Fortran 8.3
9866	  tmp_sharedflag='-G' ;;
9867	esac
9868	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9869
9870        if test "x$supports_anon_versioning" = xyes; then
9871          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9872	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9873	    echo "local: *; };" >> $output_objdir/$libname.ver~
9874	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9875        fi
9876
9877	case $cc_basename in
9878	xlf*)
9879	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9880	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9881	  hardcode_libdir_flag_spec=
9882	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9883	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9884	  if test "x$supports_anon_versioning" = xyes; then
9885	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9886	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9887	      echo "local: *; };" >> $output_objdir/$libname.ver~
9888	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9889	  fi
9890	  ;;
9891	esac
9892      else
9893        ld_shlibs=no
9894      fi
9895      ;;
9896
9897    netbsd*)
9898      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9899	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9900	wlarc=
9901      else
9902	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9904      fi
9905      ;;
9906
9907    solaris*)
9908      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9909	ld_shlibs=no
9910	cat <<_LT_EOF 1>&2
9911
9912*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9913*** create shared libraries on Solaris systems.  Therefore, libtool
9914*** is disabling shared libraries support.  We urge you to upgrade GNU
9915*** binutils to release 2.9.1 or newer.  Another option is to modify
9916*** your PATH or compiler configuration so that the native linker is
9917*** used, and then restart.
9918
9919_LT_EOF
9920      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9921	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9923      else
9924	ld_shlibs=no
9925      fi
9926      ;;
9927
9928    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9929      case `$LD -v 2>&1` in
9930        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9931	ld_shlibs=no
9932	cat <<_LT_EOF 1>&2
9933
9934*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9935*** reliably create shared libraries on SCO systems.  Therefore, libtool
9936*** is disabling shared libraries support.  We urge you to upgrade GNU
9937*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9938*** your PATH or compiler configuration so that the native linker is
9939*** used, and then restart.
9940
9941_LT_EOF
9942	;;
9943	*)
9944	  # For security reasons, it is highly recommended that you always
9945	  # use absolute paths for naming shared libraries, and exclude the
9946	  # DT_RUNPATH tag from executables and libraries.  But doing so
9947	  # requires that you compile everything twice, which is a pain.
9948	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9949	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9952	  else
9953	    ld_shlibs=no
9954	  fi
9955	;;
9956      esac
9957      ;;
9958
9959    sunos4*)
9960      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9961      wlarc=
9962      hardcode_direct=yes
9963      hardcode_shlibpath_var=no
9964      ;;
9965
9966    *)
9967      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9969	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9970      else
9971	ld_shlibs=no
9972      fi
9973      ;;
9974    esac
9975
9976    if test "$ld_shlibs" = no; then
9977      runpath_var=
9978      hardcode_libdir_flag_spec=
9979      export_dynamic_flag_spec=
9980      whole_archive_flag_spec=
9981    fi
9982  else
9983    # PORTME fill in a description of your system's linker (not GNU ld)
9984    case $host_os in
9985    aix3*)
9986      allow_undefined_flag=unsupported
9987      always_export_symbols=yes
9988      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'
9989      # Note: this linker hardcodes the directories in LIBPATH if there
9990      # are no directories specified by -L.
9991      hardcode_minus_L=yes
9992      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9993	# Neither direct hardcoding nor static linking is supported with a
9994	# broken collect2.
9995	hardcode_direct=unsupported
9996      fi
9997      ;;
9998
9999    aix[4-9]*)
10000      if test "$host_cpu" = ia64; then
10001	# On IA64, the linker does run time linking by default, so we don't
10002	# have to do anything special.
10003	aix_use_runtimelinking=no
10004	exp_sym_flag='-Bexport'
10005	no_entry_flag=""
10006      else
10007	# If we're using GNU nm, then we don't want the "-C" option.
10008	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10009	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10010	  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'
10011	else
10012	  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'
10013	fi
10014	aix_use_runtimelinking=no
10015
10016	# Test if we are trying to use run time linking or normal
10017	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10018	# need to do runtime linking.
10019	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10020	  for ld_flag in $LDFLAGS; do
10021	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10022	    aix_use_runtimelinking=yes
10023	    break
10024	  fi
10025	  done
10026	  ;;
10027	esac
10028
10029	exp_sym_flag='-bexport'
10030	no_entry_flag='-bnoentry'
10031      fi
10032
10033      # When large executables or shared objects are built, AIX ld can
10034      # have problems creating the table of contents.  If linking a library
10035      # or program results in "error TOC overflow" add -mminimal-toc to
10036      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10037      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10038
10039      archive_cmds=''
10040      hardcode_direct=yes
10041      hardcode_direct_absolute=yes
10042      hardcode_libdir_separator=':'
10043      link_all_deplibs=yes
10044      file_list_spec='${wl}-f,'
10045
10046      if test "$GCC" = yes; then
10047	case $host_os in aix4.[012]|aix4.[012].*)
10048	# We only want to do this on AIX 4.2 and lower, the check
10049	# below for broken collect2 doesn't work under 4.3+
10050	  collect2name=`${CC} -print-prog-name=collect2`
10051	  if test -f "$collect2name" &&
10052	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10053	  then
10054	  # We have reworked collect2
10055	  :
10056	  else
10057	  # We have old collect2
10058	  hardcode_direct=unsupported
10059	  # It fails to find uninstalled libraries when the uninstalled
10060	  # path is not listed in the libpath.  Setting hardcode_minus_L
10061	  # to unsupported forces relinking
10062	  hardcode_minus_L=yes
10063	  hardcode_libdir_flag_spec='-L$libdir'
10064	  hardcode_libdir_separator=
10065	  fi
10066	  ;;
10067	esac
10068	shared_flag='-shared'
10069	if test "$aix_use_runtimelinking" = yes; then
10070	  shared_flag="$shared_flag "'${wl}-G'
10071	fi
10072      else
10073	# not using gcc
10074	if test "$host_cpu" = ia64; then
10075	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10076	# chokes on -Wl,-G. The following line is correct:
10077	  shared_flag='-G'
10078	else
10079	  if test "$aix_use_runtimelinking" = yes; then
10080	    shared_flag='${wl}-G'
10081	  else
10082	    shared_flag='${wl}-bM:SRE'
10083	  fi
10084	fi
10085      fi
10086
10087      export_dynamic_flag_spec='${wl}-bexpall'
10088      # It seems that -bexpall does not export symbols beginning with
10089      # underscore (_), so it is better to generate a list of symbols to export.
10090      always_export_symbols=yes
10091      if test "$aix_use_runtimelinking" = yes; then
10092	# Warning - without using the other runtime loading flags (-brtl),
10093	# -berok will link without error, but may produce a broken library.
10094	allow_undefined_flag='-berok'
10095        # Determine the default libpath from the value encoded in an
10096        # empty executable.
10097        cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h.  */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h.  */
10103
10104int
10105main ()
10106{
10107
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext conftest$ac_exeext
10113if { (ac_try="$ac_link"
10114case "(($ac_try" in
10115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116  *) ac_try_echo=$ac_try;;
10117esac
10118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10119$as_echo "$ac_try_echo") >&5
10120  (eval "$ac_link") 2>conftest.er1
10121  ac_status=$?
10122  grep -v '^ *+' conftest.er1 >conftest.err
10123  rm -f conftest.er1
10124  cat conftest.err >&5
10125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126  (exit $ac_status); } && {
10127	 test -z "$ac_c_werror_flag" ||
10128	 test ! -s conftest.err
10129       } && test -s conftest$ac_exeext && {
10130	 test "$cross_compiling" = yes ||
10131	 $as_test_x conftest$ac_exeext
10132       }; then
10133
10134lt_aix_libpath_sed='
10135    /Import File Strings/,/^$/ {
10136	/^0/ {
10137	    s/^0  *\(.*\)$/\1/
10138	    p
10139	}
10140    }'
10141aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10142# Check for a 64-bit object if we didn't find anything.
10143if test -z "$aix_libpath"; then
10144  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10145fi
10146else
10147  $as_echo "$as_me: failed program was:" >&5
10148sed 's/^/| /' conftest.$ac_ext >&5
10149
10150
10151fi
10152
10153rm -rf conftest.dSYM
10154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10155      conftest$ac_exeext conftest.$ac_ext
10156if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10157
10158        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10159        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"
10160      else
10161	if test "$host_cpu" = ia64; then
10162	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10163	  allow_undefined_flag="-z nodefs"
10164	  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"
10165	else
10166	 # Determine the default libpath from the value encoded in an
10167	 # empty executable.
10168	 cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h.  */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h.  */
10174
10175int
10176main ()
10177{
10178
10179  ;
10180  return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext conftest$ac_exeext
10184if { (ac_try="$ac_link"
10185case "(($ac_try" in
10186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187  *) ac_try_echo=$ac_try;;
10188esac
10189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10190$as_echo "$ac_try_echo") >&5
10191  (eval "$ac_link") 2>conftest.er1
10192  ac_status=$?
10193  grep -v '^ *+' conftest.er1 >conftest.err
10194  rm -f conftest.er1
10195  cat conftest.err >&5
10196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197  (exit $ac_status); } && {
10198	 test -z "$ac_c_werror_flag" ||
10199	 test ! -s conftest.err
10200       } && test -s conftest$ac_exeext && {
10201	 test "$cross_compiling" = yes ||
10202	 $as_test_x conftest$ac_exeext
10203       }; then
10204
10205lt_aix_libpath_sed='
10206    /Import File Strings/,/^$/ {
10207	/^0/ {
10208	    s/^0  *\(.*\)$/\1/
10209	    p
10210	}
10211    }'
10212aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10213# Check for a 64-bit object if we didn't find anything.
10214if test -z "$aix_libpath"; then
10215  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10216fi
10217else
10218  $as_echo "$as_me: failed program was:" >&5
10219sed 's/^/| /' conftest.$ac_ext >&5
10220
10221
10222fi
10223
10224rm -rf conftest.dSYM
10225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226      conftest$ac_exeext conftest.$ac_ext
10227if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10228
10229	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10230	  # Warning - without using the other run time loading flags,
10231	  # -berok will link without error, but may produce a broken library.
10232	  no_undefined_flag=' ${wl}-bernotok'
10233	  allow_undefined_flag=' ${wl}-berok'
10234	  # Exported symbols can be pulled into shared objects from archives
10235	  whole_archive_flag_spec='$convenience'
10236	  archive_cmds_need_lc=yes
10237	  # This is similar to how AIX traditionally builds its shared libraries.
10238	  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'
10239	fi
10240      fi
10241      ;;
10242
10243    amigaos*)
10244      case $host_cpu in
10245      powerpc)
10246            # see comment about AmigaOS4 .so support
10247            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248            archive_expsym_cmds=''
10249        ;;
10250      m68k)
10251            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)'
10252            hardcode_libdir_flag_spec='-L$libdir'
10253            hardcode_minus_L=yes
10254        ;;
10255      esac
10256      ;;
10257
10258    bsdi[45]*)
10259      export_dynamic_flag_spec=-rdynamic
10260      ;;
10261
10262    cygwin* | mingw* | pw32* | cegcc*)
10263      # When not using gcc, we currently assume that we are using
10264      # Microsoft Visual C++.
10265      # hardcode_libdir_flag_spec is actually meaningless, as there is
10266      # no search path for DLLs.
10267      hardcode_libdir_flag_spec=' '
10268      allow_undefined_flag=unsupported
10269      # Tell ltmain to make .lib files, not .a files.
10270      libext=lib
10271      # Tell ltmain to make .dll files, not .so files.
10272      shrext_cmds=".dll"
10273      # FIXME: Setting linknames here is a bad hack.
10274      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10275      # The linker will automatically build a .lib file if we build a DLL.
10276      old_archive_from_new_cmds='true'
10277      # FIXME: Should let the user specify the lib program.
10278      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10279      fix_srcfile_path='`cygpath -w "$srcfile"`'
10280      enable_shared_with_static_runtimes=yes
10281      ;;
10282
10283    darwin* | rhapsody*)
10284
10285
10286  archive_cmds_need_lc=no
10287  hardcode_direct=no
10288  hardcode_automatic=yes
10289  hardcode_shlibpath_var=unsupported
10290  whole_archive_flag_spec=''
10291  link_all_deplibs=yes
10292  allow_undefined_flag="$_lt_dar_allow_undefined"
10293  case $cc_basename in
10294     ifort*) _lt_dar_can_shared=yes ;;
10295     *) _lt_dar_can_shared=$GCC ;;
10296  esac
10297  if test "$_lt_dar_can_shared" = "yes"; then
10298    output_verbose_link_cmd=echo
10299    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10300    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10301    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}"
10302    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}"
10303
10304  else
10305  ld_shlibs=no
10306  fi
10307
10308      ;;
10309
10310    dgux*)
10311      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312      hardcode_libdir_flag_spec='-L$libdir'
10313      hardcode_shlibpath_var=no
10314      ;;
10315
10316    freebsd1*)
10317      ld_shlibs=no
10318      ;;
10319
10320    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10321    # support.  Future versions do this automatically, but an explicit c++rt0.o
10322    # does not break anything, and helps significantly (at the cost of a little
10323    # extra space).
10324    freebsd2.2*)
10325      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10326      hardcode_libdir_flag_spec='-R$libdir'
10327      hardcode_direct=yes
10328      hardcode_shlibpath_var=no
10329      ;;
10330
10331    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10332    freebsd2*)
10333      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10334      hardcode_direct=yes
10335      hardcode_minus_L=yes
10336      hardcode_shlibpath_var=no
10337      ;;
10338
10339    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10340    freebsd* | dragonfly*)
10341      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10342      hardcode_libdir_flag_spec='-R$libdir'
10343      hardcode_direct=yes
10344      hardcode_shlibpath_var=no
10345      ;;
10346
10347    hpux9*)
10348      if test "$GCC" = yes; then
10349	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'
10350      else
10351	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'
10352      fi
10353      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10354      hardcode_libdir_separator=:
10355      hardcode_direct=yes
10356
10357      # hardcode_minus_L: Not really in the search PATH,
10358      # but as the default location of the library.
10359      hardcode_minus_L=yes
10360      export_dynamic_flag_spec='${wl}-E'
10361      ;;
10362
10363    hpux10*)
10364      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10365	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10366      else
10367	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10368      fi
10369      if test "$with_gnu_ld" = no; then
10370	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10371	hardcode_libdir_flag_spec_ld='+b $libdir'
10372	hardcode_libdir_separator=:
10373	hardcode_direct=yes
10374	hardcode_direct_absolute=yes
10375	export_dynamic_flag_spec='${wl}-E'
10376	# hardcode_minus_L: Not really in the search PATH,
10377	# but as the default location of the library.
10378	hardcode_minus_L=yes
10379      fi
10380      ;;
10381
10382    hpux11*)
10383      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10384	case $host_cpu in
10385	hppa*64*)
10386	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10387	  ;;
10388	ia64*)
10389	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10390	  ;;
10391	*)
10392	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10393	  ;;
10394	esac
10395      else
10396	case $host_cpu in
10397	hppa*64*)
10398	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10399	  ;;
10400	ia64*)
10401	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10402	  ;;
10403	*)
10404	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10405	  ;;
10406	esac
10407      fi
10408      if test "$with_gnu_ld" = no; then
10409	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10410	hardcode_libdir_separator=:
10411
10412	case $host_cpu in
10413	hppa*64*|ia64*)
10414	  hardcode_direct=no
10415	  hardcode_shlibpath_var=no
10416	  ;;
10417	*)
10418	  hardcode_direct=yes
10419	  hardcode_direct_absolute=yes
10420	  export_dynamic_flag_spec='${wl}-E'
10421
10422	  # hardcode_minus_L: Not really in the search PATH,
10423	  # but as the default location of the library.
10424	  hardcode_minus_L=yes
10425	  ;;
10426	esac
10427      fi
10428      ;;
10429
10430    irix5* | irix6* | nonstopux*)
10431      if test "$GCC" = yes; then
10432	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'
10433	# Try to use the -exported_symbol ld option, if it does not
10434	# work, assume that -exports_file does not work either and
10435	# implicitly export all symbols.
10436        save_LDFLAGS="$LDFLAGS"
10437        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10438        cat >conftest.$ac_ext <<_ACEOF
10439int foo(void) {}
10440_ACEOF
10441rm -f conftest.$ac_objext conftest$ac_exeext
10442if { (ac_try="$ac_link"
10443case "(($ac_try" in
10444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445  *) ac_try_echo=$ac_try;;
10446esac
10447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10448$as_echo "$ac_try_echo") >&5
10449  (eval "$ac_link") 2>conftest.er1
10450  ac_status=$?
10451  grep -v '^ *+' conftest.er1 >conftest.err
10452  rm -f conftest.er1
10453  cat conftest.err >&5
10454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); } && {
10456	 test -z "$ac_c_werror_flag" ||
10457	 test ! -s conftest.err
10458       } && test -s conftest$ac_exeext && {
10459	 test "$cross_compiling" = yes ||
10460	 $as_test_x conftest$ac_exeext
10461       }; then
10462  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'
10463
10464else
10465  $as_echo "$as_me: failed program was:" >&5
10466sed 's/^/| /' conftest.$ac_ext >&5
10467
10468
10469fi
10470
10471rm -rf conftest.dSYM
10472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10473      conftest$ac_exeext conftest.$ac_ext
10474        LDFLAGS="$save_LDFLAGS"
10475      else
10476	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'
10477	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'
10478      fi
10479      archive_cmds_need_lc='no'
10480      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481      hardcode_libdir_separator=:
10482      inherit_rpath=yes
10483      link_all_deplibs=yes
10484      ;;
10485
10486    netbsd*)
10487      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10488	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10489      else
10490	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10491      fi
10492      hardcode_libdir_flag_spec='-R$libdir'
10493      hardcode_direct=yes
10494      hardcode_shlibpath_var=no
10495      ;;
10496
10497    newsos6)
10498      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10499      hardcode_direct=yes
10500      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10501      hardcode_libdir_separator=:
10502      hardcode_shlibpath_var=no
10503      ;;
10504
10505    *nto* | *qnx*)
10506      ;;
10507
10508    openbsd*)
10509      if test -f /usr/libexec/ld.so; then
10510	hardcode_direct=yes
10511	hardcode_shlibpath_var=no
10512	hardcode_direct_absolute=yes
10513	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10514	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10515	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10516	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10517	  export_dynamic_flag_spec='${wl}-E'
10518	else
10519	  case $host_os in
10520	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10521	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10522	     hardcode_libdir_flag_spec='-R$libdir'
10523	     ;;
10524	   *)
10525	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10526	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10527	     ;;
10528	  esac
10529	fi
10530      else
10531	ld_shlibs=no
10532      fi
10533      ;;
10534
10535    os2*)
10536      hardcode_libdir_flag_spec='-L$libdir'
10537      hardcode_minus_L=yes
10538      allow_undefined_flag=unsupported
10539      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'
10540      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10541      ;;
10542
10543    osf3*)
10544      if test "$GCC" = yes; then
10545	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10546	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'
10547      else
10548	allow_undefined_flag=' -expect_unresolved \*'
10549	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'
10550      fi
10551      archive_cmds_need_lc='no'
10552      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10553      hardcode_libdir_separator=:
10554      ;;
10555
10556    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10557      if test "$GCC" = yes; then
10558	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10559	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'
10560	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10561      else
10562	allow_undefined_flag=' -expect_unresolved \*'
10563	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'
10564	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~
10565	$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'
10566
10567	# Both c and cxx compiler support -rpath directly
10568	hardcode_libdir_flag_spec='-rpath $libdir'
10569      fi
10570      archive_cmds_need_lc='no'
10571      hardcode_libdir_separator=:
10572      ;;
10573
10574    solaris*)
10575      no_undefined_flag=' -z defs'
10576      if test "$GCC" = yes; then
10577	wlarc='${wl}'
10578	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10579	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10580	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10581      else
10582	case `$CC -V 2>&1` in
10583	*"Compilers 5.0"*)
10584	  wlarc=''
10585	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10586	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10587	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10588	  ;;
10589	*)
10590	  wlarc='${wl}'
10591	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10592	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10593	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10594	  ;;
10595	esac
10596      fi
10597      hardcode_libdir_flag_spec='-R$libdir'
10598      hardcode_shlibpath_var=no
10599      case $host_os in
10600      solaris2.[0-5] | solaris2.[0-5].*) ;;
10601      *)
10602	# The compiler driver will combine and reorder linker options,
10603	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10604	# but is careful enough not to reorder.
10605	# Supported since Solaris 2.6 (maybe 2.5.1?)
10606	if test "$GCC" = yes; then
10607	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10608	else
10609	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10610	fi
10611	;;
10612      esac
10613      link_all_deplibs=yes
10614      ;;
10615
10616    sunos4*)
10617      if test "x$host_vendor" = xsequent; then
10618	# Use $CC to link under sequent, because it throws in some extra .o
10619	# files that make .init and .fini sections work.
10620	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10621      else
10622	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10623      fi
10624      hardcode_libdir_flag_spec='-L$libdir'
10625      hardcode_direct=yes
10626      hardcode_minus_L=yes
10627      hardcode_shlibpath_var=no
10628      ;;
10629
10630    sysv4)
10631      case $host_vendor in
10632	sni)
10633	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634	  hardcode_direct=yes # is this really true???
10635	;;
10636	siemens)
10637	  ## LD is ld it makes a PLAMLIB
10638	  ## CC just makes a GrossModule.
10639	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10640	  reload_cmds='$CC -r -o $output$reload_objs'
10641	  hardcode_direct=no
10642        ;;
10643	motorola)
10644	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10645	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10646	;;
10647      esac
10648      runpath_var='LD_RUN_PATH'
10649      hardcode_shlibpath_var=no
10650      ;;
10651
10652    sysv4.3*)
10653      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654      hardcode_shlibpath_var=no
10655      export_dynamic_flag_spec='-Bexport'
10656      ;;
10657
10658    sysv4*MP*)
10659      if test -d /usr/nec; then
10660	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661	hardcode_shlibpath_var=no
10662	runpath_var=LD_RUN_PATH
10663	hardcode_runpath_var=yes
10664	ld_shlibs=yes
10665      fi
10666      ;;
10667
10668    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10669      no_undefined_flag='${wl}-z,text'
10670      archive_cmds_need_lc=no
10671      hardcode_shlibpath_var=no
10672      runpath_var='LD_RUN_PATH'
10673
10674      if test "$GCC" = yes; then
10675	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10677      else
10678	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680      fi
10681      ;;
10682
10683    sysv5* | sco3.2v5* | sco5v6*)
10684      # Note: We can NOT use -z defs as we might desire, because we do not
10685      # link with -lc, and that would cause any symbols used from libc to
10686      # always be unresolved, which means just about no library would
10687      # ever link correctly.  If we're not using GNU ld we use -z text
10688      # though, which does catch some bad symbols but isn't as heavy-handed
10689      # as -z defs.
10690      no_undefined_flag='${wl}-z,text'
10691      allow_undefined_flag='${wl}-z,nodefs'
10692      archive_cmds_need_lc=no
10693      hardcode_shlibpath_var=no
10694      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10695      hardcode_libdir_separator=':'
10696      link_all_deplibs=yes
10697      export_dynamic_flag_spec='${wl}-Bexport'
10698      runpath_var='LD_RUN_PATH'
10699
10700      if test "$GCC" = yes; then
10701	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10702	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703      else
10704	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706      fi
10707      ;;
10708
10709    uts4*)
10710      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711      hardcode_libdir_flag_spec='-L$libdir'
10712      hardcode_shlibpath_var=no
10713      ;;
10714
10715    *)
10716      ld_shlibs=no
10717      ;;
10718    esac
10719
10720    if test x$host_vendor = xsni; then
10721      case $host in
10722      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10723	export_dynamic_flag_spec='${wl}-Blargedynsym'
10724	;;
10725      esac
10726    fi
10727  fi
10728
10729{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10730$as_echo "$ld_shlibs" >&6; }
10731test "$ld_shlibs" = no && can_build_shared=no
10732
10733with_gnu_ld=$with_gnu_ld
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749#
10750# Do we need to explicitly link libc?
10751#
10752case "x$archive_cmds_need_lc" in
10753x|xyes)
10754  # Assume -lc should be added
10755  archive_cmds_need_lc=yes
10756
10757  if test "$enable_shared" = yes && test "$GCC" = yes; then
10758    case $archive_cmds in
10759    *'~'*)
10760      # FIXME: we may have to deal with multi-command sequences.
10761      ;;
10762    '$CC '*)
10763      # Test whether the compiler implicitly links with -lc since on some
10764      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10765      # to ld, don't add -lc before -lgcc.
10766      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10767$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10768      $RM conftest*
10769      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10770
10771      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772  (eval $ac_compile) 2>&5
10773  ac_status=$?
10774  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775  (exit $ac_status); } 2>conftest.err; then
10776        soname=conftest
10777        lib=conftest
10778        libobjs=conftest.$ac_objext
10779        deplibs=
10780        wl=$lt_prog_compiler_wl
10781	pic_flag=$lt_prog_compiler_pic
10782        compiler_flags=-v
10783        linker_flags=-v
10784        verstring=
10785        output_objdir=.
10786        libname=conftest
10787        lt_save_allow_undefined_flag=$allow_undefined_flag
10788        allow_undefined_flag=
10789        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10790  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10791  ac_status=$?
10792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793  (exit $ac_status); }
10794        then
10795	  archive_cmds_need_lc=no
10796        else
10797	  archive_cmds_need_lc=yes
10798        fi
10799        allow_undefined_flag=$lt_save_allow_undefined_flag
10800      else
10801        cat conftest.err 1>&5
10802      fi
10803      $RM conftest*
10804      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10805$as_echo "$archive_cmds_need_lc" >&6; }
10806      ;;
10807    esac
10808  fi
10809  ;;
10810esac
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10969$as_echo_n "checking dynamic linker characteristics... " >&6; }
10970
10971if test "$GCC" = yes; then
10972  case $host_os in
10973    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10974    *) lt_awk_arg="/^libraries:/" ;;
10975  esac
10976  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10977  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10978    # if the path contains ";" then we assume it to be the separator
10979    # otherwise default to the standard path separator (i.e. ":") - it is
10980    # assumed that no part of a normal pathname contains ";" but that should
10981    # okay in the real world where ";" in dirpaths is itself problematic.
10982    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10983  else
10984    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10985  fi
10986  # Ok, now we have the path, separated by spaces, we can step through it
10987  # and add multilib dir if necessary.
10988  lt_tmp_lt_search_path_spec=
10989  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10990  for lt_sys_path in $lt_search_path_spec; do
10991    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10992      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10993    else
10994      test -d "$lt_sys_path" && \
10995	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10996    fi
10997  done
10998  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10999BEGIN {RS=" "; FS="/|\n";} {
11000  lt_foo="";
11001  lt_count=0;
11002  for (lt_i = NF; lt_i > 0; lt_i--) {
11003    if ($lt_i != "" && $lt_i != ".") {
11004      if ($lt_i == "..") {
11005        lt_count++;
11006      } else {
11007        if (lt_count == 0) {
11008          lt_foo="/" $lt_i lt_foo;
11009        } else {
11010          lt_count--;
11011        }
11012      }
11013    }
11014  }
11015  if (lt_foo != "") { lt_freq[lt_foo]++; }
11016  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11017}'`
11018  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11019else
11020  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11021fi
11022library_names_spec=
11023libname_spec='lib$name'
11024soname_spec=
11025shrext_cmds=".so"
11026postinstall_cmds=
11027postuninstall_cmds=
11028finish_cmds=
11029finish_eval=
11030shlibpath_var=
11031shlibpath_overrides_runpath=unknown
11032version_type=none
11033dynamic_linker="$host_os ld.so"
11034sys_lib_dlsearch_path_spec="/lib /usr/lib"
11035need_lib_prefix=unknown
11036hardcode_into_libs=no
11037
11038# when you set need_version to no, make sure it does not cause -set_version
11039# flags to be left without arguments
11040need_version=unknown
11041
11042case $host_os in
11043aix3*)
11044  version_type=linux
11045  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11046  shlibpath_var=LIBPATH
11047
11048  # AIX 3 has no versioning support, so we append a major version to the name.
11049  soname_spec='${libname}${release}${shared_ext}$major'
11050  ;;
11051
11052aix[4-9]*)
11053  version_type=linux
11054  need_lib_prefix=no
11055  need_version=no
11056  hardcode_into_libs=yes
11057  if test "$host_cpu" = ia64; then
11058    # AIX 5 supports IA64
11059    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11060    shlibpath_var=LD_LIBRARY_PATH
11061  else
11062    # With GCC up to 2.95.x, collect2 would create an import file
11063    # for dependence libraries.  The import file would start with
11064    # the line `#! .'.  This would cause the generated library to
11065    # depend on `.', always an invalid library.  This was fixed in
11066    # development snapshots of GCC prior to 3.0.
11067    case $host_os in
11068      aix4 | aix4.[01] | aix4.[01].*)
11069      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11070	   echo ' yes '
11071	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11072	:
11073      else
11074	can_build_shared=no
11075      fi
11076      ;;
11077    esac
11078    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11079    # soname into executable. Probably we can add versioning support to
11080    # collect2, so additional links can be useful in future.
11081    if test "$aix_use_runtimelinking" = yes; then
11082      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11083      # instead of lib<name>.a to let people know that these are not
11084      # typical AIX shared libraries.
11085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086    else
11087      # We preserve .a as extension for shared libraries through AIX4.2
11088      # and later when we are not doing run time linking.
11089      library_names_spec='${libname}${release}.a $libname.a'
11090      soname_spec='${libname}${release}${shared_ext}$major'
11091    fi
11092    shlibpath_var=LIBPATH
11093  fi
11094  ;;
11095
11096amigaos*)
11097  case $host_cpu in
11098  powerpc)
11099    # Since July 2007 AmigaOS4 officially supports .so libraries.
11100    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11101    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102    ;;
11103  m68k)
11104    library_names_spec='$libname.ixlibrary $libname.a'
11105    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11106    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'
11107    ;;
11108  esac
11109  ;;
11110
11111beos*)
11112  library_names_spec='${libname}${shared_ext}'
11113  dynamic_linker="$host_os ld.so"
11114  shlibpath_var=LIBRARY_PATH
11115  ;;
11116
11117bsdi[45]*)
11118  version_type=linux
11119  need_version=no
11120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121  soname_spec='${libname}${release}${shared_ext}$major'
11122  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11123  shlibpath_var=LD_LIBRARY_PATH
11124  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11125  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11126  # the default ld.so.conf also contains /usr/contrib/lib and
11127  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11128  # libtool to hard-code these into programs
11129  ;;
11130
11131cygwin* | mingw* | pw32* | cegcc*)
11132  version_type=windows
11133  shrext_cmds=".dll"
11134  need_version=no
11135  need_lib_prefix=no
11136
11137  case $GCC,$host_os in
11138  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11139    library_names_spec='$libname.dll.a'
11140    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11141    postinstall_cmds='base_file=`basename \${file}`~
11142      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11143      dldir=$destdir/`dirname \$dlpath`~
11144      test -d \$dldir || mkdir -p \$dldir~
11145      $install_prog $dir/$dlname \$dldir/$dlname~
11146      chmod a+x \$dldir/$dlname~
11147      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11148        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11149      fi'
11150    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11151      dlpath=$dir/\$dldll~
11152       $RM \$dlpath'
11153    shlibpath_overrides_runpath=yes
11154
11155    case $host_os in
11156    cygwin*)
11157      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11158      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11159      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11160      ;;
11161    mingw* | cegcc*)
11162      # MinGW DLLs use traditional 'lib' prefix
11163      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11164      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11165      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11166        # It is most probably a Windows format PATH printed by
11167        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11168        # path with ; separators, and with drive letters. We can handle the
11169        # drive letters (cygwin fileutils understands them), so leave them,
11170        # especially as we might pass files found there to a mingw objdump,
11171        # which wouldn't understand a cygwinified path. Ahh.
11172        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11173      else
11174        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11175      fi
11176      ;;
11177    pw32*)
11178      # pw32 DLLs use 'pw' prefix rather than 'lib'
11179      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11180      ;;
11181    esac
11182    ;;
11183
11184  *)
11185    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11186    ;;
11187  esac
11188  dynamic_linker='Win32 ld.exe'
11189  # FIXME: first we should search . and the directory the executable is in
11190  shlibpath_var=PATH
11191  ;;
11192
11193darwin* | rhapsody*)
11194  dynamic_linker="$host_os dyld"
11195  version_type=darwin
11196  need_lib_prefix=no
11197  need_version=no
11198  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11199  soname_spec='${libname}${release}${major}$shared_ext'
11200  shlibpath_overrides_runpath=yes
11201  shlibpath_var=DYLD_LIBRARY_PATH
11202  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11203
11204  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11205  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11206  ;;
11207
11208dgux*)
11209  version_type=linux
11210  need_lib_prefix=no
11211  need_version=no
11212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11213  soname_spec='${libname}${release}${shared_ext}$major'
11214  shlibpath_var=LD_LIBRARY_PATH
11215  ;;
11216
11217freebsd1*)
11218  dynamic_linker=no
11219  ;;
11220
11221freebsd* | dragonfly*)
11222  # DragonFly does not have aout.  When/if they implement a new
11223  # versioning mechanism, adjust this.
11224  if test -x /usr/bin/objformat; then
11225    objformat=`/usr/bin/objformat`
11226  else
11227    case $host_os in
11228    freebsd[123]*) objformat=aout ;;
11229    *) objformat=elf ;;
11230    esac
11231  fi
11232  version_type=freebsd-$objformat
11233  case $version_type in
11234    freebsd-elf*)
11235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11236      need_version=no
11237      need_lib_prefix=no
11238      ;;
11239    freebsd-*)
11240      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11241      need_version=yes
11242      ;;
11243  esac
11244  shlibpath_var=LD_LIBRARY_PATH
11245  case $host_os in
11246  freebsd2*)
11247    shlibpath_overrides_runpath=yes
11248    ;;
11249  freebsd3.[01]* | freebsdelf3.[01]*)
11250    shlibpath_overrides_runpath=yes
11251    hardcode_into_libs=yes
11252    ;;
11253  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11254  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11255    shlibpath_overrides_runpath=no
11256    hardcode_into_libs=yes
11257    ;;
11258  *) # from 4.6 on, and DragonFly
11259    shlibpath_overrides_runpath=yes
11260    hardcode_into_libs=yes
11261    ;;
11262  esac
11263  ;;
11264
11265gnu*)
11266  version_type=linux
11267  need_lib_prefix=no
11268  need_version=no
11269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11270  soname_spec='${libname}${release}${shared_ext}$major'
11271  shlibpath_var=LD_LIBRARY_PATH
11272  hardcode_into_libs=yes
11273  ;;
11274
11275hpux9* | hpux10* | hpux11*)
11276  # Give a soname corresponding to the major version so that dld.sl refuses to
11277  # link against other versions.
11278  version_type=sunos
11279  need_lib_prefix=no
11280  need_version=no
11281  case $host_cpu in
11282  ia64*)
11283    shrext_cmds='.so'
11284    hardcode_into_libs=yes
11285    dynamic_linker="$host_os dld.so"
11286    shlibpath_var=LD_LIBRARY_PATH
11287    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289    soname_spec='${libname}${release}${shared_ext}$major'
11290    if test "X$HPUX_IA64_MODE" = X32; then
11291      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11292    else
11293      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11294    fi
11295    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11296    ;;
11297  hppa*64*)
11298    shrext_cmds='.sl'
11299    hardcode_into_libs=yes
11300    dynamic_linker="$host_os dld.sl"
11301    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11302    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11303    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304    soname_spec='${libname}${release}${shared_ext}$major'
11305    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11306    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11307    ;;
11308  *)
11309    shrext_cmds='.sl'
11310    dynamic_linker="$host_os dld.sl"
11311    shlibpath_var=SHLIB_PATH
11312    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314    soname_spec='${libname}${release}${shared_ext}$major'
11315    ;;
11316  esac
11317  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11318  postinstall_cmds='chmod 555 $lib'
11319  ;;
11320
11321interix[3-9]*)
11322  version_type=linux
11323  need_lib_prefix=no
11324  need_version=no
11325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11326  soname_spec='${libname}${release}${shared_ext}$major'
11327  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11328  shlibpath_var=LD_LIBRARY_PATH
11329  shlibpath_overrides_runpath=no
11330  hardcode_into_libs=yes
11331  ;;
11332
11333irix5* | irix6* | nonstopux*)
11334  case $host_os in
11335    nonstopux*) version_type=nonstopux ;;
11336    *)
11337	if test "$lt_cv_prog_gnu_ld" = yes; then
11338		version_type=linux
11339	else
11340		version_type=irix
11341	fi ;;
11342  esac
11343  need_lib_prefix=no
11344  need_version=no
11345  soname_spec='${libname}${release}${shared_ext}$major'
11346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11347  case $host_os in
11348  irix5* | nonstopux*)
11349    libsuff= shlibsuff=
11350    ;;
11351  *)
11352    case $LD in # libtool.m4 will add one of these switches to LD
11353    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11354      libsuff= shlibsuff= libmagic=32-bit;;
11355    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11356      libsuff=32 shlibsuff=N32 libmagic=N32;;
11357    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11358      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11359    *) libsuff= shlibsuff= libmagic=never-match;;
11360    esac
11361    ;;
11362  esac
11363  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11364  shlibpath_overrides_runpath=no
11365  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11366  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11367  hardcode_into_libs=yes
11368  ;;
11369
11370# No shared lib support for Linux oldld, aout, or coff.
11371linux*oldld* | linux*aout* | linux*coff*)
11372  dynamic_linker=no
11373  ;;
11374
11375# This must be Linux ELF.
11376linux* | k*bsd*-gnu)
11377  version_type=linux
11378  need_lib_prefix=no
11379  need_version=no
11380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381  soname_spec='${libname}${release}${shared_ext}$major'
11382  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11383  shlibpath_var=LD_LIBRARY_PATH
11384  shlibpath_overrides_runpath=no
11385  # Some binutils ld are patched to set DT_RUNPATH
11386  save_LDFLAGS=$LDFLAGS
11387  save_libdir=$libdir
11388  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11389       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11390  cat >conftest.$ac_ext <<_ACEOF
11391/* confdefs.h.  */
11392_ACEOF
11393cat confdefs.h >>conftest.$ac_ext
11394cat >>conftest.$ac_ext <<_ACEOF
11395/* end confdefs.h.  */
11396
11397int
11398main ()
11399{
11400
11401  ;
11402  return 0;
11403}
11404_ACEOF
11405rm -f conftest.$ac_objext conftest$ac_exeext
11406if { (ac_try="$ac_link"
11407case "(($ac_try" in
11408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409  *) ac_try_echo=$ac_try;;
11410esac
11411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11412$as_echo "$ac_try_echo") >&5
11413  (eval "$ac_link") 2>conftest.er1
11414  ac_status=$?
11415  grep -v '^ *+' conftest.er1 >conftest.err
11416  rm -f conftest.er1
11417  cat conftest.err >&5
11418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419  (exit $ac_status); } && {
11420	 test -z "$ac_c_werror_flag" ||
11421	 test ! -s conftest.err
11422       } && test -s conftest$ac_exeext && {
11423	 test "$cross_compiling" = yes ||
11424	 $as_test_x conftest$ac_exeext
11425       }; then
11426  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11427  shlibpath_overrides_runpath=yes
11428fi
11429
11430else
11431  $as_echo "$as_me: failed program was:" >&5
11432sed 's/^/| /' conftest.$ac_ext >&5
11433
11434
11435fi
11436
11437rm -rf conftest.dSYM
11438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11439      conftest$ac_exeext conftest.$ac_ext
11440  LDFLAGS=$save_LDFLAGS
11441  libdir=$save_libdir
11442
11443  # This implies no fast_install, which is unacceptable.
11444  # Some rework will be needed to allow for fast_install
11445  # before this can be enabled.
11446  hardcode_into_libs=yes
11447
11448  # Add ABI-specific directories to the system library path.
11449  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11450
11451  # Append ld.so.conf contents to the search path
11452  if test -f /etc/ld.so.conf; then
11453    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' ' '`
11454    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11455  fi
11456
11457  # We used to test for /lib/ld.so.1 and disable shared libraries on
11458  # powerpc, because MkLinux only supported shared libraries with the
11459  # GNU dynamic linker.  Since this was broken with cross compilers,
11460  # most powerpc-linux boxes support dynamic linking these days and
11461  # people can always --disable-shared, the test was removed, and we
11462  # assume the GNU/Linux dynamic linker is in use.
11463  dynamic_linker='GNU/Linux ld.so'
11464  ;;
11465
11466netbsd*)
11467  version_type=sunos
11468  need_lib_prefix=no
11469  need_version=no
11470  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11472    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11473    dynamic_linker='NetBSD (a.out) ld.so'
11474  else
11475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11476    soname_spec='${libname}${release}${shared_ext}$major'
11477    dynamic_linker='NetBSD ld.elf_so'
11478  fi
11479  shlibpath_var=LD_LIBRARY_PATH
11480  shlibpath_overrides_runpath=yes
11481  hardcode_into_libs=yes
11482  ;;
11483
11484newsos6)
11485  version_type=linux
11486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487  shlibpath_var=LD_LIBRARY_PATH
11488  shlibpath_overrides_runpath=yes
11489  ;;
11490
11491*nto* | *qnx*)
11492  version_type=qnx
11493  need_lib_prefix=no
11494  need_version=no
11495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496  soname_spec='${libname}${release}${shared_ext}$major'
11497  shlibpath_var=LD_LIBRARY_PATH
11498  shlibpath_overrides_runpath=no
11499  hardcode_into_libs=yes
11500  dynamic_linker='ldqnx.so'
11501  ;;
11502
11503openbsd*)
11504  version_type=sunos
11505  sys_lib_dlsearch_path_spec="/usr/lib"
11506  need_lib_prefix=no
11507  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11508  case $host_os in
11509    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11510    *)				need_version=no  ;;
11511  esac
11512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11513  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11514  shlibpath_var=LD_LIBRARY_PATH
11515  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11516    case $host_os in
11517      openbsd2.[89] | openbsd2.[89].*)
11518	shlibpath_overrides_runpath=no
11519	;;
11520      *)
11521	shlibpath_overrides_runpath=yes
11522	;;
11523      esac
11524  else
11525    shlibpath_overrides_runpath=yes
11526  fi
11527  ;;
11528
11529os2*)
11530  libname_spec='$name'
11531  shrext_cmds=".dll"
11532  need_lib_prefix=no
11533  library_names_spec='$libname${shared_ext} $libname.a'
11534  dynamic_linker='OS/2 ld.exe'
11535  shlibpath_var=LIBPATH
11536  ;;
11537
11538osf3* | osf4* | osf5*)
11539  version_type=osf
11540  need_lib_prefix=no
11541  need_version=no
11542  soname_spec='${libname}${release}${shared_ext}$major'
11543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544  shlibpath_var=LD_LIBRARY_PATH
11545  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11546  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11547  ;;
11548
11549rdos*)
11550  dynamic_linker=no
11551  ;;
11552
11553solaris*)
11554  version_type=linux
11555  need_lib_prefix=no
11556  need_version=no
11557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558  soname_spec='${libname}${release}${shared_ext}$major'
11559  shlibpath_var=LD_LIBRARY_PATH
11560  shlibpath_overrides_runpath=yes
11561  hardcode_into_libs=yes
11562  # ldd complains unless libraries are executable
11563  postinstall_cmds='chmod +x $lib'
11564  ;;
11565
11566sunos4*)
11567  version_type=sunos
11568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11569  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11570  shlibpath_var=LD_LIBRARY_PATH
11571  shlibpath_overrides_runpath=yes
11572  if test "$with_gnu_ld" = yes; then
11573    need_lib_prefix=no
11574  fi
11575  need_version=yes
11576  ;;
11577
11578sysv4 | sysv4.3*)
11579  version_type=linux
11580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581  soname_spec='${libname}${release}${shared_ext}$major'
11582  shlibpath_var=LD_LIBRARY_PATH
11583  case $host_vendor in
11584    sni)
11585      shlibpath_overrides_runpath=no
11586      need_lib_prefix=no
11587      runpath_var=LD_RUN_PATH
11588      ;;
11589    siemens)
11590      need_lib_prefix=no
11591      ;;
11592    motorola)
11593      need_lib_prefix=no
11594      need_version=no
11595      shlibpath_overrides_runpath=no
11596      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11597      ;;
11598  esac
11599  ;;
11600
11601sysv4*MP*)
11602  if test -d /usr/nec ;then
11603    version_type=linux
11604    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11605    soname_spec='$libname${shared_ext}.$major'
11606    shlibpath_var=LD_LIBRARY_PATH
11607  fi
11608  ;;
11609
11610sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11611  version_type=freebsd-elf
11612  need_lib_prefix=no
11613  need_version=no
11614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11615  soname_spec='${libname}${release}${shared_ext}$major'
11616  shlibpath_var=LD_LIBRARY_PATH
11617  shlibpath_overrides_runpath=yes
11618  hardcode_into_libs=yes
11619  if test "$with_gnu_ld" = yes; then
11620    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11621  else
11622    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11623    case $host_os in
11624      sco3.2v5*)
11625        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11626	;;
11627    esac
11628  fi
11629  sys_lib_dlsearch_path_spec='/usr/lib'
11630  ;;
11631
11632tpf*)
11633  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11634  version_type=linux
11635  need_lib_prefix=no
11636  need_version=no
11637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638  shlibpath_var=LD_LIBRARY_PATH
11639  shlibpath_overrides_runpath=no
11640  hardcode_into_libs=yes
11641  ;;
11642
11643uts4*)
11644  version_type=linux
11645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646  soname_spec='${libname}${release}${shared_ext}$major'
11647  shlibpath_var=LD_LIBRARY_PATH
11648  ;;
11649
11650*)
11651  dynamic_linker=no
11652  ;;
11653esac
11654{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11655$as_echo "$dynamic_linker" >&6; }
11656test "$dynamic_linker" = no && can_build_shared=no
11657
11658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11659if test "$GCC" = yes; then
11660  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11661fi
11662
11663if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11664  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11665fi
11666if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11667  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11668fi
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11757$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11758hardcode_action=
11759if test -n "$hardcode_libdir_flag_spec" ||
11760   test -n "$runpath_var" ||
11761   test "X$hardcode_automatic" = "Xyes" ; then
11762
11763  # We can hardcode non-existent directories.
11764  if test "$hardcode_direct" != no &&
11765     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11766     # have to relink, otherwise we might link with an installed library
11767     # when we should be linking with a yet-to-be-installed one
11768     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11769     test "$hardcode_minus_L" != no; then
11770    # Linking always hardcodes the temporary library directory.
11771    hardcode_action=relink
11772  else
11773    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11774    hardcode_action=immediate
11775  fi
11776else
11777  # We cannot hardcode anything, or else we can only hardcode existing
11778  # directories.
11779  hardcode_action=unsupported
11780fi
11781{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11782$as_echo "$hardcode_action" >&6; }
11783
11784if test "$hardcode_action" = relink ||
11785   test "$inherit_rpath" = yes; then
11786  # Fast installation is not supported
11787  enable_fast_install=no
11788elif test "$shlibpath_overrides_runpath" = yes ||
11789     test "$enable_shared" = no; then
11790  # Fast installation is not necessary
11791  enable_fast_install=needless
11792fi
11793
11794
11795
11796
11797
11798
11799  if test "x$enable_dlopen" != xyes; then
11800  enable_dlopen=unknown
11801  enable_dlopen_self=unknown
11802  enable_dlopen_self_static=unknown
11803else
11804  lt_cv_dlopen=no
11805  lt_cv_dlopen_libs=
11806
11807  case $host_os in
11808  beos*)
11809    lt_cv_dlopen="load_add_on"
11810    lt_cv_dlopen_libs=
11811    lt_cv_dlopen_self=yes
11812    ;;
11813
11814  mingw* | pw32* | cegcc*)
11815    lt_cv_dlopen="LoadLibrary"
11816    lt_cv_dlopen_libs=
11817    ;;
11818
11819  cygwin*)
11820    lt_cv_dlopen="dlopen"
11821    lt_cv_dlopen_libs=
11822    ;;
11823
11824  darwin*)
11825  # if libdl is installed we need to link against it
11826    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11827$as_echo_n "checking for dlopen in -ldl... " >&6; }
11828if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11829  $as_echo_n "(cached) " >&6
11830else
11831  ac_check_lib_save_LIBS=$LIBS
11832LIBS="-ldl  $LIBS"
11833cat >conftest.$ac_ext <<_ACEOF
11834/* confdefs.h.  */
11835_ACEOF
11836cat confdefs.h >>conftest.$ac_ext
11837cat >>conftest.$ac_ext <<_ACEOF
11838/* end confdefs.h.  */
11839
11840/* Override any GCC internal prototype to avoid an error.
11841   Use char because int might match the return type of a GCC
11842   builtin and then its argument prototype would still apply.  */
11843#ifdef __cplusplus
11844extern "C"
11845#endif
11846char dlopen ();
11847int
11848main ()
11849{
11850return dlopen ();
11851  ;
11852  return 0;
11853}
11854_ACEOF
11855rm -f conftest.$ac_objext conftest$ac_exeext
11856if { (ac_try="$ac_link"
11857case "(($ac_try" in
11858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859  *) ac_try_echo=$ac_try;;
11860esac
11861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862$as_echo "$ac_try_echo") >&5
11863  (eval "$ac_link") 2>conftest.er1
11864  ac_status=$?
11865  grep -v '^ *+' conftest.er1 >conftest.err
11866  rm -f conftest.er1
11867  cat conftest.err >&5
11868  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869  (exit $ac_status); } && {
11870	 test -z "$ac_c_werror_flag" ||
11871	 test ! -s conftest.err
11872       } && test -s conftest$ac_exeext && {
11873	 test "$cross_compiling" = yes ||
11874	 $as_test_x conftest$ac_exeext
11875       }; then
11876  ac_cv_lib_dl_dlopen=yes
11877else
11878  $as_echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881	ac_cv_lib_dl_dlopen=no
11882fi
11883
11884rm -rf conftest.dSYM
11885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11886      conftest$ac_exeext conftest.$ac_ext
11887LIBS=$ac_check_lib_save_LIBS
11888fi
11889{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11890$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11891if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11892  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11893else
11894
11895    lt_cv_dlopen="dyld"
11896    lt_cv_dlopen_libs=
11897    lt_cv_dlopen_self=yes
11898
11899fi
11900
11901    ;;
11902
11903  *)
11904    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11905$as_echo_n "checking for shl_load... " >&6; }
11906if test "${ac_cv_func_shl_load+set}" = set; then
11907  $as_echo_n "(cached) " >&6
11908else
11909  cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h.  */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h.  */
11915/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11916   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11917#define shl_load innocuous_shl_load
11918
11919/* System header to define __stub macros and hopefully few prototypes,
11920    which can conflict with char shl_load (); below.
11921    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922    <limits.h> exists even on freestanding compilers.  */
11923
11924#ifdef __STDC__
11925# include <limits.h>
11926#else
11927# include <assert.h>
11928#endif
11929
11930#undef shl_load
11931
11932/* Override any GCC internal prototype to avoid an error.
11933   Use char because int might match the return type of a GCC
11934   builtin and then its argument prototype would still apply.  */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938char shl_load ();
11939/* The GNU C library defines this for functions which it implements
11940    to always fail with ENOSYS.  Some functions are actually named
11941    something starting with __ and the normal name is an alias.  */
11942#if defined __stub_shl_load || defined __stub___shl_load
11943choke me
11944#endif
11945
11946int
11947main ()
11948{
11949return shl_load ();
11950  ;
11951  return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext conftest$ac_exeext
11955if { (ac_try="$ac_link"
11956case "(($ac_try" in
11957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958  *) ac_try_echo=$ac_try;;
11959esac
11960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11961$as_echo "$ac_try_echo") >&5
11962  (eval "$ac_link") 2>conftest.er1
11963  ac_status=$?
11964  grep -v '^ *+' conftest.er1 >conftest.err
11965  rm -f conftest.er1
11966  cat conftest.err >&5
11967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968  (exit $ac_status); } && {
11969	 test -z "$ac_c_werror_flag" ||
11970	 test ! -s conftest.err
11971       } && test -s conftest$ac_exeext && {
11972	 test "$cross_compiling" = yes ||
11973	 $as_test_x conftest$ac_exeext
11974       }; then
11975  ac_cv_func_shl_load=yes
11976else
11977  $as_echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980	ac_cv_func_shl_load=no
11981fi
11982
11983rm -rf conftest.dSYM
11984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985      conftest$ac_exeext conftest.$ac_ext
11986fi
11987{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11988$as_echo "$ac_cv_func_shl_load" >&6; }
11989if test "x$ac_cv_func_shl_load" = x""yes; then
11990  lt_cv_dlopen="shl_load"
11991else
11992  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11993$as_echo_n "checking for shl_load in -ldld... " >&6; }
11994if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11995  $as_echo_n "(cached) " >&6
11996else
11997  ac_check_lib_save_LIBS=$LIBS
11998LIBS="-ldld  $LIBS"
11999cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h.  */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h.  */
12005
12006/* Override any GCC internal prototype to avoid an error.
12007   Use char because int might match the return type of a GCC
12008   builtin and then its argument prototype would still apply.  */
12009#ifdef __cplusplus
12010extern "C"
12011#endif
12012char shl_load ();
12013int
12014main ()
12015{
12016return shl_load ();
12017  ;
12018  return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext conftest$ac_exeext
12022if { (ac_try="$ac_link"
12023case "(($ac_try" in
12024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025  *) ac_try_echo=$ac_try;;
12026esac
12027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12028$as_echo "$ac_try_echo") >&5
12029  (eval "$ac_link") 2>conftest.er1
12030  ac_status=$?
12031  grep -v '^ *+' conftest.er1 >conftest.err
12032  rm -f conftest.er1
12033  cat conftest.err >&5
12034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035  (exit $ac_status); } && {
12036	 test -z "$ac_c_werror_flag" ||
12037	 test ! -s conftest.err
12038       } && test -s conftest$ac_exeext && {
12039	 test "$cross_compiling" = yes ||
12040	 $as_test_x conftest$ac_exeext
12041       }; then
12042  ac_cv_lib_dld_shl_load=yes
12043else
12044  $as_echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047	ac_cv_lib_dld_shl_load=no
12048fi
12049
12050rm -rf conftest.dSYM
12051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12052      conftest$ac_exeext conftest.$ac_ext
12053LIBS=$ac_check_lib_save_LIBS
12054fi
12055{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12056$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12057if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12058  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12059else
12060  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12061$as_echo_n "checking for dlopen... " >&6; }
12062if test "${ac_cv_func_dlopen+set}" = set; then
12063  $as_echo_n "(cached) " >&6
12064else
12065  cat >conftest.$ac_ext <<_ACEOF
12066/* confdefs.h.  */
12067_ACEOF
12068cat confdefs.h >>conftest.$ac_ext
12069cat >>conftest.$ac_ext <<_ACEOF
12070/* end confdefs.h.  */
12071/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12072   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12073#define dlopen innocuous_dlopen
12074
12075/* System header to define __stub macros and hopefully few prototypes,
12076    which can conflict with char dlopen (); below.
12077    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12078    <limits.h> exists even on freestanding compilers.  */
12079
12080#ifdef __STDC__
12081# include <limits.h>
12082#else
12083# include <assert.h>
12084#endif
12085
12086#undef dlopen
12087
12088/* Override any GCC internal prototype to avoid an error.
12089   Use char because int might match the return type of a GCC
12090   builtin and then its argument prototype would still apply.  */
12091#ifdef __cplusplus
12092extern "C"
12093#endif
12094char dlopen ();
12095/* The GNU C library defines this for functions which it implements
12096    to always fail with ENOSYS.  Some functions are actually named
12097    something starting with __ and the normal name is an alias.  */
12098#if defined __stub_dlopen || defined __stub___dlopen
12099choke me
12100#endif
12101
12102int
12103main ()
12104{
12105return dlopen ();
12106  ;
12107  return 0;
12108}
12109_ACEOF
12110rm -f conftest.$ac_objext conftest$ac_exeext
12111if { (ac_try="$ac_link"
12112case "(($ac_try" in
12113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114  *) ac_try_echo=$ac_try;;
12115esac
12116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12117$as_echo "$ac_try_echo") >&5
12118  (eval "$ac_link") 2>conftest.er1
12119  ac_status=$?
12120  grep -v '^ *+' conftest.er1 >conftest.err
12121  rm -f conftest.er1
12122  cat conftest.err >&5
12123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124  (exit $ac_status); } && {
12125	 test -z "$ac_c_werror_flag" ||
12126	 test ! -s conftest.err
12127       } && test -s conftest$ac_exeext && {
12128	 test "$cross_compiling" = yes ||
12129	 $as_test_x conftest$ac_exeext
12130       }; then
12131  ac_cv_func_dlopen=yes
12132else
12133  $as_echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136	ac_cv_func_dlopen=no
12137fi
12138
12139rm -rf conftest.dSYM
12140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12141      conftest$ac_exeext conftest.$ac_ext
12142fi
12143{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12144$as_echo "$ac_cv_func_dlopen" >&6; }
12145if test "x$ac_cv_func_dlopen" = x""yes; then
12146  lt_cv_dlopen="dlopen"
12147else
12148  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12149$as_echo_n "checking for dlopen in -ldl... " >&6; }
12150if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12151  $as_echo_n "(cached) " >&6
12152else
12153  ac_check_lib_save_LIBS=$LIBS
12154LIBS="-ldl  $LIBS"
12155cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h.  */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h.  */
12161
12162/* Override any GCC internal prototype to avoid an error.
12163   Use char because int might match the return type of a GCC
12164   builtin and then its argument prototype would still apply.  */
12165#ifdef __cplusplus
12166extern "C"
12167#endif
12168char dlopen ();
12169int
12170main ()
12171{
12172return dlopen ();
12173  ;
12174  return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext conftest$ac_exeext
12178if { (ac_try="$ac_link"
12179case "(($ac_try" in
12180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181  *) ac_try_echo=$ac_try;;
12182esac
12183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12184$as_echo "$ac_try_echo") >&5
12185  (eval "$ac_link") 2>conftest.er1
12186  ac_status=$?
12187  grep -v '^ *+' conftest.er1 >conftest.err
12188  rm -f conftest.er1
12189  cat conftest.err >&5
12190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191  (exit $ac_status); } && {
12192	 test -z "$ac_c_werror_flag" ||
12193	 test ! -s conftest.err
12194       } && test -s conftest$ac_exeext && {
12195	 test "$cross_compiling" = yes ||
12196	 $as_test_x conftest$ac_exeext
12197       }; then
12198  ac_cv_lib_dl_dlopen=yes
12199else
12200  $as_echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203	ac_cv_lib_dl_dlopen=no
12204fi
12205
12206rm -rf conftest.dSYM
12207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12208      conftest$ac_exeext conftest.$ac_ext
12209LIBS=$ac_check_lib_save_LIBS
12210fi
12211{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12212$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12213if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12214  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12215else
12216  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12217$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12218if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12219  $as_echo_n "(cached) " >&6
12220else
12221  ac_check_lib_save_LIBS=$LIBS
12222LIBS="-lsvld  $LIBS"
12223cat >conftest.$ac_ext <<_ACEOF
12224/* confdefs.h.  */
12225_ACEOF
12226cat confdefs.h >>conftest.$ac_ext
12227cat >>conftest.$ac_ext <<_ACEOF
12228/* end confdefs.h.  */
12229
12230/* Override any GCC internal prototype to avoid an error.
12231   Use char because int might match the return type of a GCC
12232   builtin and then its argument prototype would still apply.  */
12233#ifdef __cplusplus
12234extern "C"
12235#endif
12236char dlopen ();
12237int
12238main ()
12239{
12240return dlopen ();
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245rm -f conftest.$ac_objext conftest$ac_exeext
12246if { (ac_try="$ac_link"
12247case "(($ac_try" in
12248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249  *) ac_try_echo=$ac_try;;
12250esac
12251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252$as_echo "$ac_try_echo") >&5
12253  (eval "$ac_link") 2>conftest.er1
12254  ac_status=$?
12255  grep -v '^ *+' conftest.er1 >conftest.err
12256  rm -f conftest.er1
12257  cat conftest.err >&5
12258  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259  (exit $ac_status); } && {
12260	 test -z "$ac_c_werror_flag" ||
12261	 test ! -s conftest.err
12262       } && test -s conftest$ac_exeext && {
12263	 test "$cross_compiling" = yes ||
12264	 $as_test_x conftest$ac_exeext
12265       }; then
12266  ac_cv_lib_svld_dlopen=yes
12267else
12268  $as_echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271	ac_cv_lib_svld_dlopen=no
12272fi
12273
12274rm -rf conftest.dSYM
12275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276      conftest$ac_exeext conftest.$ac_ext
12277LIBS=$ac_check_lib_save_LIBS
12278fi
12279{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12280$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12281if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12282  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12283else
12284  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12285$as_echo_n "checking for dld_link in -ldld... " >&6; }
12286if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12287  $as_echo_n "(cached) " >&6
12288else
12289  ac_check_lib_save_LIBS=$LIBS
12290LIBS="-ldld  $LIBS"
12291cat >conftest.$ac_ext <<_ACEOF
12292/* confdefs.h.  */
12293_ACEOF
12294cat confdefs.h >>conftest.$ac_ext
12295cat >>conftest.$ac_ext <<_ACEOF
12296/* end confdefs.h.  */
12297
12298/* Override any GCC internal prototype to avoid an error.
12299   Use char because int might match the return type of a GCC
12300   builtin and then its argument prototype would still apply.  */
12301#ifdef __cplusplus
12302extern "C"
12303#endif
12304char dld_link ();
12305int
12306main ()
12307{
12308return dld_link ();
12309  ;
12310  return 0;
12311}
12312_ACEOF
12313rm -f conftest.$ac_objext conftest$ac_exeext
12314if { (ac_try="$ac_link"
12315case "(($ac_try" in
12316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317  *) ac_try_echo=$ac_try;;
12318esac
12319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12320$as_echo "$ac_try_echo") >&5
12321  (eval "$ac_link") 2>conftest.er1
12322  ac_status=$?
12323  grep -v '^ *+' conftest.er1 >conftest.err
12324  rm -f conftest.er1
12325  cat conftest.err >&5
12326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327  (exit $ac_status); } && {
12328	 test -z "$ac_c_werror_flag" ||
12329	 test ! -s conftest.err
12330       } && test -s conftest$ac_exeext && {
12331	 test "$cross_compiling" = yes ||
12332	 $as_test_x conftest$ac_exeext
12333       }; then
12334  ac_cv_lib_dld_dld_link=yes
12335else
12336  $as_echo "$as_me: failed program was:" >&5
12337sed 's/^/| /' conftest.$ac_ext >&5
12338
12339	ac_cv_lib_dld_dld_link=no
12340fi
12341
12342rm -rf conftest.dSYM
12343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12344      conftest$ac_exeext conftest.$ac_ext
12345LIBS=$ac_check_lib_save_LIBS
12346fi
12347{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12348$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12349if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12350  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12351fi
12352
12353
12354fi
12355
12356
12357fi
12358
12359
12360fi
12361
12362
12363fi
12364
12365
12366fi
12367
12368    ;;
12369  esac
12370
12371  if test "x$lt_cv_dlopen" != xno; then
12372    enable_dlopen=yes
12373  else
12374    enable_dlopen=no
12375  fi
12376
12377  case $lt_cv_dlopen in
12378  dlopen)
12379    save_CPPFLAGS="$CPPFLAGS"
12380    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12381
12382    save_LDFLAGS="$LDFLAGS"
12383    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12384
12385    save_LIBS="$LIBS"
12386    LIBS="$lt_cv_dlopen_libs $LIBS"
12387
12388    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12389$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12390if test "${lt_cv_dlopen_self+set}" = set; then
12391  $as_echo_n "(cached) " >&6
12392else
12393  	  if test "$cross_compiling" = yes; then :
12394  lt_cv_dlopen_self=cross
12395else
12396  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12397  lt_status=$lt_dlunknown
12398  cat > conftest.$ac_ext <<_LT_EOF
12399#line 12399 "configure"
12400#include "confdefs.h"
12401
12402#if HAVE_DLFCN_H
12403#include <dlfcn.h>
12404#endif
12405
12406#include <stdio.h>
12407
12408#ifdef RTLD_GLOBAL
12409#  define LT_DLGLOBAL		RTLD_GLOBAL
12410#else
12411#  ifdef DL_GLOBAL
12412#    define LT_DLGLOBAL		DL_GLOBAL
12413#  else
12414#    define LT_DLGLOBAL		0
12415#  endif
12416#endif
12417
12418/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12419   find out it does not work in some platform. */
12420#ifndef LT_DLLAZY_OR_NOW
12421#  ifdef RTLD_LAZY
12422#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12423#  else
12424#    ifdef DL_LAZY
12425#      define LT_DLLAZY_OR_NOW		DL_LAZY
12426#    else
12427#      ifdef RTLD_NOW
12428#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12429#      else
12430#        ifdef DL_NOW
12431#          define LT_DLLAZY_OR_NOW	DL_NOW
12432#        else
12433#          define LT_DLLAZY_OR_NOW	0
12434#        endif
12435#      endif
12436#    endif
12437#  endif
12438#endif
12439
12440void fnord() { int i=42;}
12441int main ()
12442{
12443  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12444  int status = $lt_dlunknown;
12445
12446  if (self)
12447    {
12448      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12449      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12450      /* dlclose (self); */
12451    }
12452  else
12453    puts (dlerror ());
12454
12455  return status;
12456}
12457_LT_EOF
12458  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12459  (eval $ac_link) 2>&5
12460  ac_status=$?
12461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12463    (./conftest; exit; ) >&5 2>/dev/null
12464    lt_status=$?
12465    case x$lt_status in
12466      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12467      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12468      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12469    esac
12470  else :
12471    # compilation failed
12472    lt_cv_dlopen_self=no
12473  fi
12474fi
12475rm -fr conftest*
12476
12477
12478fi
12479{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12480$as_echo "$lt_cv_dlopen_self" >&6; }
12481
12482    if test "x$lt_cv_dlopen_self" = xyes; then
12483      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12484      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12485$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12486if test "${lt_cv_dlopen_self_static+set}" = set; then
12487  $as_echo_n "(cached) " >&6
12488else
12489  	  if test "$cross_compiling" = yes; then :
12490  lt_cv_dlopen_self_static=cross
12491else
12492  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12493  lt_status=$lt_dlunknown
12494  cat > conftest.$ac_ext <<_LT_EOF
12495#line 12495 "configure"
12496#include "confdefs.h"
12497
12498#if HAVE_DLFCN_H
12499#include <dlfcn.h>
12500#endif
12501
12502#include <stdio.h>
12503
12504#ifdef RTLD_GLOBAL
12505#  define LT_DLGLOBAL		RTLD_GLOBAL
12506#else
12507#  ifdef DL_GLOBAL
12508#    define LT_DLGLOBAL		DL_GLOBAL
12509#  else
12510#    define LT_DLGLOBAL		0
12511#  endif
12512#endif
12513
12514/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12515   find out it does not work in some platform. */
12516#ifndef LT_DLLAZY_OR_NOW
12517#  ifdef RTLD_LAZY
12518#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12519#  else
12520#    ifdef DL_LAZY
12521#      define LT_DLLAZY_OR_NOW		DL_LAZY
12522#    else
12523#      ifdef RTLD_NOW
12524#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12525#      else
12526#        ifdef DL_NOW
12527#          define LT_DLLAZY_OR_NOW	DL_NOW
12528#        else
12529#          define LT_DLLAZY_OR_NOW	0
12530#        endif
12531#      endif
12532#    endif
12533#  endif
12534#endif
12535
12536void fnord() { int i=42;}
12537int main ()
12538{
12539  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12540  int status = $lt_dlunknown;
12541
12542  if (self)
12543    {
12544      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12545      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12546      /* dlclose (self); */
12547    }
12548  else
12549    puts (dlerror ());
12550
12551  return status;
12552}
12553_LT_EOF
12554  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555  (eval $ac_link) 2>&5
12556  ac_status=$?
12557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12559    (./conftest; exit; ) >&5 2>/dev/null
12560    lt_status=$?
12561    case x$lt_status in
12562      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12563      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12564      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12565    esac
12566  else :
12567    # compilation failed
12568    lt_cv_dlopen_self_static=no
12569  fi
12570fi
12571rm -fr conftest*
12572
12573
12574fi
12575{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12576$as_echo "$lt_cv_dlopen_self_static" >&6; }
12577    fi
12578
12579    CPPFLAGS="$save_CPPFLAGS"
12580    LDFLAGS="$save_LDFLAGS"
12581    LIBS="$save_LIBS"
12582    ;;
12583  esac
12584
12585  case $lt_cv_dlopen_self in
12586  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12587  *) enable_dlopen_self=unknown ;;
12588  esac
12589
12590  case $lt_cv_dlopen_self_static in
12591  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12592  *) enable_dlopen_self_static=unknown ;;
12593  esac
12594fi
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612striplib=
12613old_striplib=
12614{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12615$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12616if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12617  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12618  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12619  { $as_echo "$as_me:$LINENO: result: yes" >&5
12620$as_echo "yes" >&6; }
12621else
12622# FIXME - insert some real tests, host_os isn't really good enough
12623  case $host_os in
12624  darwin*)
12625    if test -n "$STRIP" ; then
12626      striplib="$STRIP -x"
12627      old_striplib="$STRIP -S"
12628      { $as_echo "$as_me:$LINENO: result: yes" >&5
12629$as_echo "yes" >&6; }
12630    else
12631      { $as_echo "$as_me:$LINENO: result: no" >&5
12632$as_echo "no" >&6; }
12633    fi
12634    ;;
12635  *)
12636    { $as_echo "$as_me:$LINENO: result: no" >&5
12637$as_echo "no" >&6; }
12638    ;;
12639  esac
12640fi
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653  # Report which library types will actually be built
12654  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12655$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12656  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12657$as_echo "$can_build_shared" >&6; }
12658
12659  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12660$as_echo_n "checking whether to build shared libraries... " >&6; }
12661  test "$can_build_shared" = "no" && enable_shared=no
12662
12663  # On AIX, shared libraries and static libraries use the same namespace, and
12664  # are all built from PIC.
12665  case $host_os in
12666  aix3*)
12667    test "$enable_shared" = yes && enable_static=no
12668    if test -n "$RANLIB"; then
12669      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12670      postinstall_cmds='$RANLIB $lib'
12671    fi
12672    ;;
12673
12674  aix[4-9]*)
12675    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12676      test "$enable_shared" = yes && enable_static=no
12677    fi
12678    ;;
12679  esac
12680  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12681$as_echo "$enable_shared" >&6; }
12682
12683  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12684$as_echo_n "checking whether to build static libraries... " >&6; }
12685  # Make sure either enable_shared or enable_static is yes.
12686  test "$enable_shared" = yes || enable_static=yes
12687  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12688$as_echo "$enable_static" >&6; }
12689
12690
12691
12692
12693fi
12694ac_ext=c
12695ac_cpp='$CPP $CPPFLAGS'
12696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698ac_compiler_gnu=$ac_cv_c_compiler_gnu
12699
12700CC="$lt_save_CC"
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714        ac_config_commands="$ac_config_commands libtool"
12715
12716
12717
12718
12719# Only expand once:
12720
12721
12722
12723pciids_path=/usr/share/hwdata
12724
12725# Check whether --with-pciids-path was given.
12726if test "${with_pciids_path+set}" = set; then
12727  withval=$with_pciids_path; pciids_path="$withval"
12728fi
12729
12730
12731  prefix_NONE=
12732  exec_prefix_NONE=
12733  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
12734  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
12735  eval ac_define_dir="\"$pciids_path\""
12736  eval ac_define_dir="\"$ac_define_dir\""
12737  PCIIDS_PATH="$ac_define_dir"
12738
12739
12740cat >>confdefs.h <<_ACEOF
12741#define PCIIDS_PATH "$ac_define_dir"
12742_ACEOF
12743
12744  test "$prefix_NONE" && prefix=NONE
12745  test "$exec_prefix_NONE" && exec_prefix=NONE
12746
12747
12748# Check whether --enable-linux-rom-fallback was given.
12749if test "${enable_linux_rom_fallback+set}" = set; then
12750  enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval
12751else
12752  LINUX_ROM=no
12753fi
12754
12755
12756if test "x$LINUX_ROM" = xyes; then
12757
12758cat >>confdefs.h <<\_ACEOF
12759#define LINUX_ROM 1
12760_ACEOF
12761
12762fi
12763
12764use_zlib=no
12765
12766# Check whether --with-zlib was given.
12767if test "${with_zlib+set}" = set; then
12768  withval=$with_zlib; use_zlib="$withval"
12769fi
12770
12771if test "x$use_zlib" = xyes; then
12772	{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
12773$as_echo_n "checking for gzopen in -lz... " >&6; }
12774if test "${ac_cv_lib_z_gzopen+set}" = set; then
12775  $as_echo_n "(cached) " >&6
12776else
12777  ac_check_lib_save_LIBS=$LIBS
12778LIBS="-lz  $LIBS"
12779cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h.  */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h.  */
12785
12786/* Override any GCC internal prototype to avoid an error.
12787   Use char because int might match the return type of a GCC
12788   builtin and then its argument prototype would still apply.  */
12789#ifdef __cplusplus
12790extern "C"
12791#endif
12792char gzopen ();
12793int
12794main ()
12795{
12796return gzopen ();
12797  ;
12798  return 0;
12799}
12800_ACEOF
12801rm -f conftest.$ac_objext conftest$ac_exeext
12802if { (ac_try="$ac_link"
12803case "(($ac_try" in
12804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805  *) ac_try_echo=$ac_try;;
12806esac
12807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12808$as_echo "$ac_try_echo") >&5
12809  (eval "$ac_link") 2>conftest.er1
12810  ac_status=$?
12811  grep -v '^ *+' conftest.er1 >conftest.err
12812  rm -f conftest.er1
12813  cat conftest.err >&5
12814  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815  (exit $ac_status); } && {
12816	 test -z "$ac_c_werror_flag" ||
12817	 test ! -s conftest.err
12818       } && test -s conftest$ac_exeext && {
12819	 test "$cross_compiling" = yes ||
12820	 $as_test_x conftest$ac_exeext
12821       }; then
12822  ac_cv_lib_z_gzopen=yes
12823else
12824  $as_echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827	ac_cv_lib_z_gzopen=no
12828fi
12829
12830rm -rf conftest.dSYM
12831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12832      conftest$ac_exeext conftest.$ac_ext
12833LIBS=$ac_check_lib_save_LIBS
12834fi
12835{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
12836$as_echo "$ac_cv_lib_z_gzopen" >&6; }
12837if test "x$ac_cv_lib_z_gzopen" = x""yes; then
12838  PCIACCESS_LIBS="$PCIACCESS_LIBS -lz"
12839else
12840  { { $as_echo "$as_me:$LINENO: error: Check for zlib library failed" >&5
12841$as_echo "$as_me: error: Check for zlib library failed" >&2;}
12842   { (exit 1); exit 1; }; }
12843fi
12844
12845	if test "${ac_cv_header_zlib_h+set}" = set; then
12846  { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12847$as_echo_n "checking for zlib.h... " >&6; }
12848if test "${ac_cv_header_zlib_h+set}" = set; then
12849  $as_echo_n "(cached) " >&6
12850fi
12851{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12852$as_echo "$ac_cv_header_zlib_h" >&6; }
12853else
12854  # Is the header compilable?
12855{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12856$as_echo_n "checking zlib.h usability... " >&6; }
12857cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h.  */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h.  */
12863$ac_includes_default
12864#include <zlib.h>
12865_ACEOF
12866rm -f conftest.$ac_objext
12867if { (ac_try="$ac_compile"
12868case "(($ac_try" in
12869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870  *) ac_try_echo=$ac_try;;
12871esac
12872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12873$as_echo "$ac_try_echo") >&5
12874  (eval "$ac_compile") 2>conftest.er1
12875  ac_status=$?
12876  grep -v '^ *+' conftest.er1 >conftest.err
12877  rm -f conftest.er1
12878  cat conftest.err >&5
12879  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880  (exit $ac_status); } && {
12881	 test -z "$ac_c_werror_flag" ||
12882	 test ! -s conftest.err
12883       } && test -s conftest.$ac_objext; then
12884  ac_header_compiler=yes
12885else
12886  $as_echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
12889	ac_header_compiler=no
12890fi
12891
12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12894$as_echo "$ac_header_compiler" >&6; }
12895
12896# Is the header present?
12897{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12898$as_echo_n "checking zlib.h presence... " >&6; }
12899cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h.  */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h.  */
12905#include <zlib.h>
12906_ACEOF
12907if { (ac_try="$ac_cpp conftest.$ac_ext"
12908case "(($ac_try" in
12909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910  *) ac_try_echo=$ac_try;;
12911esac
12912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12913$as_echo "$ac_try_echo") >&5
12914  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12915  ac_status=$?
12916  grep -v '^ *+' conftest.er1 >conftest.err
12917  rm -f conftest.er1
12918  cat conftest.err >&5
12919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920  (exit $ac_status); } >/dev/null && {
12921	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12922	 test ! -s conftest.err
12923       }; then
12924  ac_header_preproc=yes
12925else
12926  $as_echo "$as_me: failed program was:" >&5
12927sed 's/^/| /' conftest.$ac_ext >&5
12928
12929  ac_header_preproc=no
12930fi
12931
12932rm -f conftest.err conftest.$ac_ext
12933{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12934$as_echo "$ac_header_preproc" >&6; }
12935
12936# So?  What about this header?
12937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12938  yes:no: )
12939    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12940$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12941    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12942$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12943    ac_header_preproc=yes
12944    ;;
12945  no:yes:* )
12946    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12947$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12948    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12949$as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12950    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12951$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12952    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12953$as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12954    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12955$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12956    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12957$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12958    ( cat <<\_ASBOX
12959## --------------------------------------------------------------------------------------------- ##
12960## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
12961## --------------------------------------------------------------------------------------------- ##
12962_ASBOX
12963     ) | sed "s/^/$as_me: WARNING:     /" >&2
12964    ;;
12965esac
12966{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12967$as_echo_n "checking for zlib.h... " >&6; }
12968if test "${ac_cv_header_zlib_h+set}" = set; then
12969  $as_echo_n "(cached) " >&6
12970else
12971  ac_cv_header_zlib_h=$ac_header_preproc
12972fi
12973{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12974$as_echo "$ac_cv_header_zlib_h" >&6; }
12975
12976fi
12977if test "x$ac_cv_header_zlib_h" = x""yes; then
12978
12979cat >>confdefs.h <<\_ACEOF
12980#define HAVE_ZLIB 1
12981_ACEOF
12982
12983else
12984  { { $as_echo "$as_me:$LINENO: error: Check for zlib.h header file failed" >&5
12985$as_echo "$as_me: error: Check for zlib.h header file failed" >&2;}
12986   { (exit 1); exit 1; }; }
12987fi
12988
12989
12990fi
12991
12992case $host_os in
12993	*freebsd* | *dragonfly*)
12994		freebsd=yes
12995		;;
12996	*linux*)
12997		linux=yes
12998		;;
12999	*netbsd*)
13000		case $host in
13001		*i386*)
13002			PCIACCESS_LIBS="-li386"
13003			;;
13004		*x86_64*|*amd64*)
13005			PCIACCESS_LIBS="-lx86_64"
13006			;;
13007		esac
13008		netbsd=yes
13009		;;
13010	*openbsd*)
13011		openbsd=yes
13012		;;
13013	*solaris*)
13014		solaris=yes
13015		PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo"
13016		;;
13017	gnu*)
13018		gnu=yes
13019		;;
13020esac
13021
13022 if test "x$linux" = xyes; then
13023  LINUX_TRUE=
13024  LINUX_FALSE='#'
13025else
13026  LINUX_TRUE='#'
13027  LINUX_FALSE=
13028fi
13029
13030 if test "x$freebsd" = xyes; then
13031  FREEBSD_TRUE=
13032  FREEBSD_FALSE='#'
13033else
13034  FREEBSD_TRUE='#'
13035  FREEBSD_FALSE=
13036fi
13037
13038 if test "x$netbsd" = xyes; then
13039  NETBSD_TRUE=
13040  NETBSD_FALSE='#'
13041else
13042  NETBSD_TRUE='#'
13043  NETBSD_FALSE=
13044fi
13045
13046 if test "x$openbsd" = xyes; then
13047  OPENBSD_TRUE=
13048  OPENBSD_FALSE='#'
13049else
13050  OPENBSD_TRUE='#'
13051  OPENBSD_FALSE=
13052fi
13053
13054 if test "x$solaris" = xyes; then
13055  SOLARIS_TRUE=
13056  SOLARIS_FALSE='#'
13057else
13058  SOLARIS_TRUE='#'
13059  SOLARIS_FALSE=
13060fi
13061
13062 if test "x$gnu" = xyes; then
13063  GNU_TRUE=
13064  GNU_FALSE='#'
13065else
13066  GNU_TRUE='#'
13067  GNU_FALSE=
13068fi
13069
13070
13071# Check whether --enable-largefile was given.
13072if test "${enable_largefile+set}" = set; then
13073  enableval=$enable_largefile;
13074fi
13075
13076if test "$enable_largefile" != no; then
13077
13078  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
13079$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13080if test "${ac_cv_sys_largefile_CC+set}" = set; then
13081  $as_echo_n "(cached) " >&6
13082else
13083  ac_cv_sys_largefile_CC=no
13084     if test "$GCC" != yes; then
13085       ac_save_CC=$CC
13086       while :; do
13087	 # IRIX 6.2 and later do not support large files by default,
13088	 # so use the C compiler's -n32 option if that helps.
13089	 cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h.  */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h.  */
13095#include <sys/types.h>
13096 /* Check that off_t can represent 2**63 - 1 correctly.
13097    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13098    since some C++ compilers masquerading as C compilers
13099    incorrectly reject 9223372036854775807.  */
13100#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13101  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13102		       && LARGE_OFF_T % 2147483647 == 1)
13103		      ? 1 : -1];
13104int
13105main ()
13106{
13107
13108  ;
13109  return 0;
13110}
13111_ACEOF
13112	 rm -f conftest.$ac_objext
13113if { (ac_try="$ac_compile"
13114case "(($ac_try" in
13115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116  *) ac_try_echo=$ac_try;;
13117esac
13118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13119$as_echo "$ac_try_echo") >&5
13120  (eval "$ac_compile") 2>conftest.er1
13121  ac_status=$?
13122  grep -v '^ *+' conftest.er1 >conftest.err
13123  rm -f conftest.er1
13124  cat conftest.err >&5
13125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126  (exit $ac_status); } && {
13127	 test -z "$ac_c_werror_flag" ||
13128	 test ! -s conftest.err
13129       } && test -s conftest.$ac_objext; then
13130  break
13131else
13132  $as_echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
13135
13136fi
13137
13138rm -f core conftest.err conftest.$ac_objext
13139	 CC="$CC -n32"
13140	 rm -f conftest.$ac_objext
13141if { (ac_try="$ac_compile"
13142case "(($ac_try" in
13143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144  *) ac_try_echo=$ac_try;;
13145esac
13146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147$as_echo "$ac_try_echo") >&5
13148  (eval "$ac_compile") 2>conftest.er1
13149  ac_status=$?
13150  grep -v '^ *+' conftest.er1 >conftest.err
13151  rm -f conftest.er1
13152  cat conftest.err >&5
13153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154  (exit $ac_status); } && {
13155	 test -z "$ac_c_werror_flag" ||
13156	 test ! -s conftest.err
13157       } && test -s conftest.$ac_objext; then
13158  ac_cv_sys_largefile_CC=' -n32'; break
13159else
13160  $as_echo "$as_me: failed program was:" >&5
13161sed 's/^/| /' conftest.$ac_ext >&5
13162
13163
13164fi
13165
13166rm -f core conftest.err conftest.$ac_objext
13167	 break
13168       done
13169       CC=$ac_save_CC
13170       rm -f conftest.$ac_ext
13171    fi
13172fi
13173{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13174$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13175  if test "$ac_cv_sys_largefile_CC" != no; then
13176    CC=$CC$ac_cv_sys_largefile_CC
13177  fi
13178
13179  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13180$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13181if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13182  $as_echo_n "(cached) " >&6
13183else
13184  while :; do
13185  cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h.  */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h.  */
13191#include <sys/types.h>
13192 /* Check that off_t can represent 2**63 - 1 correctly.
13193    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13194    since some C++ compilers masquerading as C compilers
13195    incorrectly reject 9223372036854775807.  */
13196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13197  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13198		       && LARGE_OFF_T % 2147483647 == 1)
13199		      ? 1 : -1];
13200int
13201main ()
13202{
13203
13204  ;
13205  return 0;
13206}
13207_ACEOF
13208rm -f conftest.$ac_objext
13209if { (ac_try="$ac_compile"
13210case "(($ac_try" in
13211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212  *) ac_try_echo=$ac_try;;
13213esac
13214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13215$as_echo "$ac_try_echo") >&5
13216  (eval "$ac_compile") 2>conftest.er1
13217  ac_status=$?
13218  grep -v '^ *+' conftest.er1 >conftest.err
13219  rm -f conftest.er1
13220  cat conftest.err >&5
13221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222  (exit $ac_status); } && {
13223	 test -z "$ac_c_werror_flag" ||
13224	 test ! -s conftest.err
13225       } && test -s conftest.$ac_objext; then
13226  ac_cv_sys_file_offset_bits=no; break
13227else
13228  $as_echo "$as_me: failed program was:" >&5
13229sed 's/^/| /' conftest.$ac_ext >&5
13230
13231
13232fi
13233
13234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235  cat >conftest.$ac_ext <<_ACEOF
13236/* confdefs.h.  */
13237_ACEOF
13238cat confdefs.h >>conftest.$ac_ext
13239cat >>conftest.$ac_ext <<_ACEOF
13240/* end confdefs.h.  */
13241#define _FILE_OFFSET_BITS 64
13242#include <sys/types.h>
13243 /* Check that off_t can represent 2**63 - 1 correctly.
13244    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13245    since some C++ compilers masquerading as C compilers
13246    incorrectly reject 9223372036854775807.  */
13247#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13248  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13249		       && LARGE_OFF_T % 2147483647 == 1)
13250		      ? 1 : -1];
13251int
13252main ()
13253{
13254
13255  ;
13256  return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (ac_try="$ac_compile"
13261case "(($ac_try" in
13262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263  *) ac_try_echo=$ac_try;;
13264esac
13265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266$as_echo "$ac_try_echo") >&5
13267  (eval "$ac_compile") 2>conftest.er1
13268  ac_status=$?
13269  grep -v '^ *+' conftest.er1 >conftest.err
13270  rm -f conftest.er1
13271  cat conftest.err >&5
13272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273  (exit $ac_status); } && {
13274	 test -z "$ac_c_werror_flag" ||
13275	 test ! -s conftest.err
13276       } && test -s conftest.$ac_objext; then
13277  ac_cv_sys_file_offset_bits=64; break
13278else
13279  $as_echo "$as_me: failed program was:" >&5
13280sed 's/^/| /' conftest.$ac_ext >&5
13281
13282
13283fi
13284
13285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286  ac_cv_sys_file_offset_bits=unknown
13287  break
13288done
13289fi
13290{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
13291$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13292case $ac_cv_sys_file_offset_bits in #(
13293  no | unknown) ;;
13294  *)
13295cat >>confdefs.h <<_ACEOF
13296#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13297_ACEOF
13298;;
13299esac
13300rm -rf conftest*
13301  if test $ac_cv_sys_file_offset_bits = unknown; then
13302    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
13303$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13304if test "${ac_cv_sys_large_files+set}" = set; then
13305  $as_echo_n "(cached) " >&6
13306else
13307  while :; do
13308  cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h.  */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h.  */
13314#include <sys/types.h>
13315 /* Check that off_t can represent 2**63 - 1 correctly.
13316    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13317    since some C++ compilers masquerading as C compilers
13318    incorrectly reject 9223372036854775807.  */
13319#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13320  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13321		       && LARGE_OFF_T % 2147483647 == 1)
13322		      ? 1 : -1];
13323int
13324main ()
13325{
13326
13327  ;
13328  return 0;
13329}
13330_ACEOF
13331rm -f conftest.$ac_objext
13332if { (ac_try="$ac_compile"
13333case "(($ac_try" in
13334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335  *) ac_try_echo=$ac_try;;
13336esac
13337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13338$as_echo "$ac_try_echo") >&5
13339  (eval "$ac_compile") 2>conftest.er1
13340  ac_status=$?
13341  grep -v '^ *+' conftest.er1 >conftest.err
13342  rm -f conftest.er1
13343  cat conftest.err >&5
13344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345  (exit $ac_status); } && {
13346	 test -z "$ac_c_werror_flag" ||
13347	 test ! -s conftest.err
13348       } && test -s conftest.$ac_objext; then
13349  ac_cv_sys_large_files=no; break
13350else
13351  $as_echo "$as_me: failed program was:" >&5
13352sed 's/^/| /' conftest.$ac_ext >&5
13353
13354
13355fi
13356
13357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358  cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h.  */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h.  */
13364#define _LARGE_FILES 1
13365#include <sys/types.h>
13366 /* Check that off_t can represent 2**63 - 1 correctly.
13367    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13368    since some C++ compilers masquerading as C compilers
13369    incorrectly reject 9223372036854775807.  */
13370#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13371  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13372		       && LARGE_OFF_T % 2147483647 == 1)
13373		      ? 1 : -1];
13374int
13375main ()
13376{
13377
13378  ;
13379  return 0;
13380}
13381_ACEOF
13382rm -f conftest.$ac_objext
13383if { (ac_try="$ac_compile"
13384case "(($ac_try" in
13385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386  *) ac_try_echo=$ac_try;;
13387esac
13388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13389$as_echo "$ac_try_echo") >&5
13390  (eval "$ac_compile") 2>conftest.er1
13391  ac_status=$?
13392  grep -v '^ *+' conftest.er1 >conftest.err
13393  rm -f conftest.er1
13394  cat conftest.err >&5
13395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396  (exit $ac_status); } && {
13397	 test -z "$ac_c_werror_flag" ||
13398	 test ! -s conftest.err
13399       } && test -s conftest.$ac_objext; then
13400  ac_cv_sys_large_files=1; break
13401else
13402  $as_echo "$as_me: failed program was:" >&5
13403sed 's/^/| /' conftest.$ac_ext >&5
13404
13405
13406fi
13407
13408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409  ac_cv_sys_large_files=unknown
13410  break
13411done
13412fi
13413{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
13414$as_echo "$ac_cv_sys_large_files" >&6; }
13415case $ac_cv_sys_large_files in #(
13416  no | unknown) ;;
13417  *)
13418cat >>confdefs.h <<_ACEOF
13419#define _LARGE_FILES $ac_cv_sys_large_files
13420_ACEOF
13421;;
13422esac
13423rm -rf conftest*
13424  fi
13425fi
13426
13427
13428if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
13429  { $as_echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5
13430$as_echo_n "checking for asm/mtrr.h... " >&6; }
13431if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
13432  $as_echo_n "(cached) " >&6
13433fi
13434{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5
13435$as_echo "$ac_cv_header_asm_mtrr_h" >&6; }
13436else
13437  # Is the header compilable?
13438{ $as_echo "$as_me:$LINENO: checking asm/mtrr.h usability" >&5
13439$as_echo_n "checking asm/mtrr.h usability... " >&6; }
13440cat >conftest.$ac_ext <<_ACEOF
13441/* confdefs.h.  */
13442_ACEOF
13443cat confdefs.h >>conftest.$ac_ext
13444cat >>conftest.$ac_ext <<_ACEOF
13445/* end confdefs.h.  */
13446$ac_includes_default
13447#include <asm/mtrr.h>
13448_ACEOF
13449rm -f conftest.$ac_objext
13450if { (ac_try="$ac_compile"
13451case "(($ac_try" in
13452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453  *) ac_try_echo=$ac_try;;
13454esac
13455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13456$as_echo "$ac_try_echo") >&5
13457  (eval "$ac_compile") 2>conftest.er1
13458  ac_status=$?
13459  grep -v '^ *+' conftest.er1 >conftest.err
13460  rm -f conftest.er1
13461  cat conftest.err >&5
13462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463  (exit $ac_status); } && {
13464	 test -z "$ac_c_werror_flag" ||
13465	 test ! -s conftest.err
13466       } && test -s conftest.$ac_objext; then
13467  ac_header_compiler=yes
13468else
13469  $as_echo "$as_me: failed program was:" >&5
13470sed 's/^/| /' conftest.$ac_ext >&5
13471
13472	ac_header_compiler=no
13473fi
13474
13475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13477$as_echo "$ac_header_compiler" >&6; }
13478
13479# Is the header present?
13480{ $as_echo "$as_me:$LINENO: checking asm/mtrr.h presence" >&5
13481$as_echo_n "checking asm/mtrr.h presence... " >&6; }
13482cat >conftest.$ac_ext <<_ACEOF
13483/* confdefs.h.  */
13484_ACEOF
13485cat confdefs.h >>conftest.$ac_ext
13486cat >>conftest.$ac_ext <<_ACEOF
13487/* end confdefs.h.  */
13488#include <asm/mtrr.h>
13489_ACEOF
13490if { (ac_try="$ac_cpp conftest.$ac_ext"
13491case "(($ac_try" in
13492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493  *) ac_try_echo=$ac_try;;
13494esac
13495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496$as_echo "$ac_try_echo") >&5
13497  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13498  ac_status=$?
13499  grep -v '^ *+' conftest.er1 >conftest.err
13500  rm -f conftest.er1
13501  cat conftest.err >&5
13502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503  (exit $ac_status); } >/dev/null && {
13504	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13505	 test ! -s conftest.err
13506       }; then
13507  ac_header_preproc=yes
13508else
13509  $as_echo "$as_me: failed program was:" >&5
13510sed 's/^/| /' conftest.$ac_ext >&5
13511
13512  ac_header_preproc=no
13513fi
13514
13515rm -f conftest.err conftest.$ac_ext
13516{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13517$as_echo "$ac_header_preproc" >&6; }
13518
13519# So?  What about this header?
13520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13521  yes:no: )
13522    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&5
13523$as_echo "$as_me: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13524    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&5
13525$as_echo "$as_me: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&2;}
13526    ac_header_preproc=yes
13527    ;;
13528  no:yes:* )
13529    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: present but cannot be compiled" >&5
13530$as_echo "$as_me: WARNING: asm/mtrr.h: present but cannot be compiled" >&2;}
13531    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h:     check for missing prerequisite headers?" >&5
13532$as_echo "$as_me: WARNING: asm/mtrr.h:     check for missing prerequisite headers?" >&2;}
13533    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: see the Autoconf documentation" >&5
13534$as_echo "$as_me: WARNING: asm/mtrr.h: see the Autoconf documentation" >&2;}
13535    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h:     section \"Present But Cannot Be Compiled\"" >&5
13536$as_echo "$as_me: WARNING: asm/mtrr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13537    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&5
13538$as_echo "$as_me: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&2;}
13539    { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&5
13540$as_echo "$as_me: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&2;}
13541    ( cat <<\_ASBOX
13542## --------------------------------------------------------------------------------------------- ##
13543## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
13544## --------------------------------------------------------------------------------------------- ##
13545_ASBOX
13546     ) | sed "s/^/$as_me: WARNING:     /" >&2
13547    ;;
13548esac
13549{ $as_echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5
13550$as_echo_n "checking for asm/mtrr.h... " >&6; }
13551if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
13552  $as_echo_n "(cached) " >&6
13553else
13554  ac_cv_header_asm_mtrr_h=$ac_header_preproc
13555fi
13556{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5
13557$as_echo "$ac_cv_header_asm_mtrr_h" >&6; }
13558
13559fi
13560if test "x$ac_cv_header_asm_mtrr_h" = x""yes; then
13561  have_mtrr_h="yes"
13562else
13563  have_mtrr_h="no"
13564fi
13565
13566
13567
13568if test "x$have_mtrr_h" = xyes; then
13569
13570cat >>confdefs.h <<\_ACEOF
13571#define HAVE_MTRR 1
13572_ACEOF
13573
13574fi
13575
13576{ $as_echo "$as_me:$LINENO: checking for struct pci_io.pi_sel.pc_domain" >&5
13577$as_echo_n "checking for struct pci_io.pi_sel.pc_domain... " >&6; }
13578if test "${ac_cv_member_struct_pci_io_pi_sel_pc_domain+set}" = set; then
13579  $as_echo_n "(cached) " >&6
13580else
13581  cat >conftest.$ac_ext <<_ACEOF
13582/* confdefs.h.  */
13583_ACEOF
13584cat confdefs.h >>conftest.$ac_ext
13585cat >>conftest.$ac_ext <<_ACEOF
13586/* end confdefs.h.  */
13587 #include <sys/types.h>
13588                 #include <sys/pciio.h>
13589
13590
13591int
13592main ()
13593{
13594static struct pci_io ac_aggr;
13595if (ac_aggr.pi_sel.pc_domain)
13596return 0;
13597  ;
13598  return 0;
13599}
13600_ACEOF
13601rm -f conftest.$ac_objext
13602if { (ac_try="$ac_compile"
13603case "(($ac_try" in
13604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605  *) ac_try_echo=$ac_try;;
13606esac
13607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13608$as_echo "$ac_try_echo") >&5
13609  (eval "$ac_compile") 2>conftest.er1
13610  ac_status=$?
13611  grep -v '^ *+' conftest.er1 >conftest.err
13612  rm -f conftest.er1
13613  cat conftest.err >&5
13614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615  (exit $ac_status); } && {
13616	 test -z "$ac_c_werror_flag" ||
13617	 test ! -s conftest.err
13618       } && test -s conftest.$ac_objext; then
13619  ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes
13620else
13621  $as_echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624	cat >conftest.$ac_ext <<_ACEOF
13625/* confdefs.h.  */
13626_ACEOF
13627cat confdefs.h >>conftest.$ac_ext
13628cat >>conftest.$ac_ext <<_ACEOF
13629/* end confdefs.h.  */
13630 #include <sys/types.h>
13631                 #include <sys/pciio.h>
13632
13633
13634int
13635main ()
13636{
13637static struct pci_io ac_aggr;
13638if (sizeof ac_aggr.pi_sel.pc_domain)
13639return 0;
13640  ;
13641  return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
13645if { (ac_try="$ac_compile"
13646case "(($ac_try" in
13647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648  *) ac_try_echo=$ac_try;;
13649esac
13650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13651$as_echo "$ac_try_echo") >&5
13652  (eval "$ac_compile") 2>conftest.er1
13653  ac_status=$?
13654  grep -v '^ *+' conftest.er1 >conftest.err
13655  rm -f conftest.er1
13656  cat conftest.err >&5
13657  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658  (exit $ac_status); } && {
13659	 test -z "$ac_c_werror_flag" ||
13660	 test ! -s conftest.err
13661       } && test -s conftest.$ac_objext; then
13662  ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes
13663else
13664  $as_echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
13667	ac_cv_member_struct_pci_io_pi_sel_pc_domain=no
13668fi
13669
13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671fi
13672
13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674fi
13675{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&5
13676$as_echo "$ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&6; }
13677if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = x""yes; then
13678
13679cat >>confdefs.h <<\_ACEOF
13680#define HAVE_PCI_IO_PC_DOMAIN 1
13681_ACEOF
13682
13683fi
13684
13685
13686
13687
13688
13689
13690ac_config_files="$ac_config_files Makefile src/Makefile pciaccess.pc"
13691
13692cat >confcache <<\_ACEOF
13693# This file is a shell script that caches the results of configure
13694# tests run on this system so they can be shared between configure
13695# scripts and configure runs, see configure's option --config-cache.
13696# It is not useful on other systems.  If it contains results you don't
13697# want to keep, you may remove or edit it.
13698#
13699# config.status only pays attention to the cache file if you give it
13700# the --recheck option to rerun configure.
13701#
13702# `ac_cv_env_foo' variables (set or unset) will be overridden when
13703# loading this file, other *unset* `ac_cv_foo' will be assigned the
13704# following values.
13705
13706_ACEOF
13707
13708# The following way of writing the cache mishandles newlines in values,
13709# but we know of no workaround that is simple, portable, and efficient.
13710# So, we kill variables containing newlines.
13711# Ultrix sh set writes to stderr and can't be redirected directly,
13712# and sets the high bit in the cache file unless we assign to the vars.
13713(
13714  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13715    eval ac_val=\$$ac_var
13716    case $ac_val in #(
13717    *${as_nl}*)
13718      case $ac_var in #(
13719      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13720$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13721      esac
13722      case $ac_var in #(
13723      _ | IFS | as_nl) ;; #(
13724      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13725      *) $as_unset $ac_var ;;
13726      esac ;;
13727    esac
13728  done
13729
13730  (set) 2>&1 |
13731    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13732    *${as_nl}ac_space=\ *)
13733      # `set' does not quote correctly, so add quotes (double-quote
13734      # substitution turns \\\\ into \\, and sed turns \\ into \).
13735      sed -n \
13736	"s/'/'\\\\''/g;
13737	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13738      ;; #(
13739    *)
13740      # `set' quotes correctly as required by POSIX, so do not add quotes.
13741      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13742      ;;
13743    esac |
13744    sort
13745) |
13746  sed '
13747     /^ac_cv_env_/b end
13748     t clear
13749     :clear
13750     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13751     t end
13752     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13753     :end' >>confcache
13754if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13755  if test -w "$cache_file"; then
13756    test "x$cache_file" != "x/dev/null" &&
13757      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13758$as_echo "$as_me: updating cache $cache_file" >&6;}
13759    cat confcache >$cache_file
13760  else
13761    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13762$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13763  fi
13764fi
13765rm -f confcache
13766
13767test "x$prefix" = xNONE && prefix=$ac_default_prefix
13768# Let make expand exec_prefix.
13769test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13770
13771DEFS=-DHAVE_CONFIG_H
13772
13773ac_libobjs=
13774ac_ltlibobjs=
13775for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13776  # 1. Remove the extension, and $U if already installed.
13777  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13778  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13779  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13780  #    will be set to the directory where LIBOBJS objects are built.
13781  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13782  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13783done
13784LIBOBJS=$ac_libobjs
13785
13786LTLIBOBJS=$ac_ltlibobjs
13787
13788
13789 if test -n "$EXEEXT"; then
13790  am__EXEEXT_TRUE=
13791  am__EXEEXT_FALSE='#'
13792else
13793  am__EXEEXT_TRUE='#'
13794  am__EXEEXT_FALSE=
13795fi
13796
13797if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13798  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13799Usually this means the macro was only invoked conditionally." >&5
13800$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13801Usually this means the macro was only invoked conditionally." >&2;}
13802   { (exit 1); exit 1; }; }
13803fi
13804if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13805  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13806Usually this means the macro was only invoked conditionally." >&5
13807$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13808Usually this means the macro was only invoked conditionally." >&2;}
13809   { (exit 1); exit 1; }; }
13810fi
13811if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13812  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13813Usually this means the macro was only invoked conditionally." >&5
13814$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13815Usually this means the macro was only invoked conditionally." >&2;}
13816   { (exit 1); exit 1; }; }
13817fi
13818if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13819  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13820Usually this means the macro was only invoked conditionally." >&5
13821$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13822Usually this means the macro was only invoked conditionally." >&2;}
13823   { (exit 1); exit 1; }; }
13824fi
13825if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
13826  { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
13827Usually this means the macro was only invoked conditionally." >&5
13828$as_echo "$as_me: error: conditional \"LINUX\" was never defined.
13829Usually this means the macro was only invoked conditionally." >&2;}
13830   { (exit 1); exit 1; }; }
13831fi
13832if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
13833  { { $as_echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined.
13834Usually this means the macro was only invoked conditionally." >&5
13835$as_echo "$as_me: error: conditional \"FREEBSD\" was never defined.
13836Usually this means the macro was only invoked conditionally." >&2;}
13837   { (exit 1); exit 1; }; }
13838fi
13839if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
13840  { { $as_echo "$as_me:$LINENO: error: conditional \"NETBSD\" was never defined.
13841Usually this means the macro was only invoked conditionally." >&5
13842$as_echo "$as_me: error: conditional \"NETBSD\" was never defined.
13843Usually this means the macro was only invoked conditionally." >&2;}
13844   { (exit 1); exit 1; }; }
13845fi
13846if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
13847  { { $as_echo "$as_me:$LINENO: error: conditional \"OPENBSD\" was never defined.
13848Usually this means the macro was only invoked conditionally." >&5
13849$as_echo "$as_me: error: conditional \"OPENBSD\" was never defined.
13850Usually this means the macro was only invoked conditionally." >&2;}
13851   { (exit 1); exit 1; }; }
13852fi
13853if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
13854  { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
13855Usually this means the macro was only invoked conditionally." >&5
13856$as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
13857Usually this means the macro was only invoked conditionally." >&2;}
13858   { (exit 1); exit 1; }; }
13859fi
13860if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then
13861  { { $as_echo "$as_me:$LINENO: error: conditional \"GNU\" was never defined.
13862Usually this means the macro was only invoked conditionally." >&5
13863$as_echo "$as_me: error: conditional \"GNU\" was never defined.
13864Usually this means the macro was only invoked conditionally." >&2;}
13865   { (exit 1); exit 1; }; }
13866fi
13867
13868: ${CONFIG_STATUS=./config.status}
13869ac_write_fail=0
13870ac_clean_files_save=$ac_clean_files
13871ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13872{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13873$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13874cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13875#! $SHELL
13876# Generated by $as_me.
13877# Run this file to recreate the current configuration.
13878# Compiler output produced by configure, useful for debugging
13879# configure, is in config.log if it exists.
13880
13881debug=false
13882ac_cs_recheck=false
13883ac_cs_silent=false
13884SHELL=\${CONFIG_SHELL-$SHELL}
13885_ACEOF
13886
13887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13888## --------------------- ##
13889## M4sh Initialization.  ##
13890## --------------------- ##
13891
13892# Be more Bourne compatible
13893DUALCASE=1; export DUALCASE # for MKS sh
13894if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13895  emulate sh
13896  NULLCMD=:
13897  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13898  # is contrary to our usage.  Disable this feature.
13899  alias -g '${1+"$@"}'='"$@"'
13900  setopt NO_GLOB_SUBST
13901else
13902  case `(set -o) 2>/dev/null` in
13903  *posix*) set -o posix ;;
13904esac
13905
13906fi
13907
13908
13909
13910
13911# PATH needs CR
13912# Avoid depending upon Character Ranges.
13913as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13914as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13915as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13916as_cr_digits='0123456789'
13917as_cr_alnum=$as_cr_Letters$as_cr_digits
13918
13919as_nl='
13920'
13921export as_nl
13922# Printing a long string crashes Solaris 7 /usr/bin/printf.
13923as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13924as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13925as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13926if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13927  as_echo='printf %s\n'
13928  as_echo_n='printf %s'
13929else
13930  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13931    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13932    as_echo_n='/usr/ucb/echo -n'
13933  else
13934    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13935    as_echo_n_body='eval
13936      arg=$1;
13937      case $arg in
13938      *"$as_nl"*)
13939	expr "X$arg" : "X\\(.*\\)$as_nl";
13940	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13941      esac;
13942      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13943    '
13944    export as_echo_n_body
13945    as_echo_n='sh -c $as_echo_n_body as_echo'
13946  fi
13947  export as_echo_body
13948  as_echo='sh -c $as_echo_body as_echo'
13949fi
13950
13951# The user is always right.
13952if test "${PATH_SEPARATOR+set}" != set; then
13953  PATH_SEPARATOR=:
13954  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13955    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13956      PATH_SEPARATOR=';'
13957  }
13958fi
13959
13960# Support unset when possible.
13961if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13962  as_unset=unset
13963else
13964  as_unset=false
13965fi
13966
13967
13968# IFS
13969# We need space, tab and new line, in precisely that order.  Quoting is
13970# there to prevent editors from complaining about space-tab.
13971# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13972# splitting by setting IFS to empty value.)
13973IFS=" ""	$as_nl"
13974
13975# Find who we are.  Look in the path if we contain no directory separator.
13976case $0 in
13977  *[\\/]* ) as_myself=$0 ;;
13978  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979for as_dir in $PATH
13980do
13981  IFS=$as_save_IFS
13982  test -z "$as_dir" && as_dir=.
13983  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13984done
13985IFS=$as_save_IFS
13986
13987     ;;
13988esac
13989# We did not find ourselves, most probably we were run as `sh COMMAND'
13990# in which case we are not to be found in the path.
13991if test "x$as_myself" = x; then
13992  as_myself=$0
13993fi
13994if test ! -f "$as_myself"; then
13995  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13996  { (exit 1); exit 1; }
13997fi
13998
13999# Work around bugs in pre-3.0 UWIN ksh.
14000for as_var in ENV MAIL MAILPATH
14001do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14002done
14003PS1='$ '
14004PS2='> '
14005PS4='+ '
14006
14007# NLS nuisances.
14008LC_ALL=C
14009export LC_ALL
14010LANGUAGE=C
14011export LANGUAGE
14012
14013# Required to use basename.
14014if expr a : '\(a\)' >/dev/null 2>&1 &&
14015   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14016  as_expr=expr
14017else
14018  as_expr=false
14019fi
14020
14021if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14022  as_basename=basename
14023else
14024  as_basename=false
14025fi
14026
14027
14028# Name of the executable.
14029as_me=`$as_basename -- "$0" ||
14030$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14031	 X"$0" : 'X\(//\)$' \| \
14032	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14033$as_echo X/"$0" |
14034    sed '/^.*\/\([^/][^/]*\)\/*$/{
14035	    s//\1/
14036	    q
14037	  }
14038	  /^X\/\(\/\/\)$/{
14039	    s//\1/
14040	    q
14041	  }
14042	  /^X\/\(\/\).*/{
14043	    s//\1/
14044	    q
14045	  }
14046	  s/.*/./; q'`
14047
14048# CDPATH.
14049$as_unset CDPATH
14050
14051
14052
14053  as_lineno_1=$LINENO
14054  as_lineno_2=$LINENO
14055  test "x$as_lineno_1" != "x$as_lineno_2" &&
14056  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14057
14058  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14059  # uniformly replaced by the line number.  The first 'sed' inserts a
14060  # line-number line after each line using $LINENO; the second 'sed'
14061  # does the real work.  The second script uses 'N' to pair each
14062  # line-number line with the line containing $LINENO, and appends
14063  # trailing '-' during substitution so that $LINENO is not a special
14064  # case at line end.
14065  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14066  # scripts with optimization help from Paolo Bonzini.  Blame Lee
14067  # E. McMahon (1931-1989) for sed's syntax.  :-)
14068  sed -n '
14069    p
14070    /[$]LINENO/=
14071  ' <$as_myself |
14072    sed '
14073      s/[$]LINENO.*/&-/
14074      t lineno
14075      b
14076      :lineno
14077      N
14078      :loop
14079      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14080      t loop
14081      s/-\n.*//
14082    ' >$as_me.lineno &&
14083  chmod +x "$as_me.lineno" ||
14084    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14085   { (exit 1); exit 1; }; }
14086
14087  # Don't try to exec as it changes $[0], causing all sort of problems
14088  # (the dirname of $[0] is not the place where we might find the
14089  # original and so on.  Autoconf is especially sensitive to this).
14090  . "./$as_me.lineno"
14091  # Exit status is that of the last command.
14092  exit
14093}
14094
14095
14096if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14097  as_dirname=dirname
14098else
14099  as_dirname=false
14100fi
14101
14102ECHO_C= ECHO_N= ECHO_T=
14103case `echo -n x` in
14104-n*)
14105  case `echo 'x\c'` in
14106  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14107  *)   ECHO_C='\c';;
14108  esac;;
14109*)
14110  ECHO_N='-n';;
14111esac
14112if expr a : '\(a\)' >/dev/null 2>&1 &&
14113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14114  as_expr=expr
14115else
14116  as_expr=false
14117fi
14118
14119rm -f conf$$ conf$$.exe conf$$.file
14120if test -d conf$$.dir; then
14121  rm -f conf$$.dir/conf$$.file
14122else
14123  rm -f conf$$.dir
14124  mkdir conf$$.dir 2>/dev/null
14125fi
14126if (echo >conf$$.file) 2>/dev/null; then
14127  if ln -s conf$$.file conf$$ 2>/dev/null; then
14128    as_ln_s='ln -s'
14129    # ... but there are two gotchas:
14130    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14131    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14132    # In both cases, we have to default to `cp -p'.
14133    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14134      as_ln_s='cp -p'
14135  elif ln conf$$.file conf$$ 2>/dev/null; then
14136    as_ln_s=ln
14137  else
14138    as_ln_s='cp -p'
14139  fi
14140else
14141  as_ln_s='cp -p'
14142fi
14143rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14144rmdir conf$$.dir 2>/dev/null
14145
14146if mkdir -p . 2>/dev/null; then
14147  as_mkdir_p=:
14148else
14149  test -d ./-p && rmdir ./-p
14150  as_mkdir_p=false
14151fi
14152
14153if test -x / >/dev/null 2>&1; then
14154  as_test_x='test -x'
14155else
14156  if ls -dL / >/dev/null 2>&1; then
14157    as_ls_L_option=L
14158  else
14159    as_ls_L_option=
14160  fi
14161  as_test_x='
14162    eval sh -c '\''
14163      if test -d "$1"; then
14164	test -d "$1/.";
14165      else
14166	case $1 in
14167	-*)set "./$1";;
14168	esac;
14169	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14170	???[sx]*):;;*)false;;esac;fi
14171    '\'' sh
14172  '
14173fi
14174as_executable_p=$as_test_x
14175
14176# Sed expression to map a string onto a valid CPP name.
14177as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14178
14179# Sed expression to map a string onto a valid variable name.
14180as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14181
14182
14183exec 6>&1
14184
14185# Save the log message, to keep $[0] and so on meaningful, and to
14186# report actual input values of CONFIG_FILES etc. instead of their
14187# values after options handling.
14188ac_log="
14189This file was extended by libpciaccess $as_me 0.12.0, which was
14190generated by GNU Autoconf 2.63.  Invocation command line was
14191
14192  CONFIG_FILES    = $CONFIG_FILES
14193  CONFIG_HEADERS  = $CONFIG_HEADERS
14194  CONFIG_LINKS    = $CONFIG_LINKS
14195  CONFIG_COMMANDS = $CONFIG_COMMANDS
14196  $ $0 $@
14197
14198on `(hostname || uname -n) 2>/dev/null | sed 1q`
14199"
14200
14201_ACEOF
14202
14203case $ac_config_files in *"
14204"*) set x $ac_config_files; shift; ac_config_files=$*;;
14205esac
14206
14207case $ac_config_headers in *"
14208"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14209esac
14210
14211
14212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14213# Files that config.status was made for.
14214config_files="$ac_config_files"
14215config_headers="$ac_config_headers"
14216config_commands="$ac_config_commands"
14217
14218_ACEOF
14219
14220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14221ac_cs_usage="\
14222\`$as_me' instantiates files from templates according to the
14223current configuration.
14224
14225Usage: $0 [OPTION]... [FILE]...
14226
14227  -h, --help       print this help, then exit
14228  -V, --version    print version number and configuration settings, then exit
14229  -q, --quiet, --silent
14230                   do not print progress messages
14231  -d, --debug      don't remove temporary files
14232      --recheck    update $as_me by reconfiguring in the same conditions
14233      --file=FILE[:TEMPLATE]
14234                   instantiate the configuration file FILE
14235      --header=FILE[:TEMPLATE]
14236                   instantiate the configuration header FILE
14237
14238Configuration files:
14239$config_files
14240
14241Configuration headers:
14242$config_headers
14243
14244Configuration commands:
14245$config_commands
14246
14247Report bugs to <bug-autoconf@gnu.org>."
14248
14249_ACEOF
14250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14251ac_cs_version="\\
14252libpciaccess config.status 0.12.0
14253configured by $0, generated by GNU Autoconf 2.63,
14254  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14255
14256Copyright (C) 2008 Free Software Foundation, Inc.
14257This config.status script is free software; the Free Software Foundation
14258gives unlimited permission to copy, distribute and modify it."
14259
14260ac_pwd='$ac_pwd'
14261srcdir='$srcdir'
14262INSTALL='$INSTALL'
14263MKDIR_P='$MKDIR_P'
14264AWK='$AWK'
14265test -n "\$AWK" || AWK=awk
14266_ACEOF
14267
14268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269# The default lists apply if the user does not specify any file.
14270ac_need_defaults=:
14271while test $# != 0
14272do
14273  case $1 in
14274  --*=*)
14275    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14276    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14277    ac_shift=:
14278    ;;
14279  *)
14280    ac_option=$1
14281    ac_optarg=$2
14282    ac_shift=shift
14283    ;;
14284  esac
14285
14286  case $ac_option in
14287  # Handling of the options.
14288  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14289    ac_cs_recheck=: ;;
14290  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14291    $as_echo "$ac_cs_version"; exit ;;
14292  --debug | --debu | --deb | --de | --d | -d )
14293    debug=: ;;
14294  --file | --fil | --fi | --f )
14295    $ac_shift
14296    case $ac_optarg in
14297    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14298    esac
14299    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14300    ac_need_defaults=false;;
14301  --header | --heade | --head | --hea )
14302    $ac_shift
14303    case $ac_optarg in
14304    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14305    esac
14306    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14307    ac_need_defaults=false;;
14308  --he | --h)
14309    # Conflict between --help and --header
14310    { $as_echo "$as_me: error: ambiguous option: $1
14311Try \`$0 --help' for more information." >&2
14312   { (exit 1); exit 1; }; };;
14313  --help | --hel | -h )
14314    $as_echo "$ac_cs_usage"; exit ;;
14315  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14316  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14317    ac_cs_silent=: ;;
14318
14319  # This is an error.
14320  -*) { $as_echo "$as_me: error: unrecognized option: $1
14321Try \`$0 --help' for more information." >&2
14322   { (exit 1); exit 1; }; } ;;
14323
14324  *) ac_config_targets="$ac_config_targets $1"
14325     ac_need_defaults=false ;;
14326
14327  esac
14328  shift
14329done
14330
14331ac_configure_extra_args=
14332
14333if $ac_cs_silent; then
14334  exec 6>/dev/null
14335  ac_configure_extra_args="$ac_configure_extra_args --silent"
14336fi
14337
14338_ACEOF
14339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14340if \$ac_cs_recheck; then
14341  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14342  shift
14343  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14344  CONFIG_SHELL='$SHELL'
14345  export CONFIG_SHELL
14346  exec "\$@"
14347fi
14348
14349_ACEOF
14350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351exec 5>>config.log
14352{
14353  echo
14354  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14355## Running $as_me. ##
14356_ASBOX
14357  $as_echo "$ac_log"
14358} >&5
14359
14360_ACEOF
14361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14362#
14363# INIT-COMMANDS
14364#
14365AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14366
14367
14368# The HP-UX ksh and POSIX shell print the target directory to stdout
14369# if CDPATH is set.
14370(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14371
14372sed_quote_subst='$sed_quote_subst'
14373double_quote_subst='$double_quote_subst'
14374delay_variable_subst='$delay_variable_subst'
14375macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14376macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14377enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14378enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14379pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14380enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14381host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14382host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14383host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14384build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14385build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14386build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14387SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14388Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14389GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14390EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14391FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14392LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14393NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14394LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14395max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14396ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14397exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14398lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14399lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14400lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14401reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14402reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14403OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14404deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14405file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14406AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14407AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14408STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14409RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14410old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14411old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14412old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14413CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14414CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14415compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14416GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14417lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14418lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14419lt_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"`'
14420lt_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"`'
14421objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14422SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14423ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14424MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14425lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14426lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14427lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14428lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14429lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14430need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14431DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14432NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14433LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14434OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14435OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14436libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14437shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14438extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14439archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14440enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14441export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14442whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14443compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14444old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14445old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14446archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14447archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14448module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14449module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14450with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14451allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14452no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14453hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14454hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14455hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14456hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14457hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14458hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14459hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14460hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14461inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14462link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14463fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14464always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14465export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14466exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14467include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14468prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14469file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14470variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14471need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14472need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14473version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14474runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14475shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14476shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14477libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14478library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14479soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14480postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14481postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14482finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14483finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14484hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14485sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14486sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14487hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14488enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14489enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14490enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14491old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14492striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14493
14494LTCC='$LTCC'
14495LTCFLAGS='$LTCFLAGS'
14496compiler='$compiler_DEFAULT'
14497
14498# Quote evaled strings.
14499for var in SED \
14500GREP \
14501EGREP \
14502FGREP \
14503LD \
14504NM \
14505LN_S \
14506lt_SP2NL \
14507lt_NL2SP \
14508reload_flag \
14509OBJDUMP \
14510deplibs_check_method \
14511file_magic_cmd \
14512AR \
14513AR_FLAGS \
14514STRIP \
14515RANLIB \
14516CC \
14517CFLAGS \
14518compiler \
14519lt_cv_sys_global_symbol_pipe \
14520lt_cv_sys_global_symbol_to_cdecl \
14521lt_cv_sys_global_symbol_to_c_name_address \
14522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14523SHELL \
14524ECHO \
14525lt_prog_compiler_no_builtin_flag \
14526lt_prog_compiler_wl \
14527lt_prog_compiler_pic \
14528lt_prog_compiler_static \
14529lt_cv_prog_compiler_c_o \
14530need_locks \
14531DSYMUTIL \
14532NMEDIT \
14533LIPO \
14534OTOOL \
14535OTOOL64 \
14536shrext_cmds \
14537export_dynamic_flag_spec \
14538whole_archive_flag_spec \
14539compiler_needs_object \
14540with_gnu_ld \
14541allow_undefined_flag \
14542no_undefined_flag \
14543hardcode_libdir_flag_spec \
14544hardcode_libdir_flag_spec_ld \
14545hardcode_libdir_separator \
14546fix_srcfile_path \
14547exclude_expsyms \
14548include_expsyms \
14549file_list_spec \
14550variables_saved_for_relink \
14551libname_spec \
14552library_names_spec \
14553soname_spec \
14554finish_eval \
14555old_striplib \
14556striplib; do
14557    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14558    *[\\\\\\\`\\"\\\$]*)
14559      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14560      ;;
14561    *)
14562      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14563      ;;
14564    esac
14565done
14566
14567# Double-quote double-evaled strings.
14568for var in reload_cmds \
14569old_postinstall_cmds \
14570old_postuninstall_cmds \
14571old_archive_cmds \
14572extract_expsyms_cmds \
14573old_archive_from_new_cmds \
14574old_archive_from_expsyms_cmds \
14575archive_cmds \
14576archive_expsym_cmds \
14577module_cmds \
14578module_expsym_cmds \
14579export_symbols_cmds \
14580prelink_cmds \
14581postinstall_cmds \
14582postuninstall_cmds \
14583finish_cmds \
14584sys_lib_search_path_spec \
14585sys_lib_dlsearch_path_spec; do
14586    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14587    *[\\\\\\\`\\"\\\$]*)
14588      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14589      ;;
14590    *)
14591      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14592      ;;
14593    esac
14594done
14595
14596# Fix-up fallback echo if it was mangled by the above quoting rules.
14597case \$lt_ECHO in
14598*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14599  ;;
14600esac
14601
14602ac_aux_dir='$ac_aux_dir'
14603xsi_shell='$xsi_shell'
14604lt_shell_append='$lt_shell_append'
14605
14606# See if we are running on zsh, and set the options which allow our
14607# commands through without removal of \ escapes INIT.
14608if test -n "\${ZSH_VERSION+set}" ; then
14609   setopt NO_GLOB_SUBST
14610fi
14611
14612
14613    PACKAGE='$PACKAGE'
14614    VERSION='$VERSION'
14615    TIMESTAMP='$TIMESTAMP'
14616    RM='$RM'
14617    ofile='$ofile'
14618
14619
14620
14621
14622_ACEOF
14623
14624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14625
14626# Handling of arguments.
14627for ac_config_target in $ac_config_targets
14628do
14629  case $ac_config_target in
14630    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14631    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14632    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14633    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14634    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14635    "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;;
14636
14637  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14638$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14639   { (exit 1); exit 1; }; };;
14640  esac
14641done
14642
14643
14644# If the user did not use the arguments to specify the items to instantiate,
14645# then the envvar interface is used.  Set only those that are not.
14646# We use the long form for the default assignment because of an extremely
14647# bizarre bug on SunOS 4.1.3.
14648if $ac_need_defaults; then
14649  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14650  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14651  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14652fi
14653
14654# Have a temporary directory for convenience.  Make it in the build tree
14655# simply because there is no reason against having it here, and in addition,
14656# creating and moving files from /tmp can sometimes cause problems.
14657# Hook for its removal unless debugging.
14658# Note that there is a small window in which the directory will not be cleaned:
14659# after its creation but before its name has been assigned to `$tmp'.
14660$debug ||
14661{
14662  tmp=
14663  trap 'exit_status=$?
14664  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14665' 0
14666  trap '{ (exit 1); exit 1; }' 1 2 13 15
14667}
14668# Create a (secure) tmp directory for tmp files.
14669
14670{
14671  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14672  test -n "$tmp" && test -d "$tmp"
14673}  ||
14674{
14675  tmp=./conf$$-$RANDOM
14676  (umask 077 && mkdir "$tmp")
14677} ||
14678{
14679   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14680   { (exit 1); exit 1; }
14681}
14682
14683# Set up the scripts for CONFIG_FILES section.
14684# No need to generate them if there are no CONFIG_FILES.
14685# This happens for instance with `./config.status config.h'.
14686if test -n "$CONFIG_FILES"; then
14687
14688
14689ac_cr='
14690'
14691ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14692if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14693  ac_cs_awk_cr='\\r'
14694else
14695  ac_cs_awk_cr=$ac_cr
14696fi
14697
14698echo 'BEGIN {' >"$tmp/subs1.awk" &&
14699_ACEOF
14700
14701
14702{
14703  echo "cat >conf$$subs.awk <<_ACEOF" &&
14704  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14705  echo "_ACEOF"
14706} >conf$$subs.sh ||
14707  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14708$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14709   { (exit 1); exit 1; }; }
14710ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14711ac_delim='%!_!# '
14712for ac_last_try in false false false false false :; do
14713  . ./conf$$subs.sh ||
14714    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14715$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14716   { (exit 1); exit 1; }; }
14717
14718  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14719  if test $ac_delim_n = $ac_delim_num; then
14720    break
14721  elif $ac_last_try; then
14722    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14723$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14724   { (exit 1); exit 1; }; }
14725  else
14726    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14727  fi
14728done
14729rm -f conf$$subs.sh
14730
14731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14732cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14733_ACEOF
14734sed -n '
14735h
14736s/^/S["/; s/!.*/"]=/
14737p
14738g
14739s/^[^!]*!//
14740:repl
14741t repl
14742s/'"$ac_delim"'$//
14743t delim
14744:nl
14745h
14746s/\(.\{148\}\).*/\1/
14747t more1
14748s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14749p
14750n
14751b repl
14752:more1
14753s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14754p
14755g
14756s/.\{148\}//
14757t nl
14758:delim
14759h
14760s/\(.\{148\}\).*/\1/
14761t more2
14762s/["\\]/\\&/g; s/^/"/; s/$/"/
14763p
14764b
14765:more2
14766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14767p
14768g
14769s/.\{148\}//
14770t delim
14771' <conf$$subs.awk | sed '
14772/^[^""]/{
14773  N
14774  s/\n//
14775}
14776' >>$CONFIG_STATUS || ac_write_fail=1
14777rm -f conf$$subs.awk
14778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779_ACAWK
14780cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14781  for (key in S) S_is_set[key] = 1
14782  FS = ""
14783
14784}
14785{
14786  line = $ 0
14787  nfields = split(line, field, "@")
14788  substed = 0
14789  len = length(field[1])
14790  for (i = 2; i < nfields; i++) {
14791    key = field[i]
14792    keylen = length(key)
14793    if (S_is_set[key]) {
14794      value = S[key]
14795      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14796      len += length(value) + length(field[++i])
14797      substed = 1
14798    } else
14799      len += 1 + keylen
14800  }
14801
14802  print line
14803}
14804
14805_ACAWK
14806_ACEOF
14807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14808if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14809  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14810else
14811  cat
14812fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14813  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14814$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14815   { (exit 1); exit 1; }; }
14816_ACEOF
14817
14818# VPATH may cause trouble with some makes, so we remove $(srcdir),
14819# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14820# trailing colons and then remove the whole line if VPATH becomes empty
14821# (actually we leave an empty line to preserve line numbers).
14822if test "x$srcdir" = x.; then
14823  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14824s/:*\$(srcdir):*/:/
14825s/:*\${srcdir}:*/:/
14826s/:*@srcdir@:*/:/
14827s/^\([^=]*=[	 ]*\):*/\1/
14828s/:*$//
14829s/^[^=]*=[	 ]*$//
14830}'
14831fi
14832
14833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14834fi # test -n "$CONFIG_FILES"
14835
14836# Set up the scripts for CONFIG_HEADERS section.
14837# No need to generate them if there are no CONFIG_HEADERS.
14838# This happens for instance with `./config.status Makefile'.
14839if test -n "$CONFIG_HEADERS"; then
14840cat >"$tmp/defines.awk" <<\_ACAWK ||
14841BEGIN {
14842_ACEOF
14843
14844# Transform confdefs.h into an awk script `defines.awk', embedded as
14845# here-document in config.status, that substitutes the proper values into
14846# config.h.in to produce config.h.
14847
14848# Create a delimiter string that does not exist in confdefs.h, to ease
14849# handling of long lines.
14850ac_delim='%!_!# '
14851for ac_last_try in false false :; do
14852  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14853  if test -z "$ac_t"; then
14854    break
14855  elif $ac_last_try; then
14856    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14857$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14858   { (exit 1); exit 1; }; }
14859  else
14860    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14861  fi
14862done
14863
14864# For the awk script, D is an array of macro values keyed by name,
14865# likewise P contains macro parameters if any.  Preserve backslash
14866# newline sequences.
14867
14868ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14869sed -n '
14870s/.\{148\}/&'"$ac_delim"'/g
14871t rset
14872:rset
14873s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14874t def
14875d
14876:def
14877s/\\$//
14878t bsnl
14879s/["\\]/\\&/g
14880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14881D["\1"]=" \3"/p
14882s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14883d
14884:bsnl
14885s/["\\]/\\&/g
14886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14887D["\1"]=" \3\\\\\\n"\\/p
14888t cont
14889s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14890t cont
14891d
14892:cont
14893n
14894s/.\{148\}/&'"$ac_delim"'/g
14895t clear
14896:clear
14897s/\\$//
14898t bsnlc
14899s/["\\]/\\&/g; s/^/"/; s/$/"/p
14900d
14901:bsnlc
14902s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14903b cont
14904' <confdefs.h | sed '
14905s/'"$ac_delim"'/"\\\
14906"/g' >>$CONFIG_STATUS || ac_write_fail=1
14907
14908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14909  for (key in D) D_is_set[key] = 1
14910  FS = ""
14911}
14912/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14913  line = \$ 0
14914  split(line, arg, " ")
14915  if (arg[1] == "#") {
14916    defundef = arg[2]
14917    mac1 = arg[3]
14918  } else {
14919    defundef = substr(arg[1], 2)
14920    mac1 = arg[2]
14921  }
14922  split(mac1, mac2, "(") #)
14923  macro = mac2[1]
14924  prefix = substr(line, 1, index(line, defundef) - 1)
14925  if (D_is_set[macro]) {
14926    # Preserve the white space surrounding the "#".
14927    print prefix "define", macro P[macro] D[macro]
14928    next
14929  } else {
14930    # Replace #undef with comments.  This is necessary, for example,
14931    # in the case of _POSIX_SOURCE, which is predefined and required
14932    # on some systems where configure will not decide to define it.
14933    if (defundef == "undef") {
14934      print "/*", prefix defundef, macro, "*/"
14935      next
14936    }
14937  }
14938}
14939{ print }
14940_ACAWK
14941_ACEOF
14942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14943  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14944$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14945   { (exit 1); exit 1; }; }
14946fi # test -n "$CONFIG_HEADERS"
14947
14948
14949eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14950shift
14951for ac_tag
14952do
14953  case $ac_tag in
14954  :[FHLC]) ac_mode=$ac_tag; continue;;
14955  esac
14956  case $ac_mode$ac_tag in
14957  :[FHL]*:*);;
14958  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14959$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14960   { (exit 1); exit 1; }; };;
14961  :[FH]-) ac_tag=-:-;;
14962  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14963  esac
14964  ac_save_IFS=$IFS
14965  IFS=:
14966  set x $ac_tag
14967  IFS=$ac_save_IFS
14968  shift
14969  ac_file=$1
14970  shift
14971
14972  case $ac_mode in
14973  :L) ac_source=$1;;
14974  :[FH])
14975    ac_file_inputs=
14976    for ac_f
14977    do
14978      case $ac_f in
14979      -) ac_f="$tmp/stdin";;
14980      *) # Look for the file first in the build tree, then in the source tree
14981	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14982	 # because $ac_f cannot contain `:'.
14983	 test -f "$ac_f" ||
14984	   case $ac_f in
14985	   [\\/$]*) false;;
14986	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14987	   esac ||
14988	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14989$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14990   { (exit 1); exit 1; }; };;
14991      esac
14992      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14993      ac_file_inputs="$ac_file_inputs '$ac_f'"
14994    done
14995
14996    # Let's still pretend it is `configure' which instantiates (i.e., don't
14997    # use $as_me), people would be surprised to read:
14998    #    /* config.h.  Generated by config.status.  */
14999    configure_input='Generated from '`
15000	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15001	`' by configure.'
15002    if test x"$ac_file" != x-; then
15003      configure_input="$ac_file.  $configure_input"
15004      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15005$as_echo "$as_me: creating $ac_file" >&6;}
15006    fi
15007    # Neutralize special characters interpreted by sed in replacement strings.
15008    case $configure_input in #(
15009    *\&* | *\|* | *\\* )
15010       ac_sed_conf_input=`$as_echo "$configure_input" |
15011       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15012    *) ac_sed_conf_input=$configure_input;;
15013    esac
15014
15015    case $ac_tag in
15016    *:-:* | *:-) cat >"$tmp/stdin" \
15017      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15018$as_echo "$as_me: error: could not create $ac_file" >&2;}
15019   { (exit 1); exit 1; }; } ;;
15020    esac
15021    ;;
15022  esac
15023
15024  ac_dir=`$as_dirname -- "$ac_file" ||
15025$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15026	 X"$ac_file" : 'X\(//\)[^/]' \| \
15027	 X"$ac_file" : 'X\(//\)$' \| \
15028	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15029$as_echo X"$ac_file" |
15030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15031	    s//\1/
15032	    q
15033	  }
15034	  /^X\(\/\/\)[^/].*/{
15035	    s//\1/
15036	    q
15037	  }
15038	  /^X\(\/\/\)$/{
15039	    s//\1/
15040	    q
15041	  }
15042	  /^X\(\/\).*/{
15043	    s//\1/
15044	    q
15045	  }
15046	  s/.*/./; q'`
15047  { as_dir="$ac_dir"
15048  case $as_dir in #(
15049  -*) as_dir=./$as_dir;;
15050  esac
15051  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15052    as_dirs=
15053    while :; do
15054      case $as_dir in #(
15055      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15056      *) as_qdir=$as_dir;;
15057      esac
15058      as_dirs="'$as_qdir' $as_dirs"
15059      as_dir=`$as_dirname -- "$as_dir" ||
15060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15061	 X"$as_dir" : 'X\(//\)[^/]' \| \
15062	 X"$as_dir" : 'X\(//\)$' \| \
15063	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15064$as_echo X"$as_dir" |
15065    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15066	    s//\1/
15067	    q
15068	  }
15069	  /^X\(\/\/\)[^/].*/{
15070	    s//\1/
15071	    q
15072	  }
15073	  /^X\(\/\/\)$/{
15074	    s//\1/
15075	    q
15076	  }
15077	  /^X\(\/\).*/{
15078	    s//\1/
15079	    q
15080	  }
15081	  s/.*/./; q'`
15082      test -d "$as_dir" && break
15083    done
15084    test -z "$as_dirs" || eval "mkdir $as_dirs"
15085  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15086$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15087   { (exit 1); exit 1; }; }; }
15088  ac_builddir=.
15089
15090case "$ac_dir" in
15091.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15092*)
15093  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15094  # A ".." for each directory in $ac_dir_suffix.
15095  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15096  case $ac_top_builddir_sub in
15097  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15098  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15099  esac ;;
15100esac
15101ac_abs_top_builddir=$ac_pwd
15102ac_abs_builddir=$ac_pwd$ac_dir_suffix
15103# for backward compatibility:
15104ac_top_builddir=$ac_top_build_prefix
15105
15106case $srcdir in
15107  .)  # We are building in place.
15108    ac_srcdir=.
15109    ac_top_srcdir=$ac_top_builddir_sub
15110    ac_abs_top_srcdir=$ac_pwd ;;
15111  [\\/]* | ?:[\\/]* )  # Absolute name.
15112    ac_srcdir=$srcdir$ac_dir_suffix;
15113    ac_top_srcdir=$srcdir
15114    ac_abs_top_srcdir=$srcdir ;;
15115  *) # Relative name.
15116    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15117    ac_top_srcdir=$ac_top_build_prefix$srcdir
15118    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15119esac
15120ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15121
15122
15123  case $ac_mode in
15124  :F)
15125  #
15126  # CONFIG_FILE
15127  #
15128
15129  case $INSTALL in
15130  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15131  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15132  esac
15133  ac_MKDIR_P=$MKDIR_P
15134  case $MKDIR_P in
15135  [\\/$]* | ?:[\\/]* ) ;;
15136  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15137  esac
15138_ACEOF
15139
15140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15141# If the template does not know about datarootdir, expand it.
15142# FIXME: This hack should be removed a few years after 2.60.
15143ac_datarootdir_hack=; ac_datarootdir_seen=
15144
15145ac_sed_dataroot='
15146/datarootdir/ {
15147  p
15148  q
15149}
15150/@datadir@/p
15151/@docdir@/p
15152/@infodir@/p
15153/@localedir@/p
15154/@mandir@/p
15155'
15156case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15157*datarootdir*) ac_datarootdir_seen=yes;;
15158*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15159  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15160$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15161_ACEOF
15162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15163  ac_datarootdir_hack='
15164  s&@datadir@&$datadir&g
15165  s&@docdir@&$docdir&g
15166  s&@infodir@&$infodir&g
15167  s&@localedir@&$localedir&g
15168  s&@mandir@&$mandir&g
15169    s&\\\${datarootdir}&$datarootdir&g' ;;
15170esac
15171_ACEOF
15172
15173# Neutralize VPATH when `$srcdir' = `.'.
15174# Shell code in configure.ac might set extrasub.
15175# FIXME: do we really want to maintain this feature?
15176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15177ac_sed_extra="$ac_vpsub
15178$extrasub
15179_ACEOF
15180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181:t
15182/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15183s|@configure_input@|$ac_sed_conf_input|;t t
15184s&@top_builddir@&$ac_top_builddir_sub&;t t
15185s&@top_build_prefix@&$ac_top_build_prefix&;t t
15186s&@srcdir@&$ac_srcdir&;t t
15187s&@abs_srcdir@&$ac_abs_srcdir&;t t
15188s&@top_srcdir@&$ac_top_srcdir&;t t
15189s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15190s&@builddir@&$ac_builddir&;t t
15191s&@abs_builddir@&$ac_abs_builddir&;t t
15192s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15193s&@INSTALL@&$ac_INSTALL&;t t
15194s&@MKDIR_P@&$ac_MKDIR_P&;t t
15195$ac_datarootdir_hack
15196"
15197eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15198  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15199$as_echo "$as_me: error: could not create $ac_file" >&2;}
15200   { (exit 1); exit 1; }; }
15201
15202test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15203  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15204  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15205  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15206which seems to be undefined.  Please make sure it is defined." >&5
15207$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15208which seems to be undefined.  Please make sure it is defined." >&2;}
15209
15210  rm -f "$tmp/stdin"
15211  case $ac_file in
15212  -) cat "$tmp/out" && rm -f "$tmp/out";;
15213  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15214  esac \
15215  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15216$as_echo "$as_me: error: could not create $ac_file" >&2;}
15217   { (exit 1); exit 1; }; }
15218 ;;
15219  :H)
15220  #
15221  # CONFIG_HEADER
15222  #
15223  if test x"$ac_file" != x-; then
15224    {
15225      $as_echo "/* $configure_input  */" \
15226      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15227    } >"$tmp/config.h" \
15228      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15229$as_echo "$as_me: error: could not create $ac_file" >&2;}
15230   { (exit 1); exit 1; }; }
15231    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15232      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15233$as_echo "$as_me: $ac_file is unchanged" >&6;}
15234    else
15235      rm -f "$ac_file"
15236      mv "$tmp/config.h" "$ac_file" \
15237	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15238$as_echo "$as_me: error: could not create $ac_file" >&2;}
15239   { (exit 1); exit 1; }; }
15240    fi
15241  else
15242    $as_echo "/* $configure_input  */" \
15243      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15244      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15245$as_echo "$as_me: error: could not create -" >&2;}
15246   { (exit 1); exit 1; }; }
15247  fi
15248# Compute "$ac_file"'s index in $config_headers.
15249_am_arg="$ac_file"
15250_am_stamp_count=1
15251for _am_header in $config_headers :; do
15252  case $_am_header in
15253    $_am_arg | $_am_arg:* )
15254      break ;;
15255    * )
15256      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15257  esac
15258done
15259echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15260$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15261	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15262	 X"$_am_arg" : 'X\(//\)$' \| \
15263	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15264$as_echo X"$_am_arg" |
15265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15266	    s//\1/
15267	    q
15268	  }
15269	  /^X\(\/\/\)[^/].*/{
15270	    s//\1/
15271	    q
15272	  }
15273	  /^X\(\/\/\)$/{
15274	    s//\1/
15275	    q
15276	  }
15277	  /^X\(\/\).*/{
15278	    s//\1/
15279	    q
15280	  }
15281	  s/.*/./; q'`/stamp-h$_am_stamp_count
15282 ;;
15283
15284  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15285$as_echo "$as_me: executing $ac_file commands" >&6;}
15286 ;;
15287  esac
15288
15289
15290  case $ac_file$ac_mode in
15291    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15292  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15293  # are listed without --file.  Let's play safe and only enable the eval
15294  # if we detect the quoting.
15295  case $CONFIG_FILES in
15296  *\'*) eval set x "$CONFIG_FILES" ;;
15297  *)   set x $CONFIG_FILES ;;
15298  esac
15299  shift
15300  for mf
15301  do
15302    # Strip MF so we end up with the name of the file.
15303    mf=`echo "$mf" | sed -e 's/:.*$//'`
15304    # Check whether this is an Automake generated Makefile or not.
15305    # We used to match only the files named `Makefile.in', but
15306    # some people rename them; so instead we look at the file content.
15307    # Grep'ing the first line is not enough: some people post-process
15308    # each Makefile.in and add a new line on top of each file to say so.
15309    # Grep'ing the whole file is not good either: AIX grep has a line
15310    # limit of 2048, but all sed's we know have understand at least 4000.
15311    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15312      dirpart=`$as_dirname -- "$mf" ||
15313$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15314	 X"$mf" : 'X\(//\)[^/]' \| \
15315	 X"$mf" : 'X\(//\)$' \| \
15316	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15317$as_echo X"$mf" |
15318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15319	    s//\1/
15320	    q
15321	  }
15322	  /^X\(\/\/\)[^/].*/{
15323	    s//\1/
15324	    q
15325	  }
15326	  /^X\(\/\/\)$/{
15327	    s//\1/
15328	    q
15329	  }
15330	  /^X\(\/\).*/{
15331	    s//\1/
15332	    q
15333	  }
15334	  s/.*/./; q'`
15335    else
15336      continue
15337    fi
15338    # Extract the definition of DEPDIR, am__include, and am__quote
15339    # from the Makefile without running `make'.
15340    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15341    test -z "$DEPDIR" && continue
15342    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15343    test -z "am__include" && continue
15344    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15345    # When using ansi2knr, U may be empty or an underscore; expand it
15346    U=`sed -n 's/^U = //p' < "$mf"`
15347    # Find all dependency output files, they are included files with
15348    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15349    # simplest approach to changing $(DEPDIR) to its actual value in the
15350    # expansion.
15351    for file in `sed -n "
15352      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15353	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15354      # Make sure the directory exists.
15355      test -f "$dirpart/$file" && continue
15356      fdir=`$as_dirname -- "$file" ||
15357$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15358	 X"$file" : 'X\(//\)[^/]' \| \
15359	 X"$file" : 'X\(//\)$' \| \
15360	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15361$as_echo X"$file" |
15362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15363	    s//\1/
15364	    q
15365	  }
15366	  /^X\(\/\/\)[^/].*/{
15367	    s//\1/
15368	    q
15369	  }
15370	  /^X\(\/\/\)$/{
15371	    s//\1/
15372	    q
15373	  }
15374	  /^X\(\/\).*/{
15375	    s//\1/
15376	    q
15377	  }
15378	  s/.*/./; q'`
15379      { as_dir=$dirpart/$fdir
15380  case $as_dir in #(
15381  -*) as_dir=./$as_dir;;
15382  esac
15383  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15384    as_dirs=
15385    while :; do
15386      case $as_dir in #(
15387      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15388      *) as_qdir=$as_dir;;
15389      esac
15390      as_dirs="'$as_qdir' $as_dirs"
15391      as_dir=`$as_dirname -- "$as_dir" ||
15392$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15393	 X"$as_dir" : 'X\(//\)[^/]' \| \
15394	 X"$as_dir" : 'X\(//\)$' \| \
15395	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15396$as_echo X"$as_dir" |
15397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15398	    s//\1/
15399	    q
15400	  }
15401	  /^X\(\/\/\)[^/].*/{
15402	    s//\1/
15403	    q
15404	  }
15405	  /^X\(\/\/\)$/{
15406	    s//\1/
15407	    q
15408	  }
15409	  /^X\(\/\).*/{
15410	    s//\1/
15411	    q
15412	  }
15413	  s/.*/./; q'`
15414      test -d "$as_dir" && break
15415    done
15416    test -z "$as_dirs" || eval "mkdir $as_dirs"
15417  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15418$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15419   { (exit 1); exit 1; }; }; }
15420      # echo "creating $dirpart/$file"
15421      echo '# dummy' > "$dirpart/$file"
15422    done
15423  done
15424}
15425 ;;
15426    "libtool":C)
15427
15428    # See if we are running on zsh, and set the options which allow our
15429    # commands through without removal of \ escapes.
15430    if test -n "${ZSH_VERSION+set}" ; then
15431      setopt NO_GLOB_SUBST
15432    fi
15433
15434    cfgfile="${ofile}T"
15435    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15436    $RM "$cfgfile"
15437
15438    cat <<_LT_EOF >> "$cfgfile"
15439#! $SHELL
15440
15441# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15442# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15443# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15444# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15445#
15446#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15447#                 2006, 2007, 2008 Free Software Foundation, Inc.
15448#   Written by Gordon Matzigkeit, 1996
15449#
15450#   This file is part of GNU Libtool.
15451#
15452# GNU Libtool is free software; you can redistribute it and/or
15453# modify it under the terms of the GNU General Public License as
15454# published by the Free Software Foundation; either version 2 of
15455# the License, or (at your option) any later version.
15456#
15457# As a special exception to the GNU General Public License,
15458# if you distribute this file as part of a program or library that
15459# is built using GNU Libtool, you may include this file under the
15460# same distribution terms that you use for the rest of that program.
15461#
15462# GNU Libtool is distributed in the hope that it will be useful,
15463# but WITHOUT ANY WARRANTY; without even the implied warranty of
15464# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15465# GNU General Public License for more details.
15466#
15467# You should have received a copy of the GNU General Public License
15468# along with GNU Libtool; see the file COPYING.  If not, a copy
15469# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15470# obtained by writing to the Free Software Foundation, Inc.,
15471# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15472
15473
15474# The names of the tagged configurations supported by this script.
15475available_tags=""
15476
15477# ### BEGIN LIBTOOL CONFIG
15478
15479# Which release of libtool.m4 was used?
15480macro_version=$macro_version
15481macro_revision=$macro_revision
15482
15483# Whether or not to build shared libraries.
15484build_libtool_libs=$enable_shared
15485
15486# Whether or not to build static libraries.
15487build_old_libs=$enable_static
15488
15489# What type of objects to build.
15490pic_mode=$pic_mode
15491
15492# Whether or not to optimize for fast installation.
15493fast_install=$enable_fast_install
15494
15495# The host system.
15496host_alias=$host_alias
15497host=$host
15498host_os=$host_os
15499
15500# The build system.
15501build_alias=$build_alias
15502build=$build
15503build_os=$build_os
15504
15505# A sed program that does not truncate output.
15506SED=$lt_SED
15507
15508# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15509Xsed="\$SED -e 1s/^X//"
15510
15511# A grep program that handles long lines.
15512GREP=$lt_GREP
15513
15514# An ERE matcher.
15515EGREP=$lt_EGREP
15516
15517# A literal string matcher.
15518FGREP=$lt_FGREP
15519
15520# A BSD- or MS-compatible name lister.
15521NM=$lt_NM
15522
15523# Whether we need soft or hard links.
15524LN_S=$lt_LN_S
15525
15526# What is the maximum length of a command?
15527max_cmd_len=$max_cmd_len
15528
15529# Object file suffix (normally "o").
15530objext=$ac_objext
15531
15532# Executable file suffix (normally "").
15533exeext=$exeext
15534
15535# whether the shell understands "unset".
15536lt_unset=$lt_unset
15537
15538# turn spaces into newlines.
15539SP2NL=$lt_lt_SP2NL
15540
15541# turn newlines into spaces.
15542NL2SP=$lt_lt_NL2SP
15543
15544# How to create reloadable object files.
15545reload_flag=$lt_reload_flag
15546reload_cmds=$lt_reload_cmds
15547
15548# An object symbol dumper.
15549OBJDUMP=$lt_OBJDUMP
15550
15551# Method to check whether dependent libraries are shared objects.
15552deplibs_check_method=$lt_deplibs_check_method
15553
15554# Command to use when deplibs_check_method == "file_magic".
15555file_magic_cmd=$lt_file_magic_cmd
15556
15557# The archiver.
15558AR=$lt_AR
15559AR_FLAGS=$lt_AR_FLAGS
15560
15561# A symbol stripping program.
15562STRIP=$lt_STRIP
15563
15564# Commands used to install an old-style archive.
15565RANLIB=$lt_RANLIB
15566old_postinstall_cmds=$lt_old_postinstall_cmds
15567old_postuninstall_cmds=$lt_old_postuninstall_cmds
15568
15569# A C compiler.
15570LTCC=$lt_CC
15571
15572# LTCC compiler flags.
15573LTCFLAGS=$lt_CFLAGS
15574
15575# Take the output of nm and produce a listing of raw symbols and C names.
15576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15577
15578# Transform the output of nm in a proper C declaration.
15579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15580
15581# Transform the output of nm in a C name address pair.
15582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15583
15584# Transform the output of nm in a C name address pair when lib prefix is needed.
15585global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15586
15587# The name of the directory that contains temporary libtool files.
15588objdir=$objdir
15589
15590# Shell to use when invoking shell scripts.
15591SHELL=$lt_SHELL
15592
15593# An echo program that does not interpret backslashes.
15594ECHO=$lt_ECHO
15595
15596# Used to examine libraries when file_magic_cmd begins with "file".
15597MAGIC_CMD=$MAGIC_CMD
15598
15599# Must we lock files when doing compilation?
15600need_locks=$lt_need_locks
15601
15602# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15603DSYMUTIL=$lt_DSYMUTIL
15604
15605# Tool to change global to local symbols on Mac OS X.
15606NMEDIT=$lt_NMEDIT
15607
15608# Tool to manipulate fat objects and archives on Mac OS X.
15609LIPO=$lt_LIPO
15610
15611# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15612OTOOL=$lt_OTOOL
15613
15614# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15615OTOOL64=$lt_OTOOL64
15616
15617# Old archive suffix (normally "a").
15618libext=$libext
15619
15620# Shared library suffix (normally ".so").
15621shrext_cmds=$lt_shrext_cmds
15622
15623# The commands to extract the exported symbol list from a shared archive.
15624extract_expsyms_cmds=$lt_extract_expsyms_cmds
15625
15626# Variables whose values should be saved in libtool wrapper scripts and
15627# restored at link time.
15628variables_saved_for_relink=$lt_variables_saved_for_relink
15629
15630# Do we need the "lib" prefix for modules?
15631need_lib_prefix=$need_lib_prefix
15632
15633# Do we need a version for libraries?
15634need_version=$need_version
15635
15636# Library versioning type.
15637version_type=$version_type
15638
15639# Shared library runtime path variable.
15640runpath_var=$runpath_var
15641
15642# Shared library path variable.
15643shlibpath_var=$shlibpath_var
15644
15645# Is shlibpath searched before the hard-coded library search path?
15646shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15647
15648# Format of library name prefix.
15649libname_spec=$lt_libname_spec
15650
15651# List of archive names.  First name is the real one, the rest are links.
15652# The last name is the one that the linker finds with -lNAME
15653library_names_spec=$lt_library_names_spec
15654
15655# The coded name of the library, if different from the real name.
15656soname_spec=$lt_soname_spec
15657
15658# Command to use after installation of a shared archive.
15659postinstall_cmds=$lt_postinstall_cmds
15660
15661# Command to use after uninstallation of a shared archive.
15662postuninstall_cmds=$lt_postuninstall_cmds
15663
15664# Commands used to finish a libtool library installation in a directory.
15665finish_cmds=$lt_finish_cmds
15666
15667# As "finish_cmds", except a single script fragment to be evaled but
15668# not shown.
15669finish_eval=$lt_finish_eval
15670
15671# Whether we should hardcode library paths into libraries.
15672hardcode_into_libs=$hardcode_into_libs
15673
15674# Compile-time system search path for libraries.
15675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15676
15677# Run-time system search path for libraries.
15678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15679
15680# Whether dlopen is supported.
15681dlopen_support=$enable_dlopen
15682
15683# Whether dlopen of programs is supported.
15684dlopen_self=$enable_dlopen_self
15685
15686# Whether dlopen of statically linked programs is supported.
15687dlopen_self_static=$enable_dlopen_self_static
15688
15689# Commands to strip libraries.
15690old_striplib=$lt_old_striplib
15691striplib=$lt_striplib
15692
15693
15694# The linker used to build libraries.
15695LD=$lt_LD
15696
15697# Commands used to build an old-style archive.
15698old_archive_cmds=$lt_old_archive_cmds
15699
15700# A language specific compiler.
15701CC=$lt_compiler
15702
15703# Is the compiler the GNU compiler?
15704with_gcc=$GCC
15705
15706# Compiler flag to turn off builtin functions.
15707no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15708
15709# How to pass a linker flag through the compiler.
15710wl=$lt_lt_prog_compiler_wl
15711
15712# Additional compiler flags for building library objects.
15713pic_flag=$lt_lt_prog_compiler_pic
15714
15715# Compiler flag to prevent dynamic linking.
15716link_static_flag=$lt_lt_prog_compiler_static
15717
15718# Does compiler simultaneously support -c and -o options?
15719compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15720
15721# Whether or not to add -lc for building shared libraries.
15722build_libtool_need_lc=$archive_cmds_need_lc
15723
15724# Whether or not to disallow shared libs when runtime libs are static.
15725allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15726
15727# Compiler flag to allow reflexive dlopens.
15728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15729
15730# Compiler flag to generate shared objects directly from archives.
15731whole_archive_flag_spec=$lt_whole_archive_flag_spec
15732
15733# Whether the compiler copes with passing no objects directly.
15734compiler_needs_object=$lt_compiler_needs_object
15735
15736# Create an old-style archive from a shared archive.
15737old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15738
15739# Create a temporary old-style archive to link instead of a shared archive.
15740old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15741
15742# Commands used to build a shared archive.
15743archive_cmds=$lt_archive_cmds
15744archive_expsym_cmds=$lt_archive_expsym_cmds
15745
15746# Commands used to build a loadable module if different from building
15747# a shared archive.
15748module_cmds=$lt_module_cmds
15749module_expsym_cmds=$lt_module_expsym_cmds
15750
15751# Whether we are building with GNU ld or not.
15752with_gnu_ld=$lt_with_gnu_ld
15753
15754# Flag that allows shared libraries with undefined symbols to be built.
15755allow_undefined_flag=$lt_allow_undefined_flag
15756
15757# Flag that enforces no undefined symbols.
15758no_undefined_flag=$lt_no_undefined_flag
15759
15760# Flag to hardcode \$libdir into a binary during linking.
15761# This must work even if \$libdir does not exist
15762hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15763
15764# If ld is used when linking, flag to hardcode \$libdir into a binary
15765# during linking.  This must work even if \$libdir does not exist.
15766hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15767
15768# Whether we need a single "-rpath" flag with a separated argument.
15769hardcode_libdir_separator=$lt_hardcode_libdir_separator
15770
15771# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15772# DIR into the resulting binary.
15773hardcode_direct=$hardcode_direct
15774
15775# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15776# DIR into the resulting binary and the resulting library dependency is
15777# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15778# library is relocated.
15779hardcode_direct_absolute=$hardcode_direct_absolute
15780
15781# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15782# into the resulting binary.
15783hardcode_minus_L=$hardcode_minus_L
15784
15785# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15786# into the resulting binary.
15787hardcode_shlibpath_var=$hardcode_shlibpath_var
15788
15789# Set to "yes" if building a shared library automatically hardcodes DIR
15790# into the library and all subsequent libraries and executables linked
15791# against it.
15792hardcode_automatic=$hardcode_automatic
15793
15794# Set to yes if linker adds runtime paths of dependent libraries
15795# to runtime path list.
15796inherit_rpath=$inherit_rpath
15797
15798# Whether libtool must link a program against all its dependency libraries.
15799link_all_deplibs=$link_all_deplibs
15800
15801# Fix the shell variable \$srcfile for the compiler.
15802fix_srcfile_path=$lt_fix_srcfile_path
15803
15804# Set to "yes" if exported symbols are required.
15805always_export_symbols=$always_export_symbols
15806
15807# The commands to list exported symbols.
15808export_symbols_cmds=$lt_export_symbols_cmds
15809
15810# Symbols that should not be listed in the preloaded symbols.
15811exclude_expsyms=$lt_exclude_expsyms
15812
15813# Symbols that must always be exported.
15814include_expsyms=$lt_include_expsyms
15815
15816# Commands necessary for linking programs (against libraries) with templates.
15817prelink_cmds=$lt_prelink_cmds
15818
15819# Specify filename containing input files.
15820file_list_spec=$lt_file_list_spec
15821
15822# How to hardcode a shared library path into an executable.
15823hardcode_action=$hardcode_action
15824
15825# ### END LIBTOOL CONFIG
15826
15827_LT_EOF
15828
15829  case $host_os in
15830  aix3*)
15831    cat <<\_LT_EOF >> "$cfgfile"
15832# AIX sometimes has problems with the GCC collect2 program.  For some
15833# reason, if we set the COLLECT_NAMES environment variable, the problems
15834# vanish in a puff of smoke.
15835if test "X${COLLECT_NAMES+set}" != Xset; then
15836  COLLECT_NAMES=
15837  export COLLECT_NAMES
15838fi
15839_LT_EOF
15840    ;;
15841  esac
15842
15843
15844ltmain="$ac_aux_dir/ltmain.sh"
15845
15846
15847  # We use sed instead of cat because bash on DJGPP gets confused if
15848  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15849  # text mode, it properly converts lines to CR/LF.  This bash problem
15850  # is reportedly fixed, but why not run on old versions too?
15851  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15852    || (rm -f "$cfgfile"; exit 1)
15853
15854  case $xsi_shell in
15855  yes)
15856    cat << \_LT_EOF >> "$cfgfile"
15857
15858# func_dirname file append nondir_replacement
15859# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15860# otherwise set result to NONDIR_REPLACEMENT.
15861func_dirname ()
15862{
15863  case ${1} in
15864    */*) func_dirname_result="${1%/*}${2}" ;;
15865    *  ) func_dirname_result="${3}" ;;
15866  esac
15867}
15868
15869# func_basename file
15870func_basename ()
15871{
15872  func_basename_result="${1##*/}"
15873}
15874
15875# func_dirname_and_basename file append nondir_replacement
15876# perform func_basename and func_dirname in a single function
15877# call:
15878#   dirname:  Compute the dirname of FILE.  If nonempty,
15879#             add APPEND to the result, otherwise set result
15880#             to NONDIR_REPLACEMENT.
15881#             value returned in "$func_dirname_result"
15882#   basename: Compute filename of FILE.
15883#             value retuned in "$func_basename_result"
15884# Implementation must be kept synchronized with func_dirname
15885# and func_basename. For efficiency, we do not delegate to
15886# those functions but instead duplicate the functionality here.
15887func_dirname_and_basename ()
15888{
15889  case ${1} in
15890    */*) func_dirname_result="${1%/*}${2}" ;;
15891    *  ) func_dirname_result="${3}" ;;
15892  esac
15893  func_basename_result="${1##*/}"
15894}
15895
15896# func_stripname prefix suffix name
15897# strip PREFIX and SUFFIX off of NAME.
15898# PREFIX and SUFFIX must not contain globbing or regex special
15899# characters, hashes, percent signs, but SUFFIX may contain a leading
15900# dot (in which case that matches only a dot).
15901func_stripname ()
15902{
15903  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15904  # positional parameters, so assign one to ordinary parameter first.
15905  func_stripname_result=${3}
15906  func_stripname_result=${func_stripname_result#"${1}"}
15907  func_stripname_result=${func_stripname_result%"${2}"}
15908}
15909
15910# func_opt_split
15911func_opt_split ()
15912{
15913  func_opt_split_opt=${1%%=*}
15914  func_opt_split_arg=${1#*=}
15915}
15916
15917# func_lo2o object
15918func_lo2o ()
15919{
15920  case ${1} in
15921    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15922    *)    func_lo2o_result=${1} ;;
15923  esac
15924}
15925
15926# func_xform libobj-or-source
15927func_xform ()
15928{
15929  func_xform_result=${1%.*}.lo
15930}
15931
15932# func_arith arithmetic-term...
15933func_arith ()
15934{
15935  func_arith_result=$(( $* ))
15936}
15937
15938# func_len string
15939# STRING may not start with a hyphen.
15940func_len ()
15941{
15942  func_len_result=${#1}
15943}
15944
15945_LT_EOF
15946    ;;
15947  *) # Bourne compatible functions.
15948    cat << \_LT_EOF >> "$cfgfile"
15949
15950# func_dirname file append nondir_replacement
15951# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15952# otherwise set result to NONDIR_REPLACEMENT.
15953func_dirname ()
15954{
15955  # Extract subdirectory from the argument.
15956  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15957  if test "X$func_dirname_result" = "X${1}"; then
15958    func_dirname_result="${3}"
15959  else
15960    func_dirname_result="$func_dirname_result${2}"
15961  fi
15962}
15963
15964# func_basename file
15965func_basename ()
15966{
15967  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15968}
15969
15970
15971# func_stripname prefix suffix name
15972# strip PREFIX and SUFFIX off of NAME.
15973# PREFIX and SUFFIX must not contain globbing or regex special
15974# characters, hashes, percent signs, but SUFFIX may contain a leading
15975# dot (in which case that matches only a dot).
15976# func_strip_suffix prefix name
15977func_stripname ()
15978{
15979  case ${2} in
15980    .*) func_stripname_result=`$ECHO "X${3}" \
15981           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15982    *)  func_stripname_result=`$ECHO "X${3}" \
15983           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15984  esac
15985}
15986
15987# sed scripts:
15988my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15989my_sed_long_arg='1s/^-[^=]*=//'
15990
15991# func_opt_split
15992func_opt_split ()
15993{
15994  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15995  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15996}
15997
15998# func_lo2o object
15999func_lo2o ()
16000{
16001  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16002}
16003
16004# func_xform libobj-or-source
16005func_xform ()
16006{
16007  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16008}
16009
16010# func_arith arithmetic-term...
16011func_arith ()
16012{
16013  func_arith_result=`expr "$@"`
16014}
16015
16016# func_len string
16017# STRING may not start with a hyphen.
16018func_len ()
16019{
16020  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16021}
16022
16023_LT_EOF
16024esac
16025
16026case $lt_shell_append in
16027  yes)
16028    cat << \_LT_EOF >> "$cfgfile"
16029
16030# func_append var value
16031# Append VALUE to the end of shell variable VAR.
16032func_append ()
16033{
16034  eval "$1+=\$2"
16035}
16036_LT_EOF
16037    ;;
16038  *)
16039    cat << \_LT_EOF >> "$cfgfile"
16040
16041# func_append var value
16042# Append VALUE to the end of shell variable VAR.
16043func_append ()
16044{
16045  eval "$1=\$$1\$2"
16046}
16047
16048_LT_EOF
16049    ;;
16050  esac
16051
16052
16053  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16054    || (rm -f "$cfgfile"; exit 1)
16055
16056  mv -f "$cfgfile" "$ofile" ||
16057    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16058  chmod +x "$ofile"
16059
16060 ;;
16061
16062  esac
16063done # for ac_tag
16064
16065
16066{ (exit 0); exit 0; }
16067_ACEOF
16068chmod +x $CONFIG_STATUS
16069ac_clean_files=$ac_clean_files_save
16070
16071test $ac_write_fail = 0 ||
16072  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16073$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16074   { (exit 1); exit 1; }; }
16075
16076
16077# configure is writing to config.log, and then calls config.status.
16078# config.status does its own redirection, appending to config.log.
16079# Unfortunately, on DOS this fails, as config.log is still kept open
16080# by configure, so config.status won't be able to write to it; its
16081# output is simply discarded.  So we exec the FD to /dev/null,
16082# effectively closing config.log, so it can be properly (re)opened and
16083# appended to by config.status.  When coming back to configure, we
16084# need to make the FD available again.
16085if test "$no_create" != yes; then
16086  ac_cs_success=:
16087  ac_config_status_args=
16088  test "$silent" = yes &&
16089    ac_config_status_args="$ac_config_status_args --quiet"
16090  exec 5>/dev/null
16091  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16092  exec 5>>config.log
16093  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16094  # would make configure fail if this is the last instruction.
16095  $ac_cs_success || { (exit 1); exit 1; }
16096fi
16097if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16098  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16099$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16100fi
16101
16102