configure revision 2378475a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-trident 1.3.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='xf86-video-trident'
747PACKAGE_TARNAME='xf86-video-trident'
748PACKAGE_VERSION='1.3.4'
749PACKAGE_STRING='xf86-video-trident 1.3.4'
750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752ac_unique_file="Makefile.am"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
793DRIVER_NAME
794moduledir
795XSERVER_LIBPCIACCESS_FALSE
796XSERVER_LIBPCIACCESS_TRUE
797PCIACCESS_LIBS
798PCIACCESS_CFLAGS
799HAVE_XEXTPROTO_71_FALSE
800HAVE_XEXTPROTO_71_TRUE
801XEXT_LIBS
802XEXT_CFLAGS
803XORG_LIBS
804XORG_CFLAGS
805OTOOL64
806OTOOL
807LIPO
808NMEDIT
809DSYMUTIL
810lt_ECHO
811RANLIB
812AR
813OBJDUMP
814LN_S
815NM
816ac_ct_DUMPBIN
817DUMPBIN
818LD
819FGREP
820LIBTOOL
821AM_BACKSLASH
822AM_DEFAULT_VERBOSITY
823MAN_SUBSTS
824XORG_MAN_PAGE
825ADMIN_MAN_DIR
826DRIVER_MAN_DIR
827MISC_MAN_DIR
828FILE_MAN_DIR
829LIB_MAN_DIR
830APP_MAN_DIR
831ADMIN_MAN_SUFFIX
832DRIVER_MAN_SUFFIX
833MISC_MAN_SUFFIX
834FILE_MAN_SUFFIX
835LIB_MAN_SUFFIX
836APP_MAN_SUFFIX
837SED
838host_os
839host_vendor
840host_cpu
841host
842build_os
843build_vendor
844build_cpu
845build
846INSTALL_CMD
847PKG_CONFIG
848CHANGELOG_CMD
849CWARNFLAGS
850EGREP
851GREP
852CPP
853am__fastdepCC_FALSE
854am__fastdepCC_TRUE
855CCDEPMODE
856AMDEPBACKSLASH
857AMDEP_FALSE
858AMDEP_TRUE
859am__quote
860am__include
861DEPDIR
862OBJEXT
863EXEEXT
864ac_ct_CC
865CPPFLAGS
866LDFLAGS
867CFLAGS
868CC
869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
872am__untar
873am__tar
874AMTAR
875am__leading_dot
876SET_MAKE
877AWK
878mkdir_p
879MKDIR_P
880INSTALL_STRIP_PROGRAM
881STRIP
882install_sh
883MAKEINFO
884AUTOHEADER
885AUTOMAKE
886AUTOCONF
887ACLOCAL
888VERSION
889PACKAGE
890CYGPATH_W
891am__isrc
892INSTALL_DATA
893INSTALL_SCRIPT
894INSTALL_PROGRAM
895target_alias
896host_alias
897build_alias
898LIBS
899ECHO_T
900ECHO_N
901ECHO_C
902DEFS
903mandir
904localedir
905libdir
906psdir
907pdfdir
908dvidir
909htmldir
910infodir
911docdir
912oldincludedir
913includedir
914localstatedir
915sharedstatedir
916sysconfdir
917datadir
918datarootdir
919libexecdir
920sbindir
921bindir
922program_transform_name
923prefix
924exec_prefix
925PACKAGE_BUGREPORT
926PACKAGE_STRING
927PACKAGE_VERSION
928PACKAGE_TARNAME
929PACKAGE_NAME
930PATH_SEPARATOR
931SHELL'
932ac_subst_files=''
933ac_user_opts='
934enable_option_checking
935enable_maintainer_mode
936enable_dependency_tracking
937enable_strict_compilation
938enable_silent_rules
939enable_static
940enable_shared
941with_pic
942enable_fast_install
943with_gnu_ld
944enable_libtool_lock
945with_xorg_module_dir
946'
947      ac_precious_vars='build_alias
948host_alias
949target_alias
950CC
951CFLAGS
952LDFLAGS
953LIBS
954CPPFLAGS
955CPP
956PKG_CONFIG
957XORG_CFLAGS
958XORG_LIBS
959XEXT_CFLAGS
960XEXT_LIBS
961PCIACCESS_CFLAGS
962PCIACCESS_LIBS'
963
964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968ac_unrecognized_opts=
969ac_unrecognized_sep=
970# The variables have the same names as the options, with
971# dashes changed to underlines.
972cache_file=/dev/null
973exec_prefix=NONE
974no_create=
975no_recursion=
976prefix=NONE
977program_prefix=NONE
978program_suffix=NONE
979program_transform_name=s,x,x,
980silent=
981site=
982srcdir=
983verbose=
984x_includes=NONE
985x_libraries=NONE
986
987# Installation directory options.
988# These are left unexpanded so users can "make install exec_prefix=/foo"
989# and all the variables that are supposed to be based on exec_prefix
990# by default will actually change.
991# Use braces instead of parens because sh, perl, etc. also accept them.
992# (The list follows the same order as the GNU Coding Standards.)
993bindir='${exec_prefix}/bin'
994sbindir='${exec_prefix}/sbin'
995libexecdir='${exec_prefix}/libexec'
996datarootdir='${prefix}/share'
997datadir='${datarootdir}'
998sysconfdir='${prefix}/etc'
999sharedstatedir='${prefix}/com'
1000localstatedir='${prefix}/var'
1001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
1003docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
1012
1013ac_prev=
1014ac_dashdash=
1015for ac_option
1016do
1017  # If the previous option needs an argument, assign it.
1018  if test -n "$ac_prev"; then
1019    eval $ac_prev=\$ac_option
1020    ac_prev=
1021    continue
1022  fi
1023
1024  case $ac_option in
1025  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026  *)	ac_optarg=yes ;;
1027  esac
1028
1029  # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031  case $ac_dashdash$ac_option in
1032  --)
1033    ac_dashdash=yes ;;
1034
1035  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036    ac_prev=bindir ;;
1037  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038    bindir=$ac_optarg ;;
1039
1040  -build | --build | --buil | --bui | --bu)
1041    ac_prev=build_alias ;;
1042  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043    build_alias=$ac_optarg ;;
1044
1045  -cache-file | --cache-file | --cache-fil | --cache-fi \
1046  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047    ac_prev=cache_file ;;
1048  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050    cache_file=$ac_optarg ;;
1051
1052  --config-cache | -C)
1053    cache_file=config.cache ;;
1054
1055  -datadir | --datadir | --datadi | --datad)
1056    ac_prev=datadir ;;
1057  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058    datadir=$ac_optarg ;;
1059
1060  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061  | --dataroo | --dataro | --datar)
1062    ac_prev=datarootdir ;;
1063  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065    datarootdir=$ac_optarg ;;
1066
1067  -disable-* | --disable-*)
1068    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072   { (exit 1); exit 1; }; }
1073    ac_useropt_orig=$ac_useropt
1074    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075    case $ac_user_opts in
1076      *"
1077"enable_$ac_useropt"
1078"*) ;;
1079      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080	 ac_unrecognized_sep=', ';;
1081    esac
1082    eval enable_$ac_useropt=no ;;
1083
1084  -docdir | --docdir | --docdi | --doc | --do)
1085    ac_prev=docdir ;;
1086  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087    docdir=$ac_optarg ;;
1088
1089  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090    ac_prev=dvidir ;;
1091  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092    dvidir=$ac_optarg ;;
1093
1094  -enable-* | --enable-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099   { (exit 1); exit 1; }; }
1100    ac_useropt_orig=$ac_useropt
1101    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102    case $ac_user_opts in
1103      *"
1104"enable_$ac_useropt"
1105"*) ;;
1106      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107	 ac_unrecognized_sep=', ';;
1108    esac
1109    eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113  | --exec | --exe | --ex)
1114    ac_prev=exec_prefix ;;
1115  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117  | --exec=* | --exe=* | --ex=*)
1118    exec_prefix=$ac_optarg ;;
1119
1120  -gas | --gas | --ga | --g)
1121    # Obsolete; use --with-gas.
1122    with_gas=yes ;;
1123
1124  -help | --help | --hel | --he | -h)
1125    ac_init_help=long ;;
1126  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127    ac_init_help=recursive ;;
1128  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129    ac_init_help=short ;;
1130
1131  -host | --host | --hos | --ho)
1132    ac_prev=host_alias ;;
1133  -host=* | --host=* | --hos=* | --ho=*)
1134    host_alias=$ac_optarg ;;
1135
1136  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137    ac_prev=htmldir ;;
1138  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139  | --ht=*)
1140    htmldir=$ac_optarg ;;
1141
1142  -includedir | --includedir | --includedi | --included | --include \
1143  | --includ | --inclu | --incl | --inc)
1144    ac_prev=includedir ;;
1145  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146  | --includ=* | --inclu=* | --incl=* | --inc=*)
1147    includedir=$ac_optarg ;;
1148
1149  -infodir | --infodir | --infodi | --infod | --info | --inf)
1150    ac_prev=infodir ;;
1151  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152    infodir=$ac_optarg ;;
1153
1154  -libdir | --libdir | --libdi | --libd)
1155    ac_prev=libdir ;;
1156  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157    libdir=$ac_optarg ;;
1158
1159  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160  | --libexe | --libex | --libe)
1161    ac_prev=libexecdir ;;
1162  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163  | --libexe=* | --libex=* | --libe=*)
1164    libexecdir=$ac_optarg ;;
1165
1166  -localedir | --localedir | --localedi | --localed | --locale)
1167    ac_prev=localedir ;;
1168  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169    localedir=$ac_optarg ;;
1170
1171  -localstatedir | --localstatedir | --localstatedi | --localstated \
1172  | --localstate | --localstat | --localsta | --localst | --locals)
1173    ac_prev=localstatedir ;;
1174  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176    localstatedir=$ac_optarg ;;
1177
1178  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179    ac_prev=mandir ;;
1180  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181    mandir=$ac_optarg ;;
1182
1183  -nfp | --nfp | --nf)
1184    # Obsolete; use --without-fp.
1185    with_fp=no ;;
1186
1187  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188  | --no-cr | --no-c | -n)
1189    no_create=yes ;;
1190
1191  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193    no_recursion=yes ;;
1194
1195  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197  | --oldin | --oldi | --old | --ol | --o)
1198    ac_prev=oldincludedir ;;
1199  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202    oldincludedir=$ac_optarg ;;
1203
1204  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205    ac_prev=prefix ;;
1206  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207    prefix=$ac_optarg ;;
1208
1209  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210  | --program-pre | --program-pr | --program-p)
1211    ac_prev=program_prefix ;;
1212  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214    program_prefix=$ac_optarg ;;
1215
1216  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217  | --program-suf | --program-su | --program-s)
1218    ac_prev=program_suffix ;;
1219  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221    program_suffix=$ac_optarg ;;
1222
1223  -program-transform-name | --program-transform-name \
1224  | --program-transform-nam | --program-transform-na \
1225  | --program-transform-n | --program-transform- \
1226  | --program-transform | --program-transfor \
1227  | --program-transfo | --program-transf \
1228  | --program-trans | --program-tran \
1229  | --progr-tra | --program-tr | --program-t)
1230    ac_prev=program_transform_name ;;
1231  -program-transform-name=* | --program-transform-name=* \
1232  | --program-transform-nam=* | --program-transform-na=* \
1233  | --program-transform-n=* | --program-transform-=* \
1234  | --program-transform=* | --program-transfor=* \
1235  | --program-transfo=* | --program-transf=* \
1236  | --program-trans=* | --program-tran=* \
1237  | --progr-tra=* | --program-tr=* | --program-t=*)
1238    program_transform_name=$ac_optarg ;;
1239
1240  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241    ac_prev=pdfdir ;;
1242  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243    pdfdir=$ac_optarg ;;
1244
1245  -psdir | --psdir | --psdi | --psd | --ps)
1246    ac_prev=psdir ;;
1247  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248    psdir=$ac_optarg ;;
1249
1250  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251  | -silent | --silent | --silen | --sile | --sil)
1252    silent=yes ;;
1253
1254  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255    ac_prev=sbindir ;;
1256  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257  | --sbi=* | --sb=*)
1258    sbindir=$ac_optarg ;;
1259
1260  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262  | --sharedst | --shareds | --shared | --share | --shar \
1263  | --sha | --sh)
1264    ac_prev=sharedstatedir ;;
1265  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268  | --sha=* | --sh=*)
1269    sharedstatedir=$ac_optarg ;;
1270
1271  -site | --site | --sit)
1272    ac_prev=site ;;
1273  -site=* | --site=* | --sit=*)
1274    site=$ac_optarg ;;
1275
1276  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277    ac_prev=srcdir ;;
1278  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279    srcdir=$ac_optarg ;;
1280
1281  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282  | --syscon | --sysco | --sysc | --sys | --sy)
1283    ac_prev=sysconfdir ;;
1284  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286    sysconfdir=$ac_optarg ;;
1287
1288  -target | --target | --targe | --targ | --tar | --ta | --t)
1289    ac_prev=target_alias ;;
1290  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291    target_alias=$ac_optarg ;;
1292
1293  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294    verbose=yes ;;
1295
1296  -version | --version | --versio | --versi | --vers | -V)
1297    ac_init_version=: ;;
1298
1299  -with-* | --with-*)
1300    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301    # Reject names that are not valid shell variable names.
1302    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304   { (exit 1); exit 1; }; }
1305    ac_useropt_orig=$ac_useropt
1306    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307    case $ac_user_opts in
1308      *"
1309"with_$ac_useropt"
1310"*) ;;
1311      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312	 ac_unrecognized_sep=', ';;
1313    esac
1314    eval with_$ac_useropt=\$ac_optarg ;;
1315
1316  -without-* | --without-*)
1317    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318    # Reject names that are not valid shell variable names.
1319    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321   { (exit 1); exit 1; }; }
1322    ac_useropt_orig=$ac_useropt
1323    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324    case $ac_user_opts in
1325      *"
1326"with_$ac_useropt"
1327"*) ;;
1328      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329	 ac_unrecognized_sep=', ';;
1330    esac
1331    eval with_$ac_useropt=no ;;
1332
1333  --x)
1334    # Obsolete; use --with-x.
1335    with_x=yes ;;
1336
1337  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338  | --x-incl | --x-inc | --x-in | --x-i)
1339    ac_prev=x_includes ;;
1340  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342    x_includes=$ac_optarg ;;
1343
1344  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346    ac_prev=x_libraries ;;
1347  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349    x_libraries=$ac_optarg ;;
1350
1351  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352Try \`$0 --help' for more information." >&2
1353   { (exit 1); exit 1; }; }
1354    ;;
1355
1356  *=*)
1357    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358    # Reject names that are not valid shell variable names.
1359    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361   { (exit 1); exit 1; }; }
1362    eval $ac_envvar=\$ac_optarg
1363    export $ac_envvar ;;
1364
1365  *)
1366    # FIXME: should be removed in autoconf 3.0.
1367    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371    ;;
1372
1373  esac
1374done
1375
1376if test -n "$ac_prev"; then
1377  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379   { (exit 1); exit 1; }; }
1380fi
1381
1382if test -n "$ac_unrecognized_opts"; then
1383  case $enable_option_checking in
1384    no) ;;
1385    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386   { (exit 1); exit 1; }; } ;;
1387    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388  esac
1389fi
1390
1391# Check all directory arguments for consistency.
1392for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393		datadir sysconfdir sharedstatedir localstatedir includedir \
1394		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395		libdir localedir mandir
1396do
1397  eval ac_val=\$$ac_var
1398  # Remove trailing slashes.
1399  case $ac_val in
1400    */ )
1401      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402      eval $ac_var=\$ac_val;;
1403  esac
1404  # Be sure to have absolute directory names.
1405  case $ac_val in
1406    [\\/$]* | ?:[\\/]* )  continue;;
1407    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408  esac
1409  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410   { (exit 1); exit 1; }; }
1411done
1412
1413# There might be people who depend on the old broken behavior: `$host'
1414# used to hold the argument of --host etc.
1415# FIXME: To remove some day.
1416build=$build_alias
1417host=$host_alias
1418target=$target_alias
1419
1420# FIXME: To remove some day.
1421if test "x$host_alias" != x; then
1422  if test "x$build_alias" = x; then
1423    cross_compiling=maybe
1424    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425    If a cross compiler is detected then cross compile mode will be used." >&2
1426  elif test "x$build_alias" != "x$host_alias"; then
1427    cross_compiling=yes
1428  fi
1429fi
1430
1431ac_tool_prefix=
1432test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433
1434test "$silent" = yes && exec 6>/dev/null
1435
1436
1437ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438ac_ls_di=`ls -di .` &&
1439ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1441   { (exit 1); exit 1; }; }
1442test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444   { (exit 1); exit 1; }; }
1445
1446
1447# Find the source files, if location was not specified.
1448if test -z "$srcdir"; then
1449  ac_srcdir_defaulted=yes
1450  # Try the directory containing this script, then the parent directory.
1451  ac_confdir=`$as_dirname -- "$as_myself" ||
1452$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453	 X"$as_myself" : 'X\(//\)[^/]' \| \
1454	 X"$as_myself" : 'X\(//\)$' \| \
1455	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456$as_echo X"$as_myself" |
1457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\/\)[^/].*/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\/\)$/{
1466	    s//\1/
1467	    q
1468	  }
1469	  /^X\(\/\).*/{
1470	    s//\1/
1471	    q
1472	  }
1473	  s/.*/./; q'`
1474  srcdir=$ac_confdir
1475  if test ! -r "$srcdir/$ac_unique_file"; then
1476    srcdir=..
1477  fi
1478else
1479  ac_srcdir_defaulted=no
1480fi
1481if test ! -r "$srcdir/$ac_unique_file"; then
1482  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484   { (exit 1); exit 1; }; }
1485fi
1486ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487ac_abs_confdir=`(
1488	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489   { (exit 1); exit 1; }; }
1490	pwd)`
1491# When building in place, set srcdir=.
1492if test "$ac_abs_confdir" = "$ac_pwd"; then
1493  srcdir=.
1494fi
1495# Remove unnecessary trailing slashes from srcdir.
1496# Double slashes in file names in object file debugging info
1497# mess up M-x gdb in Emacs.
1498case $srcdir in
1499*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500esac
1501for ac_var in $ac_precious_vars; do
1502  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503  eval ac_env_${ac_var}_value=\$${ac_var}
1504  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506done
1507
1508#
1509# Report the --help message.
1510#
1511if test "$ac_init_help" = "long"; then
1512  # Omit some internal or obsolete options to make the list less imposing.
1513  # This message is too long to be a string in the A/UX 3.1 sh.
1514  cat <<_ACEOF
1515\`configure' configures xf86-video-trident 1.3.4 to adapt to many kinds of systems.
1516
1517Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520VAR=VALUE.  See below for descriptions of some of the useful variables.
1521
1522Defaults for the options are specified in brackets.
1523
1524Configuration:
1525  -h, --help              display this help and exit
1526      --help=short        display options specific to this package
1527      --help=recursive    display the short help of all the included packages
1528  -V, --version           display version information and exit
1529  -q, --quiet, --silent   do not print \`checking...' messages
1530      --cache-file=FILE   cache test results in FILE [disabled]
1531  -C, --config-cache      alias for \`--cache-file=config.cache'
1532  -n, --no-create         do not create output files
1533      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1534
1535Installation directories:
1536  --prefix=PREFIX         install architecture-independent files in PREFIX
1537                          [$ac_default_prefix]
1538  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1539                          [PREFIX]
1540
1541By default, \`make install' will install all the files in
1542\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1543an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544for instance \`--prefix=\$HOME'.
1545
1546For better control, use the options below.
1547
1548Fine tuning of the installation directories:
1549  --bindir=DIR            user executables [EPREFIX/bin]
1550  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1551  --libexecdir=DIR        program executables [EPREFIX/libexec]
1552  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1553  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1554  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1555  --libdir=DIR            object code libraries [EPREFIX/lib]
1556  --includedir=DIR        C header files [PREFIX/include]
1557  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1558  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1559  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1560  --infodir=DIR           info documentation [DATAROOTDIR/info]
1561  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1562  --mandir=DIR            man documentation [DATAROOTDIR/man]
1563  --docdir=DIR            documentation root
1564                          [DATAROOTDIR/doc/xf86-video-trident]
1565  --htmldir=DIR           html documentation [DOCDIR]
1566  --dvidir=DIR            dvi documentation [DOCDIR]
1567  --pdfdir=DIR            pdf documentation [DOCDIR]
1568  --psdir=DIR             ps documentation [DOCDIR]
1569_ACEOF
1570
1571  cat <<\_ACEOF
1572
1573Program names:
1574  --program-prefix=PREFIX            prepend PREFIX to installed program names
1575  --program-suffix=SUFFIX            append SUFFIX to installed program names
1576  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1577
1578System types:
1579  --build=BUILD     configure for building on BUILD [guessed]
1580  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1581_ACEOF
1582fi
1583
1584if test -n "$ac_init_help"; then
1585  case $ac_init_help in
1586     short | recursive ) echo "Configuration of xf86-video-trident 1.3.4:";;
1587   esac
1588  cat <<\_ACEOF
1589
1590Optional Features:
1591  --disable-option-checking  ignore unrecognized --enable/--with options
1592  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1593  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1594  --enable-maintainer-mode  enable make rules and dependencies not useful
1595			  (and sometimes confusing) to the casual installer
1596  --disable-dependency-tracking  speeds up one-time build
1597  --enable-dependency-tracking   do not reject slow dependency extractors
1598  --enable-strict-compilation
1599                          Enable all warnings from compiler and make them
1600                          errors (default: disabled)
1601  --enable-silent-rules          less verbose build output (undo: `make V=1')
1602  --disable-silent-rules         verbose build output (undo: `make V=0')
1603  --enable-static[=PKGS]  build static libraries [default=no]
1604  --enable-shared[=PKGS]  build shared libraries [default=yes]
1605  --enable-fast-install[=PKGS]
1606                          optimize for fast installation [default=yes]
1607  --disable-libtool-lock  avoid locking (might break parallel builds)
1608
1609Optional Packages:
1610  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1611  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1612  --with-pic              try to use only PIC/non-PIC objects [default=use
1613                          both]
1614  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1615  --with-xorg-module-dir=DIR
1616                          Default xorg module directory
1617                          [default=$libdir/xorg/modules]
1618
1619Some influential environment variables:
1620  CC          C compiler command
1621  CFLAGS      C compiler flags
1622  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1623              nonstandard directory <lib dir>
1624  LIBS        libraries to pass to the linker, e.g. -l<library>
1625  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1626              you have headers in a nonstandard directory <include dir>
1627  CPP         C preprocessor
1628  PKG_CONFIG  path to pkg-config utility
1629  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1630  XORG_LIBS   linker flags for XORG, overriding pkg-config
1631  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1632  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1633  PCIACCESS_CFLAGS
1634              C compiler flags for PCIACCESS, overriding pkg-config
1635  PCIACCESS_LIBS
1636              linker flags for PCIACCESS, overriding pkg-config
1637
1638Use these variables to override the choices made by `configure' or to help
1639it to find libraries and programs with nonstandard names/locations.
1640
1641Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1642_ACEOF
1643ac_status=$?
1644fi
1645
1646if test "$ac_init_help" = "recursive"; then
1647  # If there are subdirs, report their specific --help.
1648  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649    test -d "$ac_dir" ||
1650      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651      continue
1652    ac_builddir=.
1653
1654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
1657  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658  # A ".." for each directory in $ac_dir_suffix.
1659  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660  case $ac_top_builddir_sub in
1661  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663  esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
1669
1670case $srcdir in
1671  .)  # We are building in place.
1672    ac_srcdir=.
1673    ac_top_srcdir=$ac_top_builddir_sub
1674    ac_abs_top_srcdir=$ac_pwd ;;
1675  [\\/]* | ?:[\\/]* )  # Absolute name.
1676    ac_srcdir=$srcdir$ac_dir_suffix;
1677    ac_top_srcdir=$srcdir
1678    ac_abs_top_srcdir=$srcdir ;;
1679  *) # Relative name.
1680    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681    ac_top_srcdir=$ac_top_build_prefix$srcdir
1682    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683esac
1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686    cd "$ac_dir" || { ac_status=$?; continue; }
1687    # Check for guested configure.
1688    if test -f "$ac_srcdir/configure.gnu"; then
1689      echo &&
1690      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691    elif test -f "$ac_srcdir/configure"; then
1692      echo &&
1693      $SHELL "$ac_srcdir/configure" --help=recursive
1694    else
1695      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696    fi || ac_status=$?
1697    cd "$ac_pwd" || { ac_status=$?; break; }
1698  done
1699fi
1700
1701test -n "$ac_init_help" && exit $ac_status
1702if $ac_init_version; then
1703  cat <<\_ACEOF
1704xf86-video-trident configure 1.3.4
1705generated by GNU Autoconf 2.63
1706
1707Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17082002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1709This configure script is free software; the Free Software Foundation
1710gives unlimited permission to copy, distribute and modify it.
1711_ACEOF
1712  exit
1713fi
1714cat >config.log <<_ACEOF
1715This file contains any messages produced by compilers while
1716running configure, to aid debugging if configure makes a mistake.
1717
1718It was created by xf86-video-trident $as_me 1.3.4, which was
1719generated by GNU Autoconf 2.63.  Invocation command line was
1720
1721  $ $0 $@
1722
1723_ACEOF
1724exec 5>>config.log
1725{
1726cat <<_ASUNAME
1727## --------- ##
1728## Platform. ##
1729## --------- ##
1730
1731hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1732uname -m = `(uname -m) 2>/dev/null || echo unknown`
1733uname -r = `(uname -r) 2>/dev/null || echo unknown`
1734uname -s = `(uname -s) 2>/dev/null || echo unknown`
1735uname -v = `(uname -v) 2>/dev/null || echo unknown`
1736
1737/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1738/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1739
1740/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1741/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1742/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1743/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1744/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1745/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1746/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1747
1748_ASUNAME
1749
1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753  IFS=$as_save_IFS
1754  test -z "$as_dir" && as_dir=.
1755  $as_echo "PATH: $as_dir"
1756done
1757IFS=$as_save_IFS
1758
1759} >&5
1760
1761cat >&5 <<_ACEOF
1762
1763
1764## ----------- ##
1765## Core tests. ##
1766## ----------- ##
1767
1768_ACEOF
1769
1770
1771# Keep a trace of the command line.
1772# Strip out --no-create and --no-recursion so they do not pile up.
1773# Strip out --silent because we don't want to record it for future runs.
1774# Also quote any args containing shell meta-characters.
1775# Make two passes to allow for proper duplicate-argument suppression.
1776ac_configure_args=
1777ac_configure_args0=
1778ac_configure_args1=
1779ac_must_keep_next=false
1780for ac_pass in 1 2
1781do
1782  for ac_arg
1783  do
1784    case $ac_arg in
1785    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787    | -silent | --silent | --silen | --sile | --sil)
1788      continue ;;
1789    *\'*)
1790      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791    esac
1792    case $ac_pass in
1793    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1794    2)
1795      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1796      if test $ac_must_keep_next = true; then
1797	ac_must_keep_next=false # Got value, back to normal.
1798      else
1799	case $ac_arg in
1800	  *=* | --config-cache | -C | -disable-* | --disable-* \
1801	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803	  | -with-* | --with-* | -without-* | --without-* | --x)
1804	    case "$ac_configure_args0 " in
1805	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806	    esac
1807	    ;;
1808	  -* ) ac_must_keep_next=true ;;
1809	esac
1810      fi
1811      ac_configure_args="$ac_configure_args '$ac_arg'"
1812      ;;
1813    esac
1814  done
1815done
1816$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1817$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1818
1819# When interrupted or exit'd, cleanup temporary files, and complete
1820# config.log.  We remove comments because anyway the quotes in there
1821# would cause problems or look ugly.
1822# WARNING: Use '\'' to represent an apostrophe within the trap.
1823# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824trap 'exit_status=$?
1825  # Save into config.log some information that might help in debugging.
1826  {
1827    echo
1828
1829    cat <<\_ASBOX
1830## ---------------- ##
1831## Cache variables. ##
1832## ---------------- ##
1833_ASBOX
1834    echo
1835    # The following way of writing the cache mishandles newlines in values,
1836(
1837  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838    eval ac_val=\$$ac_var
1839    case $ac_val in #(
1840    *${as_nl}*)
1841      case $ac_var in #(
1842      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1843$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1844      esac
1845      case $ac_var in #(
1846      _ | IFS | as_nl) ;; #(
1847      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848      *) $as_unset $ac_var ;;
1849      esac ;;
1850    esac
1851  done
1852  (set) 2>&1 |
1853    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854    *${as_nl}ac_space=\ *)
1855      sed -n \
1856	"s/'\''/'\''\\\\'\'''\''/g;
1857	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858      ;; #(
1859    *)
1860      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861      ;;
1862    esac |
1863    sort
1864)
1865    echo
1866
1867    cat <<\_ASBOX
1868## ----------------- ##
1869## Output variables. ##
1870## ----------------- ##
1871_ASBOX
1872    echo
1873    for ac_var in $ac_subst_vars
1874    do
1875      eval ac_val=\$$ac_var
1876      case $ac_val in
1877      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878      esac
1879      $as_echo "$ac_var='\''$ac_val'\''"
1880    done | sort
1881    echo
1882
1883    if test -n "$ac_subst_files"; then
1884      cat <<\_ASBOX
1885## ------------------- ##
1886## File substitutions. ##
1887## ------------------- ##
1888_ASBOX
1889      echo
1890      for ac_var in $ac_subst_files
1891      do
1892	eval ac_val=\$$ac_var
1893	case $ac_val in
1894	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895	esac
1896	$as_echo "$ac_var='\''$ac_val'\''"
1897      done | sort
1898      echo
1899    fi
1900
1901    if test -s confdefs.h; then
1902      cat <<\_ASBOX
1903## ----------- ##
1904## confdefs.h. ##
1905## ----------- ##
1906_ASBOX
1907      echo
1908      cat confdefs.h
1909      echo
1910    fi
1911    test "$ac_signal" != 0 &&
1912      $as_echo "$as_me: caught signal $ac_signal"
1913    $as_echo "$as_me: exit $exit_status"
1914  } >&5
1915  rm -f core *.core core.conftest.* &&
1916    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917    exit $exit_status
1918' 0
1919for ac_signal in 1 2 13 15; do
1920  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921done
1922ac_signal=0
1923
1924# confdefs.h avoids OS command line length limits that DEFS can exceed.
1925rm -f -r conftest* confdefs.h
1926
1927# Predefined preprocessor variables.
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_NAME "$PACKAGE_NAME"
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936_ACEOF
1937
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_VERSION "$PACKAGE_VERSION"
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_STRING "$PACKAGE_STRING"
1946_ACEOF
1947
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951_ACEOF
1952
1953
1954# Let the site file select an alternate cache file if it wants to.
1955# Prefer an explicitly selected file to automatically selected ones.
1956ac_site_file1=NONE
1957ac_site_file2=NONE
1958if test -n "$CONFIG_SITE"; then
1959  ac_site_file1=$CONFIG_SITE
1960elif test "x$prefix" != xNONE; then
1961  ac_site_file1=$prefix/share/config.site
1962  ac_site_file2=$prefix/etc/config.site
1963else
1964  ac_site_file1=$ac_default_prefix/share/config.site
1965  ac_site_file2=$ac_default_prefix/etc/config.site
1966fi
1967for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1968do
1969  test "x$ac_site_file" = xNONE && continue
1970  if test -r "$ac_site_file"; then
1971    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1972$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1973    sed 's/^/| /' "$ac_site_file" >&5
1974    . "$ac_site_file"
1975  fi
1976done
1977
1978if test -r "$cache_file"; then
1979  # Some versions of bash will fail to source /dev/null (special
1980  # files actually), so we avoid doing that.
1981  if test -f "$cache_file"; then
1982    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1983$as_echo "$as_me: loading cache $cache_file" >&6;}
1984    case $cache_file in
1985      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1986      *)                      . "./$cache_file";;
1987    esac
1988  fi
1989else
1990  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1991$as_echo "$as_me: creating cache $cache_file" >&6;}
1992  >$cache_file
1993fi
1994
1995# Check that the precious variables saved in the cache have kept the same
1996# value.
1997ac_cache_corrupted=false
1998for ac_var in $ac_precious_vars; do
1999  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2000  eval ac_new_set=\$ac_env_${ac_var}_set
2001  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2002  eval ac_new_val=\$ac_env_${ac_var}_value
2003  case $ac_old_set,$ac_new_set in
2004    set,)
2005      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2006$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2007      ac_cache_corrupted=: ;;
2008    ,set)
2009      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2010$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2011      ac_cache_corrupted=: ;;
2012    ,);;
2013    *)
2014      if test "x$ac_old_val" != "x$ac_new_val"; then
2015	# differences in whitespace do not lead to failure.
2016	ac_old_val_w=`echo x $ac_old_val`
2017	ac_new_val_w=`echo x $ac_new_val`
2018	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2019	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2020$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2021	  ac_cache_corrupted=:
2022	else
2023	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2024$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2025	  eval $ac_var=\$ac_old_val
2026	fi
2027	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2028$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2029	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2030$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2031      fi;;
2032  esac
2033  # Pass precious variables to config.status.
2034  if test "$ac_new_set" = set; then
2035    case $ac_new_val in
2036    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2037    *) ac_arg=$ac_var=$ac_new_val ;;
2038    esac
2039    case " $ac_configure_args " in
2040      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2041      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2042    esac
2043  fi
2044done
2045if $ac_cache_corrupted; then
2046  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2049$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2051$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2052   { (exit 1); exit 1; }; }
2053fi
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079ac_ext=c
2080ac_cpp='$CPP $CPPFLAGS'
2081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084
2085
2086
2087
2088ac_config_headers="$ac_config_headers config.h"
2089
2090ac_aux_dir=
2091for ac_dir in . "$srcdir"/.; do
2092  if test -f "$ac_dir/install-sh"; then
2093    ac_aux_dir=$ac_dir
2094    ac_install_sh="$ac_aux_dir/install-sh -c"
2095    break
2096  elif test -f "$ac_dir/install.sh"; then
2097    ac_aux_dir=$ac_dir
2098    ac_install_sh="$ac_aux_dir/install.sh -c"
2099    break
2100  elif test -f "$ac_dir/shtool"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/shtool install -c"
2103    break
2104  fi
2105done
2106if test -z "$ac_aux_dir"; then
2107  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2108$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2109   { (exit 1); exit 1; }; }
2110fi
2111
2112# These three variables are undocumented and unsupported,
2113# and are intended to be withdrawn in a future Autoconf release.
2114# They can cause serious problems if a builder's source tree is in a directory
2115# whose full name contains unusual characters.
2116ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2117ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2118ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2119
2120
2121
2122am__api_version='1.11'
2123
2124# Find a good install program.  We prefer a C program (faster),
2125# so one script is as good as another.  But avoid the broken or
2126# incompatible versions:
2127# SysV /etc/install, /usr/sbin/install
2128# SunOS /usr/etc/install
2129# IRIX /sbin/install
2130# AIX /bin/install
2131# AmigaOS /C/install, which installs bootblocks on floppy discs
2132# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135# OS/2's system install, which has a completely different semantic
2136# ./install, which can be erroneously created by make from ./install.sh.
2137# Reject install programs that cannot install multiple files.
2138{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2139$as_echo_n "checking for a BSD-compatible install... " >&6; }
2140if test -z "$INSTALL"; then
2141if test "${ac_cv_path_install+set}" = set; then
2142  $as_echo_n "(cached) " >&6
2143else
2144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149  # Account for people who put trailing slashes in PATH elements.
2150case $as_dir/ in
2151  ./ | .// | /cC/* | \
2152  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2153  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2154  /usr/ucb/* ) ;;
2155  *)
2156    # OSF1 and SCO ODT 3.0 have their own names for install.
2157    # Don't use installbsd from OSF since it installs stuff as root
2158    # by default.
2159    for ac_prog in ginstall scoinst install; do
2160      for ac_exec_ext in '' $ac_executable_extensions; do
2161	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162	  if test $ac_prog = install &&
2163	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164	    # AIX install.  It has an incompatible calling convention.
2165	    :
2166	  elif test $ac_prog = install &&
2167	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168	    # program-specific install script used by HP pwplus--don't use.
2169	    :
2170	  else
2171	    rm -rf conftest.one conftest.two conftest.dir
2172	    echo one > conftest.one
2173	    echo two > conftest.two
2174	    mkdir conftest.dir
2175	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2176	      test -s conftest.one && test -s conftest.two &&
2177	      test -s conftest.dir/conftest.one &&
2178	      test -s conftest.dir/conftest.two
2179	    then
2180	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181	      break 3
2182	    fi
2183	  fi
2184	fi
2185      done
2186    done
2187    ;;
2188esac
2189
2190done
2191IFS=$as_save_IFS
2192
2193rm -rf conftest.one conftest.two conftest.dir
2194
2195fi
2196  if test "${ac_cv_path_install+set}" = set; then
2197    INSTALL=$ac_cv_path_install
2198  else
2199    # As a last resort, use the slow shell script.  Don't cache a
2200    # value for INSTALL within a source directory, because that will
2201    # break other packages using the cache if that directory is
2202    # removed, or if the value is a relative name.
2203    INSTALL=$ac_install_sh
2204  fi
2205fi
2206{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2207$as_echo "$INSTALL" >&6; }
2208
2209# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210# It thinks the first close brace ends the variable substitution.
2211test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2218$as_echo_n "checking whether build environment is sane... " >&6; }
2219# Just in case
2220sleep 1
2221echo timestamp > conftest.file
2222# Reject unsafe characters in $srcdir or the absolute working directory
2223# name.  Accept space and tab only in the latter.
2224am_lf='
2225'
2226case `pwd` in
2227  *[\\\"\#\$\&\'\`$am_lf]*)
2228    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2229$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2230   { (exit 1); exit 1; }; };;
2231esac
2232case $srcdir in
2233  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2234    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2235$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2236   { (exit 1); exit 1; }; };;
2237esac
2238
2239# Do `set' in a subshell so we don't clobber the current shell's
2240# arguments.  Must try -L first in case configure is actually a
2241# symlink; some systems play weird games with the mod time of symlinks
2242# (eg FreeBSD returns the mod time of the symlink's containing
2243# directory).
2244if (
2245   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2246   if test "$*" = "X"; then
2247      # -L didn't work.
2248      set X `ls -t "$srcdir/configure" conftest.file`
2249   fi
2250   rm -f conftest.file
2251   if test "$*" != "X $srcdir/configure conftest.file" \
2252      && test "$*" != "X conftest.file $srcdir/configure"; then
2253
2254      # If neither matched, then we have a broken ls.  This can happen
2255      # if, for instance, CONFIG_SHELL is bash and it inherits a
2256      # broken ls alias from the environment.  This has actually
2257      # happened.  Such a system could not be considered "sane".
2258      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2259alias in your environment" >&5
2260$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2261alias in your environment" >&2;}
2262   { (exit 1); exit 1; }; }
2263   fi
2264
2265   test "$2" = conftest.file
2266   )
2267then
2268   # Ok.
2269   :
2270else
2271   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2272Check your system clock" >&5
2273$as_echo "$as_me: error: newly created file is older than distributed files!
2274Check your system clock" >&2;}
2275   { (exit 1); exit 1; }; }
2276fi
2277{ $as_echo "$as_me:$LINENO: result: yes" >&5
2278$as_echo "yes" >&6; }
2279test "$program_prefix" != NONE &&
2280  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281# Use a double $ so make ignores it.
2282test "$program_suffix" != NONE &&
2283  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284# Double any \ or $.
2285# By default was `s,x,x', remove it if useless.
2286ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2287program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2288
2289# expand $ac_aux_dir to an absolute path
2290am_aux_dir=`cd $ac_aux_dir && pwd`
2291
2292if test x"${MISSING+set}" != xset; then
2293  case $am_aux_dir in
2294  *\ * | *\	*)
2295    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2296  *)
2297    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2298  esac
2299fi
2300# Use eval to expand $SHELL
2301if eval "$MISSING --run true"; then
2302  am_missing_run="$MISSING --run "
2303else
2304  am_missing_run=
2305  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2307fi
2308
2309if test x"${install_sh}" != xset; then
2310  case $am_aux_dir in
2311  *\ * | *\	*)
2312    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2313  *)
2314    install_sh="\${SHELL} $am_aux_dir/install-sh"
2315  esac
2316fi
2317
2318# Installed binaries are usually stripped using `strip' when the user
2319# run `make install-strip'.  However `strip' might not be the right
2320# tool to use in cross-compilation environments, therefore Automake
2321# will honor the `STRIP' environment variable to overrule this program.
2322if test "$cross_compiling" != no; then
2323  if test -n "$ac_tool_prefix"; then
2324  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325set dummy ${ac_tool_prefix}strip; ac_word=$2
2326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2327$as_echo_n "checking for $ac_word... " >&6; }
2328if test "${ac_cv_prog_STRIP+set}" = set; then
2329  $as_echo_n "(cached) " >&6
2330else
2331  if test -n "$STRIP"; then
2332  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337  IFS=$as_save_IFS
2338  test -z "$as_dir" && as_dir=.
2339  for ac_exec_ext in '' $ac_executable_extensions; do
2340  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343    break 2
2344  fi
2345done
2346done
2347IFS=$as_save_IFS
2348
2349fi
2350fi
2351STRIP=$ac_cv_prog_STRIP
2352if test -n "$STRIP"; then
2353  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2354$as_echo "$STRIP" >&6; }
2355else
2356  { $as_echo "$as_me:$LINENO: result: no" >&5
2357$as_echo "no" >&6; }
2358fi
2359
2360
2361fi
2362if test -z "$ac_cv_prog_STRIP"; then
2363  ac_ct_STRIP=$STRIP
2364  # Extract the first word of "strip", so it can be a program name with args.
2365set dummy strip; ac_word=$2
2366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2367$as_echo_n "checking for $ac_word... " >&6; }
2368if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2369  $as_echo_n "(cached) " >&6
2370else
2371  if test -n "$ac_ct_STRIP"; then
2372  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379  for ac_exec_ext in '' $ac_executable_extensions; do
2380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381    ac_cv_prog_ac_ct_STRIP="strip"
2382    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383    break 2
2384  fi
2385done
2386done
2387IFS=$as_save_IFS
2388
2389fi
2390fi
2391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392if test -n "$ac_ct_STRIP"; then
2393  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2394$as_echo "$ac_ct_STRIP" >&6; }
2395else
2396  { $as_echo "$as_me:$LINENO: result: no" >&5
2397$as_echo "no" >&6; }
2398fi
2399
2400  if test "x$ac_ct_STRIP" = x; then
2401    STRIP=":"
2402  else
2403    case $cross_compiling:$ac_tool_warned in
2404yes:)
2405{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2407ac_tool_warned=yes ;;
2408esac
2409    STRIP=$ac_ct_STRIP
2410  fi
2411else
2412  STRIP="$ac_cv_prog_STRIP"
2413fi
2414
2415fi
2416INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2419$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2420if test -z "$MKDIR_P"; then
2421  if test "${ac_cv_path_mkdir+set}" = set; then
2422  $as_echo_n "(cached) " >&6
2423else
2424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2426do
2427  IFS=$as_save_IFS
2428  test -z "$as_dir" && as_dir=.
2429  for ac_prog in mkdir gmkdir; do
2430	 for ac_exec_ext in '' $ac_executable_extensions; do
2431	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2432	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2433	     'mkdir (GNU coreutils) '* | \
2434	     'mkdir (coreutils) '* | \
2435	     'mkdir (fileutils) '4.1*)
2436	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437	       break 3;;
2438	   esac
2439	 done
2440       done
2441done
2442IFS=$as_save_IFS
2443
2444fi
2445
2446  if test "${ac_cv_path_mkdir+set}" = set; then
2447    MKDIR_P="$ac_cv_path_mkdir -p"
2448  else
2449    # As a last resort, use the slow shell script.  Don't cache a
2450    # value for MKDIR_P within a source directory, because that will
2451    # break other packages using the cache if that directory is
2452    # removed, or if the value is a relative name.
2453    test -d ./--version && rmdir ./--version
2454    MKDIR_P="$ac_install_sh -d"
2455  fi
2456fi
2457{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2458$as_echo "$MKDIR_P" >&6; }
2459
2460mkdir_p="$MKDIR_P"
2461case $mkdir_p in
2462  [\\/$]* | ?:[\\/]*) ;;
2463  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2464esac
2465
2466for ac_prog in gawk mawk nawk awk
2467do
2468  # Extract the first word of "$ac_prog", so it can be a program name with args.
2469set dummy $ac_prog; ac_word=$2
2470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if test "${ac_cv_prog_AWK+set}" = set; then
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$AWK"; then
2476  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483  for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_AWK="$ac_prog"
2486    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495AWK=$ac_cv_prog_AWK
2496if test -n "$AWK"; then
2497  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2498$as_echo "$AWK" >&6; }
2499else
2500  { $as_echo "$as_me:$LINENO: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504
2505  test -n "$AWK" && break
2506done
2507
2508{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2509$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2510set x ${MAKE-make}
2511ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2512if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2513  $as_echo_n "(cached) " >&6
2514else
2515  cat >conftest.make <<\_ACEOF
2516SHELL = /bin/sh
2517all:
2518	@echo '@@@%%%=$(MAKE)=@@@%%%'
2519_ACEOF
2520# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2521case `${MAKE-make} -f conftest.make 2>/dev/null` in
2522  *@@@%%%=?*=@@@%%%*)
2523    eval ac_cv_prog_make_${ac_make}_set=yes;;
2524  *)
2525    eval ac_cv_prog_make_${ac_make}_set=no;;
2526esac
2527rm -f conftest.make
2528fi
2529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2530  { $as_echo "$as_me:$LINENO: result: yes" >&5
2531$as_echo "yes" >&6; }
2532  SET_MAKE=
2533else
2534  { $as_echo "$as_me:$LINENO: result: no" >&5
2535$as_echo "no" >&6; }
2536  SET_MAKE="MAKE=${MAKE-make}"
2537fi
2538
2539rm -rf .tst 2>/dev/null
2540mkdir .tst 2>/dev/null
2541if test -d .tst; then
2542  am__leading_dot=.
2543else
2544  am__leading_dot=_
2545fi
2546rmdir .tst 2>/dev/null
2547
2548if test "`cd $srcdir && pwd`" != "`pwd`"; then
2549  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2550  # is not polluted with repeated "-I."
2551  am__isrc=' -I$(srcdir)'
2552  # test to see if srcdir already configured
2553  if test -f $srcdir/config.status; then
2554    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2555$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2556   { (exit 1); exit 1; }; }
2557  fi
2558fi
2559
2560# test whether we have cygpath
2561if test -z "$CYGPATH_W"; then
2562  if (cygpath --version) >/dev/null 2>/dev/null; then
2563    CYGPATH_W='cygpath -w'
2564  else
2565    CYGPATH_W=echo
2566  fi
2567fi
2568
2569
2570# Define the identity of the package.
2571 PACKAGE='xf86-video-trident'
2572 VERSION='1.3.4'
2573
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE "$PACKAGE"
2577_ACEOF
2578
2579
2580cat >>confdefs.h <<_ACEOF
2581#define VERSION "$VERSION"
2582_ACEOF
2583
2584# Some tools Automake needs.
2585
2586ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2587
2588
2589AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2590
2591
2592AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2593
2594
2595AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2596
2597
2598MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2599
2600# We need awk for the "check" target.  The system "awk" is bad on
2601# some platforms.
2602# Always define AMTAR for backward compatibility.
2603
2604AMTAR=${AMTAR-"${am_missing_run}tar"}
2605
2606am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2607
2608
2609
2610
2611
2612
2613
2614{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2615$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2616    # Check whether --enable-maintainer-mode was given.
2617if test "${enable_maintainer_mode+set}" = set; then
2618  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2619else
2620  USE_MAINTAINER_MODE=no
2621fi
2622
2623  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2624$as_echo "$USE_MAINTAINER_MODE" >&6; }
2625   if test $USE_MAINTAINER_MODE = yes; then
2626  MAINTAINER_MODE_TRUE=
2627  MAINTAINER_MODE_FALSE='#'
2628else
2629  MAINTAINER_MODE_TRUE='#'
2630  MAINTAINER_MODE_FALSE=
2631fi
2632
2633  MAINT=$MAINTAINER_MODE_TRUE
2634
2635
2636
2637# Require xorg-macros: XORG_DEFAULT_OPTIONS
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649DEPDIR="${am__leading_dot}deps"
2650
2651ac_config_commands="$ac_config_commands depfiles"
2652
2653
2654am_make=${MAKE-make}
2655cat > confinc << 'END'
2656am__doit:
2657	@echo this is the am__doit target
2658.PHONY: am__doit
2659END
2660# If we don't find an include directive, just comment out the code.
2661{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2662$as_echo_n "checking for style of include used by $am_make... " >&6; }
2663am__include="#"
2664am__quote=
2665_am_result=none
2666# First try GNU make style include.
2667echo "include confinc" > confmf
2668# Ignore all kinds of additional output from `make'.
2669case `$am_make -s -f confmf 2> /dev/null` in #(
2670*the\ am__doit\ target*)
2671  am__include=include
2672  am__quote=
2673  _am_result=GNU
2674  ;;
2675esac
2676# Now try BSD make style include.
2677if test "$am__include" = "#"; then
2678   echo '.include "confinc"' > confmf
2679   case `$am_make -s -f confmf 2> /dev/null` in #(
2680   *the\ am__doit\ target*)
2681     am__include=.include
2682     am__quote="\""
2683     _am_result=BSD
2684     ;;
2685   esac
2686fi
2687
2688
2689{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2690$as_echo "$_am_result" >&6; }
2691rm -f confinc confmf
2692
2693# Check whether --enable-dependency-tracking was given.
2694if test "${enable_dependency_tracking+set}" = set; then
2695  enableval=$enable_dependency_tracking;
2696fi
2697
2698if test "x$enable_dependency_tracking" != xno; then
2699  am_depcomp="$ac_aux_dir/depcomp"
2700  AMDEPBACKSLASH='\'
2701fi
2702 if test "x$enable_dependency_tracking" != xno; then
2703  AMDEP_TRUE=
2704  AMDEP_FALSE='#'
2705else
2706  AMDEP_TRUE='#'
2707  AMDEP_FALSE=
2708fi
2709
2710
2711ac_ext=c
2712ac_cpp='$CPP $CPPFLAGS'
2713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716if test -n "$ac_tool_prefix"; then
2717  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2718set dummy ${ac_tool_prefix}gcc; ac_word=$2
2719{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if test "${ac_cv_prog_CC+set}" = set; then
2722  $as_echo_n "(cached) " >&6
2723else
2724  if test -n "$CC"; then
2725  ac_cv_prog_CC="$CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2735    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744CC=$ac_cv_prog_CC
2745if test -n "$CC"; then
2746  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2747$as_echo "$CC" >&6; }
2748else
2749  { $as_echo "$as_me:$LINENO: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753
2754fi
2755if test -z "$ac_cv_prog_CC"; then
2756  ac_ct_CC=$CC
2757  # Extract the first word of "gcc", so it can be a program name with args.
2758set dummy gcc; ac_word=$2
2759{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
2761if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762  $as_echo_n "(cached) " >&6
2763else
2764  if test -n "$ac_ct_CC"; then
2765  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770  IFS=$as_save_IFS
2771  test -z "$as_dir" && as_dir=.
2772  for ac_exec_ext in '' $ac_executable_extensions; do
2773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774    ac_cv_prog_ac_ct_CC="gcc"
2775    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776    break 2
2777  fi
2778done
2779done
2780IFS=$as_save_IFS
2781
2782fi
2783fi
2784ac_ct_CC=$ac_cv_prog_ac_ct_CC
2785if test -n "$ac_ct_CC"; then
2786  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787$as_echo "$ac_ct_CC" >&6; }
2788else
2789  { $as_echo "$as_me:$LINENO: result: no" >&5
2790$as_echo "no" >&6; }
2791fi
2792
2793  if test "x$ac_ct_CC" = x; then
2794    CC=""
2795  else
2796    case $cross_compiling:$ac_tool_warned in
2797yes:)
2798{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800ac_tool_warned=yes ;;
2801esac
2802    CC=$ac_ct_CC
2803  fi
2804else
2805  CC="$ac_cv_prog_CC"
2806fi
2807
2808if test -z "$CC"; then
2809          if test -n "$ac_tool_prefix"; then
2810    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2811set dummy ${ac_tool_prefix}cc; ac_word=$2
2812{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if test "${ac_cv_prog_CC+set}" = set; then
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$CC"; then
2818  ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825  for ac_exec_ext in '' $ac_executable_extensions; do
2826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827    ac_cv_prog_CC="${ac_tool_prefix}cc"
2828    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
2839  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2840$as_echo "$CC" >&6; }
2841else
2842  { $as_echo "$as_me:$LINENO: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847  fi
2848fi
2849if test -z "$CC"; then
2850  # Extract the first word of "cc", so it can be a program name with args.
2851set dummy cc; ac_word=$2
2852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if test "${ac_cv_prog_CC+set}" = set; then
2855  $as_echo_n "(cached) " >&6
2856else
2857  if test -n "$CC"; then
2858  ac_cv_prog_CC="$CC" # Let the user override the test.
2859else
2860  ac_prog_rejected=no
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864  IFS=$as_save_IFS
2865  test -z "$as_dir" && as_dir=.
2866  for ac_exec_ext in '' $ac_executable_extensions; do
2867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2869       ac_prog_rejected=yes
2870       continue
2871     fi
2872    ac_cv_prog_CC="cc"
2873    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874    break 2
2875  fi
2876done
2877done
2878IFS=$as_save_IFS
2879
2880if test $ac_prog_rejected = yes; then
2881  # We found a bogon in the path, so make sure we never use it.
2882  set dummy $ac_cv_prog_CC
2883  shift
2884  if test $# != 0; then
2885    # We chose a different compiler from the bogus one.
2886    # However, it has the same basename, so the bogon will be chosen
2887    # first if we set CC to just the basename; use the full file name.
2888    shift
2889    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890  fi
2891fi
2892fi
2893fi
2894CC=$ac_cv_prog_CC
2895if test -n "$CC"; then
2896  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2897$as_echo "$CC" >&6; }
2898else
2899  { $as_echo "$as_me:$LINENO: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904fi
2905if test -z "$CC"; then
2906  if test -n "$ac_tool_prefix"; then
2907  for ac_prog in cl.exe
2908  do
2909    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if test "${ac_cv_prog_CC+set}" = set; then
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$CC"; then
2917  ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924  for ac_exec_ext in '' $ac_executable_extensions; do
2925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936CC=$ac_cv_prog_CC
2937if test -n "$CC"; then
2938  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2939$as_echo "$CC" >&6; }
2940else
2941  { $as_echo "$as_me:$LINENO: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945
2946    test -n "$CC" && break
2947  done
2948fi
2949if test -z "$CC"; then
2950  ac_ct_CC=$CC
2951  for ac_prog in cl.exe
2952do
2953  # Extract the first word of "$ac_prog", so it can be a program name with args.
2954set dummy $ac_prog; ac_word=$2
2955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958  $as_echo_n "(cached) " >&6
2959else
2960  if test -n "$ac_ct_CC"; then
2961  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966  IFS=$as_save_IFS
2967  test -z "$as_dir" && as_dir=.
2968  for ac_exec_ext in '' $ac_executable_extensions; do
2969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970    ac_cv_prog_ac_ct_CC="$ac_prog"
2971    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972    break 2
2973  fi
2974done
2975done
2976IFS=$as_save_IFS
2977
2978fi
2979fi
2980ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981if test -n "$ac_ct_CC"; then
2982  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983$as_echo "$ac_ct_CC" >&6; }
2984else
2985  { $as_echo "$as_me:$LINENO: result: no" >&5
2986$as_echo "no" >&6; }
2987fi
2988
2989
2990  test -n "$ac_ct_CC" && break
2991done
2992
2993  if test "x$ac_ct_CC" = x; then
2994    CC=""
2995  else
2996    case $cross_compiling:$ac_tool_warned in
2997yes:)
2998{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3000ac_tool_warned=yes ;;
3001esac
3002    CC=$ac_ct_CC
3003  fi
3004fi
3005
3006fi
3007
3008
3009test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3012See \`config.log' for more details." >&5
3013$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3014See \`config.log' for more details." >&2;}
3015   { (exit 1); exit 1; }; }; }
3016
3017# Provide some information about the compiler.
3018$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3019set X $ac_compile
3020ac_compiler=$2
3021{ (ac_try="$ac_compiler --version >&5"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027$as_echo "$ac_try_echo") >&5
3028  (eval "$ac_compiler --version >&5") 2>&5
3029  ac_status=$?
3030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }
3032{ (ac_try="$ac_compiler -v >&5"
3033case "(($ac_try" in
3034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035  *) ac_try_echo=$ac_try;;
3036esac
3037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3038$as_echo "$ac_try_echo") >&5
3039  (eval "$ac_compiler -v >&5") 2>&5
3040  ac_status=$?
3041  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }
3043{ (ac_try="$ac_compiler -V >&5"
3044case "(($ac_try" in
3045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046  *) ac_try_echo=$ac_try;;
3047esac
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
3050  (eval "$ac_compiler -V >&5") 2>&5
3051  ac_status=$?
3052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }
3054
3055cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h.  */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070ac_clean_files_save=$ac_clean_files
3071ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072# Try to create an executable without -o first, disregard a.out.
3073# It will help us diagnose broken compilers, and finding out an intuition
3074# of exeext.
3075{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3076$as_echo_n "checking for C compiler default output file name... " >&6; }
3077ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078
3079# The possible output files:
3080ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081
3082ac_rmfiles=
3083for ac_file in $ac_files
3084do
3085  case $ac_file in
3086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088  esac
3089done
3090rm -f $ac_rmfiles
3091
3092if { (ac_try="$ac_link_default"
3093case "(($ac_try" in
3094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095  *) ac_try_echo=$ac_try;;
3096esac
3097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3098$as_echo "$ac_try_echo") >&5
3099  (eval "$ac_link_default") 2>&5
3100  ac_status=$?
3101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; then
3103  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3106# so that the user can short-circuit this test for compilers unknown to
3107# Autoconf.
3108for ac_file in $ac_files ''
3109do
3110  test -f "$ac_file" || continue
3111  case $ac_file in
3112    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113	;;
3114    [ab].out )
3115	# We found the default executable, but exeext='' is most
3116	# certainly right.
3117	break;;
3118    *.* )
3119        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120	then :; else
3121	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122	fi
3123	# We set ac_cv_exeext here because the later test for it is not
3124	# safe: cross compilers may not add the suffix if given an `-o'
3125	# argument, so we may need to know it at that point already.
3126	# Even if this section looks crufty: it has the advantage of
3127	# actually working.
3128	break;;
3129    * )
3130	break;;
3131  esac
3132done
3133test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
3135else
3136  ac_file=''
3137fi
3138
3139{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3140$as_echo "$ac_file" >&6; }
3141if test -z "$ac_file"; then
3142  $as_echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3148See \`config.log' for more details." >&5
3149$as_echo "$as_me: error: C compiler cannot create executables
3150See \`config.log' for more details." >&2;}
3151   { (exit 77); exit 77; }; }; }
3152fi
3153
3154ac_exeext=$ac_cv_exeext
3155
3156# Check that the compiler produces executables we can run.  If not, either
3157# the compiler is broken, or we cross compile.
3158{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3159$as_echo_n "checking whether the C compiler works... " >&6; }
3160# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3161# If not cross compiling, check that we can run a simple program.
3162if test "$cross_compiling" != yes; then
3163  if { ac_try='./$ac_file'
3164  { (case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169$as_echo "$ac_try_echo") >&5
3170  (eval "$ac_try") 2>&5
3171  ac_status=$?
3172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; }; then
3174    cross_compiling=no
3175  else
3176    if test "$cross_compiling" = maybe; then
3177	cross_compiling=yes
3178    else
3179	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3182If you meant to cross compile, use \`--host'.
3183See \`config.log' for more details." >&5
3184$as_echo "$as_me: error: cannot run C compiled programs.
3185If you meant to cross compile, use \`--host'.
3186See \`config.log' for more details." >&2;}
3187   { (exit 1); exit 1; }; }; }
3188    fi
3189  fi
3190fi
3191{ $as_echo "$as_me:$LINENO: result: yes" >&5
3192$as_echo "yes" >&6; }
3193
3194rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3195ac_clean_files=$ac_clean_files_save
3196# Check that the compiler produces executables we can run.  If not, either
3197# the compiler is broken, or we cross compile.
3198{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3199$as_echo_n "checking whether we are cross compiling... " >&6; }
3200{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3201$as_echo "$cross_compiling" >&6; }
3202
3203{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3204$as_echo_n "checking for suffix of executables... " >&6; }
3205if { (ac_try="$ac_link"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3211$as_echo "$ac_try_echo") >&5
3212  (eval "$ac_link") 2>&5
3213  ac_status=$?
3214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }; then
3216  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3217# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3218# work properly (i.e., refer to `conftest.exe'), while it won't with
3219# `rm'.
3220for ac_file in conftest.exe conftest conftest.*; do
3221  test -f "$ac_file" || continue
3222  case $ac_file in
3223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225	  break;;
3226    * ) break;;
3227  esac
3228done
3229else
3230  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3233See \`config.log' for more details." >&5
3234$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3235See \`config.log' for more details." >&2;}
3236   { (exit 1); exit 1; }; }; }
3237fi
3238
3239rm -f conftest$ac_cv_exeext
3240{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3241$as_echo "$ac_cv_exeext" >&6; }
3242
3243rm -f conftest.$ac_ext
3244EXEEXT=$ac_cv_exeext
3245ac_exeext=$EXEEXT
3246{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3247$as_echo_n "checking for suffix of object files... " >&6; }
3248if test "${ac_cv_objext+set}" = set; then
3249  $as_echo_n "(cached) " >&6
3250else
3251  cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h.  */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h.  */
3257
3258int
3259main ()
3260{
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266rm -f conftest.o conftest.obj
3267if { (ac_try="$ac_compile"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273$as_echo "$ac_try_echo") >&5
3274  (eval "$ac_compile") 2>&5
3275  ac_status=$?
3276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; then
3278  for ac_file in conftest.o conftest.obj conftest.*; do
3279  test -f "$ac_file" || continue;
3280  case $ac_file in
3281    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3282    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283       break;;
3284  esac
3285done
3286else
3287  $as_echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3293See \`config.log' for more details." >&5
3294$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3295See \`config.log' for more details." >&2;}
3296   { (exit 1); exit 1; }; }; }
3297fi
3298
3299rm -f conftest.$ac_cv_objext conftest.$ac_ext
3300fi
3301{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3302$as_echo "$ac_cv_objext" >&6; }
3303OBJEXT=$ac_cv_objext
3304ac_objext=$OBJEXT
3305{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3306$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3307if test "${ac_cv_c_compiler_gnu+set}" = set; then
3308  $as_echo_n "(cached) " >&6
3309else
3310  cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h.  */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h.  */
3316
3317int
3318main ()
3319{
3320#ifndef __GNUC__
3321       choke me
3322#endif
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328rm -f conftest.$ac_objext
3329if { (ac_try="$ac_compile"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335$as_echo "$ac_try_echo") >&5
3336  (eval "$ac_compile") 2>conftest.er1
3337  ac_status=$?
3338  grep -v '^ *+' conftest.er1 >conftest.err
3339  rm -f conftest.er1
3340  cat conftest.err >&5
3341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); } && {
3343	 test -z "$ac_c_werror_flag" ||
3344	 test ! -s conftest.err
3345       } && test -s conftest.$ac_objext; then
3346  ac_compiler_gnu=yes
3347else
3348  $as_echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351	ac_compiler_gnu=no
3352fi
3353
3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356
3357fi
3358{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3359$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3360if test $ac_compiler_gnu = yes; then
3361  GCC=yes
3362else
3363  GCC=
3364fi
3365ac_test_CFLAGS=${CFLAGS+set}
3366ac_save_CFLAGS=$CFLAGS
3367{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3368$as_echo_n "checking whether $CC accepts -g... " >&6; }
3369if test "${ac_cv_prog_cc_g+set}" = set; then
3370  $as_echo_n "(cached) " >&6
3371else
3372  ac_save_c_werror_flag=$ac_c_werror_flag
3373   ac_c_werror_flag=yes
3374   ac_cv_prog_cc_g=no
3375   CFLAGS="-g"
3376   cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h.  */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext
3392if { (ac_try="$ac_compile"
3393case "(($ac_try" in
3394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395  *) ac_try_echo=$ac_try;;
3396esac
3397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398$as_echo "$ac_try_echo") >&5
3399  (eval "$ac_compile") 2>conftest.er1
3400  ac_status=$?
3401  grep -v '^ *+' conftest.er1 >conftest.err
3402  rm -f conftest.er1
3403  cat conftest.err >&5
3404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); } && {
3406	 test -z "$ac_c_werror_flag" ||
3407	 test ! -s conftest.err
3408       } && test -s conftest.$ac_objext; then
3409  ac_cv_prog_cc_g=yes
3410else
3411  $as_echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414	CFLAGS=""
3415      cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h.  */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h.  */
3421
3422int
3423main ()
3424{
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430rm -f conftest.$ac_objext
3431if { (ac_try="$ac_compile"
3432case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437$as_echo "$ac_try_echo") >&5
3438  (eval "$ac_compile") 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } && {
3445	 test -z "$ac_c_werror_flag" ||
3446	 test ! -s conftest.err
3447       } && test -s conftest.$ac_objext; then
3448  :
3449else
3450  $as_echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453	ac_c_werror_flag=$ac_save_c_werror_flag
3454	 CFLAGS="-g"
3455	 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h.  */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h.  */
3461
3462int
3463main ()
3464{
3465
3466  ;
3467  return 0;
3468}
3469_ACEOF
3470rm -f conftest.$ac_objext
3471if { (ac_try="$ac_compile"
3472case "(($ac_try" in
3473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474  *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477$as_echo "$ac_try_echo") >&5
3478  (eval "$ac_compile") 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } && {
3485	 test -z "$ac_c_werror_flag" ||
3486	 test ! -s conftest.err
3487       } && test -s conftest.$ac_objext; then
3488  ac_cv_prog_cc_g=yes
3489else
3490  $as_echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493
3494fi
3495
3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497fi
3498
3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500fi
3501
3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503   ac_c_werror_flag=$ac_save_c_werror_flag
3504fi
3505{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3506$as_echo "$ac_cv_prog_cc_g" >&6; }
3507if test "$ac_test_CFLAGS" = set; then
3508  CFLAGS=$ac_save_CFLAGS
3509elif test $ac_cv_prog_cc_g = yes; then
3510  if test "$GCC" = yes; then
3511    CFLAGS="-g -O2"
3512  else
3513    CFLAGS="-g"
3514  fi
3515else
3516  if test "$GCC" = yes; then
3517    CFLAGS="-O2"
3518  else
3519    CFLAGS=
3520  fi
3521fi
3522{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3523$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3524if test "${ac_cv_prog_cc_c89+set}" = set; then
3525  $as_echo_n "(cached) " >&6
3526else
3527  ac_cv_prog_cc_c89=no
3528ac_save_CC=$CC
3529cat >conftest.$ac_ext <<_ACEOF
3530/* confdefs.h.  */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h.  */
3535#include <stdarg.h>
3536#include <stdio.h>
3537#include <sys/types.h>
3538#include <sys/stat.h>
3539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3540struct buf { int x; };
3541FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542static char *e (p, i)
3543     char **p;
3544     int i;
3545{
3546  return p[i];
3547}
3548static char *f (char * (*g) (char **, int), char **p, ...)
3549{
3550  char *s;
3551  va_list v;
3552  va_start (v,p);
3553  s = g (p, va_arg (v,int));
3554  va_end (v);
3555  return s;
3556}
3557
3558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3559   function prototypes and stuff, but not '\xHH' hex character constants.
3560   These don't provoke an error unfortunately, instead are silently treated
3561   as 'x'.  The following induces an error, until -std is added to get
3562   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3563   array size at least.  It's necessary to write '\x00'==0 to get something
3564   that's true only with -std.  */
3565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568   inside strings and character constants.  */
3569#define FOO(x) 'x'
3570int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572int test (int i, double x);
3573struct s1 {int (*f) (int a);};
3574struct s2 {int (*f) (double a);};
3575int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576int argc;
3577char **argv;
3578int
3579main ()
3580{
3581return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588do
3589  CC="$ac_save_CC $ac_arg"
3590  rm -f conftest.$ac_objext
3591if { (ac_try="$ac_compile"
3592case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597$as_echo "$ac_try_echo") >&5
3598  (eval "$ac_compile") 2>conftest.er1
3599  ac_status=$?
3600  grep -v '^ *+' conftest.er1 >conftest.err
3601  rm -f conftest.er1
3602  cat conftest.err >&5
3603  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); } && {
3605	 test -z "$ac_c_werror_flag" ||
3606	 test ! -s conftest.err
3607       } && test -s conftest.$ac_objext; then
3608  ac_cv_prog_cc_c89=$ac_arg
3609else
3610  $as_echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613
3614fi
3615
3616rm -f core conftest.err conftest.$ac_objext
3617  test "x$ac_cv_prog_cc_c89" != "xno" && break
3618done
3619rm -f conftest.$ac_ext
3620CC=$ac_save_CC
3621
3622fi
3623# AC_CACHE_VAL
3624case "x$ac_cv_prog_cc_c89" in
3625  x)
3626    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3627$as_echo "none needed" >&6; } ;;
3628  xno)
3629    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3630$as_echo "unsupported" >&6; } ;;
3631  *)
3632    CC="$CC $ac_cv_prog_cc_c89"
3633    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3634$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3635esac
3636
3637
3638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644depcc="$CC"   am_compiler_list=
3645
3646{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3647$as_echo_n "checking dependency style of $depcc... " >&6; }
3648if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3652  # We make a subdir and do the tests there.  Otherwise we can end up
3653  # making bogus files that we don't know about and never remove.  For
3654  # instance it was reported that on HP-UX the gcc test will end up
3655  # making a dummy file named `D' -- because `-MD' means `put the output
3656  # in D'.
3657  mkdir conftest.dir
3658  # Copy depcomp to subdir because otherwise we won't find it if we're
3659  # using a relative directory.
3660  cp "$am_depcomp" conftest.dir
3661  cd conftest.dir
3662  # We will build objects and dependencies in a subdirectory because
3663  # it helps to detect inapplicable dependency modes.  For instance
3664  # both Tru64's cc and ICC support -MD to output dependencies as a
3665  # side effect of compilation, but ICC will put the dependencies in
3666  # the current directory while Tru64 will put them in the object
3667  # directory.
3668  mkdir sub
3669
3670  am_cv_CC_dependencies_compiler_type=none
3671  if test "$am_compiler_list" = ""; then
3672     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3673  fi
3674  am__universal=false
3675  case " $depcc " in #(
3676     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3677     esac
3678
3679  for depmode in $am_compiler_list; do
3680    # Setup a source with many dependencies, because some compilers
3681    # like to wrap large dependency lists on column 80 (with \), and
3682    # we should not choose a depcomp mode which is confused by this.
3683    #
3684    # We need to recreate these files for each test, as the compiler may
3685    # overwrite some of them when testing with obscure command lines.
3686    # This happens at least with the AIX C compiler.
3687    : > sub/conftest.c
3688    for i in 1 2 3 4 5 6; do
3689      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691      # Solaris 8's {/usr,}/bin/sh.
3692      touch sub/conftst$i.h
3693    done
3694    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3695
3696    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3697    # mode.  It turns out that the SunPro C++ compiler does not properly
3698    # handle `-M -o', and we need to detect this.  Also, some Intel
3699    # versions had trouble with output in subdirs
3700    am__obj=sub/conftest.${OBJEXT-o}
3701    am__minus_obj="-o $am__obj"
3702    case $depmode in
3703    gcc)
3704      # This depmode causes a compiler race in universal mode.
3705      test "$am__universal" = false || continue
3706      ;;
3707    nosideeffect)
3708      # after this tag, mechanisms are not by side-effect, so they'll
3709      # only be used when explicitly requested
3710      if test "x$enable_dependency_tracking" = xyes; then
3711	continue
3712      else
3713	break
3714      fi
3715      ;;
3716    msvisualcpp | msvcmsys)
3717      # This compiler won't grok `-c -o', but also, the minuso test has
3718      # not run yet.  These depmodes are late enough in the game, and
3719      # so weak that their functioning should not be impacted.
3720      am__obj=conftest.${OBJEXT-o}
3721      am__minus_obj=
3722      ;;
3723    none) break ;;
3724    esac
3725    if depmode=$depmode \
3726       source=sub/conftest.c object=$am__obj \
3727       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3728       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3729         >/dev/null 2>conftest.err &&
3730       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3731       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3732       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3733       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3734      # icc doesn't choke on unknown options, it will just issue warnings
3735      # or remarks (even with -Werror).  So we grep stderr for any message
3736      # that says an option was ignored or not supported.
3737      # When given -MP, icc 7.0 and 7.1 complain thusly:
3738      #   icc: Command line warning: ignoring option '-M'; no argument required
3739      # The diagnosis changed in icc 8.0:
3740      #   icc: Command line remark: option '-MP' not supported
3741      if (grep 'ignoring option' conftest.err ||
3742          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3743        am_cv_CC_dependencies_compiler_type=$depmode
3744        break
3745      fi
3746    fi
3747  done
3748
3749  cd ..
3750  rm -rf conftest.dir
3751else
3752  am_cv_CC_dependencies_compiler_type=none
3753fi
3754
3755fi
3756{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3757$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3758CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3759
3760 if
3761  test "x$enable_dependency_tracking" != xno \
3762  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3763  am__fastdepCC_TRUE=
3764  am__fastdepCC_FALSE='#'
3765else
3766  am__fastdepCC_TRUE='#'
3767  am__fastdepCC_FALSE=
3768fi
3769
3770
3771   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3772$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3773if test "${ac_cv_prog_cc_c99+set}" = set; then
3774  $as_echo_n "(cached) " >&6
3775else
3776  ac_cv_prog_cc_c99=no
3777ac_save_CC=$CC
3778cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h.  */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h.  */
3784#include <stdarg.h>
3785#include <stdbool.h>
3786#include <stdlib.h>
3787#include <wchar.h>
3788#include <stdio.h>
3789
3790// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3791#define debug(...) fprintf (stderr, __VA_ARGS__)
3792#define showlist(...) puts (#__VA_ARGS__)
3793#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3794static void
3795test_varargs_macros (void)
3796{
3797  int x = 1234;
3798  int y = 5678;
3799  debug ("Flag");
3800  debug ("X = %d\n", x);
3801  showlist (The first, second, and third items.);
3802  report (x>y, "x is %d but y is %d", x, y);
3803}
3804
3805// Check long long types.
3806#define BIG64 18446744073709551615ull
3807#define BIG32 4294967295ul
3808#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3809#if !BIG_OK
3810  your preprocessor is broken;
3811#endif
3812#if BIG_OK
3813#else
3814  your preprocessor is broken;
3815#endif
3816static long long int bignum = -9223372036854775807LL;
3817static unsigned long long int ubignum = BIG64;
3818
3819struct incomplete_array
3820{
3821  int datasize;
3822  double data[];
3823};
3824
3825struct named_init {
3826  int number;
3827  const wchar_t *name;
3828  double average;
3829};
3830
3831typedef const char *ccp;
3832
3833static inline int
3834test_restrict (ccp restrict text)
3835{
3836  // See if C++-style comments work.
3837  // Iterate through items via the restricted pointer.
3838  // Also check for declarations in for loops.
3839  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3840    continue;
3841  return 0;
3842}
3843
3844// Check varargs and va_copy.
3845static void
3846test_varargs (const char *format, ...)
3847{
3848  va_list args;
3849  va_start (args, format);
3850  va_list args_copy;
3851  va_copy (args_copy, args);
3852
3853  const char *str;
3854  int number;
3855  float fnumber;
3856
3857  while (*format)
3858    {
3859      switch (*format++)
3860	{
3861	case 's': // string
3862	  str = va_arg (args_copy, const char *);
3863	  break;
3864	case 'd': // int
3865	  number = va_arg (args_copy, int);
3866	  break;
3867	case 'f': // float
3868	  fnumber = va_arg (args_copy, double);
3869	  break;
3870	default:
3871	  break;
3872	}
3873    }
3874  va_end (args_copy);
3875  va_end (args);
3876}
3877
3878int
3879main ()
3880{
3881
3882  // Check bool.
3883  _Bool success = false;
3884
3885  // Check restrict.
3886  if (test_restrict ("String literal") == 0)
3887    success = true;
3888  char *restrict newvar = "Another string";
3889
3890  // Check varargs.
3891  test_varargs ("s, d' f .", "string", 65, 34.234);
3892  test_varargs_macros ();
3893
3894  // Check flexible array members.
3895  struct incomplete_array *ia =
3896    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3897  ia->datasize = 10;
3898  for (int i = 0; i < ia->datasize; ++i)
3899    ia->data[i] = i * 1.234;
3900
3901  // Check named initializers.
3902  struct named_init ni = {
3903    .number = 34,
3904    .name = L"Test wide string",
3905    .average = 543.34343,
3906  };
3907
3908  ni.number = 58;
3909
3910  int dynamic_array[ni.number];
3911  dynamic_array[ni.number - 1] = 543;
3912
3913  // work around unused variable warnings
3914  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3915	  || dynamic_array[ni.number - 1] != 543);
3916
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3922do
3923  CC="$ac_save_CC $ac_arg"
3924  rm -f conftest.$ac_objext
3925if { (ac_try="$ac_compile"
3926case "(($ac_try" in
3927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928  *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931$as_echo "$ac_try_echo") >&5
3932  (eval "$ac_compile") 2>conftest.er1
3933  ac_status=$?
3934  grep -v '^ *+' conftest.er1 >conftest.err
3935  rm -f conftest.er1
3936  cat conftest.err >&5
3937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } && {
3939	 test -z "$ac_c_werror_flag" ||
3940	 test ! -s conftest.err
3941       } && test -s conftest.$ac_objext; then
3942  ac_cv_prog_cc_c99=$ac_arg
3943else
3944  $as_echo "$as_me: failed program was:" >&5
3945sed 's/^/| /' conftest.$ac_ext >&5
3946
3947
3948fi
3949
3950rm -f core conftest.err conftest.$ac_objext
3951  test "x$ac_cv_prog_cc_c99" != "xno" && break
3952done
3953rm -f conftest.$ac_ext
3954CC=$ac_save_CC
3955
3956fi
3957# AC_CACHE_VAL
3958case "x$ac_cv_prog_cc_c99" in
3959  x)
3960    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3961$as_echo "none needed" >&6; } ;;
3962  xno)
3963    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3964$as_echo "unsupported" >&6; } ;;
3965  *)
3966    CC="$CC $ac_cv_prog_cc_c99"
3967    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3968$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3969esac
3970
3971
3972
3973
3974ac_ext=c
3975ac_cpp='$CPP $CPPFLAGS'
3976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3980$as_echo_n "checking how to run the C preprocessor... " >&6; }
3981# On Suns, sometimes $CPP names a directory.
3982if test -n "$CPP" && test -d "$CPP"; then
3983  CPP=
3984fi
3985if test -z "$CPP"; then
3986  if test "${ac_cv_prog_CPP+set}" = set; then
3987  $as_echo_n "(cached) " >&6
3988else
3989      # Double quotes because CPP needs to be expanded
3990    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991    do
3992      ac_preproc_ok=false
3993for ac_c_preproc_warn_flag in '' yes
3994do
3995  # Use a header file that comes with gcc, so configuring glibc
3996  # with a fresh cross-compiler works.
3997  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998  # <limits.h> exists even on freestanding compilers.
3999  # On the NeXT, cc -E runs the code through the compiler's parser,
4000  # not just through cpp. "Syntax error" is here to catch this case.
4001  cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h.  */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h.  */
4007#ifdef __STDC__
4008# include <limits.h>
4009#else
4010# include <assert.h>
4011#endif
4012		     Syntax error
4013_ACEOF
4014if { (ac_try="$ac_cpp conftest.$ac_ext"
4015case "(($ac_try" in
4016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017  *) ac_try_echo=$ac_try;;
4018esac
4019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4020$as_echo "$ac_try_echo") >&5
4021  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4022  ac_status=$?
4023  grep -v '^ *+' conftest.er1 >conftest.err
4024  rm -f conftest.er1
4025  cat conftest.err >&5
4026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); } >/dev/null && {
4028	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4029	 test ! -s conftest.err
4030       }; then
4031  :
4032else
4033  $as_echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036  # Broken: fails on valid input.
4037continue
4038fi
4039
4040rm -f conftest.err conftest.$ac_ext
4041
4042  # OK, works on sane cases.  Now check whether nonexistent headers
4043  # can be detected and how.
4044  cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h.  */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h.  */
4050#include <ac_nonexistent.h>
4051_ACEOF
4052if { (ac_try="$ac_cpp conftest.$ac_ext"
4053case "(($ac_try" in
4054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055  *) ac_try_echo=$ac_try;;
4056esac
4057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058$as_echo "$ac_try_echo") >&5
4059  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4060  ac_status=$?
4061  grep -v '^ *+' conftest.er1 >conftest.err
4062  rm -f conftest.er1
4063  cat conftest.err >&5
4064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065  (exit $ac_status); } >/dev/null && {
4066	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4067	 test ! -s conftest.err
4068       }; then
4069  # Broken: success on invalid input.
4070continue
4071else
4072  $as_echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075  # Passes both tests.
4076ac_preproc_ok=:
4077break
4078fi
4079
4080rm -f conftest.err conftest.$ac_ext
4081
4082done
4083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4084rm -f conftest.err conftest.$ac_ext
4085if $ac_preproc_ok; then
4086  break
4087fi
4088
4089    done
4090    ac_cv_prog_CPP=$CPP
4091
4092fi
4093  CPP=$ac_cv_prog_CPP
4094else
4095  ac_cv_prog_CPP=$CPP
4096fi
4097{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4098$as_echo "$CPP" >&6; }
4099ac_preproc_ok=false
4100for ac_c_preproc_warn_flag in '' yes
4101do
4102  # Use a header file that comes with gcc, so configuring glibc
4103  # with a fresh cross-compiler works.
4104  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105  # <limits.h> exists even on freestanding compilers.
4106  # On the NeXT, cc -E runs the code through the compiler's parser,
4107  # not just through cpp. "Syntax error" is here to catch this case.
4108  cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h.  */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h.  */
4114#ifdef __STDC__
4115# include <limits.h>
4116#else
4117# include <assert.h>
4118#endif
4119		     Syntax error
4120_ACEOF
4121if { (ac_try="$ac_cpp conftest.$ac_ext"
4122case "(($ac_try" in
4123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124  *) ac_try_echo=$ac_try;;
4125esac
4126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127$as_echo "$ac_try_echo") >&5
4128  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4129  ac_status=$?
4130  grep -v '^ *+' conftest.er1 >conftest.err
4131  rm -f conftest.er1
4132  cat conftest.err >&5
4133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); } >/dev/null && {
4135	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4136	 test ! -s conftest.err
4137       }; then
4138  :
4139else
4140  $as_echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143  # Broken: fails on valid input.
4144continue
4145fi
4146
4147rm -f conftest.err conftest.$ac_ext
4148
4149  # OK, works on sane cases.  Now check whether nonexistent headers
4150  # can be detected and how.
4151  cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h.  */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h.  */
4157#include <ac_nonexistent.h>
4158_ACEOF
4159if { (ac_try="$ac_cpp conftest.$ac_ext"
4160case "(($ac_try" in
4161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162  *) ac_try_echo=$ac_try;;
4163esac
4164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4165$as_echo "$ac_try_echo") >&5
4166  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4167  ac_status=$?
4168  grep -v '^ *+' conftest.er1 >conftest.err
4169  rm -f conftest.er1
4170  cat conftest.err >&5
4171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); } >/dev/null && {
4173	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4174	 test ! -s conftest.err
4175       }; then
4176  # Broken: success on invalid input.
4177continue
4178else
4179  $as_echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182  # Passes both tests.
4183ac_preproc_ok=:
4184break
4185fi
4186
4187rm -f conftest.err conftest.$ac_ext
4188
4189done
4190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191rm -f conftest.err conftest.$ac_ext
4192if $ac_preproc_ok; then
4193  :
4194else
4195  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4198See \`config.log' for more details." >&5
4199$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4200See \`config.log' for more details." >&2;}
4201   { (exit 1); exit 1; }; }; }
4202fi
4203
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210
4211{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4212$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4213if test "${ac_cv_path_GREP+set}" = set; then
4214  $as_echo_n "(cached) " >&6
4215else
4216  if test -z "$GREP"; then
4217  ac_path_GREP_found=false
4218  # Loop through the user's path and test for each of PROGNAME-LIST
4219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224  for ac_prog in grep ggrep; do
4225    for ac_exec_ext in '' $ac_executable_extensions; do
4226      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4227      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4228# Check for GNU ac_path_GREP and select it if it is found.
4229  # Check for GNU $ac_path_GREP
4230case `"$ac_path_GREP" --version 2>&1` in
4231*GNU*)
4232  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4233*)
4234  ac_count=0
4235  $as_echo_n 0123456789 >"conftest.in"
4236  while :
4237  do
4238    cat "conftest.in" "conftest.in" >"conftest.tmp"
4239    mv "conftest.tmp" "conftest.in"
4240    cp "conftest.in" "conftest.nl"
4241    $as_echo 'GREP' >> "conftest.nl"
4242    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244    ac_count=`expr $ac_count + 1`
4245    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4246      # Best one so far, save it but keep looking for a better one
4247      ac_cv_path_GREP="$ac_path_GREP"
4248      ac_path_GREP_max=$ac_count
4249    fi
4250    # 10*(2^10) chars as input seems more than enough
4251    test $ac_count -gt 10 && break
4252  done
4253  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254esac
4255
4256      $ac_path_GREP_found && break 3
4257    done
4258  done
4259done
4260IFS=$as_save_IFS
4261  if test -z "$ac_cv_path_GREP"; then
4262    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4263$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4264   { (exit 1); exit 1; }; }
4265  fi
4266else
4267  ac_cv_path_GREP=$GREP
4268fi
4269
4270fi
4271{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4272$as_echo "$ac_cv_path_GREP" >&6; }
4273 GREP="$ac_cv_path_GREP"
4274
4275
4276{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4277$as_echo_n "checking for egrep... " >&6; }
4278if test "${ac_cv_path_EGREP+set}" = set; then
4279  $as_echo_n "(cached) " >&6
4280else
4281  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4282   then ac_cv_path_EGREP="$GREP -E"
4283   else
4284     if test -z "$EGREP"; then
4285  ac_path_EGREP_found=false
4286  # Loop through the user's path and test for each of PROGNAME-LIST
4287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292  for ac_prog in egrep; do
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4295      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4296# Check for GNU ac_path_EGREP and select it if it is found.
4297  # Check for GNU $ac_path_EGREP
4298case `"$ac_path_EGREP" --version 2>&1` in
4299*GNU*)
4300  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4301*)
4302  ac_count=0
4303  $as_echo_n 0123456789 >"conftest.in"
4304  while :
4305  do
4306    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307    mv "conftest.tmp" "conftest.in"
4308    cp "conftest.in" "conftest.nl"
4309    $as_echo 'EGREP' >> "conftest.nl"
4310    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312    ac_count=`expr $ac_count + 1`
4313    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314      # Best one so far, save it but keep looking for a better one
4315      ac_cv_path_EGREP="$ac_path_EGREP"
4316      ac_path_EGREP_max=$ac_count
4317    fi
4318    # 10*(2^10) chars as input seems more than enough
4319    test $ac_count -gt 10 && break
4320  done
4321  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322esac
4323
4324      $ac_path_EGREP_found && break 3
4325    done
4326  done
4327done
4328IFS=$as_save_IFS
4329  if test -z "$ac_cv_path_EGREP"; then
4330    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4331$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4332   { (exit 1); exit 1; }; }
4333  fi
4334else
4335  ac_cv_path_EGREP=$EGREP
4336fi
4337
4338   fi
4339fi
4340{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4341$as_echo "$ac_cv_path_EGREP" >&6; }
4342 EGREP="$ac_cv_path_EGREP"
4343
4344
4345{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4346$as_echo_n "checking for ANSI C header files... " >&6; }
4347if test "${ac_cv_header_stdc+set}" = set; then
4348  $as_echo_n "(cached) " >&6
4349else
4350  cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h.  */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h.  */
4356#include <stdlib.h>
4357#include <stdarg.h>
4358#include <string.h>
4359#include <float.h>
4360
4361int
4362main ()
4363{
4364
4365  ;
4366  return 0;
4367}
4368_ACEOF
4369rm -f conftest.$ac_objext
4370if { (ac_try="$ac_compile"
4371case "(($ac_try" in
4372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373  *) ac_try_echo=$ac_try;;
4374esac
4375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376$as_echo "$ac_try_echo") >&5
4377  (eval "$ac_compile") 2>conftest.er1
4378  ac_status=$?
4379  grep -v '^ *+' conftest.er1 >conftest.err
4380  rm -f conftest.er1
4381  cat conftest.err >&5
4382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383  (exit $ac_status); } && {
4384	 test -z "$ac_c_werror_flag" ||
4385	 test ! -s conftest.err
4386       } && test -s conftest.$ac_objext; then
4387  ac_cv_header_stdc=yes
4388else
4389  $as_echo "$as_me: failed program was:" >&5
4390sed 's/^/| /' conftest.$ac_ext >&5
4391
4392	ac_cv_header_stdc=no
4393fi
4394
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396
4397if test $ac_cv_header_stdc = yes; then
4398  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399  cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h.  */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h.  */
4405#include <string.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409  $EGREP "memchr" >/dev/null 2>&1; then
4410  :
4411else
4412  ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420  cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426#include <stdlib.h>
4427
4428_ACEOF
4429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430  $EGREP "free" >/dev/null 2>&1; then
4431  :
4432else
4433  ac_cv_header_stdc=no
4434fi
4435rm -f conftest*
4436
4437fi
4438
4439if test $ac_cv_header_stdc = yes; then
4440  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441  if test "$cross_compiling" = yes; then
4442  :
4443else
4444  cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h.  */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h.  */
4450#include <ctype.h>
4451#include <stdlib.h>
4452#if ((' ' & 0x0FF) == 0x020)
4453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4455#else
4456# define ISLOWER(c) \
4457		   (('a' <= (c) && (c) <= 'i') \
4458		     || ('j' <= (c) && (c) <= 'r') \
4459		     || ('s' <= (c) && (c) <= 'z'))
4460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4461#endif
4462
4463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4464int
4465main ()
4466{
4467  int i;
4468  for (i = 0; i < 256; i++)
4469    if (XOR (islower (i), ISLOWER (i))
4470	|| toupper (i) != TOUPPER (i))
4471      return 2;
4472  return 0;
4473}
4474_ACEOF
4475rm -f conftest$ac_exeext
4476if { (ac_try="$ac_link"
4477case "(($ac_try" in
4478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479  *) ac_try_echo=$ac_try;;
4480esac
4481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482$as_echo "$ac_try_echo") >&5
4483  (eval "$ac_link") 2>&5
4484  ac_status=$?
4485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4487  { (case "(($ac_try" in
4488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489  *) ac_try_echo=$ac_try;;
4490esac
4491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492$as_echo "$ac_try_echo") >&5
4493  (eval "$ac_try") 2>&5
4494  ac_status=$?
4495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496  (exit $ac_status); }; }; then
4497  :
4498else
4499  $as_echo "$as_me: program exited with status $ac_status" >&5
4500$as_echo "$as_me: failed program was:" >&5
4501sed 's/^/| /' conftest.$ac_ext >&5
4502
4503( exit $ac_status )
4504ac_cv_header_stdc=no
4505fi
4506rm -rf conftest.dSYM
4507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4508fi
4509
4510
4511fi
4512fi
4513{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4514$as_echo "$ac_cv_header_stdc" >&6; }
4515if test $ac_cv_header_stdc = yes; then
4516
4517cat >>confdefs.h <<\_ACEOF
4518#define STDC_HEADERS 1
4519_ACEOF
4520
4521fi
4522
4523# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4534		  inttypes.h stdint.h unistd.h
4535do
4536as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4537{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4538$as_echo_n "checking for $ac_header... " >&6; }
4539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4540  $as_echo_n "(cached) " >&6
4541else
4542  cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h.  */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h.  */
4548$ac_includes_default
4549
4550#include <$ac_header>
4551_ACEOF
4552rm -f conftest.$ac_objext
4553if { (ac_try="$ac_compile"
4554case "(($ac_try" in
4555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556  *) ac_try_echo=$ac_try;;
4557esac
4558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4559$as_echo "$ac_try_echo") >&5
4560  (eval "$ac_compile") 2>conftest.er1
4561  ac_status=$?
4562  grep -v '^ *+' conftest.er1 >conftest.err
4563  rm -f conftest.er1
4564  cat conftest.err >&5
4565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); } && {
4567	 test -z "$ac_c_werror_flag" ||
4568	 test ! -s conftest.err
4569       } && test -s conftest.$ac_objext; then
4570  eval "$as_ac_Header=yes"
4571else
4572  $as_echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575	eval "$as_ac_Header=no"
4576fi
4577
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580ac_res=`eval 'as_val=${'$as_ac_Header'}
4581		 $as_echo "$as_val"'`
4582	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4583$as_echo "$ac_res" >&6; }
4584as_val=`eval 'as_val=${'$as_ac_Header'}
4585		 $as_echo "$as_val"'`
4586   if test "x$as_val" = x""yes; then
4587  cat >>confdefs.h <<_ACEOF
4588#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4589_ACEOF
4590
4591fi
4592
4593done
4594
4595
4596
4597
4598if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4599	if test -n "$ac_tool_prefix"; then
4600  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4601set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4602{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4603$as_echo_n "checking for $ac_word... " >&6; }
4604if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4605  $as_echo_n "(cached) " >&6
4606else
4607  case $PKG_CONFIG in
4608  [\\/]* | ?:[\\/]*)
4609  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4610  ;;
4611  *)
4612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615  IFS=$as_save_IFS
4616  test -z "$as_dir" && as_dir=.
4617  for ac_exec_ext in '' $ac_executable_extensions; do
4618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4620    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621    break 2
4622  fi
4623done
4624done
4625IFS=$as_save_IFS
4626
4627  ;;
4628esac
4629fi
4630PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4631if test -n "$PKG_CONFIG"; then
4632  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4633$as_echo "$PKG_CONFIG" >&6; }
4634else
4635  { $as_echo "$as_me:$LINENO: result: no" >&5
4636$as_echo "no" >&6; }
4637fi
4638
4639
4640fi
4641if test -z "$ac_cv_path_PKG_CONFIG"; then
4642  ac_pt_PKG_CONFIG=$PKG_CONFIG
4643  # Extract the first word of "pkg-config", so it can be a program name with args.
4644set dummy pkg-config; ac_word=$2
4645{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4648  $as_echo_n "(cached) " >&6
4649else
4650  case $ac_pt_PKG_CONFIG in
4651  [\\/]* | ?:[\\/]*)
4652  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4653  ;;
4654  *)
4655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658  IFS=$as_save_IFS
4659  test -z "$as_dir" && as_dir=.
4660  for ac_exec_ext in '' $ac_executable_extensions; do
4661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4663    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664    break 2
4665  fi
4666done
4667done
4668IFS=$as_save_IFS
4669
4670  ;;
4671esac
4672fi
4673ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4674if test -n "$ac_pt_PKG_CONFIG"; then
4675  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4676$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4677else
4678  { $as_echo "$as_me:$LINENO: result: no" >&5
4679$as_echo "no" >&6; }
4680fi
4681
4682  if test "x$ac_pt_PKG_CONFIG" = x; then
4683    PKG_CONFIG=""
4684  else
4685    case $cross_compiling:$ac_tool_warned in
4686yes:)
4687{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689ac_tool_warned=yes ;;
4690esac
4691    PKG_CONFIG=$ac_pt_PKG_CONFIG
4692  fi
4693else
4694  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4695fi
4696
4697fi
4698if test -n "$PKG_CONFIG"; then
4699	_pkg_min_version=0.9.0
4700	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4701$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4702	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4703		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4704$as_echo "yes" >&6; }
4705	else
4706		{ $as_echo "$as_me:$LINENO: result: no" >&5
4707$as_echo "no" >&6; }
4708		PKG_CONFIG=""
4709	fi
4710
4711fi
4712# Make sure we can run config.sub.
4713$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4714  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4715$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4716   { (exit 1); exit 1; }; }
4717
4718{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4719$as_echo_n "checking build system type... " >&6; }
4720if test "${ac_cv_build+set}" = set; then
4721  $as_echo_n "(cached) " >&6
4722else
4723  ac_build_alias=$build_alias
4724test "x$ac_build_alias" = x &&
4725  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4726test "x$ac_build_alias" = x &&
4727  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4728$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4729   { (exit 1); exit 1; }; }
4730ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4731  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4732$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4733   { (exit 1); exit 1; }; }
4734
4735fi
4736{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4737$as_echo "$ac_cv_build" >&6; }
4738case $ac_cv_build in
4739*-*-*) ;;
4740*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4741$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4742   { (exit 1); exit 1; }; };;
4743esac
4744build=$ac_cv_build
4745ac_save_IFS=$IFS; IFS='-'
4746set x $ac_cv_build
4747shift
4748build_cpu=$1
4749build_vendor=$2
4750shift; shift
4751# Remember, the first character of IFS is used to create $*,
4752# except with old shells:
4753build_os=$*
4754IFS=$ac_save_IFS
4755case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4756
4757
4758{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4759$as_echo_n "checking host system type... " >&6; }
4760if test "${ac_cv_host+set}" = set; then
4761  $as_echo_n "(cached) " >&6
4762else
4763  if test "x$host_alias" = x; then
4764  ac_cv_host=$ac_cv_build
4765else
4766  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4767    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4768$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4769   { (exit 1); exit 1; }; }
4770fi
4771
4772fi
4773{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4774$as_echo "$ac_cv_host" >&6; }
4775case $ac_cv_host in
4776*-*-*) ;;
4777*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4778$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4779   { (exit 1); exit 1; }; };;
4780esac
4781host=$ac_cv_host
4782ac_save_IFS=$IFS; IFS='-'
4783set x $ac_cv_host
4784shift
4785host_cpu=$1
4786host_vendor=$2
4787shift; shift
4788# Remember, the first character of IFS is used to create $*,
4789# except with old shells:
4790host_os=$*
4791IFS=$ac_save_IFS
4792case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4793
4794
4795{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4796$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4797if test "${ac_cv_path_SED+set}" = set; then
4798  $as_echo_n "(cached) " >&6
4799else
4800            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4801     for ac_i in 1 2 3 4 5 6 7; do
4802       ac_script="$ac_script$as_nl$ac_script"
4803     done
4804     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4805     $as_unset ac_script || ac_script=
4806     if test -z "$SED"; then
4807  ac_path_SED_found=false
4808  # Loop through the user's path and test for each of PROGNAME-LIST
4809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814  for ac_prog in sed gsed; do
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4817      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4818# Check for GNU ac_path_SED and select it if it is found.
4819  # Check for GNU $ac_path_SED
4820case `"$ac_path_SED" --version 2>&1` in
4821*GNU*)
4822  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4823*)
4824  ac_count=0
4825  $as_echo_n 0123456789 >"conftest.in"
4826  while :
4827  do
4828    cat "conftest.in" "conftest.in" >"conftest.tmp"
4829    mv "conftest.tmp" "conftest.in"
4830    cp "conftest.in" "conftest.nl"
4831    $as_echo '' >> "conftest.nl"
4832    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834    ac_count=`expr $ac_count + 1`
4835    if test $ac_count -gt ${ac_path_SED_max-0}; then
4836      # Best one so far, save it but keep looking for a better one
4837      ac_cv_path_SED="$ac_path_SED"
4838      ac_path_SED_max=$ac_count
4839    fi
4840    # 10*(2^10) chars as input seems more than enough
4841    test $ac_count -gt 10 && break
4842  done
4843  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844esac
4845
4846      $ac_path_SED_found && break 3
4847    done
4848  done
4849done
4850IFS=$as_save_IFS
4851  if test -z "$ac_cv_path_SED"; then
4852    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4853$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4854   { (exit 1); exit 1; }; }
4855  fi
4856else
4857  ac_cv_path_SED=$SED
4858fi
4859
4860fi
4861{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4862$as_echo "$ac_cv_path_SED" >&6; }
4863 SED="$ac_cv_path_SED"
4864  rm -f conftest.sed
4865
4866
4867
4868
4869
4870if  test "x$GCC" = xyes ; then
4871    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4872-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4873-Wbad-function-cast -Wformat=2"
4874    case `$CC -dumpversion` in
4875    3.4.* | 4.*)
4876	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4877	;;
4878    esac
4879else
4880    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4881$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4882if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4883  $as_echo_n "(cached) " >&6
4884else
4885  cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h.  */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h.  */
4891$ac_includes_default
4892int
4893main ()
4894{
4895#ifndef __SUNPRO_C
4896  (void) __SUNPRO_C;
4897#endif
4898
4899  ;
4900  return 0;
4901}
4902_ACEOF
4903rm -f conftest.$ac_objext
4904if { (ac_try="$ac_compile"
4905case "(($ac_try" in
4906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907  *) ac_try_echo=$ac_try;;
4908esac
4909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4910$as_echo "$ac_try_echo") >&5
4911  (eval "$ac_compile") 2>conftest.er1
4912  ac_status=$?
4913  grep -v '^ *+' conftest.er1 >conftest.err
4914  rm -f conftest.er1
4915  cat conftest.err >&5
4916  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917  (exit $ac_status); } && {
4918	 test -z "$ac_c_werror_flag" ||
4919	 test ! -s conftest.err
4920       } && test -s conftest.$ac_objext; then
4921  ac_cv_have_decl___SUNPRO_C=yes
4922else
4923  $as_echo "$as_me: failed program was:" >&5
4924sed 's/^/| /' conftest.$ac_ext >&5
4925
4926	ac_cv_have_decl___SUNPRO_C=no
4927fi
4928
4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930fi
4931{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4932$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4933if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4934  SUNCC="yes"
4935else
4936  SUNCC="no"
4937fi
4938
4939    if test "x$SUNCC" = "xyes"; then
4940	CWARNFLAGS="-v"
4941    fi
4942fi
4943
4944
4945
4946# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4947
4948
4949
4950# Check whether --enable-strict-compilation was given.
4951if test "${enable_strict_compilation+set}" = set; then
4952  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4953else
4954  STRICT_COMPILE=no
4955fi
4956
4957if test "x$STRICT_COMPILE" = "xyes"; then
4958	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4959$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4960if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4961  $as_echo_n "(cached) " >&6
4962else
4963  cat >conftest.$ac_ext <<_ACEOF
4964/* confdefs.h.  */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h.  */
4969$ac_includes_default
4970int
4971main ()
4972{
4973#ifndef __SUNPRO_C
4974  (void) __SUNPRO_C;
4975#endif
4976
4977  ;
4978  return 0;
4979}
4980_ACEOF
4981rm -f conftest.$ac_objext
4982if { (ac_try="$ac_compile"
4983case "(($ac_try" in
4984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985  *) ac_try_echo=$ac_try;;
4986esac
4987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4988$as_echo "$ac_try_echo") >&5
4989  (eval "$ac_compile") 2>conftest.er1
4990  ac_status=$?
4991  grep -v '^ *+' conftest.er1 >conftest.err
4992  rm -f conftest.er1
4993  cat conftest.err >&5
4994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995  (exit $ac_status); } && {
4996	 test -z "$ac_c_werror_flag" ||
4997	 test ! -s conftest.err
4998       } && test -s conftest.$ac_objext; then
4999  ac_cv_have_decl___SUNPRO_C=yes
5000else
5001  $as_echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004	ac_cv_have_decl___SUNPRO_C=no
5005fi
5006
5007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008fi
5009{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
5010$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
5011if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
5012  SUNCC="yes"
5013else
5014  SUNCC="no"
5015fi
5016
5017	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
5018$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
5019if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
5020  $as_echo_n "(cached) " >&6
5021else
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028$ac_includes_default
5029int
5030main ()
5031{
5032#ifndef __INTEL_COMPILER
5033  (void) __INTEL_COMPILER;
5034#endif
5035
5036  ;
5037  return 0;
5038}
5039_ACEOF
5040rm -f conftest.$ac_objext
5041if { (ac_try="$ac_compile"
5042case "(($ac_try" in
5043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044  *) ac_try_echo=$ac_try;;
5045esac
5046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047$as_echo "$ac_try_echo") >&5
5048  (eval "$ac_compile") 2>conftest.er1
5049  ac_status=$?
5050  grep -v '^ *+' conftest.er1 >conftest.err
5051  rm -f conftest.er1
5052  cat conftest.err >&5
5053  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); } && {
5055	 test -z "$ac_c_werror_flag" ||
5056	 test ! -s conftest.err
5057       } && test -s conftest.$ac_objext; then
5058  ac_cv_have_decl___INTEL_COMPILER=yes
5059else
5060  $as_echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063	ac_cv_have_decl___INTEL_COMPILER=no
5064fi
5065
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067fi
5068{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
5069$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
5070if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
5071  INTELCC="yes"
5072else
5073  INTELCC="no"
5074fi
5075
5076	if test "x$GCC" = xyes ; then
5077		STRICT_CFLAGS="-pedantic -Werror"
5078	elif test "x$SUNCC" = "xyes"; then
5079		STRICT_CFLAGS="-errwarn"
5080    elif test "x$INTELCC" = "xyes"; then
5081		STRICT_CFLAGS="-Werror"
5082	fi
5083fi
5084CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5085
5086
5087
5088
5089cat >>confdefs.h <<_ACEOF
5090#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5091_ACEOF
5092
5093	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5094	if test "x$PVM" = "x"; then
5095		PVM="0"
5096	fi
5097
5098cat >>confdefs.h <<_ACEOF
5099#define PACKAGE_VERSION_MINOR $PVM
5100_ACEOF
5101
5102	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5103	if test "x$PVP" = "x"; then
5104		PVP="0"
5105	fi
5106
5107cat >>confdefs.h <<_ACEOF
5108#define PACKAGE_VERSION_PATCHLEVEL $PVP
5109_ACEOF
5110
5111
5112
5113CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5114mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5115|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5116echo 'git directory not found: installing possibly empty changelog.' >&2)"
5117
5118
5119
5120
5121macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5122INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5123mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5124|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5125echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5126
5127
5128
5129
5130
5131
5132if test x$APP_MAN_SUFFIX = x    ; then
5133    APP_MAN_SUFFIX=1
5134fi
5135if test x$APP_MAN_DIR = x    ; then
5136    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5137fi
5138
5139if test x$LIB_MAN_SUFFIX = x    ; then
5140    LIB_MAN_SUFFIX=3
5141fi
5142if test x$LIB_MAN_DIR = x    ; then
5143    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5144fi
5145
5146if test x$FILE_MAN_SUFFIX = x    ; then
5147    case $host_os in
5148	solaris*)	FILE_MAN_SUFFIX=4  ;;
5149	*)		FILE_MAN_SUFFIX=5  ;;
5150    esac
5151fi
5152if test x$FILE_MAN_DIR = x    ; then
5153    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5154fi
5155
5156if test x$MISC_MAN_SUFFIX = x    ; then
5157    case $host_os in
5158	solaris*)	MISC_MAN_SUFFIX=5  ;;
5159	*)		MISC_MAN_SUFFIX=7  ;;
5160    esac
5161fi
5162if test x$MISC_MAN_DIR = x    ; then
5163    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5164fi
5165
5166if test x$DRIVER_MAN_SUFFIX = x    ; then
5167    case $host_os in
5168	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5169	*)		DRIVER_MAN_SUFFIX=4  ;;
5170    esac
5171fi
5172if test x$DRIVER_MAN_DIR = x    ; then
5173    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5174fi
5175
5176if test x$ADMIN_MAN_SUFFIX = x    ; then
5177    case $host_os in
5178	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5179	*)		ADMIN_MAN_SUFFIX=8  ;;
5180    esac
5181fi
5182if test x$ADMIN_MAN_DIR = x    ; then
5183    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5184fi
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200XORG_MAN_PAGE="X Version 11"
5201
5202MAN_SUBSTS="\
5203	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5204	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5205	-e 's|__xservername__|Xorg|g' \
5206	-e 's|__xconfigfile__|xorg.conf|g' \
5207	-e 's|__projectroot__|\$(prefix)|g' \
5208	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5209	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5210	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5211	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5212	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5213	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5214
5215
5216
5217# Check whether --enable-silent-rules was given.
5218if test "${enable_silent_rules+set}" = set; then
5219  enableval=$enable_silent_rules;
5220fi
5221
5222case $enable_silent_rules in
5223yes) AM_DEFAULT_VERBOSITY=0;;
5224no)  AM_DEFAULT_VERBOSITY=1;;
5225*)   AM_DEFAULT_VERBOSITY=0;;
5226esac
5227AM_BACKSLASH='\'
5228
5229
5230
5231# Checks for programs.
5232# Check whether --enable-static was given.
5233if test "${enable_static+set}" = set; then
5234  enableval=$enable_static; p=${PACKAGE-default}
5235    case $enableval in
5236    yes) enable_static=yes ;;
5237    no) enable_static=no ;;
5238    *)
5239     enable_static=no
5240      # Look at the argument we got.  We use all the common list separators.
5241      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5242      for pkg in $enableval; do
5243	IFS="$lt_save_ifs"
5244	if test "X$pkg" = "X$p"; then
5245	  enable_static=yes
5246	fi
5247      done
5248      IFS="$lt_save_ifs"
5249      ;;
5250    esac
5251else
5252  enable_static=no
5253fi
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263case `pwd` in
5264  *\ * | *\	*)
5265    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5266$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5267esac
5268
5269
5270
5271macro_version='2.2.6b'
5272macro_revision='1.3017'
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286ltmain="$ac_aux_dir/ltmain.sh"
5287
5288{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5289$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5290if test "${ac_cv_path_SED+set}" = set; then
5291  $as_echo_n "(cached) " >&6
5292else
5293            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5294     for ac_i in 1 2 3 4 5 6 7; do
5295       ac_script="$ac_script$as_nl$ac_script"
5296     done
5297     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5298     $as_unset ac_script || ac_script=
5299     if test -z "$SED"; then
5300  ac_path_SED_found=false
5301  # Loop through the user's path and test for each of PROGNAME-LIST
5302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305  IFS=$as_save_IFS
5306  test -z "$as_dir" && as_dir=.
5307  for ac_prog in sed gsed; do
5308    for ac_exec_ext in '' $ac_executable_extensions; do
5309      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5310      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5311# Check for GNU ac_path_SED and select it if it is found.
5312  # Check for GNU $ac_path_SED
5313case `"$ac_path_SED" --version 2>&1` in
5314*GNU*)
5315  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5316*)
5317  ac_count=0
5318  $as_echo_n 0123456789 >"conftest.in"
5319  while :
5320  do
5321    cat "conftest.in" "conftest.in" >"conftest.tmp"
5322    mv "conftest.tmp" "conftest.in"
5323    cp "conftest.in" "conftest.nl"
5324    $as_echo '' >> "conftest.nl"
5325    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5326    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5327    ac_count=`expr $ac_count + 1`
5328    if test $ac_count -gt ${ac_path_SED_max-0}; then
5329      # Best one so far, save it but keep looking for a better one
5330      ac_cv_path_SED="$ac_path_SED"
5331      ac_path_SED_max=$ac_count
5332    fi
5333    # 10*(2^10) chars as input seems more than enough
5334    test $ac_count -gt 10 && break
5335  done
5336  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5337esac
5338
5339      $ac_path_SED_found && break 3
5340    done
5341  done
5342done
5343IFS=$as_save_IFS
5344  if test -z "$ac_cv_path_SED"; then
5345    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5346$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5347   { (exit 1); exit 1; }; }
5348  fi
5349else
5350  ac_cv_path_SED=$SED
5351fi
5352
5353fi
5354{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5355$as_echo "$ac_cv_path_SED" >&6; }
5356 SED="$ac_cv_path_SED"
5357  rm -f conftest.sed
5358
5359test -z "$SED" && SED=sed
5360Xsed="$SED -e 1s/^X//"
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5373$as_echo_n "checking for fgrep... " >&6; }
5374if test "${ac_cv_path_FGREP+set}" = set; then
5375  $as_echo_n "(cached) " >&6
5376else
5377  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5378   then ac_cv_path_FGREP="$GREP -F"
5379   else
5380     if test -z "$FGREP"; then
5381  ac_path_FGREP_found=false
5382  # Loop through the user's path and test for each of PROGNAME-LIST
5383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388  for ac_prog in fgrep; do
5389    for ac_exec_ext in '' $ac_executable_extensions; do
5390      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5391      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5392# Check for GNU ac_path_FGREP and select it if it is found.
5393  # Check for GNU $ac_path_FGREP
5394case `"$ac_path_FGREP" --version 2>&1` in
5395*GNU*)
5396  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5397*)
5398  ac_count=0
5399  $as_echo_n 0123456789 >"conftest.in"
5400  while :
5401  do
5402    cat "conftest.in" "conftest.in" >"conftest.tmp"
5403    mv "conftest.tmp" "conftest.in"
5404    cp "conftest.in" "conftest.nl"
5405    $as_echo 'FGREP' >> "conftest.nl"
5406    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408    ac_count=`expr $ac_count + 1`
5409    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5410      # Best one so far, save it but keep looking for a better one
5411      ac_cv_path_FGREP="$ac_path_FGREP"
5412      ac_path_FGREP_max=$ac_count
5413    fi
5414    # 10*(2^10) chars as input seems more than enough
5415    test $ac_count -gt 10 && break
5416  done
5417  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418esac
5419
5420      $ac_path_FGREP_found && break 3
5421    done
5422  done
5423done
5424IFS=$as_save_IFS
5425  if test -z "$ac_cv_path_FGREP"; then
5426    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5427$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5428   { (exit 1); exit 1; }; }
5429  fi
5430else
5431  ac_cv_path_FGREP=$FGREP
5432fi
5433
5434   fi
5435fi
5436{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5437$as_echo "$ac_cv_path_FGREP" >&6; }
5438 FGREP="$ac_cv_path_FGREP"
5439
5440
5441test -z "$GREP" && GREP=grep
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461# Check whether --with-gnu-ld was given.
5462if test "${with_gnu_ld+set}" = set; then
5463  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5464else
5465  with_gnu_ld=no
5466fi
5467
5468ac_prog=ld
5469if test "$GCC" = yes; then
5470  # Check if gcc -print-prog-name=ld gives a path.
5471  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5472$as_echo_n "checking for ld used by $CC... " >&6; }
5473  case $host in
5474  *-*-mingw*)
5475    # gcc leaves a trailing carriage return which upsets mingw
5476    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5477  *)
5478    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5479  esac
5480  case $ac_prog in
5481    # Accept absolute paths.
5482    [\\/]* | ?:[\\/]*)
5483      re_direlt='/[^/][^/]*/\.\./'
5484      # Canonicalize the pathname of ld
5485      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5486      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5487	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5488      done
5489      test -z "$LD" && LD="$ac_prog"
5490      ;;
5491  "")
5492    # If it fails, then pretend we aren't using GCC.
5493    ac_prog=ld
5494    ;;
5495  *)
5496    # If it is relative, then search for the first ld in PATH.
5497    with_gnu_ld=unknown
5498    ;;
5499  esac
5500elif test "$with_gnu_ld" = yes; then
5501  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5502$as_echo_n "checking for GNU ld... " >&6; }
5503else
5504  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5505$as_echo_n "checking for non-GNU ld... " >&6; }
5506fi
5507if test "${lt_cv_path_LD+set}" = set; then
5508  $as_echo_n "(cached) " >&6
5509else
5510  if test -z "$LD"; then
5511  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5512  for ac_dir in $PATH; do
5513    IFS="$lt_save_ifs"
5514    test -z "$ac_dir" && ac_dir=.
5515    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5516      lt_cv_path_LD="$ac_dir/$ac_prog"
5517      # Check to see if the program is GNU ld.  I'd rather use --version,
5518      # but apparently some variants of GNU ld only accept -v.
5519      # Break only if it was the GNU/non-GNU ld that we prefer.
5520      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5521      *GNU* | *'with BFD'*)
5522	test "$with_gnu_ld" != no && break
5523	;;
5524      *)
5525	test "$with_gnu_ld" != yes && break
5526	;;
5527      esac
5528    fi
5529  done
5530  IFS="$lt_save_ifs"
5531else
5532  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5533fi
5534fi
5535
5536LD="$lt_cv_path_LD"
5537if test -n "$LD"; then
5538  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5539$as_echo "$LD" >&6; }
5540else
5541  { $as_echo "$as_me:$LINENO: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5545$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5546   { (exit 1); exit 1; }; }
5547{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5548$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5549if test "${lt_cv_prog_gnu_ld+set}" = set; then
5550  $as_echo_n "(cached) " >&6
5551else
5552  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5553case `$LD -v 2>&1 </dev/null` in
5554*GNU* | *'with BFD'*)
5555  lt_cv_prog_gnu_ld=yes
5556  ;;
5557*)
5558  lt_cv_prog_gnu_ld=no
5559  ;;
5560esac
5561fi
5562{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5563$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5564with_gnu_ld=$lt_cv_prog_gnu_ld
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5575$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5576if test "${lt_cv_path_NM+set}" = set; then
5577  $as_echo_n "(cached) " >&6
5578else
5579  if test -n "$NM"; then
5580  # Let the user override the test.
5581  lt_cv_path_NM="$NM"
5582else
5583  lt_nm_to_check="${ac_tool_prefix}nm"
5584  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5585    lt_nm_to_check="$lt_nm_to_check nm"
5586  fi
5587  for lt_tmp_nm in $lt_nm_to_check; do
5588    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5589    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5590      IFS="$lt_save_ifs"
5591      test -z "$ac_dir" && ac_dir=.
5592      tmp_nm="$ac_dir/$lt_tmp_nm"
5593      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5594	# Check to see if the nm accepts a BSD-compat flag.
5595	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5596	#   nm: unknown option "B" ignored
5597	# Tru64's nm complains that /dev/null is an invalid object file
5598	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5599	*/dev/null* | *'Invalid file or object type'*)
5600	  lt_cv_path_NM="$tmp_nm -B"
5601	  break
5602	  ;;
5603	*)
5604	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5605	  */dev/null*)
5606	    lt_cv_path_NM="$tmp_nm -p"
5607	    break
5608	    ;;
5609	  *)
5610	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5611	    continue # so that we can try to find one that supports BSD flags
5612	    ;;
5613	  esac
5614	  ;;
5615	esac
5616      fi
5617    done
5618    IFS="$lt_save_ifs"
5619  done
5620  : ${lt_cv_path_NM=no}
5621fi
5622fi
5623{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5624$as_echo "$lt_cv_path_NM" >&6; }
5625if test "$lt_cv_path_NM" != "no"; then
5626  NM="$lt_cv_path_NM"
5627else
5628  # Didn't find any BSD compatible name lister, look for dumpbin.
5629  if test -n "$ac_tool_prefix"; then
5630  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5631  do
5632    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5634{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5635$as_echo_n "checking for $ac_word... " >&6; }
5636if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5637  $as_echo_n "(cached) " >&6
5638else
5639  if test -n "$DUMPBIN"; then
5640  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645  IFS=$as_save_IFS
5646  test -z "$as_dir" && as_dir=.
5647  for ac_exec_ext in '' $ac_executable_extensions; do
5648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5650    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651    break 2
5652  fi
5653done
5654done
5655IFS=$as_save_IFS
5656
5657fi
5658fi
5659DUMPBIN=$ac_cv_prog_DUMPBIN
5660if test -n "$DUMPBIN"; then
5661  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5662$as_echo "$DUMPBIN" >&6; }
5663else
5664  { $as_echo "$as_me:$LINENO: result: no" >&5
5665$as_echo "no" >&6; }
5666fi
5667
5668
5669    test -n "$DUMPBIN" && break
5670  done
5671fi
5672if test -z "$DUMPBIN"; then
5673  ac_ct_DUMPBIN=$DUMPBIN
5674  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5675do
5676  # Extract the first word of "$ac_prog", so it can be a program name with args.
5677set dummy $ac_prog; ac_word=$2
5678{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5681  $as_echo_n "(cached) " >&6
5682else
5683  if test -n "$ac_ct_DUMPBIN"; then
5684  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691  for ac_exec_ext in '' $ac_executable_extensions; do
5692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5694    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5704if test -n "$ac_ct_DUMPBIN"; then
5705  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5706$as_echo "$ac_ct_DUMPBIN" >&6; }
5707else
5708  { $as_echo "$as_me:$LINENO: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713  test -n "$ac_ct_DUMPBIN" && break
5714done
5715
5716  if test "x$ac_ct_DUMPBIN" = x; then
5717    DUMPBIN=":"
5718  else
5719    case $cross_compiling:$ac_tool_warned in
5720yes:)
5721{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723ac_tool_warned=yes ;;
5724esac
5725    DUMPBIN=$ac_ct_DUMPBIN
5726  fi
5727fi
5728
5729
5730  if test "$DUMPBIN" != ":"; then
5731    NM="$DUMPBIN"
5732  fi
5733fi
5734test -z "$NM" && NM=nm
5735
5736
5737
5738
5739
5740
5741{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5742$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5743if test "${lt_cv_nm_interface+set}" = set; then
5744  $as_echo_n "(cached) " >&6
5745else
5746  lt_cv_nm_interface="BSD nm"
5747  echo "int some_variable = 0;" > conftest.$ac_ext
5748  (eval echo "\"\$as_me:5748: $ac_compile\"" >&5)
5749  (eval "$ac_compile" 2>conftest.err)
5750  cat conftest.err >&5
5751  (eval echo "\"\$as_me:5751: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5752  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5753  cat conftest.err >&5
5754  (eval echo "\"\$as_me:5754: output\"" >&5)
5755  cat conftest.out >&5
5756  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5757    lt_cv_nm_interface="MS dumpbin"
5758  fi
5759  rm -f conftest*
5760fi
5761{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5762$as_echo "$lt_cv_nm_interface" >&6; }
5763
5764{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5765$as_echo_n "checking whether ln -s works... " >&6; }
5766LN_S=$as_ln_s
5767if test "$LN_S" = "ln -s"; then
5768  { $as_echo "$as_me:$LINENO: result: yes" >&5
5769$as_echo "yes" >&6; }
5770else
5771  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5772$as_echo "no, using $LN_S" >&6; }
5773fi
5774
5775# find the maximum length of command line arguments
5776{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5777$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5778if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5779  $as_echo_n "(cached) " >&6
5780else
5781    i=0
5782  teststring="ABCD"
5783
5784  case $build_os in
5785  msdosdjgpp*)
5786    # On DJGPP, this test can blow up pretty badly due to problems in libc
5787    # (any single argument exceeding 2000 bytes causes a buffer overrun
5788    # during glob expansion).  Even if it were fixed, the result of this
5789    # check would be larger than it should be.
5790    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5791    ;;
5792
5793  gnu*)
5794    # Under GNU Hurd, this test is not required because there is
5795    # no limit to the length of command line arguments.
5796    # Libtool will interpret -1 as no limit whatsoever
5797    lt_cv_sys_max_cmd_len=-1;
5798    ;;
5799
5800  cygwin* | mingw* | cegcc*)
5801    # On Win9x/ME, this test blows up -- it succeeds, but takes
5802    # about 5 minutes as the teststring grows exponentially.
5803    # Worse, since 9x/ME are not pre-emptively multitasking,
5804    # you end up with a "frozen" computer, even though with patience
5805    # the test eventually succeeds (with a max line length of 256k).
5806    # Instead, let's just punt: use the minimum linelength reported by
5807    # all of the supported platforms: 8192 (on NT/2K/XP).
5808    lt_cv_sys_max_cmd_len=8192;
5809    ;;
5810
5811  amigaos*)
5812    # On AmigaOS with pdksh, this test takes hours, literally.
5813    # So we just punt and use a minimum line length of 8192.
5814    lt_cv_sys_max_cmd_len=8192;
5815    ;;
5816
5817  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5818    # This has been around since 386BSD, at least.  Likely further.
5819    if test -x /sbin/sysctl; then
5820      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5821    elif test -x /usr/sbin/sysctl; then
5822      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5823    else
5824      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5825    fi
5826    # And add a safety zone
5827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5828    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5829    ;;
5830
5831  interix*)
5832    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5833    lt_cv_sys_max_cmd_len=196608
5834    ;;
5835
5836  osf*)
5837    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5838    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5839    # nice to cause kernel panics so lets avoid the loop below.
5840    # First set a reasonable default.
5841    lt_cv_sys_max_cmd_len=16384
5842    #
5843    if test -x /sbin/sysconfig; then
5844      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5845        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5846      esac
5847    fi
5848    ;;
5849  sco3.2v5*)
5850    lt_cv_sys_max_cmd_len=102400
5851    ;;
5852  sysv5* | sco5v6* | sysv4.2uw2*)
5853    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5854    if test -n "$kargmax"; then
5855      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5856    else
5857      lt_cv_sys_max_cmd_len=32768
5858    fi
5859    ;;
5860  *)
5861    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5862    if test -n "$lt_cv_sys_max_cmd_len"; then
5863      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5864      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5865    else
5866      # Make teststring a little bigger before we do anything with it.
5867      # a 1K string should be a reasonable start.
5868      for i in 1 2 3 4 5 6 7 8 ; do
5869        teststring=$teststring$teststring
5870      done
5871      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5872      # If test is not a shell built-in, we'll probably end up computing a
5873      # maximum length that is only half of the actual maximum length, but
5874      # we can't tell.
5875      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5876	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5877	      test $i != 17 # 1/2 MB should be enough
5878      do
5879        i=`expr $i + 1`
5880        teststring=$teststring$teststring
5881      done
5882      # Only check the string length outside the loop.
5883      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5884      teststring=
5885      # Add a significant safety factor because C++ compilers can tack on
5886      # massive amounts of additional arguments before passing them to the
5887      # linker.  It appears as though 1/2 is a usable value.
5888      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5889    fi
5890    ;;
5891  esac
5892
5893fi
5894
5895if test -n $lt_cv_sys_max_cmd_len ; then
5896  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5897$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5898else
5899  { $as_echo "$as_me:$LINENO: result: none" >&5
5900$as_echo "none" >&6; }
5901fi
5902max_cmd_len=$lt_cv_sys_max_cmd_len
5903
5904
5905
5906
5907
5908
5909: ${CP="cp -f"}
5910: ${MV="mv -f"}
5911: ${RM="rm -f"}
5912
5913{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5914$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5915# Try some XSI features
5916xsi_shell=no
5917( _lt_dummy="a/b/c"
5918  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5919      = c,a/b,, \
5920    && eval 'test $(( 1 + 1 )) -eq 2 \
5921    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5922  && xsi_shell=yes
5923{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5924$as_echo "$xsi_shell" >&6; }
5925
5926
5927{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5928$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5929lt_shell_append=no
5930( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5931    >/dev/null 2>&1 \
5932  && lt_shell_append=yes
5933{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5934$as_echo "$lt_shell_append" >&6; }
5935
5936
5937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5938  lt_unset=unset
5939else
5940  lt_unset=false
5941fi
5942
5943
5944
5945
5946
5947# test EBCDIC or ASCII
5948case `echo X|tr X '\101'` in
5949 A) # ASCII based system
5950    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5951  lt_SP2NL='tr \040 \012'
5952  lt_NL2SP='tr \015\012 \040\040'
5953  ;;
5954 *) # EBCDIC based system
5955  lt_SP2NL='tr \100 \n'
5956  lt_NL2SP='tr \r\n \100\100'
5957  ;;
5958esac
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5969$as_echo_n "checking for $LD option to reload object files... " >&6; }
5970if test "${lt_cv_ld_reload_flag+set}" = set; then
5971  $as_echo_n "(cached) " >&6
5972else
5973  lt_cv_ld_reload_flag='-r'
5974fi
5975{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5976$as_echo "$lt_cv_ld_reload_flag" >&6; }
5977reload_flag=$lt_cv_ld_reload_flag
5978case $reload_flag in
5979"" | " "*) ;;
5980*) reload_flag=" $reload_flag" ;;
5981esac
5982reload_cmds='$LD$reload_flag -o $output$reload_objs'
5983case $host_os in
5984  darwin*)
5985    if test "$GCC" = yes; then
5986      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5987    else
5988      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5989    fi
5990    ;;
5991esac
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001if test -n "$ac_tool_prefix"; then
6002  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6003set dummy ${ac_tool_prefix}objdump; ac_word=$2
6004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6005$as_echo_n "checking for $ac_word... " >&6; }
6006if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6007  $as_echo_n "(cached) " >&6
6008else
6009  if test -n "$OBJDUMP"; then
6010  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6011else
6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015  IFS=$as_save_IFS
6016  test -z "$as_dir" && as_dir=.
6017  for ac_exec_ext in '' $ac_executable_extensions; do
6018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6020    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021    break 2
6022  fi
6023done
6024done
6025IFS=$as_save_IFS
6026
6027fi
6028fi
6029OBJDUMP=$ac_cv_prog_OBJDUMP
6030if test -n "$OBJDUMP"; then
6031  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6032$as_echo "$OBJDUMP" >&6; }
6033else
6034  { $as_echo "$as_me:$LINENO: result: no" >&5
6035$as_echo "no" >&6; }
6036fi
6037
6038
6039fi
6040if test -z "$ac_cv_prog_OBJDUMP"; then
6041  ac_ct_OBJDUMP=$OBJDUMP
6042  # Extract the first word of "objdump", so it can be a program name with args.
6043set dummy objdump; ac_word=$2
6044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6045$as_echo_n "checking for $ac_word... " >&6; }
6046if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6047  $as_echo_n "(cached) " >&6
6048else
6049  if test -n "$ac_ct_OBJDUMP"; then
6050  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  test -z "$as_dir" && as_dir=.
6057  for ac_exec_ext in '' $ac_executable_extensions; do
6058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6060    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061    break 2
6062  fi
6063done
6064done
6065IFS=$as_save_IFS
6066
6067fi
6068fi
6069ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6070if test -n "$ac_ct_OBJDUMP"; then
6071  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6072$as_echo "$ac_ct_OBJDUMP" >&6; }
6073else
6074  { $as_echo "$as_me:$LINENO: result: no" >&5
6075$as_echo "no" >&6; }
6076fi
6077
6078  if test "x$ac_ct_OBJDUMP" = x; then
6079    OBJDUMP="false"
6080  else
6081    case $cross_compiling:$ac_tool_warned in
6082yes:)
6083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085ac_tool_warned=yes ;;
6086esac
6087    OBJDUMP=$ac_ct_OBJDUMP
6088  fi
6089else
6090  OBJDUMP="$ac_cv_prog_OBJDUMP"
6091fi
6092
6093test -z "$OBJDUMP" && OBJDUMP=objdump
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6104$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6105if test "${lt_cv_deplibs_check_method+set}" = set; then
6106  $as_echo_n "(cached) " >&6
6107else
6108  lt_cv_file_magic_cmd='$MAGIC_CMD'
6109lt_cv_file_magic_test_file=
6110lt_cv_deplibs_check_method='unknown'
6111# Need to set the preceding variable on all platforms that support
6112# interlibrary dependencies.
6113# 'none' -- dependencies not supported.
6114# `unknown' -- same as none, but documents that we really don't know.
6115# 'pass_all' -- all dependencies passed with no checks.
6116# 'test_compile' -- check by making test program.
6117# 'file_magic [[regex]]' -- check by looking for files in library path
6118# which responds to the $file_magic_cmd with a given extended regex.
6119# If you have `file' or equivalent on your system and you're not sure
6120# whether `pass_all' will *always* work, you probably want this one.
6121
6122case $host_os in
6123aix[4-9]*)
6124  lt_cv_deplibs_check_method=pass_all
6125  ;;
6126
6127beos*)
6128  lt_cv_deplibs_check_method=pass_all
6129  ;;
6130
6131bsdi[45]*)
6132  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6133  lt_cv_file_magic_cmd='/usr/bin/file -L'
6134  lt_cv_file_magic_test_file=/shlib/libc.so
6135  ;;
6136
6137cygwin*)
6138  # func_win32_libid is a shell function defined in ltmain.sh
6139  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6140  lt_cv_file_magic_cmd='func_win32_libid'
6141  ;;
6142
6143mingw* | pw32*)
6144  # Base MSYS/MinGW do not provide the 'file' command needed by
6145  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6146  # unless we find 'file', for example because we are cross-compiling.
6147  if ( file / ) >/dev/null 2>&1; then
6148    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6149    lt_cv_file_magic_cmd='func_win32_libid'
6150  else
6151    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6152    lt_cv_file_magic_cmd='$OBJDUMP -f'
6153  fi
6154  ;;
6155
6156cegcc)
6157  # use the weaker test based on 'objdump'. See mingw*.
6158  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6159  lt_cv_file_magic_cmd='$OBJDUMP -f'
6160  ;;
6161
6162darwin* | rhapsody*)
6163  lt_cv_deplibs_check_method=pass_all
6164  ;;
6165
6166freebsd* | dragonfly*)
6167  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6168    case $host_cpu in
6169    i*86 )
6170      # Not sure whether the presence of OpenBSD here was a mistake.
6171      # Let's accept both of them until this is cleared up.
6172      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6173      lt_cv_file_magic_cmd=/usr/bin/file
6174      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6175      ;;
6176    esac
6177  else
6178    lt_cv_deplibs_check_method=pass_all
6179  fi
6180  ;;
6181
6182gnu*)
6183  lt_cv_deplibs_check_method=pass_all
6184  ;;
6185
6186hpux10.20* | hpux11*)
6187  lt_cv_file_magic_cmd=/usr/bin/file
6188  case $host_cpu in
6189  ia64*)
6190    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6191    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6192    ;;
6193  hppa*64*)
6194    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]'
6195    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6196    ;;
6197  *)
6198    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6199    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6200    ;;
6201  esac
6202  ;;
6203
6204interix[3-9]*)
6205  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6206  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6207  ;;
6208
6209irix5* | irix6* | nonstopux*)
6210  case $LD in
6211  *-32|*"-32 ") libmagic=32-bit;;
6212  *-n32|*"-n32 ") libmagic=N32;;
6213  *-64|*"-64 ") libmagic=64-bit;;
6214  *) libmagic=never-match;;
6215  esac
6216  lt_cv_deplibs_check_method=pass_all
6217  ;;
6218
6219# This must be Linux ELF.
6220linux* | k*bsd*-gnu)
6221  lt_cv_deplibs_check_method=pass_all
6222  ;;
6223
6224netbsd*)
6225  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6226    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6227  else
6228    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6229  fi
6230  ;;
6231
6232newos6*)
6233  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6234  lt_cv_file_magic_cmd=/usr/bin/file
6235  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6236  ;;
6237
6238*nto* | *qnx*)
6239  lt_cv_deplibs_check_method=pass_all
6240  ;;
6241
6242openbsd*)
6243  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6244    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6245  else
6246    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6247  fi
6248  ;;
6249
6250osf3* | osf4* | osf5*)
6251  lt_cv_deplibs_check_method=pass_all
6252  ;;
6253
6254rdos*)
6255  lt_cv_deplibs_check_method=pass_all
6256  ;;
6257
6258solaris*)
6259  lt_cv_deplibs_check_method=pass_all
6260  ;;
6261
6262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6263  lt_cv_deplibs_check_method=pass_all
6264  ;;
6265
6266sysv4 | sysv4.3*)
6267  case $host_vendor in
6268  motorola)
6269    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]'
6270    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6271    ;;
6272  ncr)
6273    lt_cv_deplibs_check_method=pass_all
6274    ;;
6275  sequent)
6276    lt_cv_file_magic_cmd='/bin/file'
6277    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6278    ;;
6279  sni)
6280    lt_cv_file_magic_cmd='/bin/file'
6281    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6282    lt_cv_file_magic_test_file=/lib/libc.so
6283    ;;
6284  siemens)
6285    lt_cv_deplibs_check_method=pass_all
6286    ;;
6287  pc)
6288    lt_cv_deplibs_check_method=pass_all
6289    ;;
6290  esac
6291  ;;
6292
6293tpf*)
6294  lt_cv_deplibs_check_method=pass_all
6295  ;;
6296esac
6297
6298fi
6299{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6300$as_echo "$lt_cv_deplibs_check_method" >&6; }
6301file_magic_cmd=$lt_cv_file_magic_cmd
6302deplibs_check_method=$lt_cv_deplibs_check_method
6303test -z "$deplibs_check_method" && deplibs_check_method=unknown
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316if test -n "$ac_tool_prefix"; then
6317  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6318set dummy ${ac_tool_prefix}ar; ac_word=$2
6319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6320$as_echo_n "checking for $ac_word... " >&6; }
6321if test "${ac_cv_prog_AR+set}" = set; then
6322  $as_echo_n "(cached) " >&6
6323else
6324  if test -n "$AR"; then
6325  ac_cv_prog_AR="$AR" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330  IFS=$as_save_IFS
6331  test -z "$as_dir" && as_dir=.
6332  for ac_exec_ext in '' $ac_executable_extensions; do
6333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334    ac_cv_prog_AR="${ac_tool_prefix}ar"
6335    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336    break 2
6337  fi
6338done
6339done
6340IFS=$as_save_IFS
6341
6342fi
6343fi
6344AR=$ac_cv_prog_AR
6345if test -n "$AR"; then
6346  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6347$as_echo "$AR" >&6; }
6348else
6349  { $as_echo "$as_me:$LINENO: result: no" >&5
6350$as_echo "no" >&6; }
6351fi
6352
6353
6354fi
6355if test -z "$ac_cv_prog_AR"; then
6356  ac_ct_AR=$AR
6357  # Extract the first word of "ar", so it can be a program name with args.
6358set dummy ar; ac_word=$2
6359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6360$as_echo_n "checking for $ac_word... " >&6; }
6361if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6362  $as_echo_n "(cached) " >&6
6363else
6364  if test -n "$ac_ct_AR"; then
6365  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6366else
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370  IFS=$as_save_IFS
6371  test -z "$as_dir" && as_dir=.
6372  for ac_exec_ext in '' $ac_executable_extensions; do
6373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374    ac_cv_prog_ac_ct_AR="ar"
6375    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376    break 2
6377  fi
6378done
6379done
6380IFS=$as_save_IFS
6381
6382fi
6383fi
6384ac_ct_AR=$ac_cv_prog_ac_ct_AR
6385if test -n "$ac_ct_AR"; then
6386  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6387$as_echo "$ac_ct_AR" >&6; }
6388else
6389  { $as_echo "$as_me:$LINENO: result: no" >&5
6390$as_echo "no" >&6; }
6391fi
6392
6393  if test "x$ac_ct_AR" = x; then
6394    AR="false"
6395  else
6396    case $cross_compiling:$ac_tool_warned in
6397yes:)
6398{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400ac_tool_warned=yes ;;
6401esac
6402    AR=$ac_ct_AR
6403  fi
6404else
6405  AR="$ac_cv_prog_AR"
6406fi
6407
6408test -z "$AR" && AR=ar
6409test -z "$AR_FLAGS" && AR_FLAGS=cru
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421if test -n "$ac_tool_prefix"; then
6422  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6423set dummy ${ac_tool_prefix}strip; ac_word=$2
6424{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6425$as_echo_n "checking for $ac_word... " >&6; }
6426if test "${ac_cv_prog_STRIP+set}" = set; then
6427  $as_echo_n "(cached) " >&6
6428else
6429  if test -n "$STRIP"; then
6430  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6431else
6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435  IFS=$as_save_IFS
6436  test -z "$as_dir" && as_dir=.
6437  for ac_exec_ext in '' $ac_executable_extensions; do
6438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6440    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441    break 2
6442  fi
6443done
6444done
6445IFS=$as_save_IFS
6446
6447fi
6448fi
6449STRIP=$ac_cv_prog_STRIP
6450if test -n "$STRIP"; then
6451  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6452$as_echo "$STRIP" >&6; }
6453else
6454  { $as_echo "$as_me:$LINENO: result: no" >&5
6455$as_echo "no" >&6; }
6456fi
6457
6458
6459fi
6460if test -z "$ac_cv_prog_STRIP"; then
6461  ac_ct_STRIP=$STRIP
6462  # Extract the first word of "strip", so it can be a program name with args.
6463set dummy strip; ac_word=$2
6464{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6465$as_echo_n "checking for $ac_word... " >&6; }
6466if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6467  $as_echo_n "(cached) " >&6
6468else
6469  if test -n "$ac_ct_STRIP"; then
6470  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475  IFS=$as_save_IFS
6476  test -z "$as_dir" && as_dir=.
6477  for ac_exec_ext in '' $ac_executable_extensions; do
6478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479    ac_cv_prog_ac_ct_STRIP="strip"
6480    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481    break 2
6482  fi
6483done
6484done
6485IFS=$as_save_IFS
6486
6487fi
6488fi
6489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6490if test -n "$ac_ct_STRIP"; then
6491  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6492$as_echo "$ac_ct_STRIP" >&6; }
6493else
6494  { $as_echo "$as_me:$LINENO: result: no" >&5
6495$as_echo "no" >&6; }
6496fi
6497
6498  if test "x$ac_ct_STRIP" = x; then
6499    STRIP=":"
6500  else
6501    case $cross_compiling:$ac_tool_warned in
6502yes:)
6503{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6505ac_tool_warned=yes ;;
6506esac
6507    STRIP=$ac_ct_STRIP
6508  fi
6509else
6510  STRIP="$ac_cv_prog_STRIP"
6511fi
6512
6513test -z "$STRIP" && STRIP=:
6514
6515
6516
6517
6518
6519
6520if test -n "$ac_tool_prefix"; then
6521  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524$as_echo_n "checking for $ac_word... " >&6; }
6525if test "${ac_cv_prog_RANLIB+set}" = set; then
6526  $as_echo_n "(cached) " >&6
6527else
6528  if test -n "$RANLIB"; then
6529  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536  for ac_exec_ext in '' $ac_executable_extensions; do
6537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6539    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548RANLIB=$ac_cv_prog_RANLIB
6549if test -n "$RANLIB"; then
6550  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6551$as_echo "$RANLIB" >&6; }
6552else
6553  { $as_echo "$as_me:$LINENO: result: no" >&5
6554$as_echo "no" >&6; }
6555fi
6556
6557
6558fi
6559if test -z "$ac_cv_prog_RANLIB"; then
6560  ac_ct_RANLIB=$RANLIB
6561  # Extract the first word of "ranlib", so it can be a program name with args.
6562set dummy ranlib; ac_word=$2
6563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6566  $as_echo_n "(cached) " >&6
6567else
6568  if test -n "$ac_ct_RANLIB"; then
6569  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  test -z "$as_dir" && as_dir=.
6576  for ac_exec_ext in '' $ac_executable_extensions; do
6577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578    ac_cv_prog_ac_ct_RANLIB="ranlib"
6579    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6589if test -n "$ac_ct_RANLIB"; then
6590  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6591$as_echo "$ac_ct_RANLIB" >&6; }
6592else
6593  { $as_echo "$as_me:$LINENO: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
6596
6597  if test "x$ac_ct_RANLIB" = x; then
6598    RANLIB=":"
6599  else
6600    case $cross_compiling:$ac_tool_warned in
6601yes:)
6602{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604ac_tool_warned=yes ;;
6605esac
6606    RANLIB=$ac_ct_RANLIB
6607  fi
6608else
6609  RANLIB="$ac_cv_prog_RANLIB"
6610fi
6611
6612test -z "$RANLIB" && RANLIB=:
6613
6614
6615
6616
6617
6618
6619# Determine commands to create old-style static archives.
6620old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6621old_postinstall_cmds='chmod 644 $oldlib'
6622old_postuninstall_cmds=
6623
6624if test -n "$RANLIB"; then
6625  case $host_os in
6626  openbsd*)
6627    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6628    ;;
6629  *)
6630    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6631    ;;
6632  esac
6633  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6634fi
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669# If no C compiler was specified, use CC.
6670LTCC=${LTCC-"$CC"}
6671
6672# If no C compiler flags were specified, use CFLAGS.
6673LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6674
6675# Allow CC to be a program name with arguments.
6676compiler=$CC
6677
6678
6679# Check for command to grab the raw symbol name followed by C symbol from nm.
6680{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6681$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6682if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6683  $as_echo_n "(cached) " >&6
6684else
6685
6686# These are sane defaults that work on at least a few old systems.
6687# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6688
6689# Character class describing NM global symbol codes.
6690symcode='[BCDEGRST]'
6691
6692# Regexp to match symbols that can be accessed directly from C.
6693sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6694
6695# Define system-specific variables.
6696case $host_os in
6697aix*)
6698  symcode='[BCDT]'
6699  ;;
6700cygwin* | mingw* | pw32* | cegcc*)
6701  symcode='[ABCDGISTW]'
6702  ;;
6703hpux*)
6704  if test "$host_cpu" = ia64; then
6705    symcode='[ABCDEGRST]'
6706  fi
6707  ;;
6708irix* | nonstopux*)
6709  symcode='[BCDEGRST]'
6710  ;;
6711osf*)
6712  symcode='[BCDEGQRST]'
6713  ;;
6714solaris*)
6715  symcode='[BDRT]'
6716  ;;
6717sco3.2v5*)
6718  symcode='[DT]'
6719  ;;
6720sysv4.2uw2*)
6721  symcode='[DT]'
6722  ;;
6723sysv5* | sco5v6* | unixware* | OpenUNIX*)
6724  symcode='[ABDT]'
6725  ;;
6726sysv4)
6727  symcode='[DFNSTU]'
6728  ;;
6729esac
6730
6731# If we're using GNU nm, then use its standard symbol codes.
6732case `$NM -V 2>&1` in
6733*GNU* | *'with BFD'*)
6734  symcode='[ABCDGIRSTW]' ;;
6735esac
6736
6737# Transform an extracted symbol line into a proper C declaration.
6738# Some systems (esp. on ia64) link data and code symbols differently,
6739# so use this general approach.
6740lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6741
6742# Transform an extracted symbol line into symbol name and symbol address
6743lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6744lt_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'"
6745
6746# Handle CRLF in mingw tool chain
6747opt_cr=
6748case $build_os in
6749mingw*)
6750  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6751  ;;
6752esac
6753
6754# Try without a prefix underscore, then with it.
6755for ac_symprfx in "" "_"; do
6756
6757  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6758  symxfrm="\\1 $ac_symprfx\\2 \\2"
6759
6760  # Write the raw and C identifiers.
6761  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6762    # Fake it for dumpbin and say T for any non-static function
6763    # and D for any global variable.
6764    # Also find C++ and __fastcall symbols from MSVC++,
6765    # which start with @ or ?.
6766    lt_cv_sys_global_symbol_pipe="$AWK '"\
6767"     {last_section=section; section=\$ 3};"\
6768"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6769"     \$ 0!~/External *\|/{next};"\
6770"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6771"     {if(hide[section]) next};"\
6772"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6773"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6774"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6775"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6776"     ' prfx=^$ac_symprfx"
6777  else
6778    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6779  fi
6780
6781  # Check to see that the pipe works correctly.
6782  pipe_works=no
6783
6784  rm -f conftest*
6785  cat > conftest.$ac_ext <<_LT_EOF
6786#ifdef __cplusplus
6787extern "C" {
6788#endif
6789char nm_test_var;
6790void nm_test_func(void);
6791void nm_test_func(void){}
6792#ifdef __cplusplus
6793}
6794#endif
6795int main(){nm_test_var='a';nm_test_func();return(0);}
6796_LT_EOF
6797
6798  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799  (eval $ac_compile) 2>&5
6800  ac_status=$?
6801  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802  (exit $ac_status); }; then
6803    # Now try to grab the symbols.
6804    nlist=conftest.nm
6805    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6806  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6807  ac_status=$?
6808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809  (exit $ac_status); } && test -s "$nlist"; then
6810      # Try sorting and uniquifying the output.
6811      if sort "$nlist" | uniq > "$nlist"T; then
6812	mv -f "$nlist"T "$nlist"
6813      else
6814	rm -f "$nlist"T
6815      fi
6816
6817      # Make sure that we snagged all the symbols we need.
6818      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6819	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6820	  cat <<_LT_EOF > conftest.$ac_ext
6821#ifdef __cplusplus
6822extern "C" {
6823#endif
6824
6825_LT_EOF
6826	  # Now generate the symbol file.
6827	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6828
6829	  cat <<_LT_EOF >> conftest.$ac_ext
6830
6831/* The mapping between symbol names and symbols.  */
6832const struct {
6833  const char *name;
6834  void       *address;
6835}
6836lt__PROGRAM__LTX_preloaded_symbols[] =
6837{
6838  { "@PROGRAM@", (void *) 0 },
6839_LT_EOF
6840	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6841	  cat <<\_LT_EOF >> conftest.$ac_ext
6842  {0, (void *) 0}
6843};
6844
6845/* This works around a problem in FreeBSD linker */
6846#ifdef FREEBSD_WORKAROUND
6847static const void *lt_preloaded_setup() {
6848  return lt__PROGRAM__LTX_preloaded_symbols;
6849}
6850#endif
6851
6852#ifdef __cplusplus
6853}
6854#endif
6855_LT_EOF
6856	  # Now try linking the two files.
6857	  mv conftest.$ac_objext conftstm.$ac_objext
6858	  lt_save_LIBS="$LIBS"
6859	  lt_save_CFLAGS="$CFLAGS"
6860	  LIBS="conftstm.$ac_objext"
6861	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6862	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6863  (eval $ac_link) 2>&5
6864  ac_status=$?
6865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6867	    pipe_works=yes
6868	  fi
6869	  LIBS="$lt_save_LIBS"
6870	  CFLAGS="$lt_save_CFLAGS"
6871	else
6872	  echo "cannot find nm_test_func in $nlist" >&5
6873	fi
6874      else
6875	echo "cannot find nm_test_var in $nlist" >&5
6876      fi
6877    else
6878      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6879    fi
6880  else
6881    echo "$progname: failed program was:" >&5
6882    cat conftest.$ac_ext >&5
6883  fi
6884  rm -rf conftest* conftst*
6885
6886  # Do not use the global_symbol_pipe unless it works.
6887  if test "$pipe_works" = yes; then
6888    break
6889  else
6890    lt_cv_sys_global_symbol_pipe=
6891  fi
6892done
6893
6894fi
6895
6896if test -z "$lt_cv_sys_global_symbol_pipe"; then
6897  lt_cv_sys_global_symbol_to_cdecl=
6898fi
6899if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6900  { $as_echo "$as_me:$LINENO: result: failed" >&5
6901$as_echo "failed" >&6; }
6902else
6903  { $as_echo "$as_me:$LINENO: result: ok" >&5
6904$as_echo "ok" >&6; }
6905fi
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928# Check whether --enable-libtool-lock was given.
6929if test "${enable_libtool_lock+set}" = set; then
6930  enableval=$enable_libtool_lock;
6931fi
6932
6933test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6934
6935# Some flags need to be propagated to the compiler or linker for good
6936# libtool support.
6937case $host in
6938ia64-*-hpux*)
6939  # Find out which ABI we are using.
6940  echo 'int i;' > conftest.$ac_ext
6941  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6942  (eval $ac_compile) 2>&5
6943  ac_status=$?
6944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); }; then
6946    case `/usr/bin/file conftest.$ac_objext` in
6947      *ELF-32*)
6948	HPUX_IA64_MODE="32"
6949	;;
6950      *ELF-64*)
6951	HPUX_IA64_MODE="64"
6952	;;
6953    esac
6954  fi
6955  rm -rf conftest*
6956  ;;
6957*-*-irix6*)
6958  # Find out which ABI we are using.
6959  echo '#line 6959 "configure"' > conftest.$ac_ext
6960  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961  (eval $ac_compile) 2>&5
6962  ac_status=$?
6963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964  (exit $ac_status); }; then
6965    if test "$lt_cv_prog_gnu_ld" = yes; then
6966      case `/usr/bin/file conftest.$ac_objext` in
6967	*32-bit*)
6968	  LD="${LD-ld} -melf32bsmip"
6969	  ;;
6970	*N32*)
6971	  LD="${LD-ld} -melf32bmipn32"
6972	  ;;
6973	*64-bit*)
6974	  LD="${LD-ld} -melf64bmip"
6975	;;
6976      esac
6977    else
6978      case `/usr/bin/file conftest.$ac_objext` in
6979	*32-bit*)
6980	  LD="${LD-ld} -32"
6981	  ;;
6982	*N32*)
6983	  LD="${LD-ld} -n32"
6984	  ;;
6985	*64-bit*)
6986	  LD="${LD-ld} -64"
6987	  ;;
6988      esac
6989    fi
6990  fi
6991  rm -rf conftest*
6992  ;;
6993
6994x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6995s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6996  # Find out which ABI we are using.
6997  echo 'int i;' > conftest.$ac_ext
6998  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999  (eval $ac_compile) 2>&5
7000  ac_status=$?
7001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }; then
7003    case `/usr/bin/file conftest.o` in
7004      *32-bit*)
7005	case $host in
7006	  x86_64-*kfreebsd*-gnu)
7007	    LD="${LD-ld} -m elf_i386_fbsd"
7008	    ;;
7009	  x86_64-*linux*)
7010	    LD="${LD-ld} -m elf_i386"
7011	    ;;
7012	  ppc64-*linux*|powerpc64-*linux*)
7013	    LD="${LD-ld} -m elf32ppclinux"
7014	    ;;
7015	  s390x-*linux*)
7016	    LD="${LD-ld} -m elf_s390"
7017	    ;;
7018	  sparc64-*linux*)
7019	    LD="${LD-ld} -m elf32_sparc"
7020	    ;;
7021	esac
7022	;;
7023      *64-bit*)
7024	case $host in
7025	  x86_64-*kfreebsd*-gnu)
7026	    LD="${LD-ld} -m elf_x86_64_fbsd"
7027	    ;;
7028	  x86_64-*linux*)
7029	    LD="${LD-ld} -m elf_x86_64"
7030	    ;;
7031	  ppc*-*linux*|powerpc*-*linux*)
7032	    LD="${LD-ld} -m elf64ppc"
7033	    ;;
7034	  s390*-*linux*|s390*-*tpf*)
7035	    LD="${LD-ld} -m elf64_s390"
7036	    ;;
7037	  sparc*-*linux*)
7038	    LD="${LD-ld} -m elf64_sparc"
7039	    ;;
7040	esac
7041	;;
7042    esac
7043  fi
7044  rm -rf conftest*
7045  ;;
7046
7047*-*-sco3.2v5*)
7048  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7049  SAVE_CFLAGS="$CFLAGS"
7050  CFLAGS="$CFLAGS -belf"
7051  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7052$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7053if test "${lt_cv_cc_needs_belf+set}" = set; then
7054  $as_echo_n "(cached) " >&6
7055else
7056  ac_ext=c
7057ac_cpp='$CPP $CPPFLAGS'
7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062     cat >conftest.$ac_ext <<_ACEOF
7063/* confdefs.h.  */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
7067/* end confdefs.h.  */
7068
7069int
7070main ()
7071{
7072
7073  ;
7074  return 0;
7075}
7076_ACEOF
7077rm -f conftest.$ac_objext conftest$ac_exeext
7078if { (ac_try="$ac_link"
7079case "(($ac_try" in
7080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081  *) ac_try_echo=$ac_try;;
7082esac
7083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7084$as_echo "$ac_try_echo") >&5
7085  (eval "$ac_link") 2>conftest.er1
7086  ac_status=$?
7087  grep -v '^ *+' conftest.er1 >conftest.err
7088  rm -f conftest.er1
7089  cat conftest.err >&5
7090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); } && {
7092	 test -z "$ac_c_werror_flag" ||
7093	 test ! -s conftest.err
7094       } && test -s conftest$ac_exeext && {
7095	 test "$cross_compiling" = yes ||
7096	 $as_test_x conftest$ac_exeext
7097       }; then
7098  lt_cv_cc_needs_belf=yes
7099else
7100  $as_echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7103	lt_cv_cc_needs_belf=no
7104fi
7105
7106rm -rf conftest.dSYM
7107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7108      conftest$ac_exeext conftest.$ac_ext
7109     ac_ext=c
7110ac_cpp='$CPP $CPPFLAGS'
7111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114
7115fi
7116{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7117$as_echo "$lt_cv_cc_needs_belf" >&6; }
7118  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7119    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7120    CFLAGS="$SAVE_CFLAGS"
7121  fi
7122  ;;
7123sparc*-*solaris*)
7124  # Find out which ABI we are using.
7125  echo 'int i;' > conftest.$ac_ext
7126  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127  (eval $ac_compile) 2>&5
7128  ac_status=$?
7129  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); }; then
7131    case `/usr/bin/file conftest.o` in
7132    *64-bit*)
7133      case $lt_cv_prog_gnu_ld in
7134      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7135      *)
7136	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7137	  LD="${LD-ld} -64"
7138	fi
7139	;;
7140      esac
7141      ;;
7142    esac
7143  fi
7144  rm -rf conftest*
7145  ;;
7146esac
7147
7148need_locks="$enable_libtool_lock"
7149
7150
7151  case $host_os in
7152    rhapsody* | darwin*)
7153    if test -n "$ac_tool_prefix"; then
7154  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7157$as_echo_n "checking for $ac_word... " >&6; }
7158if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7159  $as_echo_n "(cached) " >&6
7160else
7161  if test -n "$DSYMUTIL"; then
7162  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167  IFS=$as_save_IFS
7168  test -z "$as_dir" && as_dir=.
7169  for ac_exec_ext in '' $ac_executable_extensions; do
7170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7172    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173    break 2
7174  fi
7175done
7176done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181DSYMUTIL=$ac_cv_prog_DSYMUTIL
7182if test -n "$DSYMUTIL"; then
7183  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7184$as_echo "$DSYMUTIL" >&6; }
7185else
7186  { $as_echo "$as_me:$LINENO: result: no" >&5
7187$as_echo "no" >&6; }
7188fi
7189
7190
7191fi
7192if test -z "$ac_cv_prog_DSYMUTIL"; then
7193  ac_ct_DSYMUTIL=$DSYMUTIL
7194  # Extract the first word of "dsymutil", so it can be a program name with args.
7195set dummy dsymutil; ac_word=$2
7196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$ac_ct_DSYMUTIL"; then
7202  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209  for ac_exec_ext in '' $ac_executable_extensions; do
7210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7212    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7222if test -n "$ac_ct_DSYMUTIL"; then
7223  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7224$as_echo "$ac_ct_DSYMUTIL" >&6; }
7225else
7226  { $as_echo "$as_me:$LINENO: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230  if test "x$ac_ct_DSYMUTIL" = x; then
7231    DSYMUTIL=":"
7232  else
7233    case $cross_compiling:$ac_tool_warned in
7234yes:)
7235{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237ac_tool_warned=yes ;;
7238esac
7239    DSYMUTIL=$ac_ct_DSYMUTIL
7240  fi
7241else
7242  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7243fi
7244
7245    if test -n "$ac_tool_prefix"; then
7246  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7247set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7249$as_echo_n "checking for $ac_word... " >&6; }
7250if test "${ac_cv_prog_NMEDIT+set}" = set; then
7251  $as_echo_n "(cached) " >&6
7252else
7253  if test -n "$NMEDIT"; then
7254  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259  IFS=$as_save_IFS
7260  test -z "$as_dir" && as_dir=.
7261  for ac_exec_ext in '' $ac_executable_extensions; do
7262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7264    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265    break 2
7266  fi
7267done
7268done
7269IFS=$as_save_IFS
7270
7271fi
7272fi
7273NMEDIT=$ac_cv_prog_NMEDIT
7274if test -n "$NMEDIT"; then
7275  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7276$as_echo "$NMEDIT" >&6; }
7277else
7278  { $as_echo "$as_me:$LINENO: result: no" >&5
7279$as_echo "no" >&6; }
7280fi
7281
7282
7283fi
7284if test -z "$ac_cv_prog_NMEDIT"; then
7285  ac_ct_NMEDIT=$NMEDIT
7286  # Extract the first word of "nmedit", so it can be a program name with args.
7287set dummy nmedit; ac_word=$2
7288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7289$as_echo_n "checking for $ac_word... " >&6; }
7290if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7291  $as_echo_n "(cached) " >&6
7292else
7293  if test -n "$ac_ct_NMEDIT"; then
7294  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301  for ac_exec_ext in '' $ac_executable_extensions; do
7302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7304    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305    break 2
7306  fi
7307done
7308done
7309IFS=$as_save_IFS
7310
7311fi
7312fi
7313ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7314if test -n "$ac_ct_NMEDIT"; then
7315  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7316$as_echo "$ac_ct_NMEDIT" >&6; }
7317else
7318  { $as_echo "$as_me:$LINENO: result: no" >&5
7319$as_echo "no" >&6; }
7320fi
7321
7322  if test "x$ac_ct_NMEDIT" = x; then
7323    NMEDIT=":"
7324  else
7325    case $cross_compiling:$ac_tool_warned in
7326yes:)
7327{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7329ac_tool_warned=yes ;;
7330esac
7331    NMEDIT=$ac_ct_NMEDIT
7332  fi
7333else
7334  NMEDIT="$ac_cv_prog_NMEDIT"
7335fi
7336
7337    if test -n "$ac_tool_prefix"; then
7338  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7339set dummy ${ac_tool_prefix}lipo; ac_word=$2
7340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7341$as_echo_n "checking for $ac_word... " >&6; }
7342if test "${ac_cv_prog_LIPO+set}" = set; then
7343  $as_echo_n "(cached) " >&6
7344else
7345  if test -n "$LIPO"; then
7346  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7347else
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351  IFS=$as_save_IFS
7352  test -z "$as_dir" && as_dir=.
7353  for ac_exec_ext in '' $ac_executable_extensions; do
7354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7356    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357    break 2
7358  fi
7359done
7360done
7361IFS=$as_save_IFS
7362
7363fi
7364fi
7365LIPO=$ac_cv_prog_LIPO
7366if test -n "$LIPO"; then
7367  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7368$as_echo "$LIPO" >&6; }
7369else
7370  { $as_echo "$as_me:$LINENO: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374
7375fi
7376if test -z "$ac_cv_prog_LIPO"; then
7377  ac_ct_LIPO=$LIPO
7378  # Extract the first word of "lipo", so it can be a program name with args.
7379set dummy lipo; ac_word=$2
7380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$ac_ct_LIPO"; then
7386  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393  for ac_exec_ext in '' $ac_executable_extensions; do
7394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395    ac_cv_prog_ac_ct_LIPO="lipo"
7396    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7406if test -n "$ac_ct_LIPO"; then
7407  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7408$as_echo "$ac_ct_LIPO" >&6; }
7409else
7410  { $as_echo "$as_me:$LINENO: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414  if test "x$ac_ct_LIPO" = x; then
7415    LIPO=":"
7416  else
7417    case $cross_compiling:$ac_tool_warned in
7418yes:)
7419{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7421ac_tool_warned=yes ;;
7422esac
7423    LIPO=$ac_ct_LIPO
7424  fi
7425else
7426  LIPO="$ac_cv_prog_LIPO"
7427fi
7428
7429    if test -n "$ac_tool_prefix"; then
7430  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7431set dummy ${ac_tool_prefix}otool; ac_word=$2
7432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if test "${ac_cv_prog_OTOOL+set}" = set; then
7435  $as_echo_n "(cached) " >&6
7436else
7437  if test -n "$OTOOL"; then
7438  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445  for ac_exec_ext in '' $ac_executable_extensions; do
7446  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7448    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452done
7453IFS=$as_save_IFS
7454
7455fi
7456fi
7457OTOOL=$ac_cv_prog_OTOOL
7458if test -n "$OTOOL"; then
7459  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7460$as_echo "$OTOOL" >&6; }
7461else
7462  { $as_echo "$as_me:$LINENO: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
7465
7466
7467fi
7468if test -z "$ac_cv_prog_OTOOL"; then
7469  ac_ct_OTOOL=$OTOOL
7470  # Extract the first word of "otool", so it can be a program name with args.
7471set dummy otool; ac_word=$2
7472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7475  $as_echo_n "(cached) " >&6
7476else
7477  if test -n "$ac_ct_OTOOL"; then
7478  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485  for ac_exec_ext in '' $ac_executable_extensions; do
7486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487    ac_cv_prog_ac_ct_OTOOL="otool"
7488    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7498if test -n "$ac_ct_OTOOL"; then
7499  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7500$as_echo "$ac_ct_OTOOL" >&6; }
7501else
7502  { $as_echo "$as_me:$LINENO: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506  if test "x$ac_ct_OTOOL" = x; then
7507    OTOOL=":"
7508  else
7509    case $cross_compiling:$ac_tool_warned in
7510yes:)
7511{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513ac_tool_warned=yes ;;
7514esac
7515    OTOOL=$ac_ct_OTOOL
7516  fi
7517else
7518  OTOOL="$ac_cv_prog_OTOOL"
7519fi
7520
7521    if test -n "$ac_tool_prefix"; then
7522  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7523set dummy ${ac_tool_prefix}otool64; ac_word=$2
7524{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7525$as_echo_n "checking for $ac_word... " >&6; }
7526if test "${ac_cv_prog_OTOOL64+set}" = set; then
7527  $as_echo_n "(cached) " >&6
7528else
7529  if test -n "$OTOOL64"; then
7530  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537  for ac_exec_ext in '' $ac_executable_extensions; do
7538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7539    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7540    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544done
7545IFS=$as_save_IFS
7546
7547fi
7548fi
7549OTOOL64=$ac_cv_prog_OTOOL64
7550if test -n "$OTOOL64"; then
7551  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7552$as_echo "$OTOOL64" >&6; }
7553else
7554  { $as_echo "$as_me:$LINENO: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
7557
7558
7559fi
7560if test -z "$ac_cv_prog_OTOOL64"; then
7561  ac_ct_OTOOL64=$OTOOL64
7562  # Extract the first word of "otool64", so it can be a program name with args.
7563set dummy otool64; ac_word=$2
7564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7565$as_echo_n "checking for $ac_word... " >&6; }
7566if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7567  $as_echo_n "(cached) " >&6
7568else
7569  if test -n "$ac_ct_OTOOL64"; then
7570  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575  IFS=$as_save_IFS
7576  test -z "$as_dir" && as_dir=.
7577  for ac_exec_ext in '' $ac_executable_extensions; do
7578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579    ac_cv_prog_ac_ct_OTOOL64="otool64"
7580    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581    break 2
7582  fi
7583done
7584done
7585IFS=$as_save_IFS
7586
7587fi
7588fi
7589ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7590if test -n "$ac_ct_OTOOL64"; then
7591  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7592$as_echo "$ac_ct_OTOOL64" >&6; }
7593else
7594  { $as_echo "$as_me:$LINENO: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597
7598  if test "x$ac_ct_OTOOL64" = x; then
7599    OTOOL64=":"
7600  else
7601    case $cross_compiling:$ac_tool_warned in
7602yes:)
7603{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7605ac_tool_warned=yes ;;
7606esac
7607    OTOOL64=$ac_ct_OTOOL64
7608  fi
7609else
7610  OTOOL64="$ac_cv_prog_OTOOL64"
7611fi
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7640$as_echo_n "checking for -single_module linker flag... " >&6; }
7641if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7642  $as_echo_n "(cached) " >&6
7643else
7644  lt_cv_apple_cc_single_mod=no
7645      if test -z "${LT_MULTI_MODULE}"; then
7646	# By default we will add the -single_module flag. You can override
7647	# by either setting the environment variable LT_MULTI_MODULE
7648	# non-empty at configure time, or by adding -multi_module to the
7649	# link flags.
7650	rm -rf libconftest.dylib*
7651	echo "int foo(void){return 1;}" > conftest.c
7652	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7653-dynamiclib -Wl,-single_module conftest.c" >&5
7654	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7655	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7656        _lt_result=$?
7657	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7658	  lt_cv_apple_cc_single_mod=yes
7659	else
7660	  cat conftest.err >&5
7661	fi
7662	rm -rf libconftest.dylib*
7663	rm -f conftest.*
7664      fi
7665fi
7666{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7667$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7668    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7669$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7670if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7671  $as_echo_n "(cached) " >&6
7672else
7673  lt_cv_ld_exported_symbols_list=no
7674      save_LDFLAGS=$LDFLAGS
7675      echo "_main" > conftest.sym
7676      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7677      cat >conftest.$ac_ext <<_ACEOF
7678/* confdefs.h.  */
7679_ACEOF
7680cat confdefs.h >>conftest.$ac_ext
7681cat >>conftest.$ac_ext <<_ACEOF
7682/* end confdefs.h.  */
7683
7684int
7685main ()
7686{
7687
7688  ;
7689  return 0;
7690}
7691_ACEOF
7692rm -f conftest.$ac_objext conftest$ac_exeext
7693if { (ac_try="$ac_link"
7694case "(($ac_try" in
7695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696  *) ac_try_echo=$ac_try;;
7697esac
7698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7699$as_echo "$ac_try_echo") >&5
7700  (eval "$ac_link") 2>conftest.er1
7701  ac_status=$?
7702  grep -v '^ *+' conftest.er1 >conftest.err
7703  rm -f conftest.er1
7704  cat conftest.err >&5
7705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); } && {
7707	 test -z "$ac_c_werror_flag" ||
7708	 test ! -s conftest.err
7709       } && test -s conftest$ac_exeext && {
7710	 test "$cross_compiling" = yes ||
7711	 $as_test_x conftest$ac_exeext
7712       }; then
7713  lt_cv_ld_exported_symbols_list=yes
7714else
7715  $as_echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718	lt_cv_ld_exported_symbols_list=no
7719fi
7720
7721rm -rf conftest.dSYM
7722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7723      conftest$ac_exeext conftest.$ac_ext
7724	LDFLAGS="$save_LDFLAGS"
7725
7726fi
7727{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7728$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7729    case $host_os in
7730    rhapsody* | darwin1.[012])
7731      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7732    darwin1.*)
7733      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7734    darwin*) # darwin 5.x on
7735      # if running on 10.5 or later, the deployment target defaults
7736      # to the OS version, if on x86, and 10.4, the deployment
7737      # target defaults to 10.4. Don't you love it?
7738      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7739	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7740	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7741	10.[012]*)
7742	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7743	10.*)
7744	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7745      esac
7746    ;;
7747  esac
7748    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7749      _lt_dar_single_mod='$single_module'
7750    fi
7751    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7752      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7753    else
7754      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7755    fi
7756    if test "$DSYMUTIL" != ":"; then
7757      _lt_dsymutil='~$DSYMUTIL $lib || :'
7758    else
7759      _lt_dsymutil=
7760    fi
7761    ;;
7762  esac
7763
7764
7765for ac_header in dlfcn.h
7766do
7767as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7768{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7769$as_echo_n "checking for $ac_header... " >&6; }
7770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7771  $as_echo_n "(cached) " >&6
7772else
7773  cat >conftest.$ac_ext <<_ACEOF
7774/* confdefs.h.  */
7775_ACEOF
7776cat confdefs.h >>conftest.$ac_ext
7777cat >>conftest.$ac_ext <<_ACEOF
7778/* end confdefs.h.  */
7779$ac_includes_default
7780
7781#include <$ac_header>
7782_ACEOF
7783rm -f conftest.$ac_objext
7784if { (ac_try="$ac_compile"
7785case "(($ac_try" in
7786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787  *) ac_try_echo=$ac_try;;
7788esac
7789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7790$as_echo "$ac_try_echo") >&5
7791  (eval "$ac_compile") 2>conftest.er1
7792  ac_status=$?
7793  grep -v '^ *+' conftest.er1 >conftest.err
7794  rm -f conftest.er1
7795  cat conftest.err >&5
7796  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797  (exit $ac_status); } && {
7798	 test -z "$ac_c_werror_flag" ||
7799	 test ! -s conftest.err
7800       } && test -s conftest.$ac_objext; then
7801  eval "$as_ac_Header=yes"
7802else
7803  $as_echo "$as_me: failed program was:" >&5
7804sed 's/^/| /' conftest.$ac_ext >&5
7805
7806	eval "$as_ac_Header=no"
7807fi
7808
7809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810fi
7811ac_res=`eval 'as_val=${'$as_ac_Header'}
7812		 $as_echo "$as_val"'`
7813	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7814$as_echo "$ac_res" >&6; }
7815as_val=`eval 'as_val=${'$as_ac_Header'}
7816		 $as_echo "$as_val"'`
7817   if test "x$as_val" = x""yes; then
7818  cat >>confdefs.h <<_ACEOF
7819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7820_ACEOF
7821
7822fi
7823
7824done
7825
7826
7827
7828# Set options
7829
7830
7831
7832        enable_dlopen=no
7833
7834
7835  enable_win32_dll=no
7836
7837
7838            # Check whether --enable-shared was given.
7839if test "${enable_shared+set}" = set; then
7840  enableval=$enable_shared; p=${PACKAGE-default}
7841    case $enableval in
7842    yes) enable_shared=yes ;;
7843    no) enable_shared=no ;;
7844    *)
7845      enable_shared=no
7846      # Look at the argument we got.  We use all the common list separators.
7847      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7848      for pkg in $enableval; do
7849	IFS="$lt_save_ifs"
7850	if test "X$pkg" = "X$p"; then
7851	  enable_shared=yes
7852	fi
7853      done
7854      IFS="$lt_save_ifs"
7855      ;;
7856    esac
7857else
7858  enable_shared=yes
7859fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871# Check whether --with-pic was given.
7872if test "${with_pic+set}" = set; then
7873  withval=$with_pic; pic_mode="$withval"
7874else
7875  pic_mode=default
7876fi
7877
7878
7879test -z "$pic_mode" && pic_mode=default
7880
7881
7882
7883
7884
7885
7886
7887  # Check whether --enable-fast-install was given.
7888if test "${enable_fast_install+set}" = set; then
7889  enableval=$enable_fast_install; p=${PACKAGE-default}
7890    case $enableval in
7891    yes) enable_fast_install=yes ;;
7892    no) enable_fast_install=no ;;
7893    *)
7894      enable_fast_install=no
7895      # Look at the argument we got.  We use all the common list separators.
7896      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7897      for pkg in $enableval; do
7898	IFS="$lt_save_ifs"
7899	if test "X$pkg" = "X$p"; then
7900	  enable_fast_install=yes
7901	fi
7902      done
7903      IFS="$lt_save_ifs"
7904      ;;
7905    esac
7906else
7907  enable_fast_install=yes
7908fi
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920# This can be used to rebuild libtool when needed
7921LIBTOOL_DEPS="$ltmain"
7922
7923# Always use our own libtool.
7924LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950test -z "$LN_S" && LN_S="ln -s"
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965if test -n "${ZSH_VERSION+set}" ; then
7966   setopt NO_GLOB_SUBST
7967fi
7968
7969{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7970$as_echo_n "checking for objdir... " >&6; }
7971if test "${lt_cv_objdir+set}" = set; then
7972  $as_echo_n "(cached) " >&6
7973else
7974  rm -f .libs 2>/dev/null
7975mkdir .libs 2>/dev/null
7976if test -d .libs; then
7977  lt_cv_objdir=.libs
7978else
7979  # MS-DOS does not allow filenames that begin with a dot.
7980  lt_cv_objdir=_libs
7981fi
7982rmdir .libs 2>/dev/null
7983fi
7984{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7985$as_echo "$lt_cv_objdir" >&6; }
7986objdir=$lt_cv_objdir
7987
7988
7989
7990
7991
7992cat >>confdefs.h <<_ACEOF
7993#define LT_OBJDIR "$lt_cv_objdir/"
7994_ACEOF
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012case $host_os in
8013aix3*)
8014  # AIX sometimes has problems with the GCC collect2 program.  For some
8015  # reason, if we set the COLLECT_NAMES environment variable, the problems
8016  # vanish in a puff of smoke.
8017  if test "X${COLLECT_NAMES+set}" != Xset; then
8018    COLLECT_NAMES=
8019    export COLLECT_NAMES
8020  fi
8021  ;;
8022esac
8023
8024# Sed substitution that helps us do robust quoting.  It backslashifies
8025# metacharacters that are still active within double-quoted strings.
8026sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8027
8028# Same as above, but do not quote variable references.
8029double_quote_subst='s/\(["`\\]\)/\\\1/g'
8030
8031# Sed substitution to delay expansion of an escaped shell variable in a
8032# double_quote_subst'ed string.
8033delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8034
8035# Sed substitution to delay expansion of an escaped single quote.
8036delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8037
8038# Sed substitution to avoid accidental globbing in evaled expressions
8039no_glob_subst='s/\*/\\\*/g'
8040
8041# Global variables:
8042ofile=libtool
8043can_build_shared=yes
8044
8045# All known linkers require a `.a' archive for static linking (except MSVC,
8046# which needs '.lib').
8047libext=a
8048
8049with_gnu_ld="$lt_cv_prog_gnu_ld"
8050
8051old_CC="$CC"
8052old_CFLAGS="$CFLAGS"
8053
8054# Set sane defaults for various variables
8055test -z "$CC" && CC=cc
8056test -z "$LTCC" && LTCC=$CC
8057test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8058test -z "$LD" && LD=ld
8059test -z "$ac_objext" && ac_objext=o
8060
8061for cc_temp in $compiler""; do
8062  case $cc_temp in
8063    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8064    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8065    \-*) ;;
8066    *) break;;
8067  esac
8068done
8069cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8070
8071
8072# Only perform the check for file, if the check method requires it
8073test -z "$MAGIC_CMD" && MAGIC_CMD=file
8074case $deplibs_check_method in
8075file_magic*)
8076  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8077    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8078$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8079if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8080  $as_echo_n "(cached) " >&6
8081else
8082  case $MAGIC_CMD in
8083[\\/*] |  ?:[\\/]*)
8084  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8085  ;;
8086*)
8087  lt_save_MAGIC_CMD="$MAGIC_CMD"
8088  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8089  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8090  for ac_dir in $ac_dummy; do
8091    IFS="$lt_save_ifs"
8092    test -z "$ac_dir" && ac_dir=.
8093    if test -f $ac_dir/${ac_tool_prefix}file; then
8094      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8095      if test -n "$file_magic_test_file"; then
8096	case $deplibs_check_method in
8097	"file_magic "*)
8098	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8099	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8100	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8101	    $EGREP "$file_magic_regex" > /dev/null; then
8102	    :
8103	  else
8104	    cat <<_LT_EOF 1>&2
8105
8106*** Warning: the command libtool uses to detect shared libraries,
8107*** $file_magic_cmd, produces output that libtool cannot recognize.
8108*** The result is that libtool may fail to recognize shared libraries
8109*** as such.  This will affect the creation of libtool libraries that
8110*** depend on shared libraries, but programs linked with such libtool
8111*** libraries will work regardless of this problem.  Nevertheless, you
8112*** may want to report the problem to your system manager and/or to
8113*** bug-libtool@gnu.org
8114
8115_LT_EOF
8116	  fi ;;
8117	esac
8118      fi
8119      break
8120    fi
8121  done
8122  IFS="$lt_save_ifs"
8123  MAGIC_CMD="$lt_save_MAGIC_CMD"
8124  ;;
8125esac
8126fi
8127
8128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8129if test -n "$MAGIC_CMD"; then
8130  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8131$as_echo "$MAGIC_CMD" >&6; }
8132else
8133  { $as_echo "$as_me:$LINENO: result: no" >&5
8134$as_echo "no" >&6; }
8135fi
8136
8137
8138
8139
8140
8141if test -z "$lt_cv_path_MAGIC_CMD"; then
8142  if test -n "$ac_tool_prefix"; then
8143    { $as_echo "$as_me:$LINENO: checking for file" >&5
8144$as_echo_n "checking for file... " >&6; }
8145if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8146  $as_echo_n "(cached) " >&6
8147else
8148  case $MAGIC_CMD in
8149[\\/*] |  ?:[\\/]*)
8150  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8151  ;;
8152*)
8153  lt_save_MAGIC_CMD="$MAGIC_CMD"
8154  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156  for ac_dir in $ac_dummy; do
8157    IFS="$lt_save_ifs"
8158    test -z "$ac_dir" && ac_dir=.
8159    if test -f $ac_dir/file; then
8160      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8161      if test -n "$file_magic_test_file"; then
8162	case $deplibs_check_method in
8163	"file_magic "*)
8164	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167	    $EGREP "$file_magic_regex" > /dev/null; then
8168	    :
8169	  else
8170	    cat <<_LT_EOF 1>&2
8171
8172*** Warning: the command libtool uses to detect shared libraries,
8173*** $file_magic_cmd, produces output that libtool cannot recognize.
8174*** The result is that libtool may fail to recognize shared libraries
8175*** as such.  This will affect the creation of libtool libraries that
8176*** depend on shared libraries, but programs linked with such libtool
8177*** libraries will work regardless of this problem.  Nevertheless, you
8178*** may want to report the problem to your system manager and/or to
8179*** bug-libtool@gnu.org
8180
8181_LT_EOF
8182	  fi ;;
8183	esac
8184      fi
8185      break
8186    fi
8187  done
8188  IFS="$lt_save_ifs"
8189  MAGIC_CMD="$lt_save_MAGIC_CMD"
8190  ;;
8191esac
8192fi
8193
8194MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195if test -n "$MAGIC_CMD"; then
8196  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8197$as_echo "$MAGIC_CMD" >&6; }
8198else
8199  { $as_echo "$as_me:$LINENO: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
8202
8203
8204  else
8205    MAGIC_CMD=:
8206  fi
8207fi
8208
8209  fi
8210  ;;
8211esac
8212
8213# Use C for the default configuration in the libtool script
8214
8215lt_save_CC="$CC"
8216ac_ext=c
8217ac_cpp='$CPP $CPPFLAGS'
8218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8220ac_compiler_gnu=$ac_cv_c_compiler_gnu
8221
8222
8223# Source file extension for C test sources.
8224ac_ext=c
8225
8226# Object file extension for compiled C test sources.
8227objext=o
8228objext=$objext
8229
8230# Code to be used in simple compile tests
8231lt_simple_compile_test_code="int some_variable = 0;"
8232
8233# Code to be used in simple link tests
8234lt_simple_link_test_code='int main(){return(0);}'
8235
8236
8237
8238
8239
8240
8241
8242# If no C compiler was specified, use CC.
8243LTCC=${LTCC-"$CC"}
8244
8245# If no C compiler flags were specified, use CFLAGS.
8246LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8247
8248# Allow CC to be a program name with arguments.
8249compiler=$CC
8250
8251# Save the default compiler, since it gets overwritten when the other
8252# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8253compiler_DEFAULT=$CC
8254
8255# save warnings/boilerplate of simple test code
8256ac_outfile=conftest.$ac_objext
8257echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8259_lt_compiler_boilerplate=`cat conftest.err`
8260$RM conftest*
8261
8262ac_outfile=conftest.$ac_objext
8263echo "$lt_simple_link_test_code" >conftest.$ac_ext
8264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8265_lt_linker_boilerplate=`cat conftest.err`
8266$RM -r conftest*
8267
8268
8269if test -n "$compiler"; then
8270
8271lt_prog_compiler_no_builtin_flag=
8272
8273if test "$GCC" = yes; then
8274  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8275
8276  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8277$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8278if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8279  $as_echo_n "(cached) " >&6
8280else
8281  lt_cv_prog_compiler_rtti_exceptions=no
8282   ac_outfile=conftest.$ac_objext
8283   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8284   lt_compiler_flag="-fno-rtti -fno-exceptions"
8285   # Insert the option either (1) after the last *FLAGS variable, or
8286   # (2) before a word containing "conftest.", or (3) at the end.
8287   # Note that $ac_compile itself does not contain backslashes and begins
8288   # with a dollar sign (not a hyphen), so the echo should work correctly.
8289   # The option is referenced via a variable to avoid confusing sed.
8290   lt_compile=`echo "$ac_compile" | $SED \
8291   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8292   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8293   -e 's:$: $lt_compiler_flag:'`
8294   (eval echo "\"\$as_me:8294: $lt_compile\"" >&5)
8295   (eval "$lt_compile" 2>conftest.err)
8296   ac_status=$?
8297   cat conftest.err >&5
8298   echo "$as_me:8298: \$? = $ac_status" >&5
8299   if (exit $ac_status) && test -s "$ac_outfile"; then
8300     # The compiler can only warn and ignore the option if not recognized
8301     # So say no if there are warnings other than the usual output.
8302     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8303     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8304     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8305       lt_cv_prog_compiler_rtti_exceptions=yes
8306     fi
8307   fi
8308   $RM conftest*
8309
8310fi
8311{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8312$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8313
8314if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8315    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8316else
8317    :
8318fi
8319
8320fi
8321
8322
8323
8324
8325
8326
8327  lt_prog_compiler_wl=
8328lt_prog_compiler_pic=
8329lt_prog_compiler_static=
8330
8331{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8332$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8333
8334  if test "$GCC" = yes; then
8335    lt_prog_compiler_wl='-Wl,'
8336    lt_prog_compiler_static='-static'
8337
8338    case $host_os in
8339      aix*)
8340      # All AIX code is PIC.
8341      if test "$host_cpu" = ia64; then
8342	# AIX 5 now supports IA64 processor
8343	lt_prog_compiler_static='-Bstatic'
8344      fi
8345      ;;
8346
8347    amigaos*)
8348      case $host_cpu in
8349      powerpc)
8350            # see comment about AmigaOS4 .so support
8351            lt_prog_compiler_pic='-fPIC'
8352        ;;
8353      m68k)
8354            # FIXME: we need at least 68020 code to build shared libraries, but
8355            # adding the `-m68020' flag to GCC prevents building anything better,
8356            # like `-m68040'.
8357            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8358        ;;
8359      esac
8360      ;;
8361
8362    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8363      # PIC is the default for these OSes.
8364      ;;
8365
8366    mingw* | cygwin* | pw32* | os2* | cegcc*)
8367      # This hack is so that the source file can tell whether it is being
8368      # built for inclusion in a dll (and should export symbols for example).
8369      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8370      # (--disable-auto-import) libraries
8371      lt_prog_compiler_pic='-DDLL_EXPORT'
8372      ;;
8373
8374    darwin* | rhapsody*)
8375      # PIC is the default on this platform
8376      # Common symbols not allowed in MH_DYLIB files
8377      lt_prog_compiler_pic='-fno-common'
8378      ;;
8379
8380    hpux*)
8381      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8382      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8383      # sets the default TLS model and affects inlining.
8384      case $host_cpu in
8385      hppa*64*)
8386	# +Z the default
8387	;;
8388      *)
8389	lt_prog_compiler_pic='-fPIC'
8390	;;
8391      esac
8392      ;;
8393
8394    interix[3-9]*)
8395      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8396      # Instead, we relocate shared libraries at runtime.
8397      ;;
8398
8399    msdosdjgpp*)
8400      # Just because we use GCC doesn't mean we suddenly get shared libraries
8401      # on systems that don't support them.
8402      lt_prog_compiler_can_build_shared=no
8403      enable_shared=no
8404      ;;
8405
8406    *nto* | *qnx*)
8407      # QNX uses GNU C++, but need to define -shared option too, otherwise
8408      # it will coredump.
8409      lt_prog_compiler_pic='-fPIC -shared'
8410      ;;
8411
8412    sysv4*MP*)
8413      if test -d /usr/nec; then
8414	lt_prog_compiler_pic=-Kconform_pic
8415      fi
8416      ;;
8417
8418    *)
8419      lt_prog_compiler_pic='-fPIC'
8420      ;;
8421    esac
8422  else
8423    # PORTME Check for flag to pass linker flags through the system compiler.
8424    case $host_os in
8425    aix*)
8426      lt_prog_compiler_wl='-Wl,'
8427      if test "$host_cpu" = ia64; then
8428	# AIX 5 now supports IA64 processor
8429	lt_prog_compiler_static='-Bstatic'
8430      else
8431	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8432      fi
8433      ;;
8434
8435    mingw* | cygwin* | pw32* | os2* | cegcc*)
8436      # This hack is so that the source file can tell whether it is being
8437      # built for inclusion in a dll (and should export symbols for example).
8438      lt_prog_compiler_pic='-DDLL_EXPORT'
8439      ;;
8440
8441    hpux9* | hpux10* | hpux11*)
8442      lt_prog_compiler_wl='-Wl,'
8443      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8444      # not for PA HP-UX.
8445      case $host_cpu in
8446      hppa*64*|ia64*)
8447	# +Z the default
8448	;;
8449      *)
8450	lt_prog_compiler_pic='+Z'
8451	;;
8452      esac
8453      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8454      lt_prog_compiler_static='${wl}-a ${wl}archive'
8455      ;;
8456
8457    irix5* | irix6* | nonstopux*)
8458      lt_prog_compiler_wl='-Wl,'
8459      # PIC (with -KPIC) is the default.
8460      lt_prog_compiler_static='-non_shared'
8461      ;;
8462
8463    linux* | k*bsd*-gnu)
8464      case $cc_basename in
8465      # old Intel for x86_64 which still supported -KPIC.
8466      ecc*)
8467	lt_prog_compiler_wl='-Wl,'
8468	lt_prog_compiler_pic='-KPIC'
8469	lt_prog_compiler_static='-static'
8470        ;;
8471      # icc used to be incompatible with GCC.
8472      # ICC 10 doesn't accept -KPIC any more.
8473      icc* | ifort*)
8474	lt_prog_compiler_wl='-Wl,'
8475	lt_prog_compiler_pic='-fPIC'
8476	lt_prog_compiler_static='-static'
8477        ;;
8478      # Lahey Fortran 8.1.
8479      lf95*)
8480	lt_prog_compiler_wl='-Wl,'
8481	lt_prog_compiler_pic='--shared'
8482	lt_prog_compiler_static='--static'
8483	;;
8484      pgcc* | pgf77* | pgf90* | pgf95*)
8485        # Portland Group compilers (*not* the Pentium gcc compiler,
8486	# which looks to be a dead project)
8487	lt_prog_compiler_wl='-Wl,'
8488	lt_prog_compiler_pic='-fpic'
8489	lt_prog_compiler_static='-Bstatic'
8490        ;;
8491      ccc*)
8492        lt_prog_compiler_wl='-Wl,'
8493        # All Alpha code is PIC.
8494        lt_prog_compiler_static='-non_shared'
8495        ;;
8496      xl*)
8497	# IBM XL C 8.0/Fortran 10.1 on PPC
8498	lt_prog_compiler_wl='-Wl,'
8499	lt_prog_compiler_pic='-qpic'
8500	lt_prog_compiler_static='-qstaticlink'
8501	;;
8502      *)
8503	case `$CC -V 2>&1 | sed 5q` in
8504	*Sun\ C*)
8505	  # Sun C 5.9
8506	  lt_prog_compiler_pic='-KPIC'
8507	  lt_prog_compiler_static='-Bstatic'
8508	  lt_prog_compiler_wl='-Wl,'
8509	  ;;
8510	*Sun\ F*)
8511	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8512	  lt_prog_compiler_pic='-KPIC'
8513	  lt_prog_compiler_static='-Bstatic'
8514	  lt_prog_compiler_wl=''
8515	  ;;
8516	esac
8517	;;
8518      esac
8519      ;;
8520
8521    newsos6)
8522      lt_prog_compiler_pic='-KPIC'
8523      lt_prog_compiler_static='-Bstatic'
8524      ;;
8525
8526    *nto* | *qnx*)
8527      # QNX uses GNU C++, but need to define -shared option too, otherwise
8528      # it will coredump.
8529      lt_prog_compiler_pic='-fPIC -shared'
8530      ;;
8531
8532    osf3* | osf4* | osf5*)
8533      lt_prog_compiler_wl='-Wl,'
8534      # All OSF/1 code is PIC.
8535      lt_prog_compiler_static='-non_shared'
8536      ;;
8537
8538    rdos*)
8539      lt_prog_compiler_static='-non_shared'
8540      ;;
8541
8542    solaris*)
8543      lt_prog_compiler_pic='-KPIC'
8544      lt_prog_compiler_static='-Bstatic'
8545      case $cc_basename in
8546      f77* | f90* | f95*)
8547	lt_prog_compiler_wl='-Qoption ld ';;
8548      *)
8549	lt_prog_compiler_wl='-Wl,';;
8550      esac
8551      ;;
8552
8553    sunos4*)
8554      lt_prog_compiler_wl='-Qoption ld '
8555      lt_prog_compiler_pic='-PIC'
8556      lt_prog_compiler_static='-Bstatic'
8557      ;;
8558
8559    sysv4 | sysv4.2uw2* | sysv4.3*)
8560      lt_prog_compiler_wl='-Wl,'
8561      lt_prog_compiler_pic='-KPIC'
8562      lt_prog_compiler_static='-Bstatic'
8563      ;;
8564
8565    sysv4*MP*)
8566      if test -d /usr/nec ;then
8567	lt_prog_compiler_pic='-Kconform_pic'
8568	lt_prog_compiler_static='-Bstatic'
8569      fi
8570      ;;
8571
8572    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8573      lt_prog_compiler_wl='-Wl,'
8574      lt_prog_compiler_pic='-KPIC'
8575      lt_prog_compiler_static='-Bstatic'
8576      ;;
8577
8578    unicos*)
8579      lt_prog_compiler_wl='-Wl,'
8580      lt_prog_compiler_can_build_shared=no
8581      ;;
8582
8583    uts4*)
8584      lt_prog_compiler_pic='-pic'
8585      lt_prog_compiler_static='-Bstatic'
8586      ;;
8587
8588    *)
8589      lt_prog_compiler_can_build_shared=no
8590      ;;
8591    esac
8592  fi
8593
8594case $host_os in
8595  # For platforms which do not support PIC, -DPIC is meaningless:
8596  *djgpp*)
8597    lt_prog_compiler_pic=
8598    ;;
8599  *)
8600    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8601    ;;
8602esac
8603{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8604$as_echo "$lt_prog_compiler_pic" >&6; }
8605
8606
8607
8608
8609
8610
8611#
8612# Check to make sure the PIC flag actually works.
8613#
8614if test -n "$lt_prog_compiler_pic"; then
8615  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8616$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8617if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8618  $as_echo_n "(cached) " >&6
8619else
8620  lt_cv_prog_compiler_pic_works=no
8621   ac_outfile=conftest.$ac_objext
8622   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8623   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8624   # Insert the option either (1) after the last *FLAGS variable, or
8625   # (2) before a word containing "conftest.", or (3) at the end.
8626   # Note that $ac_compile itself does not contain backslashes and begins
8627   # with a dollar sign (not a hyphen), so the echo should work correctly.
8628   # The option is referenced via a variable to avoid confusing sed.
8629   lt_compile=`echo "$ac_compile" | $SED \
8630   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632   -e 's:$: $lt_compiler_flag:'`
8633   (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
8634   (eval "$lt_compile" 2>conftest.err)
8635   ac_status=$?
8636   cat conftest.err >&5
8637   echo "$as_me:8637: \$? = $ac_status" >&5
8638   if (exit $ac_status) && test -s "$ac_outfile"; then
8639     # The compiler can only warn and ignore the option if not recognized
8640     # So say no if there are warnings other than the usual output.
8641     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8642     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8644       lt_cv_prog_compiler_pic_works=yes
8645     fi
8646   fi
8647   $RM conftest*
8648
8649fi
8650{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8651$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8652
8653if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8654    case $lt_prog_compiler_pic in
8655     "" | " "*) ;;
8656     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8657     esac
8658else
8659    lt_prog_compiler_pic=
8660     lt_prog_compiler_can_build_shared=no
8661fi
8662
8663fi
8664
8665
8666
8667
8668
8669
8670#
8671# Check to make sure the static flag actually works.
8672#
8673wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8674{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8675$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8676if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8677  $as_echo_n "(cached) " >&6
8678else
8679  lt_cv_prog_compiler_static_works=no
8680   save_LDFLAGS="$LDFLAGS"
8681   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8682   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8683   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8684     # The linker can only warn and ignore the option if not recognized
8685     # So say no if there are warnings
8686     if test -s conftest.err; then
8687       # Append any errors to the config.log.
8688       cat conftest.err 1>&5
8689       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8690       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8691       if diff conftest.exp conftest.er2 >/dev/null; then
8692         lt_cv_prog_compiler_static_works=yes
8693       fi
8694     else
8695       lt_cv_prog_compiler_static_works=yes
8696     fi
8697   fi
8698   $RM -r conftest*
8699   LDFLAGS="$save_LDFLAGS"
8700
8701fi
8702{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8703$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8704
8705if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8706    :
8707else
8708    lt_prog_compiler_static=
8709fi
8710
8711
8712
8713
8714
8715
8716
8717  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8718$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8719if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8720  $as_echo_n "(cached) " >&6
8721else
8722  lt_cv_prog_compiler_c_o=no
8723   $RM -r conftest 2>/dev/null
8724   mkdir conftest
8725   cd conftest
8726   mkdir out
8727   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728
8729   lt_compiler_flag="-o out/conftest2.$ac_objext"
8730   # Insert the option either (1) after the last *FLAGS variable, or
8731   # (2) before a word containing "conftest.", or (3) at the end.
8732   # Note that $ac_compile itself does not contain backslashes and begins
8733   # with a dollar sign (not a hyphen), so the echo should work correctly.
8734   lt_compile=`echo "$ac_compile" | $SED \
8735   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737   -e 's:$: $lt_compiler_flag:'`
8738   (eval echo "\"\$as_me:8738: $lt_compile\"" >&5)
8739   (eval "$lt_compile" 2>out/conftest.err)
8740   ac_status=$?
8741   cat out/conftest.err >&5
8742   echo "$as_me:8742: \$? = $ac_status" >&5
8743   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8744   then
8745     # The compiler can only warn and ignore the option if not recognized
8746     # So say no if there are warnings
8747     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8748     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8749     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8750       lt_cv_prog_compiler_c_o=yes
8751     fi
8752   fi
8753   chmod u+w . 2>&5
8754   $RM conftest*
8755   # SGI C++ compiler will create directory out/ii_files/ for
8756   # template instantiation
8757   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8758   $RM out/* && rmdir out
8759   cd ..
8760   $RM -r conftest
8761   $RM conftest*
8762
8763fi
8764{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8765$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8766
8767
8768
8769
8770
8771
8772  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8773$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8774if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8775  $as_echo_n "(cached) " >&6
8776else
8777  lt_cv_prog_compiler_c_o=no
8778   $RM -r conftest 2>/dev/null
8779   mkdir conftest
8780   cd conftest
8781   mkdir out
8782   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8783
8784   lt_compiler_flag="-o out/conftest2.$ac_objext"
8785   # Insert the option either (1) after the last *FLAGS variable, or
8786   # (2) before a word containing "conftest.", or (3) at the end.
8787   # Note that $ac_compile itself does not contain backslashes and begins
8788   # with a dollar sign (not a hyphen), so the echo should work correctly.
8789   lt_compile=`echo "$ac_compile" | $SED \
8790   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8792   -e 's:$: $lt_compiler_flag:'`
8793   (eval echo "\"\$as_me:8793: $lt_compile\"" >&5)
8794   (eval "$lt_compile" 2>out/conftest.err)
8795   ac_status=$?
8796   cat out/conftest.err >&5
8797   echo "$as_me:8797: \$? = $ac_status" >&5
8798   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8799   then
8800     # The compiler can only warn and ignore the option if not recognized
8801     # So say no if there are warnings
8802     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8803     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8804     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8805       lt_cv_prog_compiler_c_o=yes
8806     fi
8807   fi
8808   chmod u+w . 2>&5
8809   $RM conftest*
8810   # SGI C++ compiler will create directory out/ii_files/ for
8811   # template instantiation
8812   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8813   $RM out/* && rmdir out
8814   cd ..
8815   $RM -r conftest
8816   $RM conftest*
8817
8818fi
8819{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8820$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8821
8822
8823
8824
8825hard_links="nottested"
8826if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8827  # do not overwrite the value of need_locks provided by the user
8828  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8829$as_echo_n "checking if we can lock with hard links... " >&6; }
8830  hard_links=yes
8831  $RM conftest*
8832  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8833  touch conftest.a
8834  ln conftest.a conftest.b 2>&5 || hard_links=no
8835  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8836  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8837$as_echo "$hard_links" >&6; }
8838  if test "$hard_links" = no; then
8839    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8840$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8841    need_locks=warn
8842  fi
8843else
8844  need_locks=no
8845fi
8846
8847
8848
8849
8850
8851
8852  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8853$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8854
8855  runpath_var=
8856  allow_undefined_flag=
8857  always_export_symbols=no
8858  archive_cmds=
8859  archive_expsym_cmds=
8860  compiler_needs_object=no
8861  enable_shared_with_static_runtimes=no
8862  export_dynamic_flag_spec=
8863  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8864  hardcode_automatic=no
8865  hardcode_direct=no
8866  hardcode_direct_absolute=no
8867  hardcode_libdir_flag_spec=
8868  hardcode_libdir_flag_spec_ld=
8869  hardcode_libdir_separator=
8870  hardcode_minus_L=no
8871  hardcode_shlibpath_var=unsupported
8872  inherit_rpath=no
8873  link_all_deplibs=unknown
8874  module_cmds=
8875  module_expsym_cmds=
8876  old_archive_from_new_cmds=
8877  old_archive_from_expsyms_cmds=
8878  thread_safe_flag_spec=
8879  whole_archive_flag_spec=
8880  # include_expsyms should be a list of space-separated symbols to be *always*
8881  # included in the symbol list
8882  include_expsyms=
8883  # exclude_expsyms can be an extended regexp of symbols to exclude
8884  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8885  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8886  # as well as any symbol that contains `d'.
8887  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8888  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8889  # platforms (ab)use it in PIC code, but their linkers get confused if
8890  # the symbol is explicitly referenced.  Since portable code cannot
8891  # rely on this symbol name, it's probably fine to never include it in
8892  # preloaded symbol tables.
8893  # Exclude shared library initialization/finalization symbols.
8894  extract_expsyms_cmds=
8895
8896  case $host_os in
8897  cygwin* | mingw* | pw32* | cegcc*)
8898    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8899    # When not using gcc, we currently assume that we are using
8900    # Microsoft Visual C++.
8901    if test "$GCC" != yes; then
8902      with_gnu_ld=no
8903    fi
8904    ;;
8905  interix*)
8906    # we just hope/assume this is gcc and not c89 (= MSVC++)
8907    with_gnu_ld=yes
8908    ;;
8909  openbsd*)
8910    with_gnu_ld=no
8911    ;;
8912  esac
8913
8914  ld_shlibs=yes
8915  if test "$with_gnu_ld" = yes; then
8916    # If archive_cmds runs LD, not CC, wlarc should be empty
8917    wlarc='${wl}'
8918
8919    # Set some defaults for GNU ld with shared library support. These
8920    # are reset later if shared libraries are not supported. Putting them
8921    # here allows them to be overridden if necessary.
8922    runpath_var=LD_RUN_PATH
8923    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924    export_dynamic_flag_spec='${wl}--export-dynamic'
8925    # ancient GNU ld didn't support --whole-archive et. al.
8926    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8927      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8928    else
8929      whole_archive_flag_spec=
8930    fi
8931    supports_anon_versioning=no
8932    case `$LD -v 2>&1` in
8933      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8934      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8935      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8936      *\ 2.11.*) ;; # other 2.11 versions
8937      *) supports_anon_versioning=yes ;;
8938    esac
8939
8940    # See if GNU ld supports shared libraries.
8941    case $host_os in
8942    aix[3-9]*)
8943      # On AIX/PPC, the GNU linker is very broken
8944      if test "$host_cpu" != ia64; then
8945	ld_shlibs=no
8946	cat <<_LT_EOF 1>&2
8947
8948*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8949*** to be unable to reliably create shared libraries on AIX.
8950*** Therefore, libtool is disabling shared libraries support.  If you
8951*** really care for shared libraries, you may want to modify your PATH
8952*** so that a non-GNU linker is found, and then restart.
8953
8954_LT_EOF
8955      fi
8956      ;;
8957
8958    amigaos*)
8959      case $host_cpu in
8960      powerpc)
8961            # see comment about AmigaOS4 .so support
8962            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963            archive_expsym_cmds=''
8964        ;;
8965      m68k)
8966            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)'
8967            hardcode_libdir_flag_spec='-L$libdir'
8968            hardcode_minus_L=yes
8969        ;;
8970      esac
8971      ;;
8972
8973    beos*)
8974      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975	allow_undefined_flag=unsupported
8976	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8977	# support --undefined.  This deserves some investigation.  FIXME
8978	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979      else
8980	ld_shlibs=no
8981      fi
8982      ;;
8983
8984    cygwin* | mingw* | pw32* | cegcc*)
8985      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986      # as there is no search path for DLLs.
8987      hardcode_libdir_flag_spec='-L$libdir'
8988      allow_undefined_flag=unsupported
8989      always_export_symbols=no
8990      enable_shared_with_static_runtimes=yes
8991      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8992
8993      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8994        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8995	# If the export-symbols file already is a .def file (1st line
8996	# is EXPORTS), use it as is; otherwise, prepend...
8997	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8998	  cp $export_symbols $output_objdir/$soname.def;
8999	else
9000	  echo EXPORTS > $output_objdir/$soname.def;
9001	  cat $export_symbols >> $output_objdir/$soname.def;
9002	fi~
9003	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9004      else
9005	ld_shlibs=no
9006      fi
9007      ;;
9008
9009    interix[3-9]*)
9010      hardcode_direct=no
9011      hardcode_shlibpath_var=no
9012      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9013      export_dynamic_flag_spec='${wl}-E'
9014      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9015      # Instead, shared libraries are loaded at an image base (0x10000000 by
9016      # default) and relocated if they conflict, which is a slow very memory
9017      # consuming and fragmenting process.  To avoid this, we pick a random,
9018      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9019      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9020      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9021      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'
9022      ;;
9023
9024    gnu* | linux* | tpf* | k*bsd*-gnu)
9025      tmp_diet=no
9026      if test "$host_os" = linux-dietlibc; then
9027	case $cc_basename in
9028	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9029	esac
9030      fi
9031      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9032	 && test "$tmp_diet" = no
9033      then
9034	tmp_addflag=
9035	tmp_sharedflag='-shared'
9036	case $cc_basename,$host_cpu in
9037        pgcc*)				# Portland Group C compiler
9038	  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'
9039	  tmp_addflag=' $pic_flag'
9040	  ;;
9041	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9042	  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'
9043	  tmp_addflag=' $pic_flag -Mnomain' ;;
9044	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9045	  tmp_addflag=' -i_dynamic' ;;
9046	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9047	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9048	ifc* | ifort*)			# Intel Fortran compiler
9049	  tmp_addflag=' -nofor_main' ;;
9050	lf95*)				# Lahey Fortran 8.1
9051	  whole_archive_flag_spec=
9052	  tmp_sharedflag='--shared' ;;
9053	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9054	  tmp_sharedflag='-qmkshrobj'
9055	  tmp_addflag= ;;
9056	esac
9057	case `$CC -V 2>&1 | sed 5q` in
9058	*Sun\ C*)			# Sun C 5.9
9059	  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'
9060	  compiler_needs_object=yes
9061	  tmp_sharedflag='-G' ;;
9062	*Sun\ F*)			# Sun Fortran 8.3
9063	  tmp_sharedflag='-G' ;;
9064	esac
9065	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066
9067        if test "x$supports_anon_versioning" = xyes; then
9068          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9069	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9070	    echo "local: *; };" >> $output_objdir/$libname.ver~
9071	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9072        fi
9073
9074	case $cc_basename in
9075	xlf*)
9076	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9077	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9078	  hardcode_libdir_flag_spec=
9079	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9080	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9081	  if test "x$supports_anon_versioning" = xyes; then
9082	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9083	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9084	      echo "local: *; };" >> $output_objdir/$libname.ver~
9085	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9086	  fi
9087	  ;;
9088	esac
9089      else
9090        ld_shlibs=no
9091      fi
9092      ;;
9093
9094    netbsd*)
9095      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9096	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9097	wlarc=
9098      else
9099	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9101      fi
9102      ;;
9103
9104    solaris*)
9105      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9106	ld_shlibs=no
9107	cat <<_LT_EOF 1>&2
9108
9109*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9110*** create shared libraries on Solaris systems.  Therefore, libtool
9111*** is disabling shared libraries support.  We urge you to upgrade GNU
9112*** binutils to release 2.9.1 or newer.  Another option is to modify
9113*** your PATH or compiler configuration so that the native linker is
9114*** used, and then restart.
9115
9116_LT_EOF
9117      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9118	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9120      else
9121	ld_shlibs=no
9122      fi
9123      ;;
9124
9125    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9126      case `$LD -v 2>&1` in
9127        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9128	ld_shlibs=no
9129	cat <<_LT_EOF 1>&2
9130
9131*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9132*** reliably create shared libraries on SCO systems.  Therefore, libtool
9133*** is disabling shared libraries support.  We urge you to upgrade GNU
9134*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9135*** your PATH or compiler configuration so that the native linker is
9136*** used, and then restart.
9137
9138_LT_EOF
9139	;;
9140	*)
9141	  # For security reasons, it is highly recommended that you always
9142	  # use absolute paths for naming shared libraries, and exclude the
9143	  # DT_RUNPATH tag from executables and libraries.  But doing so
9144	  # requires that you compile everything twice, which is a pain.
9145	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9146	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9147	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149	  else
9150	    ld_shlibs=no
9151	  fi
9152	;;
9153      esac
9154      ;;
9155
9156    sunos4*)
9157      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9158      wlarc=
9159      hardcode_direct=yes
9160      hardcode_shlibpath_var=no
9161      ;;
9162
9163    *)
9164      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9165	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9167      else
9168	ld_shlibs=no
9169      fi
9170      ;;
9171    esac
9172
9173    if test "$ld_shlibs" = no; then
9174      runpath_var=
9175      hardcode_libdir_flag_spec=
9176      export_dynamic_flag_spec=
9177      whole_archive_flag_spec=
9178    fi
9179  else
9180    # PORTME fill in a description of your system's linker (not GNU ld)
9181    case $host_os in
9182    aix3*)
9183      allow_undefined_flag=unsupported
9184      always_export_symbols=yes
9185      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'
9186      # Note: this linker hardcodes the directories in LIBPATH if there
9187      # are no directories specified by -L.
9188      hardcode_minus_L=yes
9189      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9190	# Neither direct hardcoding nor static linking is supported with a
9191	# broken collect2.
9192	hardcode_direct=unsupported
9193      fi
9194      ;;
9195
9196    aix[4-9]*)
9197      if test "$host_cpu" = ia64; then
9198	# On IA64, the linker does run time linking by default, so we don't
9199	# have to do anything special.
9200	aix_use_runtimelinking=no
9201	exp_sym_flag='-Bexport'
9202	no_entry_flag=""
9203      else
9204	# If we're using GNU nm, then we don't want the "-C" option.
9205	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9206	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9207	  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'
9208	else
9209	  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'
9210	fi
9211	aix_use_runtimelinking=no
9212
9213	# Test if we are trying to use run time linking or normal
9214	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9215	# need to do runtime linking.
9216	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9217	  for ld_flag in $LDFLAGS; do
9218	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9219	    aix_use_runtimelinking=yes
9220	    break
9221	  fi
9222	  done
9223	  ;;
9224	esac
9225
9226	exp_sym_flag='-bexport'
9227	no_entry_flag='-bnoentry'
9228      fi
9229
9230      # When large executables or shared objects are built, AIX ld can
9231      # have problems creating the table of contents.  If linking a library
9232      # or program results in "error TOC overflow" add -mminimal-toc to
9233      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9234      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9235
9236      archive_cmds=''
9237      hardcode_direct=yes
9238      hardcode_direct_absolute=yes
9239      hardcode_libdir_separator=':'
9240      link_all_deplibs=yes
9241      file_list_spec='${wl}-f,'
9242
9243      if test "$GCC" = yes; then
9244	case $host_os in aix4.[012]|aix4.[012].*)
9245	# We only want to do this on AIX 4.2 and lower, the check
9246	# below for broken collect2 doesn't work under 4.3+
9247	  collect2name=`${CC} -print-prog-name=collect2`
9248	  if test -f "$collect2name" &&
9249	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9250	  then
9251	  # We have reworked collect2
9252	  :
9253	  else
9254	  # We have old collect2
9255	  hardcode_direct=unsupported
9256	  # It fails to find uninstalled libraries when the uninstalled
9257	  # path is not listed in the libpath.  Setting hardcode_minus_L
9258	  # to unsupported forces relinking
9259	  hardcode_minus_L=yes
9260	  hardcode_libdir_flag_spec='-L$libdir'
9261	  hardcode_libdir_separator=
9262	  fi
9263	  ;;
9264	esac
9265	shared_flag='-shared'
9266	if test "$aix_use_runtimelinking" = yes; then
9267	  shared_flag="$shared_flag "'${wl}-G'
9268	fi
9269      else
9270	# not using gcc
9271	if test "$host_cpu" = ia64; then
9272	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9273	# chokes on -Wl,-G. The following line is correct:
9274	  shared_flag='-G'
9275	else
9276	  if test "$aix_use_runtimelinking" = yes; then
9277	    shared_flag='${wl}-G'
9278	  else
9279	    shared_flag='${wl}-bM:SRE'
9280	  fi
9281	fi
9282      fi
9283
9284      export_dynamic_flag_spec='${wl}-bexpall'
9285      # It seems that -bexpall does not export symbols beginning with
9286      # underscore (_), so it is better to generate a list of symbols to export.
9287      always_export_symbols=yes
9288      if test "$aix_use_runtimelinking" = yes; then
9289	# Warning - without using the other runtime loading flags (-brtl),
9290	# -berok will link without error, but may produce a broken library.
9291	allow_undefined_flag='-berok'
9292        # Determine the default libpath from the value encoded in an
9293        # empty executable.
9294        cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h.  */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h.  */
9300
9301int
9302main ()
9303{
9304
9305  ;
9306  return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (ac_try="$ac_link"
9311case "(($ac_try" in
9312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313  *) ac_try_echo=$ac_try;;
9314esac
9315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316$as_echo "$ac_try_echo") >&5
9317  (eval "$ac_link") 2>conftest.er1
9318  ac_status=$?
9319  grep -v '^ *+' conftest.er1 >conftest.err
9320  rm -f conftest.er1
9321  cat conftest.err >&5
9322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323  (exit $ac_status); } && {
9324	 test -z "$ac_c_werror_flag" ||
9325	 test ! -s conftest.err
9326       } && test -s conftest$ac_exeext && {
9327	 test "$cross_compiling" = yes ||
9328	 $as_test_x conftest$ac_exeext
9329       }; then
9330
9331lt_aix_libpath_sed='
9332    /Import File Strings/,/^$/ {
9333	/^0/ {
9334	    s/^0  *\(.*\)$/\1/
9335	    p
9336	}
9337    }'
9338aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9339# Check for a 64-bit object if we didn't find anything.
9340if test -z "$aix_libpath"; then
9341  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9342fi
9343else
9344  $as_echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347
9348fi
9349
9350rm -rf conftest.dSYM
9351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9352      conftest$ac_exeext conftest.$ac_ext
9353if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9354
9355        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9356        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"
9357      else
9358	if test "$host_cpu" = ia64; then
9359	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9360	  allow_undefined_flag="-z nodefs"
9361	  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"
9362	else
9363	 # Determine the default libpath from the value encoded in an
9364	 # empty executable.
9365	 cat >conftest.$ac_ext <<_ACEOF
9366/* confdefs.h.  */
9367_ACEOF
9368cat confdefs.h >>conftest.$ac_ext
9369cat >>conftest.$ac_ext <<_ACEOF
9370/* end confdefs.h.  */
9371
9372int
9373main ()
9374{
9375
9376  ;
9377  return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext conftest$ac_exeext
9381if { (ac_try="$ac_link"
9382case "(($ac_try" in
9383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384  *) ac_try_echo=$ac_try;;
9385esac
9386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9387$as_echo "$ac_try_echo") >&5
9388  (eval "$ac_link") 2>conftest.er1
9389  ac_status=$?
9390  grep -v '^ *+' conftest.er1 >conftest.err
9391  rm -f conftest.er1
9392  cat conftest.err >&5
9393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394  (exit $ac_status); } && {
9395	 test -z "$ac_c_werror_flag" ||
9396	 test ! -s conftest.err
9397       } && test -s conftest$ac_exeext && {
9398	 test "$cross_compiling" = yes ||
9399	 $as_test_x conftest$ac_exeext
9400       }; then
9401
9402lt_aix_libpath_sed='
9403    /Import File Strings/,/^$/ {
9404	/^0/ {
9405	    s/^0  *\(.*\)$/\1/
9406	    p
9407	}
9408    }'
9409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9410# Check for a 64-bit object if we didn't find anything.
9411if test -z "$aix_libpath"; then
9412  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9413fi
9414else
9415  $as_echo "$as_me: failed program was:" >&5
9416sed 's/^/| /' conftest.$ac_ext >&5
9417
9418
9419fi
9420
9421rm -rf conftest.dSYM
9422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9423      conftest$ac_exeext conftest.$ac_ext
9424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9425
9426	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9427	  # Warning - without using the other run time loading flags,
9428	  # -berok will link without error, but may produce a broken library.
9429	  no_undefined_flag=' ${wl}-bernotok'
9430	  allow_undefined_flag=' ${wl}-berok'
9431	  # Exported symbols can be pulled into shared objects from archives
9432	  whole_archive_flag_spec='$convenience'
9433	  archive_cmds_need_lc=yes
9434	  # This is similar to how AIX traditionally builds its shared libraries.
9435	  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'
9436	fi
9437      fi
9438      ;;
9439
9440    amigaos*)
9441      case $host_cpu in
9442      powerpc)
9443            # see comment about AmigaOS4 .so support
9444            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9445            archive_expsym_cmds=''
9446        ;;
9447      m68k)
9448            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)'
9449            hardcode_libdir_flag_spec='-L$libdir'
9450            hardcode_minus_L=yes
9451        ;;
9452      esac
9453      ;;
9454
9455    bsdi[45]*)
9456      export_dynamic_flag_spec=-rdynamic
9457      ;;
9458
9459    cygwin* | mingw* | pw32* | cegcc*)
9460      # When not using gcc, we currently assume that we are using
9461      # Microsoft Visual C++.
9462      # hardcode_libdir_flag_spec is actually meaningless, as there is
9463      # no search path for DLLs.
9464      hardcode_libdir_flag_spec=' '
9465      allow_undefined_flag=unsupported
9466      # Tell ltmain to make .lib files, not .a files.
9467      libext=lib
9468      # Tell ltmain to make .dll files, not .so files.
9469      shrext_cmds=".dll"
9470      # FIXME: Setting linknames here is a bad hack.
9471      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9472      # The linker will automatically build a .lib file if we build a DLL.
9473      old_archive_from_new_cmds='true'
9474      # FIXME: Should let the user specify the lib program.
9475      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9476      fix_srcfile_path='`cygpath -w "$srcfile"`'
9477      enable_shared_with_static_runtimes=yes
9478      ;;
9479
9480    darwin* | rhapsody*)
9481
9482
9483  archive_cmds_need_lc=no
9484  hardcode_direct=no
9485  hardcode_automatic=yes
9486  hardcode_shlibpath_var=unsupported
9487  whole_archive_flag_spec=''
9488  link_all_deplibs=yes
9489  allow_undefined_flag="$_lt_dar_allow_undefined"
9490  case $cc_basename in
9491     ifort*) _lt_dar_can_shared=yes ;;
9492     *) _lt_dar_can_shared=$GCC ;;
9493  esac
9494  if test "$_lt_dar_can_shared" = "yes"; then
9495    output_verbose_link_cmd=echo
9496    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9497    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9498    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}"
9499    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}"
9500
9501  else
9502  ld_shlibs=no
9503  fi
9504
9505      ;;
9506
9507    dgux*)
9508      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9509      hardcode_libdir_flag_spec='-L$libdir'
9510      hardcode_shlibpath_var=no
9511      ;;
9512
9513    freebsd1*)
9514      ld_shlibs=no
9515      ;;
9516
9517    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9518    # support.  Future versions do this automatically, but an explicit c++rt0.o
9519    # does not break anything, and helps significantly (at the cost of a little
9520    # extra space).
9521    freebsd2.2*)
9522      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9523      hardcode_libdir_flag_spec='-R$libdir'
9524      hardcode_direct=yes
9525      hardcode_shlibpath_var=no
9526      ;;
9527
9528    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9529    freebsd2*)
9530      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531      hardcode_direct=yes
9532      hardcode_minus_L=yes
9533      hardcode_shlibpath_var=no
9534      ;;
9535
9536    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9537    freebsd* | dragonfly*)
9538      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9539      hardcode_libdir_flag_spec='-R$libdir'
9540      hardcode_direct=yes
9541      hardcode_shlibpath_var=no
9542      ;;
9543
9544    hpux9*)
9545      if test "$GCC" = yes; then
9546	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'
9547      else
9548	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'
9549      fi
9550      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551      hardcode_libdir_separator=:
9552      hardcode_direct=yes
9553
9554      # hardcode_minus_L: Not really in the search PATH,
9555      # but as the default location of the library.
9556      hardcode_minus_L=yes
9557      export_dynamic_flag_spec='${wl}-E'
9558      ;;
9559
9560    hpux10*)
9561      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9562	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9563      else
9564	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9565      fi
9566      if test "$with_gnu_ld" = no; then
9567	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9568	hardcode_libdir_flag_spec_ld='+b $libdir'
9569	hardcode_libdir_separator=:
9570	hardcode_direct=yes
9571	hardcode_direct_absolute=yes
9572	export_dynamic_flag_spec='${wl}-E'
9573	# hardcode_minus_L: Not really in the search PATH,
9574	# but as the default location of the library.
9575	hardcode_minus_L=yes
9576      fi
9577      ;;
9578
9579    hpux11*)
9580      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9581	case $host_cpu in
9582	hppa*64*)
9583	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9584	  ;;
9585	ia64*)
9586	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9587	  ;;
9588	*)
9589	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9590	  ;;
9591	esac
9592      else
9593	case $host_cpu in
9594	hppa*64*)
9595	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9596	  ;;
9597	ia64*)
9598	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9599	  ;;
9600	*)
9601	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9602	  ;;
9603	esac
9604      fi
9605      if test "$with_gnu_ld" = no; then
9606	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9607	hardcode_libdir_separator=:
9608
9609	case $host_cpu in
9610	hppa*64*|ia64*)
9611	  hardcode_direct=no
9612	  hardcode_shlibpath_var=no
9613	  ;;
9614	*)
9615	  hardcode_direct=yes
9616	  hardcode_direct_absolute=yes
9617	  export_dynamic_flag_spec='${wl}-E'
9618
9619	  # hardcode_minus_L: Not really in the search PATH,
9620	  # but as the default location of the library.
9621	  hardcode_minus_L=yes
9622	  ;;
9623	esac
9624      fi
9625      ;;
9626
9627    irix5* | irix6* | nonstopux*)
9628      if test "$GCC" = yes; then
9629	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'
9630	# Try to use the -exported_symbol ld option, if it does not
9631	# work, assume that -exports_file does not work either and
9632	# implicitly export all symbols.
9633        save_LDFLAGS="$LDFLAGS"
9634        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9635        cat >conftest.$ac_ext <<_ACEOF
9636int foo(void) {}
9637_ACEOF
9638rm -f conftest.$ac_objext conftest$ac_exeext
9639if { (ac_try="$ac_link"
9640case "(($ac_try" in
9641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642  *) ac_try_echo=$ac_try;;
9643esac
9644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9645$as_echo "$ac_try_echo") >&5
9646  (eval "$ac_link") 2>conftest.er1
9647  ac_status=$?
9648  grep -v '^ *+' conftest.er1 >conftest.err
9649  rm -f conftest.er1
9650  cat conftest.err >&5
9651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652  (exit $ac_status); } && {
9653	 test -z "$ac_c_werror_flag" ||
9654	 test ! -s conftest.err
9655       } && test -s conftest$ac_exeext && {
9656	 test "$cross_compiling" = yes ||
9657	 $as_test_x conftest$ac_exeext
9658       }; then
9659  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'
9660
9661else
9662  $as_echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
9664
9665
9666fi
9667
9668rm -rf conftest.dSYM
9669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9670      conftest$ac_exeext conftest.$ac_ext
9671        LDFLAGS="$save_LDFLAGS"
9672      else
9673	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'
9674	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'
9675      fi
9676      archive_cmds_need_lc='no'
9677      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678      hardcode_libdir_separator=:
9679      inherit_rpath=yes
9680      link_all_deplibs=yes
9681      ;;
9682
9683    netbsd*)
9684      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9685	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9686      else
9687	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9688      fi
9689      hardcode_libdir_flag_spec='-R$libdir'
9690      hardcode_direct=yes
9691      hardcode_shlibpath_var=no
9692      ;;
9693
9694    newsos6)
9695      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696      hardcode_direct=yes
9697      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698      hardcode_libdir_separator=:
9699      hardcode_shlibpath_var=no
9700      ;;
9701
9702    *nto* | *qnx*)
9703      ;;
9704
9705    openbsd*)
9706      if test -f /usr/libexec/ld.so; then
9707	hardcode_direct=yes
9708	hardcode_shlibpath_var=no
9709	hardcode_direct_absolute=yes
9710	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9711	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9712	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9713	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9714	  export_dynamic_flag_spec='${wl}-E'
9715	else
9716	  case $host_os in
9717	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9718	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719	     hardcode_libdir_flag_spec='-R$libdir'
9720	     ;;
9721	   *)
9722	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9723	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9724	     ;;
9725	  esac
9726	fi
9727      else
9728	ld_shlibs=no
9729      fi
9730      ;;
9731
9732    os2*)
9733      hardcode_libdir_flag_spec='-L$libdir'
9734      hardcode_minus_L=yes
9735      allow_undefined_flag=unsupported
9736      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'
9737      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9738      ;;
9739
9740    osf3*)
9741      if test "$GCC" = yes; then
9742	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9743	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'
9744      else
9745	allow_undefined_flag=' -expect_unresolved \*'
9746	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'
9747      fi
9748      archive_cmds_need_lc='no'
9749      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9750      hardcode_libdir_separator=:
9751      ;;
9752
9753    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9754      if test "$GCC" = yes; then
9755	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9756	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'
9757	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758      else
9759	allow_undefined_flag=' -expect_unresolved \*'
9760	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'
9761	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~
9762	$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'
9763
9764	# Both c and cxx compiler support -rpath directly
9765	hardcode_libdir_flag_spec='-rpath $libdir'
9766      fi
9767      archive_cmds_need_lc='no'
9768      hardcode_libdir_separator=:
9769      ;;
9770
9771    solaris*)
9772      no_undefined_flag=' -z defs'
9773      if test "$GCC" = yes; then
9774	wlarc='${wl}'
9775	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9777	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9778      else
9779	case `$CC -V 2>&1` in
9780	*"Compilers 5.0"*)
9781	  wlarc=''
9782	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9784	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9785	  ;;
9786	*)
9787	  wlarc='${wl}'
9788	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9789	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9790	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9791	  ;;
9792	esac
9793      fi
9794      hardcode_libdir_flag_spec='-R$libdir'
9795      hardcode_shlibpath_var=no
9796      case $host_os in
9797      solaris2.[0-5] | solaris2.[0-5].*) ;;
9798      *)
9799	# The compiler driver will combine and reorder linker options,
9800	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9801	# but is careful enough not to reorder.
9802	# Supported since Solaris 2.6 (maybe 2.5.1?)
9803	if test "$GCC" = yes; then
9804	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9805	else
9806	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9807	fi
9808	;;
9809      esac
9810      link_all_deplibs=yes
9811      ;;
9812
9813    sunos4*)
9814      if test "x$host_vendor" = xsequent; then
9815	# Use $CC to link under sequent, because it throws in some extra .o
9816	# files that make .init and .fini sections work.
9817	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9818      else
9819	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9820      fi
9821      hardcode_libdir_flag_spec='-L$libdir'
9822      hardcode_direct=yes
9823      hardcode_minus_L=yes
9824      hardcode_shlibpath_var=no
9825      ;;
9826
9827    sysv4)
9828      case $host_vendor in
9829	sni)
9830	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831	  hardcode_direct=yes # is this really true???
9832	;;
9833	siemens)
9834	  ## LD is ld it makes a PLAMLIB
9835	  ## CC just makes a GrossModule.
9836	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9837	  reload_cmds='$CC -r -o $output$reload_objs'
9838	  hardcode_direct=no
9839        ;;
9840	motorola)
9841	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9843	;;
9844      esac
9845      runpath_var='LD_RUN_PATH'
9846      hardcode_shlibpath_var=no
9847      ;;
9848
9849    sysv4.3*)
9850      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9851      hardcode_shlibpath_var=no
9852      export_dynamic_flag_spec='-Bexport'
9853      ;;
9854
9855    sysv4*MP*)
9856      if test -d /usr/nec; then
9857	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858	hardcode_shlibpath_var=no
9859	runpath_var=LD_RUN_PATH
9860	hardcode_runpath_var=yes
9861	ld_shlibs=yes
9862      fi
9863      ;;
9864
9865    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9866      no_undefined_flag='${wl}-z,text'
9867      archive_cmds_need_lc=no
9868      hardcode_shlibpath_var=no
9869      runpath_var='LD_RUN_PATH'
9870
9871      if test "$GCC" = yes; then
9872	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9873	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874      else
9875	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877      fi
9878      ;;
9879
9880    sysv5* | sco3.2v5* | sco5v6*)
9881      # Note: We can NOT use -z defs as we might desire, because we do not
9882      # link with -lc, and that would cause any symbols used from libc to
9883      # always be unresolved, which means just about no library would
9884      # ever link correctly.  If we're not using GNU ld we use -z text
9885      # though, which does catch some bad symbols but isn't as heavy-handed
9886      # as -z defs.
9887      no_undefined_flag='${wl}-z,text'
9888      allow_undefined_flag='${wl}-z,nodefs'
9889      archive_cmds_need_lc=no
9890      hardcode_shlibpath_var=no
9891      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9892      hardcode_libdir_separator=':'
9893      link_all_deplibs=yes
9894      export_dynamic_flag_spec='${wl}-Bexport'
9895      runpath_var='LD_RUN_PATH'
9896
9897      if test "$GCC" = yes; then
9898	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9899	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900      else
9901	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903      fi
9904      ;;
9905
9906    uts4*)
9907      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908      hardcode_libdir_flag_spec='-L$libdir'
9909      hardcode_shlibpath_var=no
9910      ;;
9911
9912    *)
9913      ld_shlibs=no
9914      ;;
9915    esac
9916
9917    if test x$host_vendor = xsni; then
9918      case $host in
9919      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9920	export_dynamic_flag_spec='${wl}-Blargedynsym'
9921	;;
9922      esac
9923    fi
9924  fi
9925
9926{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9927$as_echo "$ld_shlibs" >&6; }
9928test "$ld_shlibs" = no && can_build_shared=no
9929
9930with_gnu_ld=$with_gnu_ld
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946#
9947# Do we need to explicitly link libc?
9948#
9949case "x$archive_cmds_need_lc" in
9950x|xyes)
9951  # Assume -lc should be added
9952  archive_cmds_need_lc=yes
9953
9954  if test "$enable_shared" = yes && test "$GCC" = yes; then
9955    case $archive_cmds in
9956    *'~'*)
9957      # FIXME: we may have to deal with multi-command sequences.
9958      ;;
9959    '$CC '*)
9960      # Test whether the compiler implicitly links with -lc since on some
9961      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9962      # to ld, don't add -lc before -lgcc.
9963      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9964$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9965      $RM conftest*
9966      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9967
9968      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969  (eval $ac_compile) 2>&5
9970  ac_status=$?
9971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } 2>conftest.err; then
9973        soname=conftest
9974        lib=conftest
9975        libobjs=conftest.$ac_objext
9976        deplibs=
9977        wl=$lt_prog_compiler_wl
9978	pic_flag=$lt_prog_compiler_pic
9979        compiler_flags=-v
9980        linker_flags=-v
9981        verstring=
9982        output_objdir=.
9983        libname=conftest
9984        lt_save_allow_undefined_flag=$allow_undefined_flag
9985        allow_undefined_flag=
9986        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9987  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9988  ac_status=$?
9989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990  (exit $ac_status); }
9991        then
9992	  archive_cmds_need_lc=no
9993        else
9994	  archive_cmds_need_lc=yes
9995        fi
9996        allow_undefined_flag=$lt_save_allow_undefined_flag
9997      else
9998        cat conftest.err 1>&5
9999      fi
10000      $RM conftest*
10001      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10002$as_echo "$archive_cmds_need_lc" >&6; }
10003      ;;
10004    esac
10005  fi
10006  ;;
10007esac
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10166$as_echo_n "checking dynamic linker characteristics... " >&6; }
10167
10168if test "$GCC" = yes; then
10169  case $host_os in
10170    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10171    *) lt_awk_arg="/^libraries:/" ;;
10172  esac
10173  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10174  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10175    # if the path contains ";" then we assume it to be the separator
10176    # otherwise default to the standard path separator (i.e. ":") - it is
10177    # assumed that no part of a normal pathname contains ";" but that should
10178    # okay in the real world where ";" in dirpaths is itself problematic.
10179    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10180  else
10181    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10182  fi
10183  # Ok, now we have the path, separated by spaces, we can step through it
10184  # and add multilib dir if necessary.
10185  lt_tmp_lt_search_path_spec=
10186  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10187  for lt_sys_path in $lt_search_path_spec; do
10188    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10189      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10190    else
10191      test -d "$lt_sys_path" && \
10192	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10193    fi
10194  done
10195  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10196BEGIN {RS=" "; FS="/|\n";} {
10197  lt_foo="";
10198  lt_count=0;
10199  for (lt_i = NF; lt_i > 0; lt_i--) {
10200    if ($lt_i != "" && $lt_i != ".") {
10201      if ($lt_i == "..") {
10202        lt_count++;
10203      } else {
10204        if (lt_count == 0) {
10205          lt_foo="/" $lt_i lt_foo;
10206        } else {
10207          lt_count--;
10208        }
10209      }
10210    }
10211  }
10212  if (lt_foo != "") { lt_freq[lt_foo]++; }
10213  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10214}'`
10215  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10216else
10217  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10218fi
10219library_names_spec=
10220libname_spec='lib$name'
10221soname_spec=
10222shrext_cmds=".so"
10223postinstall_cmds=
10224postuninstall_cmds=
10225finish_cmds=
10226finish_eval=
10227shlibpath_var=
10228shlibpath_overrides_runpath=unknown
10229version_type=none
10230dynamic_linker="$host_os ld.so"
10231sys_lib_dlsearch_path_spec="/lib /usr/lib"
10232need_lib_prefix=unknown
10233hardcode_into_libs=no
10234
10235# when you set need_version to no, make sure it does not cause -set_version
10236# flags to be left without arguments
10237need_version=unknown
10238
10239case $host_os in
10240aix3*)
10241  version_type=linux
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10243  shlibpath_var=LIBPATH
10244
10245  # AIX 3 has no versioning support, so we append a major version to the name.
10246  soname_spec='${libname}${release}${shared_ext}$major'
10247  ;;
10248
10249aix[4-9]*)
10250  version_type=linux
10251  need_lib_prefix=no
10252  need_version=no
10253  hardcode_into_libs=yes
10254  if test "$host_cpu" = ia64; then
10255    # AIX 5 supports IA64
10256    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10257    shlibpath_var=LD_LIBRARY_PATH
10258  else
10259    # With GCC up to 2.95.x, collect2 would create an import file
10260    # for dependence libraries.  The import file would start with
10261    # the line `#! .'.  This would cause the generated library to
10262    # depend on `.', always an invalid library.  This was fixed in
10263    # development snapshots of GCC prior to 3.0.
10264    case $host_os in
10265      aix4 | aix4.[01] | aix4.[01].*)
10266      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10267	   echo ' yes '
10268	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10269	:
10270      else
10271	can_build_shared=no
10272      fi
10273      ;;
10274    esac
10275    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10276    # soname into executable. Probably we can add versioning support to
10277    # collect2, so additional links can be useful in future.
10278    if test "$aix_use_runtimelinking" = yes; then
10279      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10280      # instead of lib<name>.a to let people know that these are not
10281      # typical AIX shared libraries.
10282      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283    else
10284      # We preserve .a as extension for shared libraries through AIX4.2
10285      # and later when we are not doing run time linking.
10286      library_names_spec='${libname}${release}.a $libname.a'
10287      soname_spec='${libname}${release}${shared_ext}$major'
10288    fi
10289    shlibpath_var=LIBPATH
10290  fi
10291  ;;
10292
10293amigaos*)
10294  case $host_cpu in
10295  powerpc)
10296    # Since July 2007 AmigaOS4 officially supports .so libraries.
10297    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299    ;;
10300  m68k)
10301    library_names_spec='$libname.ixlibrary $libname.a'
10302    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10303    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'
10304    ;;
10305  esac
10306  ;;
10307
10308beos*)
10309  library_names_spec='${libname}${shared_ext}'
10310  dynamic_linker="$host_os ld.so"
10311  shlibpath_var=LIBRARY_PATH
10312  ;;
10313
10314bsdi[45]*)
10315  version_type=linux
10316  need_version=no
10317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318  soname_spec='${libname}${release}${shared_ext}$major'
10319  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10320  shlibpath_var=LD_LIBRARY_PATH
10321  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10322  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10323  # the default ld.so.conf also contains /usr/contrib/lib and
10324  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10325  # libtool to hard-code these into programs
10326  ;;
10327
10328cygwin* | mingw* | pw32* | cegcc*)
10329  version_type=windows
10330  shrext_cmds=".dll"
10331  need_version=no
10332  need_lib_prefix=no
10333
10334  case $GCC,$host_os in
10335  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10336    library_names_spec='$libname.dll.a'
10337    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10338    postinstall_cmds='base_file=`basename \${file}`~
10339      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10340      dldir=$destdir/`dirname \$dlpath`~
10341      test -d \$dldir || mkdir -p \$dldir~
10342      $install_prog $dir/$dlname \$dldir/$dlname~
10343      chmod a+x \$dldir/$dlname~
10344      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10345        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10346      fi'
10347    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10348      dlpath=$dir/\$dldll~
10349       $RM \$dlpath'
10350    shlibpath_overrides_runpath=yes
10351
10352    case $host_os in
10353    cygwin*)
10354      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10355      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10356      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10357      ;;
10358    mingw* | cegcc*)
10359      # MinGW DLLs use traditional 'lib' prefix
10360      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10361      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10362      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10363        # It is most probably a Windows format PATH printed by
10364        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10365        # path with ; separators, and with drive letters. We can handle the
10366        # drive letters (cygwin fileutils understands them), so leave them,
10367        # especially as we might pass files found there to a mingw objdump,
10368        # which wouldn't understand a cygwinified path. Ahh.
10369        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10370      else
10371        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10372      fi
10373      ;;
10374    pw32*)
10375      # pw32 DLLs use 'pw' prefix rather than 'lib'
10376      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10377      ;;
10378    esac
10379    ;;
10380
10381  *)
10382    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10383    ;;
10384  esac
10385  dynamic_linker='Win32 ld.exe'
10386  # FIXME: first we should search . and the directory the executable is in
10387  shlibpath_var=PATH
10388  ;;
10389
10390darwin* | rhapsody*)
10391  dynamic_linker="$host_os dyld"
10392  version_type=darwin
10393  need_lib_prefix=no
10394  need_version=no
10395  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10396  soname_spec='${libname}${release}${major}$shared_ext'
10397  shlibpath_overrides_runpath=yes
10398  shlibpath_var=DYLD_LIBRARY_PATH
10399  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10400
10401  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10402  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10403  ;;
10404
10405dgux*)
10406  version_type=linux
10407  need_lib_prefix=no
10408  need_version=no
10409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10410  soname_spec='${libname}${release}${shared_ext}$major'
10411  shlibpath_var=LD_LIBRARY_PATH
10412  ;;
10413
10414freebsd1*)
10415  dynamic_linker=no
10416  ;;
10417
10418freebsd* | dragonfly*)
10419  # DragonFly does not have aout.  When/if they implement a new
10420  # versioning mechanism, adjust this.
10421  if test -x /usr/bin/objformat; then
10422    objformat=`/usr/bin/objformat`
10423  else
10424    case $host_os in
10425    freebsd[123]*) objformat=aout ;;
10426    *) objformat=elf ;;
10427    esac
10428  fi
10429  version_type=freebsd-$objformat
10430  case $version_type in
10431    freebsd-elf*)
10432      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10433      need_version=no
10434      need_lib_prefix=no
10435      ;;
10436    freebsd-*)
10437      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10438      need_version=yes
10439      ;;
10440  esac
10441  shlibpath_var=LD_LIBRARY_PATH
10442  case $host_os in
10443  freebsd2*)
10444    shlibpath_overrides_runpath=yes
10445    ;;
10446  freebsd3.[01]* | freebsdelf3.[01]*)
10447    shlibpath_overrides_runpath=yes
10448    hardcode_into_libs=yes
10449    ;;
10450  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10451  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10452    shlibpath_overrides_runpath=no
10453    hardcode_into_libs=yes
10454    ;;
10455  *) # from 4.6 on, and DragonFly
10456    shlibpath_overrides_runpath=yes
10457    hardcode_into_libs=yes
10458    ;;
10459  esac
10460  ;;
10461
10462gnu*)
10463  version_type=linux
10464  need_lib_prefix=no
10465  need_version=no
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10467  soname_spec='${libname}${release}${shared_ext}$major'
10468  shlibpath_var=LD_LIBRARY_PATH
10469  hardcode_into_libs=yes
10470  ;;
10471
10472hpux9* | hpux10* | hpux11*)
10473  # Give a soname corresponding to the major version so that dld.sl refuses to
10474  # link against other versions.
10475  version_type=sunos
10476  need_lib_prefix=no
10477  need_version=no
10478  case $host_cpu in
10479  ia64*)
10480    shrext_cmds='.so'
10481    hardcode_into_libs=yes
10482    dynamic_linker="$host_os dld.so"
10483    shlibpath_var=LD_LIBRARY_PATH
10484    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486    soname_spec='${libname}${release}${shared_ext}$major'
10487    if test "X$HPUX_IA64_MODE" = X32; then
10488      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10489    else
10490      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10491    fi
10492    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493    ;;
10494  hppa*64*)
10495    shrext_cmds='.sl'
10496    hardcode_into_libs=yes
10497    dynamic_linker="$host_os dld.sl"
10498    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10499    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501    soname_spec='${libname}${release}${shared_ext}$major'
10502    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10503    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10504    ;;
10505  *)
10506    shrext_cmds='.sl'
10507    dynamic_linker="$host_os dld.sl"
10508    shlibpath_var=SHLIB_PATH
10509    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511    soname_spec='${libname}${release}${shared_ext}$major'
10512    ;;
10513  esac
10514  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10515  postinstall_cmds='chmod 555 $lib'
10516  ;;
10517
10518interix[3-9]*)
10519  version_type=linux
10520  need_lib_prefix=no
10521  need_version=no
10522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10523  soname_spec='${libname}${release}${shared_ext}$major'
10524  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10525  shlibpath_var=LD_LIBRARY_PATH
10526  shlibpath_overrides_runpath=no
10527  hardcode_into_libs=yes
10528  ;;
10529
10530irix5* | irix6* | nonstopux*)
10531  case $host_os in
10532    nonstopux*) version_type=nonstopux ;;
10533    *)
10534	if test "$lt_cv_prog_gnu_ld" = yes; then
10535		version_type=linux
10536	else
10537		version_type=irix
10538	fi ;;
10539  esac
10540  need_lib_prefix=no
10541  need_version=no
10542  soname_spec='${libname}${release}${shared_ext}$major'
10543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10544  case $host_os in
10545  irix5* | nonstopux*)
10546    libsuff= shlibsuff=
10547    ;;
10548  *)
10549    case $LD in # libtool.m4 will add one of these switches to LD
10550    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10551      libsuff= shlibsuff= libmagic=32-bit;;
10552    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10553      libsuff=32 shlibsuff=N32 libmagic=N32;;
10554    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10555      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10556    *) libsuff= shlibsuff= libmagic=never-match;;
10557    esac
10558    ;;
10559  esac
10560  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10561  shlibpath_overrides_runpath=no
10562  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10563  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10564  hardcode_into_libs=yes
10565  ;;
10566
10567# No shared lib support for Linux oldld, aout, or coff.
10568linux*oldld* | linux*aout* | linux*coff*)
10569  dynamic_linker=no
10570  ;;
10571
10572# This must be Linux ELF.
10573linux* | k*bsd*-gnu)
10574  version_type=linux
10575  need_lib_prefix=no
10576  need_version=no
10577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578  soname_spec='${libname}${release}${shared_ext}$major'
10579  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10580  shlibpath_var=LD_LIBRARY_PATH
10581  shlibpath_overrides_runpath=no
10582  # Some binutils ld are patched to set DT_RUNPATH
10583  save_LDFLAGS=$LDFLAGS
10584  save_libdir=$libdir
10585  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10586       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10587  cat >conftest.$ac_ext <<_ACEOF
10588/* confdefs.h.  */
10589_ACEOF
10590cat confdefs.h >>conftest.$ac_ext
10591cat >>conftest.$ac_ext <<_ACEOF
10592/* end confdefs.h.  */
10593
10594int
10595main ()
10596{
10597
10598  ;
10599  return 0;
10600}
10601_ACEOF
10602rm -f conftest.$ac_objext conftest$ac_exeext
10603if { (ac_try="$ac_link"
10604case "(($ac_try" in
10605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606  *) ac_try_echo=$ac_try;;
10607esac
10608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609$as_echo "$ac_try_echo") >&5
10610  (eval "$ac_link") 2>conftest.er1
10611  ac_status=$?
10612  grep -v '^ *+' conftest.er1 >conftest.err
10613  rm -f conftest.er1
10614  cat conftest.err >&5
10615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } && {
10617	 test -z "$ac_c_werror_flag" ||
10618	 test ! -s conftest.err
10619       } && test -s conftest$ac_exeext && {
10620	 test "$cross_compiling" = yes ||
10621	 $as_test_x conftest$ac_exeext
10622       }; then
10623  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10624  shlibpath_overrides_runpath=yes
10625fi
10626
10627else
10628  $as_echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631
10632fi
10633
10634rm -rf conftest.dSYM
10635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10636      conftest$ac_exeext conftest.$ac_ext
10637  LDFLAGS=$save_LDFLAGS
10638  libdir=$save_libdir
10639
10640  # This implies no fast_install, which is unacceptable.
10641  # Some rework will be needed to allow for fast_install
10642  # before this can be enabled.
10643  hardcode_into_libs=yes
10644
10645  # Add ABI-specific directories to the system library path.
10646  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10647
10648  # Append ld.so.conf contents to the search path
10649  if test -f /etc/ld.so.conf; then
10650    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' ' '`
10651    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10652  fi
10653
10654  # We used to test for /lib/ld.so.1 and disable shared libraries on
10655  # powerpc, because MkLinux only supported shared libraries with the
10656  # GNU dynamic linker.  Since this was broken with cross compilers,
10657  # most powerpc-linux boxes support dynamic linking these days and
10658  # people can always --disable-shared, the test was removed, and we
10659  # assume the GNU/Linux dynamic linker is in use.
10660  dynamic_linker='GNU/Linux ld.so'
10661  ;;
10662
10663netbsd*)
10664  version_type=sunos
10665  need_lib_prefix=no
10666  need_version=no
10667  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10668    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10669    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10670    dynamic_linker='NetBSD (a.out) ld.so'
10671  else
10672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10673    soname_spec='${libname}${release}${shared_ext}$major'
10674    dynamic_linker='NetBSD ld.elf_so'
10675  fi
10676  shlibpath_var=LD_LIBRARY_PATH
10677  shlibpath_overrides_runpath=yes
10678  hardcode_into_libs=yes
10679  ;;
10680
10681newsos6)
10682  version_type=linux
10683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684  shlibpath_var=LD_LIBRARY_PATH
10685  shlibpath_overrides_runpath=yes
10686  ;;
10687
10688*nto* | *qnx*)
10689  version_type=qnx
10690  need_lib_prefix=no
10691  need_version=no
10692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693  soname_spec='${libname}${release}${shared_ext}$major'
10694  shlibpath_var=LD_LIBRARY_PATH
10695  shlibpath_overrides_runpath=no
10696  hardcode_into_libs=yes
10697  dynamic_linker='ldqnx.so'
10698  ;;
10699
10700openbsd*)
10701  version_type=sunos
10702  sys_lib_dlsearch_path_spec="/usr/lib"
10703  need_lib_prefix=no
10704  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10705  case $host_os in
10706    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10707    *)				need_version=no  ;;
10708  esac
10709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10710  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10711  shlibpath_var=LD_LIBRARY_PATH
10712  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10713    case $host_os in
10714      openbsd2.[89] | openbsd2.[89].*)
10715	shlibpath_overrides_runpath=no
10716	;;
10717      *)
10718	shlibpath_overrides_runpath=yes
10719	;;
10720      esac
10721  else
10722    shlibpath_overrides_runpath=yes
10723  fi
10724  ;;
10725
10726os2*)
10727  libname_spec='$name'
10728  shrext_cmds=".dll"
10729  need_lib_prefix=no
10730  library_names_spec='$libname${shared_ext} $libname.a'
10731  dynamic_linker='OS/2 ld.exe'
10732  shlibpath_var=LIBPATH
10733  ;;
10734
10735osf3* | osf4* | osf5*)
10736  version_type=osf
10737  need_lib_prefix=no
10738  need_version=no
10739  soname_spec='${libname}${release}${shared_ext}$major'
10740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741  shlibpath_var=LD_LIBRARY_PATH
10742  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10743  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10744  ;;
10745
10746rdos*)
10747  dynamic_linker=no
10748  ;;
10749
10750solaris*)
10751  version_type=linux
10752  need_lib_prefix=no
10753  need_version=no
10754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755  soname_spec='${libname}${release}${shared_ext}$major'
10756  shlibpath_var=LD_LIBRARY_PATH
10757  shlibpath_overrides_runpath=yes
10758  hardcode_into_libs=yes
10759  # ldd complains unless libraries are executable
10760  postinstall_cmds='chmod +x $lib'
10761  ;;
10762
10763sunos4*)
10764  version_type=sunos
10765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10766  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10767  shlibpath_var=LD_LIBRARY_PATH
10768  shlibpath_overrides_runpath=yes
10769  if test "$with_gnu_ld" = yes; then
10770    need_lib_prefix=no
10771  fi
10772  need_version=yes
10773  ;;
10774
10775sysv4 | sysv4.3*)
10776  version_type=linux
10777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778  soname_spec='${libname}${release}${shared_ext}$major'
10779  shlibpath_var=LD_LIBRARY_PATH
10780  case $host_vendor in
10781    sni)
10782      shlibpath_overrides_runpath=no
10783      need_lib_prefix=no
10784      runpath_var=LD_RUN_PATH
10785      ;;
10786    siemens)
10787      need_lib_prefix=no
10788      ;;
10789    motorola)
10790      need_lib_prefix=no
10791      need_version=no
10792      shlibpath_overrides_runpath=no
10793      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10794      ;;
10795  esac
10796  ;;
10797
10798sysv4*MP*)
10799  if test -d /usr/nec ;then
10800    version_type=linux
10801    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10802    soname_spec='$libname${shared_ext}.$major'
10803    shlibpath_var=LD_LIBRARY_PATH
10804  fi
10805  ;;
10806
10807sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10808  version_type=freebsd-elf
10809  need_lib_prefix=no
10810  need_version=no
10811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10812  soname_spec='${libname}${release}${shared_ext}$major'
10813  shlibpath_var=LD_LIBRARY_PATH
10814  shlibpath_overrides_runpath=yes
10815  hardcode_into_libs=yes
10816  if test "$with_gnu_ld" = yes; then
10817    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10818  else
10819    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10820    case $host_os in
10821      sco3.2v5*)
10822        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10823	;;
10824    esac
10825  fi
10826  sys_lib_dlsearch_path_spec='/usr/lib'
10827  ;;
10828
10829tpf*)
10830  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10831  version_type=linux
10832  need_lib_prefix=no
10833  need_version=no
10834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835  shlibpath_var=LD_LIBRARY_PATH
10836  shlibpath_overrides_runpath=no
10837  hardcode_into_libs=yes
10838  ;;
10839
10840uts4*)
10841  version_type=linux
10842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843  soname_spec='${libname}${release}${shared_ext}$major'
10844  shlibpath_var=LD_LIBRARY_PATH
10845  ;;
10846
10847*)
10848  dynamic_linker=no
10849  ;;
10850esac
10851{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10852$as_echo "$dynamic_linker" >&6; }
10853test "$dynamic_linker" = no && can_build_shared=no
10854
10855variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10856if test "$GCC" = yes; then
10857  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10858fi
10859
10860if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10861  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10862fi
10863if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10864  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10865fi
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  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10954$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10955hardcode_action=
10956if test -n "$hardcode_libdir_flag_spec" ||
10957   test -n "$runpath_var" ||
10958   test "X$hardcode_automatic" = "Xyes" ; then
10959
10960  # We can hardcode non-existent directories.
10961  if test "$hardcode_direct" != no &&
10962     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10963     # have to relink, otherwise we might link with an installed library
10964     # when we should be linking with a yet-to-be-installed one
10965     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10966     test "$hardcode_minus_L" != no; then
10967    # Linking always hardcodes the temporary library directory.
10968    hardcode_action=relink
10969  else
10970    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10971    hardcode_action=immediate
10972  fi
10973else
10974  # We cannot hardcode anything, or else we can only hardcode existing
10975  # directories.
10976  hardcode_action=unsupported
10977fi
10978{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10979$as_echo "$hardcode_action" >&6; }
10980
10981if test "$hardcode_action" = relink ||
10982   test "$inherit_rpath" = yes; then
10983  # Fast installation is not supported
10984  enable_fast_install=no
10985elif test "$shlibpath_overrides_runpath" = yes ||
10986     test "$enable_shared" = no; then
10987  # Fast installation is not necessary
10988  enable_fast_install=needless
10989fi
10990
10991
10992
10993
10994
10995
10996  if test "x$enable_dlopen" != xyes; then
10997  enable_dlopen=unknown
10998  enable_dlopen_self=unknown
10999  enable_dlopen_self_static=unknown
11000else
11001  lt_cv_dlopen=no
11002  lt_cv_dlopen_libs=
11003
11004  case $host_os in
11005  beos*)
11006    lt_cv_dlopen="load_add_on"
11007    lt_cv_dlopen_libs=
11008    lt_cv_dlopen_self=yes
11009    ;;
11010
11011  mingw* | pw32* | cegcc*)
11012    lt_cv_dlopen="LoadLibrary"
11013    lt_cv_dlopen_libs=
11014    ;;
11015
11016  cygwin*)
11017    lt_cv_dlopen="dlopen"
11018    lt_cv_dlopen_libs=
11019    ;;
11020
11021  darwin*)
11022  # if libdl is installed we need to link against it
11023    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11024$as_echo_n "checking for dlopen in -ldl... " >&6; }
11025if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11026  $as_echo_n "(cached) " >&6
11027else
11028  ac_check_lib_save_LIBS=$LIBS
11029LIBS="-ldl  $LIBS"
11030cat >conftest.$ac_ext <<_ACEOF
11031/* confdefs.h.  */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h.  */
11036
11037/* Override any GCC internal prototype to avoid an error.
11038   Use char because int might match the return type of a GCC
11039   builtin and then its argument prototype would still apply.  */
11040#ifdef __cplusplus
11041extern "C"
11042#endif
11043char dlopen ();
11044int
11045main ()
11046{
11047return dlopen ();
11048  ;
11049  return 0;
11050}
11051_ACEOF
11052rm -f conftest.$ac_objext conftest$ac_exeext
11053if { (ac_try="$ac_link"
11054case "(($ac_try" in
11055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056  *) ac_try_echo=$ac_try;;
11057esac
11058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11059$as_echo "$ac_try_echo") >&5
11060  (eval "$ac_link") 2>conftest.er1
11061  ac_status=$?
11062  grep -v '^ *+' conftest.er1 >conftest.err
11063  rm -f conftest.er1
11064  cat conftest.err >&5
11065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066  (exit $ac_status); } && {
11067	 test -z "$ac_c_werror_flag" ||
11068	 test ! -s conftest.err
11069       } && test -s conftest$ac_exeext && {
11070	 test "$cross_compiling" = yes ||
11071	 $as_test_x conftest$ac_exeext
11072       }; then
11073  ac_cv_lib_dl_dlopen=yes
11074else
11075  $as_echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078	ac_cv_lib_dl_dlopen=no
11079fi
11080
11081rm -rf conftest.dSYM
11082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11083      conftest$ac_exeext conftest.$ac_ext
11084LIBS=$ac_check_lib_save_LIBS
11085fi
11086{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11087$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11088if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11089  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11090else
11091
11092    lt_cv_dlopen="dyld"
11093    lt_cv_dlopen_libs=
11094    lt_cv_dlopen_self=yes
11095
11096fi
11097
11098    ;;
11099
11100  *)
11101    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11102$as_echo_n "checking for shl_load... " >&6; }
11103if test "${ac_cv_func_shl_load+set}" = set; then
11104  $as_echo_n "(cached) " >&6
11105else
11106  cat >conftest.$ac_ext <<_ACEOF
11107/* confdefs.h.  */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h.  */
11112/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11113   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11114#define shl_load innocuous_shl_load
11115
11116/* System header to define __stub macros and hopefully few prototypes,
11117    which can conflict with char shl_load (); below.
11118    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119    <limits.h> exists even on freestanding compilers.  */
11120
11121#ifdef __STDC__
11122# include <limits.h>
11123#else
11124# include <assert.h>
11125#endif
11126
11127#undef shl_load
11128
11129/* Override any GCC internal prototype to avoid an error.
11130   Use char because int might match the return type of a GCC
11131   builtin and then its argument prototype would still apply.  */
11132#ifdef __cplusplus
11133extern "C"
11134#endif
11135char shl_load ();
11136/* The GNU C library defines this for functions which it implements
11137    to always fail with ENOSYS.  Some functions are actually named
11138    something starting with __ and the normal name is an alias.  */
11139#if defined __stub_shl_load || defined __stub___shl_load
11140choke me
11141#endif
11142
11143int
11144main ()
11145{
11146return shl_load ();
11147  ;
11148  return 0;
11149}
11150_ACEOF
11151rm -f conftest.$ac_objext conftest$ac_exeext
11152if { (ac_try="$ac_link"
11153case "(($ac_try" in
11154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155  *) ac_try_echo=$ac_try;;
11156esac
11157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158$as_echo "$ac_try_echo") >&5
11159  (eval "$ac_link") 2>conftest.er1
11160  ac_status=$?
11161  grep -v '^ *+' conftest.er1 >conftest.err
11162  rm -f conftest.er1
11163  cat conftest.err >&5
11164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); } && {
11166	 test -z "$ac_c_werror_flag" ||
11167	 test ! -s conftest.err
11168       } && test -s conftest$ac_exeext && {
11169	 test "$cross_compiling" = yes ||
11170	 $as_test_x conftest$ac_exeext
11171       }; then
11172  ac_cv_func_shl_load=yes
11173else
11174  $as_echo "$as_me: failed program was:" >&5
11175sed 's/^/| /' conftest.$ac_ext >&5
11176
11177	ac_cv_func_shl_load=no
11178fi
11179
11180rm -rf conftest.dSYM
11181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11182      conftest$ac_exeext conftest.$ac_ext
11183fi
11184{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11185$as_echo "$ac_cv_func_shl_load" >&6; }
11186if test "x$ac_cv_func_shl_load" = x""yes; then
11187  lt_cv_dlopen="shl_load"
11188else
11189  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11190$as_echo_n "checking for shl_load in -ldld... " >&6; }
11191if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11192  $as_echo_n "(cached) " >&6
11193else
11194  ac_check_lib_save_LIBS=$LIBS
11195LIBS="-ldld  $LIBS"
11196cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h.  */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h.  */
11202
11203/* Override any GCC internal prototype to avoid an error.
11204   Use char because int might match the return type of a GCC
11205   builtin and then its argument prototype would still apply.  */
11206#ifdef __cplusplus
11207extern "C"
11208#endif
11209char shl_load ();
11210int
11211main ()
11212{
11213return shl_load ();
11214  ;
11215  return 0;
11216}
11217_ACEOF
11218rm -f conftest.$ac_objext conftest$ac_exeext
11219if { (ac_try="$ac_link"
11220case "(($ac_try" in
11221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222  *) ac_try_echo=$ac_try;;
11223esac
11224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11225$as_echo "$ac_try_echo") >&5
11226  (eval "$ac_link") 2>conftest.er1
11227  ac_status=$?
11228  grep -v '^ *+' conftest.er1 >conftest.err
11229  rm -f conftest.er1
11230  cat conftest.err >&5
11231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232  (exit $ac_status); } && {
11233	 test -z "$ac_c_werror_flag" ||
11234	 test ! -s conftest.err
11235       } && test -s conftest$ac_exeext && {
11236	 test "$cross_compiling" = yes ||
11237	 $as_test_x conftest$ac_exeext
11238       }; then
11239  ac_cv_lib_dld_shl_load=yes
11240else
11241  $as_echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
11244	ac_cv_lib_dld_shl_load=no
11245fi
11246
11247rm -rf conftest.dSYM
11248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11249      conftest$ac_exeext conftest.$ac_ext
11250LIBS=$ac_check_lib_save_LIBS
11251fi
11252{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11253$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11254if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11255  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11256else
11257  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11258$as_echo_n "checking for dlopen... " >&6; }
11259if test "${ac_cv_func_dlopen+set}" = set; then
11260  $as_echo_n "(cached) " >&6
11261else
11262  cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h.  */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h.  */
11268/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11269   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11270#define dlopen innocuous_dlopen
11271
11272/* System header to define __stub macros and hopefully few prototypes,
11273    which can conflict with char dlopen (); below.
11274    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11275    <limits.h> exists even on freestanding compilers.  */
11276
11277#ifdef __STDC__
11278# include <limits.h>
11279#else
11280# include <assert.h>
11281#endif
11282
11283#undef dlopen
11284
11285/* Override any GCC internal prototype to avoid an error.
11286   Use char because int might match the return type of a GCC
11287   builtin and then its argument prototype would still apply.  */
11288#ifdef __cplusplus
11289extern "C"
11290#endif
11291char dlopen ();
11292/* The GNU C library defines this for functions which it implements
11293    to always fail with ENOSYS.  Some functions are actually named
11294    something starting with __ and the normal name is an alias.  */
11295#if defined __stub_dlopen || defined __stub___dlopen
11296choke me
11297#endif
11298
11299int
11300main ()
11301{
11302return dlopen ();
11303  ;
11304  return 0;
11305}
11306_ACEOF
11307rm -f conftest.$ac_objext conftest$ac_exeext
11308if { (ac_try="$ac_link"
11309case "(($ac_try" in
11310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311  *) ac_try_echo=$ac_try;;
11312esac
11313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11314$as_echo "$ac_try_echo") >&5
11315  (eval "$ac_link") 2>conftest.er1
11316  ac_status=$?
11317  grep -v '^ *+' conftest.er1 >conftest.err
11318  rm -f conftest.er1
11319  cat conftest.err >&5
11320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321  (exit $ac_status); } && {
11322	 test -z "$ac_c_werror_flag" ||
11323	 test ! -s conftest.err
11324       } && test -s conftest$ac_exeext && {
11325	 test "$cross_compiling" = yes ||
11326	 $as_test_x conftest$ac_exeext
11327       }; then
11328  ac_cv_func_dlopen=yes
11329else
11330  $as_echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333	ac_cv_func_dlopen=no
11334fi
11335
11336rm -rf conftest.dSYM
11337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11338      conftest$ac_exeext conftest.$ac_ext
11339fi
11340{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11341$as_echo "$ac_cv_func_dlopen" >&6; }
11342if test "x$ac_cv_func_dlopen" = x""yes; then
11343  lt_cv_dlopen="dlopen"
11344else
11345  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11346$as_echo_n "checking for dlopen in -ldl... " >&6; }
11347if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11348  $as_echo_n "(cached) " >&6
11349else
11350  ac_check_lib_save_LIBS=$LIBS
11351LIBS="-ldl  $LIBS"
11352cat >conftest.$ac_ext <<_ACEOF
11353/* confdefs.h.  */
11354_ACEOF
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h.  */
11358
11359/* Override any GCC internal prototype to avoid an error.
11360   Use char because int might match the return type of a GCC
11361   builtin and then its argument prototype would still apply.  */
11362#ifdef __cplusplus
11363extern "C"
11364#endif
11365char dlopen ();
11366int
11367main ()
11368{
11369return dlopen ();
11370  ;
11371  return 0;
11372}
11373_ACEOF
11374rm -f conftest.$ac_objext conftest$ac_exeext
11375if { (ac_try="$ac_link"
11376case "(($ac_try" in
11377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378  *) ac_try_echo=$ac_try;;
11379esac
11380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381$as_echo "$ac_try_echo") >&5
11382  (eval "$ac_link") 2>conftest.er1
11383  ac_status=$?
11384  grep -v '^ *+' conftest.er1 >conftest.err
11385  rm -f conftest.er1
11386  cat conftest.err >&5
11387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388  (exit $ac_status); } && {
11389	 test -z "$ac_c_werror_flag" ||
11390	 test ! -s conftest.err
11391       } && test -s conftest$ac_exeext && {
11392	 test "$cross_compiling" = yes ||
11393	 $as_test_x conftest$ac_exeext
11394       }; then
11395  ac_cv_lib_dl_dlopen=yes
11396else
11397  $as_echo "$as_me: failed program was:" >&5
11398sed 's/^/| /' conftest.$ac_ext >&5
11399
11400	ac_cv_lib_dl_dlopen=no
11401fi
11402
11403rm -rf conftest.dSYM
11404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405      conftest$ac_exeext conftest.$ac_ext
11406LIBS=$ac_check_lib_save_LIBS
11407fi
11408{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11409$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11410if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11411  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11412else
11413  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11414$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11415if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11416  $as_echo_n "(cached) " >&6
11417else
11418  ac_check_lib_save_LIBS=$LIBS
11419LIBS="-lsvld  $LIBS"
11420cat >conftest.$ac_ext <<_ACEOF
11421/* confdefs.h.  */
11422_ACEOF
11423cat confdefs.h >>conftest.$ac_ext
11424cat >>conftest.$ac_ext <<_ACEOF
11425/* end confdefs.h.  */
11426
11427/* Override any GCC internal prototype to avoid an error.
11428   Use char because int might match the return type of a GCC
11429   builtin and then its argument prototype would still apply.  */
11430#ifdef __cplusplus
11431extern "C"
11432#endif
11433char dlopen ();
11434int
11435main ()
11436{
11437return dlopen ();
11438  ;
11439  return 0;
11440}
11441_ACEOF
11442rm -f conftest.$ac_objext conftest$ac_exeext
11443if { (ac_try="$ac_link"
11444case "(($ac_try" in
11445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446  *) ac_try_echo=$ac_try;;
11447esac
11448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11449$as_echo "$ac_try_echo") >&5
11450  (eval "$ac_link") 2>conftest.er1
11451  ac_status=$?
11452  grep -v '^ *+' conftest.er1 >conftest.err
11453  rm -f conftest.er1
11454  cat conftest.err >&5
11455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456  (exit $ac_status); } && {
11457	 test -z "$ac_c_werror_flag" ||
11458	 test ! -s conftest.err
11459       } && test -s conftest$ac_exeext && {
11460	 test "$cross_compiling" = yes ||
11461	 $as_test_x conftest$ac_exeext
11462       }; then
11463  ac_cv_lib_svld_dlopen=yes
11464else
11465  $as_echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
11468	ac_cv_lib_svld_dlopen=no
11469fi
11470
11471rm -rf conftest.dSYM
11472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473      conftest$ac_exeext conftest.$ac_ext
11474LIBS=$ac_check_lib_save_LIBS
11475fi
11476{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11477$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11478if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11479  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11480else
11481  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11482$as_echo_n "checking for dld_link in -ldld... " >&6; }
11483if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11484  $as_echo_n "(cached) " >&6
11485else
11486  ac_check_lib_save_LIBS=$LIBS
11487LIBS="-ldld  $LIBS"
11488cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h.  */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h.  */
11494
11495/* Override any GCC internal prototype to avoid an error.
11496   Use char because int might match the return type of a GCC
11497   builtin and then its argument prototype would still apply.  */
11498#ifdef __cplusplus
11499extern "C"
11500#endif
11501char dld_link ();
11502int
11503main ()
11504{
11505return dld_link ();
11506  ;
11507  return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext conftest$ac_exeext
11511if { (ac_try="$ac_link"
11512case "(($ac_try" in
11513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514  *) ac_try_echo=$ac_try;;
11515esac
11516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11517$as_echo "$ac_try_echo") >&5
11518  (eval "$ac_link") 2>conftest.er1
11519  ac_status=$?
11520  grep -v '^ *+' conftest.er1 >conftest.err
11521  rm -f conftest.er1
11522  cat conftest.err >&5
11523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524  (exit $ac_status); } && {
11525	 test -z "$ac_c_werror_flag" ||
11526	 test ! -s conftest.err
11527       } && test -s conftest$ac_exeext && {
11528	 test "$cross_compiling" = yes ||
11529	 $as_test_x conftest$ac_exeext
11530       }; then
11531  ac_cv_lib_dld_dld_link=yes
11532else
11533  $as_echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536	ac_cv_lib_dld_dld_link=no
11537fi
11538
11539rm -rf conftest.dSYM
11540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11541      conftest$ac_exeext conftest.$ac_ext
11542LIBS=$ac_check_lib_save_LIBS
11543fi
11544{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11545$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11546if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11547  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11548fi
11549
11550
11551fi
11552
11553
11554fi
11555
11556
11557fi
11558
11559
11560fi
11561
11562
11563fi
11564
11565    ;;
11566  esac
11567
11568  if test "x$lt_cv_dlopen" != xno; then
11569    enable_dlopen=yes
11570  else
11571    enable_dlopen=no
11572  fi
11573
11574  case $lt_cv_dlopen in
11575  dlopen)
11576    save_CPPFLAGS="$CPPFLAGS"
11577    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11578
11579    save_LDFLAGS="$LDFLAGS"
11580    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11581
11582    save_LIBS="$LIBS"
11583    LIBS="$lt_cv_dlopen_libs $LIBS"
11584
11585    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11586$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11587if test "${lt_cv_dlopen_self+set}" = set; then
11588  $as_echo_n "(cached) " >&6
11589else
11590  	  if test "$cross_compiling" = yes; then :
11591  lt_cv_dlopen_self=cross
11592else
11593  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11594  lt_status=$lt_dlunknown
11595  cat > conftest.$ac_ext <<_LT_EOF
11596#line 11596 "configure"
11597#include "confdefs.h"
11598
11599#if HAVE_DLFCN_H
11600#include <dlfcn.h>
11601#endif
11602
11603#include <stdio.h>
11604
11605#ifdef RTLD_GLOBAL
11606#  define LT_DLGLOBAL		RTLD_GLOBAL
11607#else
11608#  ifdef DL_GLOBAL
11609#    define LT_DLGLOBAL		DL_GLOBAL
11610#  else
11611#    define LT_DLGLOBAL		0
11612#  endif
11613#endif
11614
11615/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11616   find out it does not work in some platform. */
11617#ifndef LT_DLLAZY_OR_NOW
11618#  ifdef RTLD_LAZY
11619#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11620#  else
11621#    ifdef DL_LAZY
11622#      define LT_DLLAZY_OR_NOW		DL_LAZY
11623#    else
11624#      ifdef RTLD_NOW
11625#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11626#      else
11627#        ifdef DL_NOW
11628#          define LT_DLLAZY_OR_NOW	DL_NOW
11629#        else
11630#          define LT_DLLAZY_OR_NOW	0
11631#        endif
11632#      endif
11633#    endif
11634#  endif
11635#endif
11636
11637void fnord() { int i=42;}
11638int main ()
11639{
11640  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641  int status = $lt_dlunknown;
11642
11643  if (self)
11644    {
11645      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11646      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11647      /* dlclose (self); */
11648    }
11649  else
11650    puts (dlerror ());
11651
11652  return status;
11653}
11654_LT_EOF
11655  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656  (eval $ac_link) 2>&5
11657  ac_status=$?
11658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11660    (./conftest; exit; ) >&5 2>/dev/null
11661    lt_status=$?
11662    case x$lt_status in
11663      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11664      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11665      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11666    esac
11667  else :
11668    # compilation failed
11669    lt_cv_dlopen_self=no
11670  fi
11671fi
11672rm -fr conftest*
11673
11674
11675fi
11676{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11677$as_echo "$lt_cv_dlopen_self" >&6; }
11678
11679    if test "x$lt_cv_dlopen_self" = xyes; then
11680      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11681      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11682$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11683if test "${lt_cv_dlopen_self_static+set}" = set; then
11684  $as_echo_n "(cached) " >&6
11685else
11686  	  if test "$cross_compiling" = yes; then :
11687  lt_cv_dlopen_self_static=cross
11688else
11689  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11690  lt_status=$lt_dlunknown
11691  cat > conftest.$ac_ext <<_LT_EOF
11692#line 11692 "configure"
11693#include "confdefs.h"
11694
11695#if HAVE_DLFCN_H
11696#include <dlfcn.h>
11697#endif
11698
11699#include <stdio.h>
11700
11701#ifdef RTLD_GLOBAL
11702#  define LT_DLGLOBAL		RTLD_GLOBAL
11703#else
11704#  ifdef DL_GLOBAL
11705#    define LT_DLGLOBAL		DL_GLOBAL
11706#  else
11707#    define LT_DLGLOBAL		0
11708#  endif
11709#endif
11710
11711/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11712   find out it does not work in some platform. */
11713#ifndef LT_DLLAZY_OR_NOW
11714#  ifdef RTLD_LAZY
11715#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11716#  else
11717#    ifdef DL_LAZY
11718#      define LT_DLLAZY_OR_NOW		DL_LAZY
11719#    else
11720#      ifdef RTLD_NOW
11721#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11722#      else
11723#        ifdef DL_NOW
11724#          define LT_DLLAZY_OR_NOW	DL_NOW
11725#        else
11726#          define LT_DLLAZY_OR_NOW	0
11727#        endif
11728#      endif
11729#    endif
11730#  endif
11731#endif
11732
11733void fnord() { int i=42;}
11734int main ()
11735{
11736  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11737  int status = $lt_dlunknown;
11738
11739  if (self)
11740    {
11741      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11742      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11743      /* dlclose (self); */
11744    }
11745  else
11746    puts (dlerror ());
11747
11748  return status;
11749}
11750_LT_EOF
11751  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752  (eval $ac_link) 2>&5
11753  ac_status=$?
11754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11756    (./conftest; exit; ) >&5 2>/dev/null
11757    lt_status=$?
11758    case x$lt_status in
11759      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11760      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11761      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11762    esac
11763  else :
11764    # compilation failed
11765    lt_cv_dlopen_self_static=no
11766  fi
11767fi
11768rm -fr conftest*
11769
11770
11771fi
11772{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11773$as_echo "$lt_cv_dlopen_self_static" >&6; }
11774    fi
11775
11776    CPPFLAGS="$save_CPPFLAGS"
11777    LDFLAGS="$save_LDFLAGS"
11778    LIBS="$save_LIBS"
11779    ;;
11780  esac
11781
11782  case $lt_cv_dlopen_self in
11783  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11784  *) enable_dlopen_self=unknown ;;
11785  esac
11786
11787  case $lt_cv_dlopen_self_static in
11788  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11789  *) enable_dlopen_self_static=unknown ;;
11790  esac
11791fi
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809striplib=
11810old_striplib=
11811{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11812$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11813if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11814  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11815  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11816  { $as_echo "$as_me:$LINENO: result: yes" >&5
11817$as_echo "yes" >&6; }
11818else
11819# FIXME - insert some real tests, host_os isn't really good enough
11820  case $host_os in
11821  darwin*)
11822    if test -n "$STRIP" ; then
11823      striplib="$STRIP -x"
11824      old_striplib="$STRIP -S"
11825      { $as_echo "$as_me:$LINENO: result: yes" >&5
11826$as_echo "yes" >&6; }
11827    else
11828      { $as_echo "$as_me:$LINENO: result: no" >&5
11829$as_echo "no" >&6; }
11830    fi
11831    ;;
11832  *)
11833    { $as_echo "$as_me:$LINENO: result: no" >&5
11834$as_echo "no" >&6; }
11835    ;;
11836  esac
11837fi
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850  # Report which library types will actually be built
11851  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11852$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11853  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11854$as_echo "$can_build_shared" >&6; }
11855
11856  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11857$as_echo_n "checking whether to build shared libraries... " >&6; }
11858  test "$can_build_shared" = "no" && enable_shared=no
11859
11860  # On AIX, shared libraries and static libraries use the same namespace, and
11861  # are all built from PIC.
11862  case $host_os in
11863  aix3*)
11864    test "$enable_shared" = yes && enable_static=no
11865    if test -n "$RANLIB"; then
11866      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11867      postinstall_cmds='$RANLIB $lib'
11868    fi
11869    ;;
11870
11871  aix[4-9]*)
11872    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11873      test "$enable_shared" = yes && enable_static=no
11874    fi
11875    ;;
11876  esac
11877  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11878$as_echo "$enable_shared" >&6; }
11879
11880  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11881$as_echo_n "checking whether to build static libraries... " >&6; }
11882  # Make sure either enable_shared or enable_static is yes.
11883  test "$enable_shared" = yes || enable_static=yes
11884  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11885$as_echo "$enable_static" >&6; }
11886
11887
11888
11889
11890fi
11891ac_ext=c
11892ac_cpp='$CPP $CPPFLAGS'
11893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895ac_compiler_gnu=$ac_cv_c_compiler_gnu
11896
11897CC="$lt_save_CC"
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911        ac_config_commands="$ac_config_commands libtool"
11912
11913
11914
11915
11916# Only expand once:
11917
11918
11919ac_ext=c
11920ac_cpp='$CPP $CPPFLAGS'
11921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11923ac_compiler_gnu=$ac_cv_c_compiler_gnu
11924if test -n "$ac_tool_prefix"; then
11925  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11926set dummy ${ac_tool_prefix}gcc; ac_word=$2
11927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11928$as_echo_n "checking for $ac_word... " >&6; }
11929if test "${ac_cv_prog_CC+set}" = set; then
11930  $as_echo_n "(cached) " >&6
11931else
11932  if test -n "$CC"; then
11933  ac_cv_prog_CC="$CC" # Let the user override the test.
11934else
11935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936for as_dir in $PATH
11937do
11938  IFS=$as_save_IFS
11939  test -z "$as_dir" && as_dir=.
11940  for ac_exec_ext in '' $ac_executable_extensions; do
11941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11943    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11944    break 2
11945  fi
11946done
11947done
11948IFS=$as_save_IFS
11949
11950fi
11951fi
11952CC=$ac_cv_prog_CC
11953if test -n "$CC"; then
11954  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11955$as_echo "$CC" >&6; }
11956else
11957  { $as_echo "$as_me:$LINENO: result: no" >&5
11958$as_echo "no" >&6; }
11959fi
11960
11961
11962fi
11963if test -z "$ac_cv_prog_CC"; then
11964  ac_ct_CC=$CC
11965  # Extract the first word of "gcc", so it can be a program name with args.
11966set dummy gcc; ac_word=$2
11967{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11968$as_echo_n "checking for $ac_word... " >&6; }
11969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11970  $as_echo_n "(cached) " >&6
11971else
11972  if test -n "$ac_ct_CC"; then
11973  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11974else
11975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $PATH
11977do
11978  IFS=$as_save_IFS
11979  test -z "$as_dir" && as_dir=.
11980  for ac_exec_ext in '' $ac_executable_extensions; do
11981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11982    ac_cv_prog_ac_ct_CC="gcc"
11983    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11984    break 2
11985  fi
11986done
11987done
11988IFS=$as_save_IFS
11989
11990fi
11991fi
11992ac_ct_CC=$ac_cv_prog_ac_ct_CC
11993if test -n "$ac_ct_CC"; then
11994  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11995$as_echo "$ac_ct_CC" >&6; }
11996else
11997  { $as_echo "$as_me:$LINENO: result: no" >&5
11998$as_echo "no" >&6; }
11999fi
12000
12001  if test "x$ac_ct_CC" = x; then
12002    CC=""
12003  else
12004    case $cross_compiling:$ac_tool_warned in
12005yes:)
12006{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12008ac_tool_warned=yes ;;
12009esac
12010    CC=$ac_ct_CC
12011  fi
12012else
12013  CC="$ac_cv_prog_CC"
12014fi
12015
12016if test -z "$CC"; then
12017          if test -n "$ac_tool_prefix"; then
12018    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12019set dummy ${ac_tool_prefix}cc; ac_word=$2
12020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12021$as_echo_n "checking for $ac_word... " >&6; }
12022if test "${ac_cv_prog_CC+set}" = set; then
12023  $as_echo_n "(cached) " >&6
12024else
12025  if test -n "$CC"; then
12026  ac_cv_prog_CC="$CC" # Let the user override the test.
12027else
12028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031  IFS=$as_save_IFS
12032  test -z "$as_dir" && as_dir=.
12033  for ac_exec_ext in '' $ac_executable_extensions; do
12034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12035    ac_cv_prog_CC="${ac_tool_prefix}cc"
12036    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037    break 2
12038  fi
12039done
12040done
12041IFS=$as_save_IFS
12042
12043fi
12044fi
12045CC=$ac_cv_prog_CC
12046if test -n "$CC"; then
12047  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12048$as_echo "$CC" >&6; }
12049else
12050  { $as_echo "$as_me:$LINENO: result: no" >&5
12051$as_echo "no" >&6; }
12052fi
12053
12054
12055  fi
12056fi
12057if test -z "$CC"; then
12058  # Extract the first word of "cc", so it can be a program name with args.
12059set dummy cc; ac_word=$2
12060{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if test "${ac_cv_prog_CC+set}" = set; then
12063  $as_echo_n "(cached) " >&6
12064else
12065  if test -n "$CC"; then
12066  ac_cv_prog_CC="$CC" # Let the user override the test.
12067else
12068  ac_prog_rejected=no
12069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070for as_dir in $PATH
12071do
12072  IFS=$as_save_IFS
12073  test -z "$as_dir" && as_dir=.
12074  for ac_exec_ext in '' $ac_executable_extensions; do
12075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12077       ac_prog_rejected=yes
12078       continue
12079     fi
12080    ac_cv_prog_CC="cc"
12081    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12082    break 2
12083  fi
12084done
12085done
12086IFS=$as_save_IFS
12087
12088if test $ac_prog_rejected = yes; then
12089  # We found a bogon in the path, so make sure we never use it.
12090  set dummy $ac_cv_prog_CC
12091  shift
12092  if test $# != 0; then
12093    # We chose a different compiler from the bogus one.
12094    # However, it has the same basename, so the bogon will be chosen
12095    # first if we set CC to just the basename; use the full file name.
12096    shift
12097    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12098  fi
12099fi
12100fi
12101fi
12102CC=$ac_cv_prog_CC
12103if test -n "$CC"; then
12104  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12105$as_echo "$CC" >&6; }
12106else
12107  { $as_echo "$as_me:$LINENO: result: no" >&5
12108$as_echo "no" >&6; }
12109fi
12110
12111
12112fi
12113if test -z "$CC"; then
12114  if test -n "$ac_tool_prefix"; then
12115  for ac_prog in cl.exe
12116  do
12117    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if test "${ac_cv_prog_CC+set}" = set; then
12122  $as_echo_n "(cached) " >&6
12123else
12124  if test -n "$CC"; then
12125  ac_cv_prog_CC="$CC" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130  IFS=$as_save_IFS
12131  test -z "$as_dir" && as_dir=.
12132  for ac_exec_ext in '' $ac_executable_extensions; do
12133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12134    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12135    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12136    break 2
12137  fi
12138done
12139done
12140IFS=$as_save_IFS
12141
12142fi
12143fi
12144CC=$ac_cv_prog_CC
12145if test -n "$CC"; then
12146  { $as_echo "$as_me:$LINENO: result: $CC" >&5
12147$as_echo "$CC" >&6; }
12148else
12149  { $as_echo "$as_me:$LINENO: result: no" >&5
12150$as_echo "no" >&6; }
12151fi
12152
12153
12154    test -n "$CC" && break
12155  done
12156fi
12157if test -z "$CC"; then
12158  ac_ct_CC=$CC
12159  for ac_prog in cl.exe
12160do
12161  # Extract the first word of "$ac_prog", so it can be a program name with args.
12162set dummy $ac_prog; ac_word=$2
12163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12164$as_echo_n "checking for $ac_word... " >&6; }
12165if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12166  $as_echo_n "(cached) " >&6
12167else
12168  if test -n "$ac_ct_CC"; then
12169  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12170else
12171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172for as_dir in $PATH
12173do
12174  IFS=$as_save_IFS
12175  test -z "$as_dir" && as_dir=.
12176  for ac_exec_ext in '' $ac_executable_extensions; do
12177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12178    ac_cv_prog_ac_ct_CC="$ac_prog"
12179    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12180    break 2
12181  fi
12182done
12183done
12184IFS=$as_save_IFS
12185
12186fi
12187fi
12188ac_ct_CC=$ac_cv_prog_ac_ct_CC
12189if test -n "$ac_ct_CC"; then
12190  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12191$as_echo "$ac_ct_CC" >&6; }
12192else
12193  { $as_echo "$as_me:$LINENO: result: no" >&5
12194$as_echo "no" >&6; }
12195fi
12196
12197
12198  test -n "$ac_ct_CC" && break
12199done
12200
12201  if test "x$ac_ct_CC" = x; then
12202    CC=""
12203  else
12204    case $cross_compiling:$ac_tool_warned in
12205yes:)
12206{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12208ac_tool_warned=yes ;;
12209esac
12210    CC=$ac_ct_CC
12211  fi
12212fi
12213
12214fi
12215
12216
12217test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12219{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12220See \`config.log' for more details." >&5
12221$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12222See \`config.log' for more details." >&2;}
12223   { (exit 1); exit 1; }; }; }
12224
12225# Provide some information about the compiler.
12226$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12227set X $ac_compile
12228ac_compiler=$2
12229{ (ac_try="$ac_compiler --version >&5"
12230case "(($ac_try" in
12231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232  *) ac_try_echo=$ac_try;;
12233esac
12234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12235$as_echo "$ac_try_echo") >&5
12236  (eval "$ac_compiler --version >&5") 2>&5
12237  ac_status=$?
12238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239  (exit $ac_status); }
12240{ (ac_try="$ac_compiler -v >&5"
12241case "(($ac_try" in
12242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243  *) ac_try_echo=$ac_try;;
12244esac
12245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12246$as_echo "$ac_try_echo") >&5
12247  (eval "$ac_compiler -v >&5") 2>&5
12248  ac_status=$?
12249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250  (exit $ac_status); }
12251{ (ac_try="$ac_compiler -V >&5"
12252case "(($ac_try" in
12253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254  *) ac_try_echo=$ac_try;;
12255esac
12256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12257$as_echo "$ac_try_echo") >&5
12258  (eval "$ac_compiler -V >&5") 2>&5
12259  ac_status=$?
12260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261  (exit $ac_status); }
12262
12263{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12264$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12265if test "${ac_cv_c_compiler_gnu+set}" = set; then
12266  $as_echo_n "(cached) " >&6
12267else
12268  cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h.  */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h.  */
12274
12275int
12276main ()
12277{
12278#ifndef __GNUC__
12279       choke me
12280#endif
12281
12282  ;
12283  return 0;
12284}
12285_ACEOF
12286rm -f conftest.$ac_objext
12287if { (ac_try="$ac_compile"
12288case "(($ac_try" in
12289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290  *) ac_try_echo=$ac_try;;
12291esac
12292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293$as_echo "$ac_try_echo") >&5
12294  (eval "$ac_compile") 2>conftest.er1
12295  ac_status=$?
12296  grep -v '^ *+' conftest.er1 >conftest.err
12297  rm -f conftest.er1
12298  cat conftest.err >&5
12299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300  (exit $ac_status); } && {
12301	 test -z "$ac_c_werror_flag" ||
12302	 test ! -s conftest.err
12303       } && test -s conftest.$ac_objext; then
12304  ac_compiler_gnu=yes
12305else
12306  $as_echo "$as_me: failed program was:" >&5
12307sed 's/^/| /' conftest.$ac_ext >&5
12308
12309	ac_compiler_gnu=no
12310fi
12311
12312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313ac_cv_c_compiler_gnu=$ac_compiler_gnu
12314
12315fi
12316{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12317$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12318if test $ac_compiler_gnu = yes; then
12319  GCC=yes
12320else
12321  GCC=
12322fi
12323ac_test_CFLAGS=${CFLAGS+set}
12324ac_save_CFLAGS=$CFLAGS
12325{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12326$as_echo_n "checking whether $CC accepts -g... " >&6; }
12327if test "${ac_cv_prog_cc_g+set}" = set; then
12328  $as_echo_n "(cached) " >&6
12329else
12330  ac_save_c_werror_flag=$ac_c_werror_flag
12331   ac_c_werror_flag=yes
12332   ac_cv_prog_cc_g=no
12333   CFLAGS="-g"
12334   cat >conftest.$ac_ext <<_ACEOF
12335/* confdefs.h.  */
12336_ACEOF
12337cat confdefs.h >>conftest.$ac_ext
12338cat >>conftest.$ac_ext <<_ACEOF
12339/* end confdefs.h.  */
12340
12341int
12342main ()
12343{
12344
12345  ;
12346  return 0;
12347}
12348_ACEOF
12349rm -f conftest.$ac_objext
12350if { (ac_try="$ac_compile"
12351case "(($ac_try" in
12352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353  *) ac_try_echo=$ac_try;;
12354esac
12355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12356$as_echo "$ac_try_echo") >&5
12357  (eval "$ac_compile") 2>conftest.er1
12358  ac_status=$?
12359  grep -v '^ *+' conftest.er1 >conftest.err
12360  rm -f conftest.er1
12361  cat conftest.err >&5
12362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363  (exit $ac_status); } && {
12364	 test -z "$ac_c_werror_flag" ||
12365	 test ! -s conftest.err
12366       } && test -s conftest.$ac_objext; then
12367  ac_cv_prog_cc_g=yes
12368else
12369  $as_echo "$as_me: failed program was:" >&5
12370sed 's/^/| /' conftest.$ac_ext >&5
12371
12372	CFLAGS=""
12373      cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h.  */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h.  */
12379
12380int
12381main ()
12382{
12383
12384  ;
12385  return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext
12389if { (ac_try="$ac_compile"
12390case "(($ac_try" in
12391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392  *) ac_try_echo=$ac_try;;
12393esac
12394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12395$as_echo "$ac_try_echo") >&5
12396  (eval "$ac_compile") 2>conftest.er1
12397  ac_status=$?
12398  grep -v '^ *+' conftest.er1 >conftest.err
12399  rm -f conftest.er1
12400  cat conftest.err >&5
12401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402  (exit $ac_status); } && {
12403	 test -z "$ac_c_werror_flag" ||
12404	 test ! -s conftest.err
12405       } && test -s conftest.$ac_objext; then
12406  :
12407else
12408  $as_echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411	ac_c_werror_flag=$ac_save_c_werror_flag
12412	 CFLAGS="-g"
12413	 cat >conftest.$ac_ext <<_ACEOF
12414/* confdefs.h.  */
12415_ACEOF
12416cat confdefs.h >>conftest.$ac_ext
12417cat >>conftest.$ac_ext <<_ACEOF
12418/* end confdefs.h.  */
12419
12420int
12421main ()
12422{
12423
12424  ;
12425  return 0;
12426}
12427_ACEOF
12428rm -f conftest.$ac_objext
12429if { (ac_try="$ac_compile"
12430case "(($ac_try" in
12431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432  *) ac_try_echo=$ac_try;;
12433esac
12434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12435$as_echo "$ac_try_echo") >&5
12436  (eval "$ac_compile") 2>conftest.er1
12437  ac_status=$?
12438  grep -v '^ *+' conftest.er1 >conftest.err
12439  rm -f conftest.er1
12440  cat conftest.err >&5
12441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442  (exit $ac_status); } && {
12443	 test -z "$ac_c_werror_flag" ||
12444	 test ! -s conftest.err
12445       } && test -s conftest.$ac_objext; then
12446  ac_cv_prog_cc_g=yes
12447else
12448  $as_echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
12451
12452fi
12453
12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455fi
12456
12457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458fi
12459
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461   ac_c_werror_flag=$ac_save_c_werror_flag
12462fi
12463{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12464$as_echo "$ac_cv_prog_cc_g" >&6; }
12465if test "$ac_test_CFLAGS" = set; then
12466  CFLAGS=$ac_save_CFLAGS
12467elif test $ac_cv_prog_cc_g = yes; then
12468  if test "$GCC" = yes; then
12469    CFLAGS="-g -O2"
12470  else
12471    CFLAGS="-g"
12472  fi
12473else
12474  if test "$GCC" = yes; then
12475    CFLAGS="-O2"
12476  else
12477    CFLAGS=
12478  fi
12479fi
12480{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12481$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12482if test "${ac_cv_prog_cc_c89+set}" = set; then
12483  $as_echo_n "(cached) " >&6
12484else
12485  ac_cv_prog_cc_c89=no
12486ac_save_CC=$CC
12487cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h.  */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h.  */
12493#include <stdarg.h>
12494#include <stdio.h>
12495#include <sys/types.h>
12496#include <sys/stat.h>
12497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12498struct buf { int x; };
12499FILE * (*rcsopen) (struct buf *, struct stat *, int);
12500static char *e (p, i)
12501     char **p;
12502     int i;
12503{
12504  return p[i];
12505}
12506static char *f (char * (*g) (char **, int), char **p, ...)
12507{
12508  char *s;
12509  va_list v;
12510  va_start (v,p);
12511  s = g (p, va_arg (v,int));
12512  va_end (v);
12513  return s;
12514}
12515
12516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12517   function prototypes and stuff, but not '\xHH' hex character constants.
12518   These don't provoke an error unfortunately, instead are silently treated
12519   as 'x'.  The following induces an error, until -std is added to get
12520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12521   array size at least.  It's necessary to write '\x00'==0 to get something
12522   that's true only with -std.  */
12523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12524
12525/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12526   inside strings and character constants.  */
12527#define FOO(x) 'x'
12528int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12529
12530int test (int i, double x);
12531struct s1 {int (*f) (int a);};
12532struct s2 {int (*f) (double a);};
12533int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12534int argc;
12535char **argv;
12536int
12537main ()
12538{
12539return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12540  ;
12541  return 0;
12542}
12543_ACEOF
12544for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12545	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12546do
12547  CC="$ac_save_CC $ac_arg"
12548  rm -f conftest.$ac_objext
12549if { (ac_try="$ac_compile"
12550case "(($ac_try" in
12551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552  *) ac_try_echo=$ac_try;;
12553esac
12554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12555$as_echo "$ac_try_echo") >&5
12556  (eval "$ac_compile") 2>conftest.er1
12557  ac_status=$?
12558  grep -v '^ *+' conftest.er1 >conftest.err
12559  rm -f conftest.er1
12560  cat conftest.err >&5
12561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562  (exit $ac_status); } && {
12563	 test -z "$ac_c_werror_flag" ||
12564	 test ! -s conftest.err
12565       } && test -s conftest.$ac_objext; then
12566  ac_cv_prog_cc_c89=$ac_arg
12567else
12568  $as_echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571
12572fi
12573
12574rm -f core conftest.err conftest.$ac_objext
12575  test "x$ac_cv_prog_cc_c89" != "xno" && break
12576done
12577rm -f conftest.$ac_ext
12578CC=$ac_save_CC
12579
12580fi
12581# AC_CACHE_VAL
12582case "x$ac_cv_prog_cc_c89" in
12583  x)
12584    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12585$as_echo "none needed" >&6; } ;;
12586  xno)
12587    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12588$as_echo "unsupported" >&6; } ;;
12589  *)
12590    CC="$CC $ac_cv_prog_cc_c89"
12591    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12592$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12593esac
12594
12595
12596ac_ext=c
12597ac_cpp='$CPP $CPPFLAGS'
12598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600ac_compiler_gnu=$ac_cv_c_compiler_gnu
12601
12602depcc="$CC"   am_compiler_list=
12603
12604{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12605$as_echo_n "checking dependency style of $depcc... " >&6; }
12606if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12607  $as_echo_n "(cached) " >&6
12608else
12609  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12610  # We make a subdir and do the tests there.  Otherwise we can end up
12611  # making bogus files that we don't know about and never remove.  For
12612  # instance it was reported that on HP-UX the gcc test will end up
12613  # making a dummy file named `D' -- because `-MD' means `put the output
12614  # in D'.
12615  mkdir conftest.dir
12616  # Copy depcomp to subdir because otherwise we won't find it if we're
12617  # using a relative directory.
12618  cp "$am_depcomp" conftest.dir
12619  cd conftest.dir
12620  # We will build objects and dependencies in a subdirectory because
12621  # it helps to detect inapplicable dependency modes.  For instance
12622  # both Tru64's cc and ICC support -MD to output dependencies as a
12623  # side effect of compilation, but ICC will put the dependencies in
12624  # the current directory while Tru64 will put them in the object
12625  # directory.
12626  mkdir sub
12627
12628  am_cv_CC_dependencies_compiler_type=none
12629  if test "$am_compiler_list" = ""; then
12630     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12631  fi
12632  am__universal=false
12633  case " $depcc " in #(
12634     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12635     esac
12636
12637  for depmode in $am_compiler_list; do
12638    # Setup a source with many dependencies, because some compilers
12639    # like to wrap large dependency lists on column 80 (with \), and
12640    # we should not choose a depcomp mode which is confused by this.
12641    #
12642    # We need to recreate these files for each test, as the compiler may
12643    # overwrite some of them when testing with obscure command lines.
12644    # This happens at least with the AIX C compiler.
12645    : > sub/conftest.c
12646    for i in 1 2 3 4 5 6; do
12647      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12648      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12649      # Solaris 8's {/usr,}/bin/sh.
12650      touch sub/conftst$i.h
12651    done
12652    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12653
12654    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12655    # mode.  It turns out that the SunPro C++ compiler does not properly
12656    # handle `-M -o', and we need to detect this.  Also, some Intel
12657    # versions had trouble with output in subdirs
12658    am__obj=sub/conftest.${OBJEXT-o}
12659    am__minus_obj="-o $am__obj"
12660    case $depmode in
12661    gcc)
12662      # This depmode causes a compiler race in universal mode.
12663      test "$am__universal" = false || continue
12664      ;;
12665    nosideeffect)
12666      # after this tag, mechanisms are not by side-effect, so they'll
12667      # only be used when explicitly requested
12668      if test "x$enable_dependency_tracking" = xyes; then
12669	continue
12670      else
12671	break
12672      fi
12673      ;;
12674    msvisualcpp | msvcmsys)
12675      # This compiler won't grok `-c -o', but also, the minuso test has
12676      # not run yet.  These depmodes are late enough in the game, and
12677      # so weak that their functioning should not be impacted.
12678      am__obj=conftest.${OBJEXT-o}
12679      am__minus_obj=
12680      ;;
12681    none) break ;;
12682    esac
12683    if depmode=$depmode \
12684       source=sub/conftest.c object=$am__obj \
12685       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12686       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12687         >/dev/null 2>conftest.err &&
12688       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12689       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12690       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12691       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12692      # icc doesn't choke on unknown options, it will just issue warnings
12693      # or remarks (even with -Werror).  So we grep stderr for any message
12694      # that says an option was ignored or not supported.
12695      # When given -MP, icc 7.0 and 7.1 complain thusly:
12696      #   icc: Command line warning: ignoring option '-M'; no argument required
12697      # The diagnosis changed in icc 8.0:
12698      #   icc: Command line remark: option '-MP' not supported
12699      if (grep 'ignoring option' conftest.err ||
12700          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12701        am_cv_CC_dependencies_compiler_type=$depmode
12702        break
12703      fi
12704    fi
12705  done
12706
12707  cd ..
12708  rm -rf conftest.dir
12709else
12710  am_cv_CC_dependencies_compiler_type=none
12711fi
12712
12713fi
12714{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12715$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12716CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12717
12718 if
12719  test "x$enable_dependency_tracking" != xno \
12720  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12721  am__fastdepCC_TRUE=
12722  am__fastdepCC_FALSE='#'
12723else
12724  am__fastdepCC_TRUE='#'
12725  am__fastdepCC_FALSE=
12726fi
12727
12728
12729
12730
12731
12732
12733
12734# Check whether --with-xorg-module-dir was given.
12735if test "${with_xorg_module_dir+set}" = set; then
12736  withval=$with_xorg_module_dir; moduledir="$withval"
12737else
12738  moduledir="$libdir/xorg/modules"
12739fi
12740
12741
12742# Checks for extensions
12743
12744
12745	SAVE_CFLAGS="$CFLAGS"
12746	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12747	cat >conftest.$ac_ext <<_ACEOF
12748/* confdefs.h.  */
12749_ACEOF
12750cat confdefs.h >>conftest.$ac_ext
12751cat >>conftest.$ac_ext <<_ACEOF
12752/* end confdefs.h.  */
12753
12754#include "xorg-server.h"
12755#if !defined RANDR
12756#error RANDR not defined
12757#endif
12758
12759int
12760main ()
12761{
12762
12763  ;
12764  return 0;
12765}
12766_ACEOF
12767rm -f conftest.$ac_objext
12768if { (ac_try="$ac_compile"
12769case "(($ac_try" in
12770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771  *) ac_try_echo=$ac_try;;
12772esac
12773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12774$as_echo "$ac_try_echo") >&5
12775  (eval "$ac_compile") 2>conftest.er1
12776  ac_status=$?
12777  grep -v '^ *+' conftest.er1 >conftest.err
12778  rm -f conftest.er1
12779  cat conftest.err >&5
12780  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781  (exit $ac_status); } && {
12782	 test -z "$ac_c_werror_flag" ||
12783	 test ! -s conftest.err
12784       } && test -s conftest.$ac_objext; then
12785  _EXT_CHECK=yes
12786else
12787  $as_echo "$as_me: failed program was:" >&5
12788sed 's/^/| /' conftest.$ac_ext >&5
12789
12790	_EXT_CHECK=no
12791fi
12792
12793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794	CFLAGS="$SAVE_CFLAGS"
12795	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
12796$as_echo_n "checking if RANDR is defined... " >&6; }
12797	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12798$as_echo "$_EXT_CHECK" >&6; }
12799	if test "$_EXT_CHECK" != no; then
12800		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12801	fi
12802
12803
12804
12805	SAVE_CFLAGS="$CFLAGS"
12806	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12807	cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h.  */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h.  */
12813
12814#include "xorg-server.h"
12815#if !defined RENDER
12816#error RENDER not defined
12817#endif
12818
12819int
12820main ()
12821{
12822
12823  ;
12824  return 0;
12825}
12826_ACEOF
12827rm -f conftest.$ac_objext
12828if { (ac_try="$ac_compile"
12829case "(($ac_try" in
12830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831  *) ac_try_echo=$ac_try;;
12832esac
12833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12834$as_echo "$ac_try_echo") >&5
12835  (eval "$ac_compile") 2>conftest.er1
12836  ac_status=$?
12837  grep -v '^ *+' conftest.er1 >conftest.err
12838  rm -f conftest.er1
12839  cat conftest.err >&5
12840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841  (exit $ac_status); } && {
12842	 test -z "$ac_c_werror_flag" ||
12843	 test ! -s conftest.err
12844       } && test -s conftest.$ac_objext; then
12845  _EXT_CHECK=yes
12846else
12847  $as_echo "$as_me: failed program was:" >&5
12848sed 's/^/| /' conftest.$ac_ext >&5
12849
12850	_EXT_CHECK=no
12851fi
12852
12853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854	CFLAGS="$SAVE_CFLAGS"
12855	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
12856$as_echo_n "checking if RENDER is defined... " >&6; }
12857	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12858$as_echo "$_EXT_CHECK" >&6; }
12859	if test "$_EXT_CHECK" != no; then
12860		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12861	fi
12862
12863
12864
12865	SAVE_CFLAGS="$CFLAGS"
12866	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12867	cat >conftest.$ac_ext <<_ACEOF
12868/* confdefs.h.  */
12869_ACEOF
12870cat confdefs.h >>conftest.$ac_ext
12871cat >>conftest.$ac_ext <<_ACEOF
12872/* end confdefs.h.  */
12873
12874#include "xorg-server.h"
12875#if !defined XV
12876#error XV not defined
12877#endif
12878
12879int
12880main ()
12881{
12882
12883  ;
12884  return 0;
12885}
12886_ACEOF
12887rm -f conftest.$ac_objext
12888if { (ac_try="$ac_compile"
12889case "(($ac_try" in
12890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891  *) ac_try_echo=$ac_try;;
12892esac
12893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894$as_echo "$ac_try_echo") >&5
12895  (eval "$ac_compile") 2>conftest.er1
12896  ac_status=$?
12897  grep -v '^ *+' conftest.er1 >conftest.err
12898  rm -f conftest.er1
12899  cat conftest.err >&5
12900  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901  (exit $ac_status); } && {
12902	 test -z "$ac_c_werror_flag" ||
12903	 test ! -s conftest.err
12904       } && test -s conftest.$ac_objext; then
12905  _EXT_CHECK=yes
12906else
12907  $as_echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910	_EXT_CHECK=no
12911fi
12912
12913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914	CFLAGS="$SAVE_CFLAGS"
12915	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
12916$as_echo_n "checking if XV is defined... " >&6; }
12917	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12918$as_echo "$_EXT_CHECK" >&6; }
12919	if test "$_EXT_CHECK" != no; then
12920		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12921	fi
12922
12923
12924
12925	SAVE_CFLAGS="$CFLAGS"
12926	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12927	cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h.  */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h.  */
12933
12934#include "xorg-server.h"
12935#if !defined DPMSExtension
12936#error DPMSExtension not defined
12937#endif
12938
12939int
12940main ()
12941{
12942
12943  ;
12944  return 0;
12945}
12946_ACEOF
12947rm -f conftest.$ac_objext
12948if { (ac_try="$ac_compile"
12949case "(($ac_try" in
12950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951  *) ac_try_echo=$ac_try;;
12952esac
12953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12954$as_echo "$ac_try_echo") >&5
12955  (eval "$ac_compile") 2>conftest.er1
12956  ac_status=$?
12957  grep -v '^ *+' conftest.er1 >conftest.err
12958  rm -f conftest.er1
12959  cat conftest.err >&5
12960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961  (exit $ac_status); } && {
12962	 test -z "$ac_c_werror_flag" ||
12963	 test ! -s conftest.err
12964       } && test -s conftest.$ac_objext; then
12965  _EXT_CHECK=yes
12966else
12967  $as_echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970	_EXT_CHECK=no
12971fi
12972
12973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974	CFLAGS="$SAVE_CFLAGS"
12975	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
12976$as_echo_n "checking if DPMSExtension is defined... " >&6; }
12977	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12978$as_echo "$_EXT_CHECK" >&6; }
12979	if test "$_EXT_CHECK" != no; then
12980		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12981	fi
12982
12983
12984
12985	SAVE_CFLAGS="$CFLAGS"
12986	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12987	cat >conftest.$ac_ext <<_ACEOF
12988/* confdefs.h.  */
12989_ACEOF
12990cat confdefs.h >>conftest.$ac_ext
12991cat >>conftest.$ac_ext <<_ACEOF
12992/* end confdefs.h.  */
12993
12994#include "xorg-server.h"
12995#if !defined XFreeXDGA
12996#error XFreeXDGA not defined
12997#endif
12998
12999int
13000main ()
13001{
13002
13003  ;
13004  return 0;
13005}
13006_ACEOF
13007rm -f conftest.$ac_objext
13008if { (ac_try="$ac_compile"
13009case "(($ac_try" in
13010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011  *) ac_try_echo=$ac_try;;
13012esac
13013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014$as_echo "$ac_try_echo") >&5
13015  (eval "$ac_compile") 2>conftest.er1
13016  ac_status=$?
13017  grep -v '^ *+' conftest.er1 >conftest.err
13018  rm -f conftest.er1
13019  cat conftest.err >&5
13020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021  (exit $ac_status); } && {
13022	 test -z "$ac_c_werror_flag" ||
13023	 test ! -s conftest.err
13024       } && test -s conftest.$ac_objext; then
13025  _EXT_CHECK=yes
13026else
13027  $as_echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030	_EXT_CHECK=no
13031fi
13032
13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034	CFLAGS="$SAVE_CFLAGS"
13035	{ $as_echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5
13036$as_echo_n "checking if XFreeXDGA is defined... " >&6; }
13037	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
13038$as_echo "$_EXT_CHECK" >&6; }
13039	if test "$_EXT_CHECK" != no; then
13040		REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
13041	fi
13042
13043
13044# Checks for pkg-config packages
13045
13046pkg_failed=no
13047{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
13048$as_echo_n "checking for XORG... " >&6; }
13049
13050if test -n "$XORG_CFLAGS"; then
13051    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
13052 elif test -n "$PKG_CONFIG"; then
13053    if test -n "$PKG_CONFIG" && \
13054    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
13055  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
13056  ac_status=$?
13057  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058  (exit $ac_status); }; then
13059  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
13060else
13061  pkg_failed=yes
13062fi
13063 else
13064    pkg_failed=untried
13065fi
13066if test -n "$XORG_LIBS"; then
13067    pkg_cv_XORG_LIBS="$XORG_LIBS"
13068 elif test -n "$PKG_CONFIG"; then
13069    if test -n "$PKG_CONFIG" && \
13070    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
13071  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
13072  ac_status=$?
13073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074  (exit $ac_status); }; then
13075  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
13076else
13077  pkg_failed=yes
13078fi
13079 else
13080    pkg_failed=untried
13081fi
13082
13083
13084
13085if test $pkg_failed = yes; then
13086
13087if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13088        _pkg_short_errors_supported=yes
13089else
13090        _pkg_short_errors_supported=no
13091fi
13092        if test $_pkg_short_errors_supported = yes; then
13093	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
13094        else
13095	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
13096        fi
13097	# Put the nasty error message in config.log where it belongs
13098	echo "$XORG_PKG_ERRORS" >&5
13099
13100	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
13101
13102$XORG_PKG_ERRORS
13103
13104Consider adjusting the PKG_CONFIG_PATH environment variable if you
13105installed software in a non-standard prefix.
13106
13107Alternatively, you may set the environment variables XORG_CFLAGS
13108and XORG_LIBS to avoid the need to call pkg-config.
13109See the pkg-config man page for more details.
13110" >&5
13111$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
13112
13113$XORG_PKG_ERRORS
13114
13115Consider adjusting the PKG_CONFIG_PATH environment variable if you
13116installed software in a non-standard prefix.
13117
13118Alternatively, you may set the environment variables XORG_CFLAGS
13119and XORG_LIBS to avoid the need to call pkg-config.
13120See the pkg-config man page for more details.
13121" >&2;}
13122   { (exit 1); exit 1; }; }
13123elif test $pkg_failed = untried; then
13124	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13126{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13127is in your PATH or set the PKG_CONFIG environment variable to the full
13128path to pkg-config.
13129
13130Alternatively, you may set the environment variables XORG_CFLAGS
13131and XORG_LIBS to avoid the need to call pkg-config.
13132See the pkg-config man page for more details.
13133
13134To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13135See \`config.log' for more details." >&5
13136$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13137is in your PATH or set the PKG_CONFIG environment variable to the full
13138path to pkg-config.
13139
13140Alternatively, you may set the environment variables XORG_CFLAGS
13141and XORG_LIBS to avoid the need to call pkg-config.
13142See the pkg-config man page for more details.
13143
13144To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13145See \`config.log' for more details." >&2;}
13146   { (exit 1); exit 1; }; }; }
13147else
13148	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
13149	XORG_LIBS=$pkg_cv_XORG_LIBS
13150        { $as_echo "$as_me:$LINENO: result: yes" >&5
13151$as_echo "yes" >&6; }
13152	:
13153fi
13154
13155pkg_failed=no
13156{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5
13157$as_echo_n "checking for XEXT... " >&6; }
13158
13159if test -n "$XEXT_CFLAGS"; then
13160    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
13161 elif test -n "$PKG_CONFIG"; then
13162    if test -n "$PKG_CONFIG" && \
13163    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
13164  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
13165  ac_status=$?
13166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); }; then
13168  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
13169else
13170  pkg_failed=yes
13171fi
13172 else
13173    pkg_failed=untried
13174fi
13175if test -n "$XEXT_LIBS"; then
13176    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
13177 elif test -n "$PKG_CONFIG"; then
13178    if test -n "$PKG_CONFIG" && \
13179    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
13180  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
13181  ac_status=$?
13182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183  (exit $ac_status); }; then
13184  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
13185else
13186  pkg_failed=yes
13187fi
13188 else
13189    pkg_failed=untried
13190fi
13191
13192
13193
13194if test $pkg_failed = yes; then
13195
13196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13197        _pkg_short_errors_supported=yes
13198else
13199        _pkg_short_errors_supported=no
13200fi
13201        if test $_pkg_short_errors_supported = yes; then
13202	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
13203        else
13204	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
13205        fi
13206	# Put the nasty error message in config.log where it belongs
13207	echo "$XEXT_PKG_ERRORS" >&5
13208
13209	{ $as_echo "$as_me:$LINENO: result: no" >&5
13210$as_echo "no" >&6; }
13211                HAVE_XEXTPROTO_71="no"
13212elif test $pkg_failed = untried; then
13213	HAVE_XEXTPROTO_71="no"
13214else
13215	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
13216	XEXT_LIBS=$pkg_cv_XEXT_LIBS
13217        { $as_echo "$as_me:$LINENO: result: yes" >&5
13218$as_echo "yes" >&6; }
13219	HAVE_XEXTPROTO_71="yes";
13220cat >>confdefs.h <<\_ACEOF
13221#define HAVE_XEXTPROTO_71 1
13222_ACEOF
13223
13224fi
13225 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
13226  HAVE_XEXTPROTO_71_TRUE=
13227  HAVE_XEXTPROTO_71_FALSE='#'
13228else
13229  HAVE_XEXTPROTO_71_TRUE='#'
13230  HAVE_XEXTPROTO_71_FALSE=
13231fi
13232
13233
13234save_CFLAGS="$CFLAGS"
13235CFLAGS="$XORG_CFLAGS"
13236{ $as_echo "$as_me:$LINENO: checking whether xf86ConfigIsaEntity is declared" >&5
13237$as_echo_n "checking whether xf86ConfigIsaEntity is declared... " >&6; }
13238if test "${ac_cv_have_decl_xf86ConfigIsaEntity+set}" = set; then
13239  $as_echo_n "(cached) " >&6
13240else
13241  cat >conftest.$ac_ext <<_ACEOF
13242/* confdefs.h.  */
13243_ACEOF
13244cat confdefs.h >>conftest.$ac_ext
13245cat >>conftest.$ac_ext <<_ACEOF
13246/* end confdefs.h.  */
13247#include "xf86.h"
13248
13249int
13250main ()
13251{
13252#ifndef xf86ConfigIsaEntity
13253  (void) xf86ConfigIsaEntity;
13254#endif
13255
13256  ;
13257  return 0;
13258}
13259_ACEOF
13260rm -f conftest.$ac_objext
13261if { (ac_try="$ac_compile"
13262case "(($ac_try" in
13263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264  *) ac_try_echo=$ac_try;;
13265esac
13266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13267$as_echo "$ac_try_echo") >&5
13268  (eval "$ac_compile") 2>conftest.er1
13269  ac_status=$?
13270  grep -v '^ *+' conftest.er1 >conftest.err
13271  rm -f conftest.er1
13272  cat conftest.err >&5
13273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274  (exit $ac_status); } && {
13275	 test -z "$ac_c_werror_flag" ||
13276	 test ! -s conftest.err
13277       } && test -s conftest.$ac_objext; then
13278  ac_cv_have_decl_xf86ConfigIsaEntity=yes
13279else
13280  $as_echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283	ac_cv_have_decl_xf86ConfigIsaEntity=no
13284fi
13285
13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287fi
13288{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ConfigIsaEntity" >&5
13289$as_echo "$ac_cv_have_decl_xf86ConfigIsaEntity" >&6; }
13290if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = x""yes; then
13291
13292cat >>confdefs.h <<\_ACEOF
13293#define HAVE_ISA 1
13294_ACEOF
13295
13296fi
13297
13298CFLAGS="$save_CFLAGS"
13299
13300SAVE_CPPFLAGS="$CPPFLAGS"
13301CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
13302{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
13303$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
13304if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
13305  $as_echo_n "(cached) " >&6
13306else
13307  cat >conftest.$ac_ext <<_ACEOF
13308/* confdefs.h.  */
13309_ACEOF
13310cat confdefs.h >>conftest.$ac_ext
13311cat >>conftest.$ac_ext <<_ACEOF
13312/* end confdefs.h.  */
13313#include "xorg-server.h"
13314
13315int
13316main ()
13317{
13318#ifndef XSERVER_LIBPCIACCESS
13319  (void) XSERVER_LIBPCIACCESS;
13320#endif
13321
13322  ;
13323  return 0;
13324}
13325_ACEOF
13326rm -f conftest.$ac_objext
13327if { (ac_try="$ac_compile"
13328case "(($ac_try" in
13329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330  *) ac_try_echo=$ac_try;;
13331esac
13332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13333$as_echo "$ac_try_echo") >&5
13334  (eval "$ac_compile") 2>conftest.er1
13335  ac_status=$?
13336  grep -v '^ *+' conftest.er1 >conftest.err
13337  rm -f conftest.er1
13338  cat conftest.err >&5
13339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340  (exit $ac_status); } && {
13341	 test -z "$ac_c_werror_flag" ||
13342	 test ! -s conftest.err
13343       } && test -s conftest.$ac_objext; then
13344  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
13345else
13346  $as_echo "$as_me: failed program was:" >&5
13347sed 's/^/| /' conftest.$ac_ext >&5
13348
13349	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
13350fi
13351
13352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353fi
13354{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
13355$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
13356if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
13357  XSERVER_LIBPCIACCESS=yes
13358else
13359  XSERVER_LIBPCIACCESS=no
13360fi
13361
13362CPPFLAGS="$SAVE_CPPFLAGS"
13363
13364if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13365
13366pkg_failed=no
13367{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
13368$as_echo_n "checking for PCIACCESS... " >&6; }
13369
13370if test -n "$PCIACCESS_CFLAGS"; then
13371    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
13372 elif test -n "$PKG_CONFIG"; then
13373    if test -n "$PKG_CONFIG" && \
13374    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
13375  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
13376  ac_status=$?
13377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378  (exit $ac_status); }; then
13379  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
13380else
13381  pkg_failed=yes
13382fi
13383 else
13384    pkg_failed=untried
13385fi
13386if test -n "$PCIACCESS_LIBS"; then
13387    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
13388 elif test -n "$PKG_CONFIG"; then
13389    if test -n "$PKG_CONFIG" && \
13390    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
13391  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
13392  ac_status=$?
13393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394  (exit $ac_status); }; then
13395  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
13396else
13397  pkg_failed=yes
13398fi
13399 else
13400    pkg_failed=untried
13401fi
13402
13403
13404
13405if test $pkg_failed = yes; then
13406
13407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13408        _pkg_short_errors_supported=yes
13409else
13410        _pkg_short_errors_supported=no
13411fi
13412        if test $_pkg_short_errors_supported = yes; then
13413	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
13414        else
13415	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
13416        fi
13417	# Put the nasty error message in config.log where it belongs
13418	echo "$PCIACCESS_PKG_ERRORS" >&5
13419
13420	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
13421
13422$PCIACCESS_PKG_ERRORS
13423
13424Consider adjusting the PKG_CONFIG_PATH environment variable if you
13425installed software in a non-standard prefix.
13426
13427Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13428and PCIACCESS_LIBS to avoid the need to call pkg-config.
13429See the pkg-config man page for more details.
13430" >&5
13431$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
13432
13433$PCIACCESS_PKG_ERRORS
13434
13435Consider adjusting the PKG_CONFIG_PATH environment variable if you
13436installed software in a non-standard prefix.
13437
13438Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13439and PCIACCESS_LIBS to avoid the need to call pkg-config.
13440See the pkg-config man page for more details.
13441" >&2;}
13442   { (exit 1); exit 1; }; }
13443elif test $pkg_failed = untried; then
13444	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13446{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13447is in your PATH or set the PKG_CONFIG environment variable to the full
13448path to pkg-config.
13449
13450Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13451and PCIACCESS_LIBS to avoid the need to call pkg-config.
13452See the pkg-config man page for more details.
13453
13454To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13455See \`config.log' for more details." >&5
13456$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13457is in your PATH or set the PKG_CONFIG environment variable to the full
13458path to pkg-config.
13459
13460Alternatively, you may set the environment variables PCIACCESS_CFLAGS
13461and PCIACCESS_LIBS to avoid the need to call pkg-config.
13462See the pkg-config man page for more details.
13463
13464To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13465See \`config.log' for more details." >&2;}
13466   { (exit 1); exit 1; }; }; }
13467else
13468	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13469	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13470        { $as_echo "$as_me:$LINENO: result: yes" >&5
13471$as_echo "yes" >&6; }
13472	:
13473fi
13474    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
13475fi
13476 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
13477  XSERVER_LIBPCIACCESS_TRUE=
13478  XSERVER_LIBPCIACCESS_FALSE='#'
13479else
13480  XSERVER_LIBPCIACCESS_TRUE='#'
13481  XSERVER_LIBPCIACCESS_FALSE=
13482fi
13483
13484
13485# Checks for libraries.
13486
13487# Checks for header files.
13488{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13489$as_echo_n "checking for ANSI C header files... " >&6; }
13490if test "${ac_cv_header_stdc+set}" = set; then
13491  $as_echo_n "(cached) " >&6
13492else
13493  cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h.  */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h.  */
13499#include <stdlib.h>
13500#include <stdarg.h>
13501#include <string.h>
13502#include <float.h>
13503
13504int
13505main ()
13506{
13507
13508  ;
13509  return 0;
13510}
13511_ACEOF
13512rm -f conftest.$ac_objext
13513if { (ac_try="$ac_compile"
13514case "(($ac_try" in
13515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516  *) ac_try_echo=$ac_try;;
13517esac
13518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13519$as_echo "$ac_try_echo") >&5
13520  (eval "$ac_compile") 2>conftest.er1
13521  ac_status=$?
13522  grep -v '^ *+' conftest.er1 >conftest.err
13523  rm -f conftest.er1
13524  cat conftest.err >&5
13525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526  (exit $ac_status); } && {
13527	 test -z "$ac_c_werror_flag" ||
13528	 test ! -s conftest.err
13529       } && test -s conftest.$ac_objext; then
13530  ac_cv_header_stdc=yes
13531else
13532  $as_echo "$as_me: failed program was:" >&5
13533sed 's/^/| /' conftest.$ac_ext >&5
13534
13535	ac_cv_header_stdc=no
13536fi
13537
13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539
13540if test $ac_cv_header_stdc = yes; then
13541  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13542  cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h.  */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
13547/* end confdefs.h.  */
13548#include <string.h>
13549
13550_ACEOF
13551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13552  $EGREP "memchr" >/dev/null 2>&1; then
13553  :
13554else
13555  ac_cv_header_stdc=no
13556fi
13557rm -f conftest*
13558
13559fi
13560
13561if test $ac_cv_header_stdc = yes; then
13562  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13563  cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h.  */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h.  */
13569#include <stdlib.h>
13570
13571_ACEOF
13572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13573  $EGREP "free" >/dev/null 2>&1; then
13574  :
13575else
13576  ac_cv_header_stdc=no
13577fi
13578rm -f conftest*
13579
13580fi
13581
13582if test $ac_cv_header_stdc = yes; then
13583  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13584  if test "$cross_compiling" = yes; then
13585  :
13586else
13587  cat >conftest.$ac_ext <<_ACEOF
13588/* confdefs.h.  */
13589_ACEOF
13590cat confdefs.h >>conftest.$ac_ext
13591cat >>conftest.$ac_ext <<_ACEOF
13592/* end confdefs.h.  */
13593#include <ctype.h>
13594#include <stdlib.h>
13595#if ((' ' & 0x0FF) == 0x020)
13596# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13597# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13598#else
13599# define ISLOWER(c) \
13600		   (('a' <= (c) && (c) <= 'i') \
13601		     || ('j' <= (c) && (c) <= 'r') \
13602		     || ('s' <= (c) && (c) <= 'z'))
13603# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13604#endif
13605
13606#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13607int
13608main ()
13609{
13610  int i;
13611  for (i = 0; i < 256; i++)
13612    if (XOR (islower (i), ISLOWER (i))
13613	|| toupper (i) != TOUPPER (i))
13614      return 2;
13615  return 0;
13616}
13617_ACEOF
13618rm -f conftest$ac_exeext
13619if { (ac_try="$ac_link"
13620case "(($ac_try" in
13621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622  *) ac_try_echo=$ac_try;;
13623esac
13624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13625$as_echo "$ac_try_echo") >&5
13626  (eval "$ac_link") 2>&5
13627  ac_status=$?
13628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13630  { (case "(($ac_try" in
13631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632  *) ac_try_echo=$ac_try;;
13633esac
13634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13635$as_echo "$ac_try_echo") >&5
13636  (eval "$ac_try") 2>&5
13637  ac_status=$?
13638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639  (exit $ac_status); }; }; then
13640  :
13641else
13642  $as_echo "$as_me: program exited with status $ac_status" >&5
13643$as_echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
13646( exit $ac_status )
13647ac_cv_header_stdc=no
13648fi
13649rm -rf conftest.dSYM
13650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13651fi
13652
13653
13654fi
13655fi
13656{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13657$as_echo "$ac_cv_header_stdc" >&6; }
13658if test $ac_cv_header_stdc = yes; then
13659
13660cat >>confdefs.h <<\_ACEOF
13661#define STDC_HEADERS 1
13662_ACEOF
13663
13664fi
13665
13666
13667
13668
13669
13670DRIVER_NAME=trident
13671
13672
13673ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
13674
13675cat >confcache <<\_ACEOF
13676# This file is a shell script that caches the results of configure
13677# tests run on this system so they can be shared between configure
13678# scripts and configure runs, see configure's option --config-cache.
13679# It is not useful on other systems.  If it contains results you don't
13680# want to keep, you may remove or edit it.
13681#
13682# config.status only pays attention to the cache file if you give it
13683# the --recheck option to rerun configure.
13684#
13685# `ac_cv_env_foo' variables (set or unset) will be overridden when
13686# loading this file, other *unset* `ac_cv_foo' will be assigned the
13687# following values.
13688
13689_ACEOF
13690
13691# The following way of writing the cache mishandles newlines in values,
13692# but we know of no workaround that is simple, portable, and efficient.
13693# So, we kill variables containing newlines.
13694# Ultrix sh set writes to stderr and can't be redirected directly,
13695# and sets the high bit in the cache file unless we assign to the vars.
13696(
13697  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13698    eval ac_val=\$$ac_var
13699    case $ac_val in #(
13700    *${as_nl}*)
13701      case $ac_var in #(
13702      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13703$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13704      esac
13705      case $ac_var in #(
13706      _ | IFS | as_nl) ;; #(
13707      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13708      *) $as_unset $ac_var ;;
13709      esac ;;
13710    esac
13711  done
13712
13713  (set) 2>&1 |
13714    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13715    *${as_nl}ac_space=\ *)
13716      # `set' does not quote correctly, so add quotes (double-quote
13717      # substitution turns \\\\ into \\, and sed turns \\ into \).
13718      sed -n \
13719	"s/'/'\\\\''/g;
13720	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13721      ;; #(
13722    *)
13723      # `set' quotes correctly as required by POSIX, so do not add quotes.
13724      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13725      ;;
13726    esac |
13727    sort
13728) |
13729  sed '
13730     /^ac_cv_env_/b end
13731     t clear
13732     :clear
13733     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13734     t end
13735     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13736     :end' >>confcache
13737if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13738  if test -w "$cache_file"; then
13739    test "x$cache_file" != "x/dev/null" &&
13740      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13741$as_echo "$as_me: updating cache $cache_file" >&6;}
13742    cat confcache >$cache_file
13743  else
13744    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13745$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13746  fi
13747fi
13748rm -f confcache
13749
13750test "x$prefix" = xNONE && prefix=$ac_default_prefix
13751# Let make expand exec_prefix.
13752test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13753
13754DEFS=-DHAVE_CONFIG_H
13755
13756ac_libobjs=
13757ac_ltlibobjs=
13758for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13759  # 1. Remove the extension, and $U if already installed.
13760  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13761  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13762  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13763  #    will be set to the directory where LIBOBJS objects are built.
13764  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13765  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13766done
13767LIBOBJS=$ac_libobjs
13768
13769LTLIBOBJS=$ac_ltlibobjs
13770
13771
13772 if test -n "$EXEEXT"; then
13773  am__EXEEXT_TRUE=
13774  am__EXEEXT_FALSE='#'
13775else
13776  am__EXEEXT_TRUE='#'
13777  am__EXEEXT_FALSE=
13778fi
13779
13780if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13781  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13782Usually this means the macro was only invoked conditionally." >&5
13783$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13784Usually this means the macro was only invoked conditionally." >&2;}
13785   { (exit 1); exit 1; }; }
13786fi
13787if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13788  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13789Usually this means the macro was only invoked conditionally." >&5
13790$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13791Usually this means the macro was only invoked conditionally." >&2;}
13792   { (exit 1); exit 1; }; }
13793fi
13794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13795  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13796Usually this means the macro was only invoked conditionally." >&5
13797$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13798Usually this means the macro was only invoked conditionally." >&2;}
13799   { (exit 1); exit 1; }; }
13800fi
13801if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13802  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13803Usually this means the macro was only invoked conditionally." >&5
13804$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13805Usually this means the macro was only invoked conditionally." >&2;}
13806   { (exit 1); exit 1; }; }
13807fi
13808if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
13809  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
13810Usually this means the macro was only invoked conditionally." >&5
13811$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
13812Usually this means the macro was only invoked conditionally." >&2;}
13813   { (exit 1); exit 1; }; }
13814fi
13815if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13816  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13817Usually this means the macro was only invoked conditionally." >&5
13818$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13819Usually this means the macro was only invoked conditionally." >&2;}
13820   { (exit 1); exit 1; }; }
13821fi
13822
13823: ${CONFIG_STATUS=./config.status}
13824ac_write_fail=0
13825ac_clean_files_save=$ac_clean_files
13826ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13827{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13828$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13829cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13830#! $SHELL
13831# Generated by $as_me.
13832# Run this file to recreate the current configuration.
13833# Compiler output produced by configure, useful for debugging
13834# configure, is in config.log if it exists.
13835
13836debug=false
13837ac_cs_recheck=false
13838ac_cs_silent=false
13839SHELL=\${CONFIG_SHELL-$SHELL}
13840_ACEOF
13841
13842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843## --------------------- ##
13844## M4sh Initialization.  ##
13845## --------------------- ##
13846
13847# Be more Bourne compatible
13848DUALCASE=1; export DUALCASE # for MKS sh
13849if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13850  emulate sh
13851  NULLCMD=:
13852  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13853  # is contrary to our usage.  Disable this feature.
13854  alias -g '${1+"$@"}'='"$@"'
13855  setopt NO_GLOB_SUBST
13856else
13857  case `(set -o) 2>/dev/null` in
13858  *posix*) set -o posix ;;
13859esac
13860
13861fi
13862
13863
13864
13865
13866# PATH needs CR
13867# Avoid depending upon Character Ranges.
13868as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13870as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13871as_cr_digits='0123456789'
13872as_cr_alnum=$as_cr_Letters$as_cr_digits
13873
13874as_nl='
13875'
13876export as_nl
13877# Printing a long string crashes Solaris 7 /usr/bin/printf.
13878as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13879as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13880as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13881if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13882  as_echo='printf %s\n'
13883  as_echo_n='printf %s'
13884else
13885  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13886    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13887    as_echo_n='/usr/ucb/echo -n'
13888  else
13889    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13890    as_echo_n_body='eval
13891      arg=$1;
13892      case $arg in
13893      *"$as_nl"*)
13894	expr "X$arg" : "X\\(.*\\)$as_nl";
13895	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13896      esac;
13897      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13898    '
13899    export as_echo_n_body
13900    as_echo_n='sh -c $as_echo_n_body as_echo'
13901  fi
13902  export as_echo_body
13903  as_echo='sh -c $as_echo_body as_echo'
13904fi
13905
13906# The user is always right.
13907if test "${PATH_SEPARATOR+set}" != set; then
13908  PATH_SEPARATOR=:
13909  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13910    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13911      PATH_SEPARATOR=';'
13912  }
13913fi
13914
13915# Support unset when possible.
13916if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13917  as_unset=unset
13918else
13919  as_unset=false
13920fi
13921
13922
13923# IFS
13924# We need space, tab and new line, in precisely that order.  Quoting is
13925# there to prevent editors from complaining about space-tab.
13926# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13927# splitting by setting IFS to empty value.)
13928IFS=" ""	$as_nl"
13929
13930# Find who we are.  Look in the path if we contain no directory separator.
13931case $0 in
13932  *[\\/]* ) as_myself=$0 ;;
13933  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934for as_dir in $PATH
13935do
13936  IFS=$as_save_IFS
13937  test -z "$as_dir" && as_dir=.
13938  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13939done
13940IFS=$as_save_IFS
13941
13942     ;;
13943esac
13944# We did not find ourselves, most probably we were run as `sh COMMAND'
13945# in which case we are not to be found in the path.
13946if test "x$as_myself" = x; then
13947  as_myself=$0
13948fi
13949if test ! -f "$as_myself"; then
13950  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13951  { (exit 1); exit 1; }
13952fi
13953
13954# Work around bugs in pre-3.0 UWIN ksh.
13955for as_var in ENV MAIL MAILPATH
13956do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13957done
13958PS1='$ '
13959PS2='> '
13960PS4='+ '
13961
13962# NLS nuisances.
13963LC_ALL=C
13964export LC_ALL
13965LANGUAGE=C
13966export LANGUAGE
13967
13968# Required to use basename.
13969if expr a : '\(a\)' >/dev/null 2>&1 &&
13970   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13971  as_expr=expr
13972else
13973  as_expr=false
13974fi
13975
13976if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13977  as_basename=basename
13978else
13979  as_basename=false
13980fi
13981
13982
13983# Name of the executable.
13984as_me=`$as_basename -- "$0" ||
13985$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13986	 X"$0" : 'X\(//\)$' \| \
13987	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13988$as_echo X/"$0" |
13989    sed '/^.*\/\([^/][^/]*\)\/*$/{
13990	    s//\1/
13991	    q
13992	  }
13993	  /^X\/\(\/\/\)$/{
13994	    s//\1/
13995	    q
13996	  }
13997	  /^X\/\(\/\).*/{
13998	    s//\1/
13999	    q
14000	  }
14001	  s/.*/./; q'`
14002
14003# CDPATH.
14004$as_unset CDPATH
14005
14006
14007
14008  as_lineno_1=$LINENO
14009  as_lineno_2=$LINENO
14010  test "x$as_lineno_1" != "x$as_lineno_2" &&
14011  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14012
14013  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14014  # uniformly replaced by the line number.  The first 'sed' inserts a
14015  # line-number line after each line using $LINENO; the second 'sed'
14016  # does the real work.  The second script uses 'N' to pair each
14017  # line-number line with the line containing $LINENO, and appends
14018  # trailing '-' during substitution so that $LINENO is not a special
14019  # case at line end.
14020  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14021  # scripts with optimization help from Paolo Bonzini.  Blame Lee
14022  # E. McMahon (1931-1989) for sed's syntax.  :-)
14023  sed -n '
14024    p
14025    /[$]LINENO/=
14026  ' <$as_myself |
14027    sed '
14028      s/[$]LINENO.*/&-/
14029      t lineno
14030      b
14031      :lineno
14032      N
14033      :loop
14034      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14035      t loop
14036      s/-\n.*//
14037    ' >$as_me.lineno &&
14038  chmod +x "$as_me.lineno" ||
14039    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14040   { (exit 1); exit 1; }; }
14041
14042  # Don't try to exec as it changes $[0], causing all sort of problems
14043  # (the dirname of $[0] is not the place where we might find the
14044  # original and so on.  Autoconf is especially sensitive to this).
14045  . "./$as_me.lineno"
14046  # Exit status is that of the last command.
14047  exit
14048}
14049
14050
14051if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14052  as_dirname=dirname
14053else
14054  as_dirname=false
14055fi
14056
14057ECHO_C= ECHO_N= ECHO_T=
14058case `echo -n x` in
14059-n*)
14060  case `echo 'x\c'` in
14061  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14062  *)   ECHO_C='\c';;
14063  esac;;
14064*)
14065  ECHO_N='-n';;
14066esac
14067if expr a : '\(a\)' >/dev/null 2>&1 &&
14068   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14069  as_expr=expr
14070else
14071  as_expr=false
14072fi
14073
14074rm -f conf$$ conf$$.exe conf$$.file
14075if test -d conf$$.dir; then
14076  rm -f conf$$.dir/conf$$.file
14077else
14078  rm -f conf$$.dir
14079  mkdir conf$$.dir 2>/dev/null
14080fi
14081if (echo >conf$$.file) 2>/dev/null; then
14082  if ln -s conf$$.file conf$$ 2>/dev/null; then
14083    as_ln_s='ln -s'
14084    # ... but there are two gotchas:
14085    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14086    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14087    # In both cases, we have to default to `cp -p'.
14088    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14089      as_ln_s='cp -p'
14090  elif ln conf$$.file conf$$ 2>/dev/null; then
14091    as_ln_s=ln
14092  else
14093    as_ln_s='cp -p'
14094  fi
14095else
14096  as_ln_s='cp -p'
14097fi
14098rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14099rmdir conf$$.dir 2>/dev/null
14100
14101if mkdir -p . 2>/dev/null; then
14102  as_mkdir_p=:
14103else
14104  test -d ./-p && rmdir ./-p
14105  as_mkdir_p=false
14106fi
14107
14108if test -x / >/dev/null 2>&1; then
14109  as_test_x='test -x'
14110else
14111  if ls -dL / >/dev/null 2>&1; then
14112    as_ls_L_option=L
14113  else
14114    as_ls_L_option=
14115  fi
14116  as_test_x='
14117    eval sh -c '\''
14118      if test -d "$1"; then
14119	test -d "$1/.";
14120      else
14121	case $1 in
14122	-*)set "./$1";;
14123	esac;
14124	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14125	???[sx]*):;;*)false;;esac;fi
14126    '\'' sh
14127  '
14128fi
14129as_executable_p=$as_test_x
14130
14131# Sed expression to map a string onto a valid CPP name.
14132as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14133
14134# Sed expression to map a string onto a valid variable name.
14135as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14136
14137
14138exec 6>&1
14139
14140# Save the log message, to keep $[0] and so on meaningful, and to
14141# report actual input values of CONFIG_FILES etc. instead of their
14142# values after options handling.
14143ac_log="
14144This file was extended by xf86-video-trident $as_me 1.3.4, which was
14145generated by GNU Autoconf 2.63.  Invocation command line was
14146
14147  CONFIG_FILES    = $CONFIG_FILES
14148  CONFIG_HEADERS  = $CONFIG_HEADERS
14149  CONFIG_LINKS    = $CONFIG_LINKS
14150  CONFIG_COMMANDS = $CONFIG_COMMANDS
14151  $ $0 $@
14152
14153on `(hostname || uname -n) 2>/dev/null | sed 1q`
14154"
14155
14156_ACEOF
14157
14158case $ac_config_files in *"
14159"*) set x $ac_config_files; shift; ac_config_files=$*;;
14160esac
14161
14162case $ac_config_headers in *"
14163"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14164esac
14165
14166
14167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168# Files that config.status was made for.
14169config_files="$ac_config_files"
14170config_headers="$ac_config_headers"
14171config_commands="$ac_config_commands"
14172
14173_ACEOF
14174
14175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14176ac_cs_usage="\
14177\`$as_me' instantiates files from templates according to the
14178current configuration.
14179
14180Usage: $0 [OPTION]... [FILE]...
14181
14182  -h, --help       print this help, then exit
14183  -V, --version    print version number and configuration settings, then exit
14184  -q, --quiet, --silent
14185                   do not print progress messages
14186  -d, --debug      don't remove temporary files
14187      --recheck    update $as_me by reconfiguring in the same conditions
14188      --file=FILE[:TEMPLATE]
14189                   instantiate the configuration file FILE
14190      --header=FILE[:TEMPLATE]
14191                   instantiate the configuration header FILE
14192
14193Configuration files:
14194$config_files
14195
14196Configuration headers:
14197$config_headers
14198
14199Configuration commands:
14200$config_commands
14201
14202Report bugs to <bug-autoconf@gnu.org>."
14203
14204_ACEOF
14205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14206ac_cs_version="\\
14207xf86-video-trident config.status 1.3.4
14208configured by $0, generated by GNU Autoconf 2.63,
14209  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14210
14211Copyright (C) 2008 Free Software Foundation, Inc.
14212This config.status script is free software; the Free Software Foundation
14213gives unlimited permission to copy, distribute and modify it."
14214
14215ac_pwd='$ac_pwd'
14216srcdir='$srcdir'
14217INSTALL='$INSTALL'
14218MKDIR_P='$MKDIR_P'
14219AWK='$AWK'
14220test -n "\$AWK" || AWK=awk
14221_ACEOF
14222
14223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14224# The default lists apply if the user does not specify any file.
14225ac_need_defaults=:
14226while test $# != 0
14227do
14228  case $1 in
14229  --*=*)
14230    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14231    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14232    ac_shift=:
14233    ;;
14234  *)
14235    ac_option=$1
14236    ac_optarg=$2
14237    ac_shift=shift
14238    ;;
14239  esac
14240
14241  case $ac_option in
14242  # Handling of the options.
14243  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14244    ac_cs_recheck=: ;;
14245  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14246    $as_echo "$ac_cs_version"; exit ;;
14247  --debug | --debu | --deb | --de | --d | -d )
14248    debug=: ;;
14249  --file | --fil | --fi | --f )
14250    $ac_shift
14251    case $ac_optarg in
14252    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14253    esac
14254    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14255    ac_need_defaults=false;;
14256  --header | --heade | --head | --hea )
14257    $ac_shift
14258    case $ac_optarg in
14259    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14260    esac
14261    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14262    ac_need_defaults=false;;
14263  --he | --h)
14264    # Conflict between --help and --header
14265    { $as_echo "$as_me: error: ambiguous option: $1
14266Try \`$0 --help' for more information." >&2
14267   { (exit 1); exit 1; }; };;
14268  --help | --hel | -h )
14269    $as_echo "$ac_cs_usage"; exit ;;
14270  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14271  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14272    ac_cs_silent=: ;;
14273
14274  # This is an error.
14275  -*) { $as_echo "$as_me: error: unrecognized option: $1
14276Try \`$0 --help' for more information." >&2
14277   { (exit 1); exit 1; }; } ;;
14278
14279  *) ac_config_targets="$ac_config_targets $1"
14280     ac_need_defaults=false ;;
14281
14282  esac
14283  shift
14284done
14285
14286ac_configure_extra_args=
14287
14288if $ac_cs_silent; then
14289  exec 6>/dev/null
14290  ac_configure_extra_args="$ac_configure_extra_args --silent"
14291fi
14292
14293_ACEOF
14294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14295if \$ac_cs_recheck; then
14296  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14297  shift
14298  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14299  CONFIG_SHELL='$SHELL'
14300  export CONFIG_SHELL
14301  exec "\$@"
14302fi
14303
14304_ACEOF
14305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14306exec 5>>config.log
14307{
14308  echo
14309  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14310## Running $as_me. ##
14311_ASBOX
14312  $as_echo "$ac_log"
14313} >&5
14314
14315_ACEOF
14316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14317#
14318# INIT-COMMANDS
14319#
14320AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14321
14322
14323# The HP-UX ksh and POSIX shell print the target directory to stdout
14324# if CDPATH is set.
14325(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14326
14327sed_quote_subst='$sed_quote_subst'
14328double_quote_subst='$double_quote_subst'
14329delay_variable_subst='$delay_variable_subst'
14330enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14331macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14332macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14333enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14334pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14335enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14336host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14337host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14338host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14339build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14340build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14341build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14342SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14343Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14344GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14345EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14346FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14347LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14348NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14349LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14350max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14351ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14352exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14353lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14354lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14355lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14356reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14357reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14358OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14359deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14360file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14361AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14362AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14363STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14364RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14365old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14366old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14367old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14368CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14369CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14370compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14371GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14372lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14373lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14374lt_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"`'
14375lt_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"`'
14376objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14377SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14378ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14379MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14380lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14381lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14382lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14383lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14384lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14385need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14386DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14387NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14388LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14389OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14390OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14391libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14392shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14393extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14394archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14395enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14396export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14397whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14398compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14399old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14400old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14401archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14402archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14403module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14404module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14405with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14406allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14407no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14408hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14409hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14410hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14411hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14412hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14413hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14414hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14415hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14416inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14417link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14418fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14419always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14420export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14421exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14422include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14423prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14424file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14425variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14426need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14427need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14428version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14429runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14430shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14431shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14432libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14433library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14434soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14435postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14436postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14437finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14438finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14439hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14440sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14441sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14442hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14443enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14444enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14445enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14446old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14447striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14448
14449LTCC='$LTCC'
14450LTCFLAGS='$LTCFLAGS'
14451compiler='$compiler_DEFAULT'
14452
14453# Quote evaled strings.
14454for var in SED \
14455GREP \
14456EGREP \
14457FGREP \
14458LD \
14459NM \
14460LN_S \
14461lt_SP2NL \
14462lt_NL2SP \
14463reload_flag \
14464OBJDUMP \
14465deplibs_check_method \
14466file_magic_cmd \
14467AR \
14468AR_FLAGS \
14469STRIP \
14470RANLIB \
14471CC \
14472CFLAGS \
14473compiler \
14474lt_cv_sys_global_symbol_pipe \
14475lt_cv_sys_global_symbol_to_cdecl \
14476lt_cv_sys_global_symbol_to_c_name_address \
14477lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14478SHELL \
14479ECHO \
14480lt_prog_compiler_no_builtin_flag \
14481lt_prog_compiler_wl \
14482lt_prog_compiler_pic \
14483lt_prog_compiler_static \
14484lt_cv_prog_compiler_c_o \
14485need_locks \
14486DSYMUTIL \
14487NMEDIT \
14488LIPO \
14489OTOOL \
14490OTOOL64 \
14491shrext_cmds \
14492export_dynamic_flag_spec \
14493whole_archive_flag_spec \
14494compiler_needs_object \
14495with_gnu_ld \
14496allow_undefined_flag \
14497no_undefined_flag \
14498hardcode_libdir_flag_spec \
14499hardcode_libdir_flag_spec_ld \
14500hardcode_libdir_separator \
14501fix_srcfile_path \
14502exclude_expsyms \
14503include_expsyms \
14504file_list_spec \
14505variables_saved_for_relink \
14506libname_spec \
14507library_names_spec \
14508soname_spec \
14509finish_eval \
14510old_striplib \
14511striplib; do
14512    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14513    *[\\\\\\\`\\"\\\$]*)
14514      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14515      ;;
14516    *)
14517      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14518      ;;
14519    esac
14520done
14521
14522# Double-quote double-evaled strings.
14523for var in reload_cmds \
14524old_postinstall_cmds \
14525old_postuninstall_cmds \
14526old_archive_cmds \
14527extract_expsyms_cmds \
14528old_archive_from_new_cmds \
14529old_archive_from_expsyms_cmds \
14530archive_cmds \
14531archive_expsym_cmds \
14532module_cmds \
14533module_expsym_cmds \
14534export_symbols_cmds \
14535prelink_cmds \
14536postinstall_cmds \
14537postuninstall_cmds \
14538finish_cmds \
14539sys_lib_search_path_spec \
14540sys_lib_dlsearch_path_spec; do
14541    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14542    *[\\\\\\\`\\"\\\$]*)
14543      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14544      ;;
14545    *)
14546      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14547      ;;
14548    esac
14549done
14550
14551# Fix-up fallback echo if it was mangled by the above quoting rules.
14552case \$lt_ECHO in
14553*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14554  ;;
14555esac
14556
14557ac_aux_dir='$ac_aux_dir'
14558xsi_shell='$xsi_shell'
14559lt_shell_append='$lt_shell_append'
14560
14561# See if we are running on zsh, and set the options which allow our
14562# commands through without removal of \ escapes INIT.
14563if test -n "\${ZSH_VERSION+set}" ; then
14564   setopt NO_GLOB_SUBST
14565fi
14566
14567
14568    PACKAGE='$PACKAGE'
14569    VERSION='$VERSION'
14570    TIMESTAMP='$TIMESTAMP'
14571    RM='$RM'
14572    ofile='$ofile'
14573
14574
14575
14576
14577_ACEOF
14578
14579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14580
14581# Handling of arguments.
14582for ac_config_target in $ac_config_targets
14583do
14584  case $ac_config_target in
14585    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14586    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14587    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14588    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14589    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14590    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14591
14592  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14593$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14594   { (exit 1); exit 1; }; };;
14595  esac
14596done
14597
14598
14599# If the user did not use the arguments to specify the items to instantiate,
14600# then the envvar interface is used.  Set only those that are not.
14601# We use the long form for the default assignment because of an extremely
14602# bizarre bug on SunOS 4.1.3.
14603if $ac_need_defaults; then
14604  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14605  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14606  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14607fi
14608
14609# Have a temporary directory for convenience.  Make it in the build tree
14610# simply because there is no reason against having it here, and in addition,
14611# creating and moving files from /tmp can sometimes cause problems.
14612# Hook for its removal unless debugging.
14613# Note that there is a small window in which the directory will not be cleaned:
14614# after its creation but before its name has been assigned to `$tmp'.
14615$debug ||
14616{
14617  tmp=
14618  trap 'exit_status=$?
14619  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14620' 0
14621  trap '{ (exit 1); exit 1; }' 1 2 13 15
14622}
14623# Create a (secure) tmp directory for tmp files.
14624
14625{
14626  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14627  test -n "$tmp" && test -d "$tmp"
14628}  ||
14629{
14630  tmp=./conf$$-$RANDOM
14631  (umask 077 && mkdir "$tmp")
14632} ||
14633{
14634   $as_echo "$as_me: cannot create a temporary directory in ." >&2
14635   { (exit 1); exit 1; }
14636}
14637
14638# Set up the scripts for CONFIG_FILES section.
14639# No need to generate them if there are no CONFIG_FILES.
14640# This happens for instance with `./config.status config.h'.
14641if test -n "$CONFIG_FILES"; then
14642
14643
14644ac_cr='
14645'
14646ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14647if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14648  ac_cs_awk_cr='\\r'
14649else
14650  ac_cs_awk_cr=$ac_cr
14651fi
14652
14653echo 'BEGIN {' >"$tmp/subs1.awk" &&
14654_ACEOF
14655
14656
14657{
14658  echo "cat >conf$$subs.awk <<_ACEOF" &&
14659  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14660  echo "_ACEOF"
14661} >conf$$subs.sh ||
14662  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14663$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14664   { (exit 1); exit 1; }; }
14665ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14666ac_delim='%!_!# '
14667for ac_last_try in false false false false false :; do
14668  . ./conf$$subs.sh ||
14669    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14670$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14671   { (exit 1); exit 1; }; }
14672
14673  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14674  if test $ac_delim_n = $ac_delim_num; then
14675    break
14676  elif $ac_last_try; then
14677    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14678$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14679   { (exit 1); exit 1; }; }
14680  else
14681    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14682  fi
14683done
14684rm -f conf$$subs.sh
14685
14686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14687cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14688_ACEOF
14689sed -n '
14690h
14691s/^/S["/; s/!.*/"]=/
14692p
14693g
14694s/^[^!]*!//
14695:repl
14696t repl
14697s/'"$ac_delim"'$//
14698t delim
14699:nl
14700h
14701s/\(.\{148\}\).*/\1/
14702t more1
14703s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14704p
14705n
14706b repl
14707:more1
14708s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14709p
14710g
14711s/.\{148\}//
14712t nl
14713:delim
14714h
14715s/\(.\{148\}\).*/\1/
14716t more2
14717s/["\\]/\\&/g; s/^/"/; s/$/"/
14718p
14719b
14720:more2
14721s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14722p
14723g
14724s/.\{148\}//
14725t delim
14726' <conf$$subs.awk | sed '
14727/^[^""]/{
14728  N
14729  s/\n//
14730}
14731' >>$CONFIG_STATUS || ac_write_fail=1
14732rm -f conf$$subs.awk
14733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14734_ACAWK
14735cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14736  for (key in S) S_is_set[key] = 1
14737  FS = ""
14738
14739}
14740{
14741  line = $ 0
14742  nfields = split(line, field, "@")
14743  substed = 0
14744  len = length(field[1])
14745  for (i = 2; i < nfields; i++) {
14746    key = field[i]
14747    keylen = length(key)
14748    if (S_is_set[key]) {
14749      value = S[key]
14750      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14751      len += length(value) + length(field[++i])
14752      substed = 1
14753    } else
14754      len += 1 + keylen
14755  }
14756
14757  print line
14758}
14759
14760_ACAWK
14761_ACEOF
14762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14763if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14764  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14765else
14766  cat
14767fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14768  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14769$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14770   { (exit 1); exit 1; }; }
14771_ACEOF
14772
14773# VPATH may cause trouble with some makes, so we remove $(srcdir),
14774# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14775# trailing colons and then remove the whole line if VPATH becomes empty
14776# (actually we leave an empty line to preserve line numbers).
14777if test "x$srcdir" = x.; then
14778  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14779s/:*\$(srcdir):*/:/
14780s/:*\${srcdir}:*/:/
14781s/:*@srcdir@:*/:/
14782s/^\([^=]*=[	 ]*\):*/\1/
14783s/:*$//
14784s/^[^=]*=[	 ]*$//
14785}'
14786fi
14787
14788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14789fi # test -n "$CONFIG_FILES"
14790
14791# Set up the scripts for CONFIG_HEADERS section.
14792# No need to generate them if there are no CONFIG_HEADERS.
14793# This happens for instance with `./config.status Makefile'.
14794if test -n "$CONFIG_HEADERS"; then
14795cat >"$tmp/defines.awk" <<\_ACAWK ||
14796BEGIN {
14797_ACEOF
14798
14799# Transform confdefs.h into an awk script `defines.awk', embedded as
14800# here-document in config.status, that substitutes the proper values into
14801# config.h.in to produce config.h.
14802
14803# Create a delimiter string that does not exist in confdefs.h, to ease
14804# handling of long lines.
14805ac_delim='%!_!# '
14806for ac_last_try in false false :; do
14807  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14808  if test -z "$ac_t"; then
14809    break
14810  elif $ac_last_try; then
14811    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14812$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14813   { (exit 1); exit 1; }; }
14814  else
14815    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14816  fi
14817done
14818
14819# For the awk script, D is an array of macro values keyed by name,
14820# likewise P contains macro parameters if any.  Preserve backslash
14821# newline sequences.
14822
14823ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14824sed -n '
14825s/.\{148\}/&'"$ac_delim"'/g
14826t rset
14827:rset
14828s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14829t def
14830d
14831:def
14832s/\\$//
14833t bsnl
14834s/["\\]/\\&/g
14835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14836D["\1"]=" \3"/p
14837s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14838d
14839:bsnl
14840s/["\\]/\\&/g
14841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14842D["\1"]=" \3\\\\\\n"\\/p
14843t cont
14844s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14845t cont
14846d
14847:cont
14848n
14849s/.\{148\}/&'"$ac_delim"'/g
14850t clear
14851:clear
14852s/\\$//
14853t bsnlc
14854s/["\\]/\\&/g; s/^/"/; s/$/"/p
14855d
14856:bsnlc
14857s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14858b cont
14859' <confdefs.h | sed '
14860s/'"$ac_delim"'/"\\\
14861"/g' >>$CONFIG_STATUS || ac_write_fail=1
14862
14863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14864  for (key in D) D_is_set[key] = 1
14865  FS = ""
14866}
14867/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14868  line = \$ 0
14869  split(line, arg, " ")
14870  if (arg[1] == "#") {
14871    defundef = arg[2]
14872    mac1 = arg[3]
14873  } else {
14874    defundef = substr(arg[1], 2)
14875    mac1 = arg[2]
14876  }
14877  split(mac1, mac2, "(") #)
14878  macro = mac2[1]
14879  prefix = substr(line, 1, index(line, defundef) - 1)
14880  if (D_is_set[macro]) {
14881    # Preserve the white space surrounding the "#".
14882    print prefix "define", macro P[macro] D[macro]
14883    next
14884  } else {
14885    # Replace #undef with comments.  This is necessary, for example,
14886    # in the case of _POSIX_SOURCE, which is predefined and required
14887    # on some systems where configure will not decide to define it.
14888    if (defundef == "undef") {
14889      print "/*", prefix defundef, macro, "*/"
14890      next
14891    }
14892  }
14893}
14894{ print }
14895_ACAWK
14896_ACEOF
14897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14898  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14899$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14900   { (exit 1); exit 1; }; }
14901fi # test -n "$CONFIG_HEADERS"
14902
14903
14904eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14905shift
14906for ac_tag
14907do
14908  case $ac_tag in
14909  :[FHLC]) ac_mode=$ac_tag; continue;;
14910  esac
14911  case $ac_mode$ac_tag in
14912  :[FHL]*:*);;
14913  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14914$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14915   { (exit 1); exit 1; }; };;
14916  :[FH]-) ac_tag=-:-;;
14917  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14918  esac
14919  ac_save_IFS=$IFS
14920  IFS=:
14921  set x $ac_tag
14922  IFS=$ac_save_IFS
14923  shift
14924  ac_file=$1
14925  shift
14926
14927  case $ac_mode in
14928  :L) ac_source=$1;;
14929  :[FH])
14930    ac_file_inputs=
14931    for ac_f
14932    do
14933      case $ac_f in
14934      -) ac_f="$tmp/stdin";;
14935      *) # Look for the file first in the build tree, then in the source tree
14936	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14937	 # because $ac_f cannot contain `:'.
14938	 test -f "$ac_f" ||
14939	   case $ac_f in
14940	   [\\/$]*) false;;
14941	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14942	   esac ||
14943	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14944$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14945   { (exit 1); exit 1; }; };;
14946      esac
14947      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14948      ac_file_inputs="$ac_file_inputs '$ac_f'"
14949    done
14950
14951    # Let's still pretend it is `configure' which instantiates (i.e., don't
14952    # use $as_me), people would be surprised to read:
14953    #    /* config.h.  Generated by config.status.  */
14954    configure_input='Generated from '`
14955	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14956	`' by configure.'
14957    if test x"$ac_file" != x-; then
14958      configure_input="$ac_file.  $configure_input"
14959      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14960$as_echo "$as_me: creating $ac_file" >&6;}
14961    fi
14962    # Neutralize special characters interpreted by sed in replacement strings.
14963    case $configure_input in #(
14964    *\&* | *\|* | *\\* )
14965       ac_sed_conf_input=`$as_echo "$configure_input" |
14966       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14967    *) ac_sed_conf_input=$configure_input;;
14968    esac
14969
14970    case $ac_tag in
14971    *:-:* | *:-) cat >"$tmp/stdin" \
14972      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14973$as_echo "$as_me: error: could not create $ac_file" >&2;}
14974   { (exit 1); exit 1; }; } ;;
14975    esac
14976    ;;
14977  esac
14978
14979  ac_dir=`$as_dirname -- "$ac_file" ||
14980$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14981	 X"$ac_file" : 'X\(//\)[^/]' \| \
14982	 X"$ac_file" : 'X\(//\)$' \| \
14983	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14984$as_echo X"$ac_file" |
14985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14986	    s//\1/
14987	    q
14988	  }
14989	  /^X\(\/\/\)[^/].*/{
14990	    s//\1/
14991	    q
14992	  }
14993	  /^X\(\/\/\)$/{
14994	    s//\1/
14995	    q
14996	  }
14997	  /^X\(\/\).*/{
14998	    s//\1/
14999	    q
15000	  }
15001	  s/.*/./; q'`
15002  { as_dir="$ac_dir"
15003  case $as_dir in #(
15004  -*) as_dir=./$as_dir;;
15005  esac
15006  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15007    as_dirs=
15008    while :; do
15009      case $as_dir in #(
15010      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15011      *) as_qdir=$as_dir;;
15012      esac
15013      as_dirs="'$as_qdir' $as_dirs"
15014      as_dir=`$as_dirname -- "$as_dir" ||
15015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15016	 X"$as_dir" : 'X\(//\)[^/]' \| \
15017	 X"$as_dir" : 'X\(//\)$' \| \
15018	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15019$as_echo X"$as_dir" |
15020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15021	    s//\1/
15022	    q
15023	  }
15024	  /^X\(\/\/\)[^/].*/{
15025	    s//\1/
15026	    q
15027	  }
15028	  /^X\(\/\/\)$/{
15029	    s//\1/
15030	    q
15031	  }
15032	  /^X\(\/\).*/{
15033	    s//\1/
15034	    q
15035	  }
15036	  s/.*/./; q'`
15037      test -d "$as_dir" && break
15038    done
15039    test -z "$as_dirs" || eval "mkdir $as_dirs"
15040  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15041$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15042   { (exit 1); exit 1; }; }; }
15043  ac_builddir=.
15044
15045case "$ac_dir" in
15046.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15047*)
15048  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15049  # A ".." for each directory in $ac_dir_suffix.
15050  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15051  case $ac_top_builddir_sub in
15052  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15053  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15054  esac ;;
15055esac
15056ac_abs_top_builddir=$ac_pwd
15057ac_abs_builddir=$ac_pwd$ac_dir_suffix
15058# for backward compatibility:
15059ac_top_builddir=$ac_top_build_prefix
15060
15061case $srcdir in
15062  .)  # We are building in place.
15063    ac_srcdir=.
15064    ac_top_srcdir=$ac_top_builddir_sub
15065    ac_abs_top_srcdir=$ac_pwd ;;
15066  [\\/]* | ?:[\\/]* )  # Absolute name.
15067    ac_srcdir=$srcdir$ac_dir_suffix;
15068    ac_top_srcdir=$srcdir
15069    ac_abs_top_srcdir=$srcdir ;;
15070  *) # Relative name.
15071    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15072    ac_top_srcdir=$ac_top_build_prefix$srcdir
15073    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15074esac
15075ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15076
15077
15078  case $ac_mode in
15079  :F)
15080  #
15081  # CONFIG_FILE
15082  #
15083
15084  case $INSTALL in
15085  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15086  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15087  esac
15088  ac_MKDIR_P=$MKDIR_P
15089  case $MKDIR_P in
15090  [\\/$]* | ?:[\\/]* ) ;;
15091  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15092  esac
15093_ACEOF
15094
15095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096# If the template does not know about datarootdir, expand it.
15097# FIXME: This hack should be removed a few years after 2.60.
15098ac_datarootdir_hack=; ac_datarootdir_seen=
15099
15100ac_sed_dataroot='
15101/datarootdir/ {
15102  p
15103  q
15104}
15105/@datadir@/p
15106/@docdir@/p
15107/@infodir@/p
15108/@localedir@/p
15109/@mandir@/p
15110'
15111case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15112*datarootdir*) ac_datarootdir_seen=yes;;
15113*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15114  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15115$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15116_ACEOF
15117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118  ac_datarootdir_hack='
15119  s&@datadir@&$datadir&g
15120  s&@docdir@&$docdir&g
15121  s&@infodir@&$infodir&g
15122  s&@localedir@&$localedir&g
15123  s&@mandir@&$mandir&g
15124    s&\\\${datarootdir}&$datarootdir&g' ;;
15125esac
15126_ACEOF
15127
15128# Neutralize VPATH when `$srcdir' = `.'.
15129# Shell code in configure.ac might set extrasub.
15130# FIXME: do we really want to maintain this feature?
15131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15132ac_sed_extra="$ac_vpsub
15133$extrasub
15134_ACEOF
15135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136:t
15137/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15138s|@configure_input@|$ac_sed_conf_input|;t t
15139s&@top_builddir@&$ac_top_builddir_sub&;t t
15140s&@top_build_prefix@&$ac_top_build_prefix&;t t
15141s&@srcdir@&$ac_srcdir&;t t
15142s&@abs_srcdir@&$ac_abs_srcdir&;t t
15143s&@top_srcdir@&$ac_top_srcdir&;t t
15144s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15145s&@builddir@&$ac_builddir&;t t
15146s&@abs_builddir@&$ac_abs_builddir&;t t
15147s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15148s&@INSTALL@&$ac_INSTALL&;t t
15149s&@MKDIR_P@&$ac_MKDIR_P&;t t
15150$ac_datarootdir_hack
15151"
15152eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15153  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15154$as_echo "$as_me: error: could not create $ac_file" >&2;}
15155   { (exit 1); exit 1; }; }
15156
15157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15158  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15159  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15160  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15161which seems to be undefined.  Please make sure it is defined." >&5
15162$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15163which seems to be undefined.  Please make sure it is defined." >&2;}
15164
15165  rm -f "$tmp/stdin"
15166  case $ac_file in
15167  -) cat "$tmp/out" && rm -f "$tmp/out";;
15168  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15169  esac \
15170  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15171$as_echo "$as_me: error: could not create $ac_file" >&2;}
15172   { (exit 1); exit 1; }; }
15173 ;;
15174  :H)
15175  #
15176  # CONFIG_HEADER
15177  #
15178  if test x"$ac_file" != x-; then
15179    {
15180      $as_echo "/* $configure_input  */" \
15181      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15182    } >"$tmp/config.h" \
15183      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15184$as_echo "$as_me: error: could not create $ac_file" >&2;}
15185   { (exit 1); exit 1; }; }
15186    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15187      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15188$as_echo "$as_me: $ac_file is unchanged" >&6;}
15189    else
15190      rm -f "$ac_file"
15191      mv "$tmp/config.h" "$ac_file" \
15192	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15193$as_echo "$as_me: error: could not create $ac_file" >&2;}
15194   { (exit 1); exit 1; }; }
15195    fi
15196  else
15197    $as_echo "/* $configure_input  */" \
15198      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15199      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15200$as_echo "$as_me: error: could not create -" >&2;}
15201   { (exit 1); exit 1; }; }
15202  fi
15203# Compute "$ac_file"'s index in $config_headers.
15204_am_arg="$ac_file"
15205_am_stamp_count=1
15206for _am_header in $config_headers :; do
15207  case $_am_header in
15208    $_am_arg | $_am_arg:* )
15209      break ;;
15210    * )
15211      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15212  esac
15213done
15214echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15215$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15216	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15217	 X"$_am_arg" : 'X\(//\)$' \| \
15218	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15219$as_echo X"$_am_arg" |
15220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15221	    s//\1/
15222	    q
15223	  }
15224	  /^X\(\/\/\)[^/].*/{
15225	    s//\1/
15226	    q
15227	  }
15228	  /^X\(\/\/\)$/{
15229	    s//\1/
15230	    q
15231	  }
15232	  /^X\(\/\).*/{
15233	    s//\1/
15234	    q
15235	  }
15236	  s/.*/./; q'`/stamp-h$_am_stamp_count
15237 ;;
15238
15239  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15240$as_echo "$as_me: executing $ac_file commands" >&6;}
15241 ;;
15242  esac
15243
15244
15245  case $ac_file$ac_mode in
15246    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15247  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15248  # are listed without --file.  Let's play safe and only enable the eval
15249  # if we detect the quoting.
15250  case $CONFIG_FILES in
15251  *\'*) eval set x "$CONFIG_FILES" ;;
15252  *)   set x $CONFIG_FILES ;;
15253  esac
15254  shift
15255  for mf
15256  do
15257    # Strip MF so we end up with the name of the file.
15258    mf=`echo "$mf" | sed -e 's/:.*$//'`
15259    # Check whether this is an Automake generated Makefile or not.
15260    # We used to match only the files named `Makefile.in', but
15261    # some people rename them; so instead we look at the file content.
15262    # Grep'ing the first line is not enough: some people post-process
15263    # each Makefile.in and add a new line on top of each file to say so.
15264    # Grep'ing the whole file is not good either: AIX grep has a line
15265    # limit of 2048, but all sed's we know have understand at least 4000.
15266    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15267      dirpart=`$as_dirname -- "$mf" ||
15268$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15269	 X"$mf" : 'X\(//\)[^/]' \| \
15270	 X"$mf" : 'X\(//\)$' \| \
15271	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15272$as_echo X"$mf" |
15273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15274	    s//\1/
15275	    q
15276	  }
15277	  /^X\(\/\/\)[^/].*/{
15278	    s//\1/
15279	    q
15280	  }
15281	  /^X\(\/\/\)$/{
15282	    s//\1/
15283	    q
15284	  }
15285	  /^X\(\/\).*/{
15286	    s//\1/
15287	    q
15288	  }
15289	  s/.*/./; q'`
15290    else
15291      continue
15292    fi
15293    # Extract the definition of DEPDIR, am__include, and am__quote
15294    # from the Makefile without running `make'.
15295    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15296    test -z "$DEPDIR" && continue
15297    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15298    test -z "am__include" && continue
15299    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15300    # When using ansi2knr, U may be empty or an underscore; expand it
15301    U=`sed -n 's/^U = //p' < "$mf"`
15302    # Find all dependency output files, they are included files with
15303    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15304    # simplest approach to changing $(DEPDIR) to its actual value in the
15305    # expansion.
15306    for file in `sed -n "
15307      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15308	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15309      # Make sure the directory exists.
15310      test -f "$dirpart/$file" && continue
15311      fdir=`$as_dirname -- "$file" ||
15312$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15313	 X"$file" : 'X\(//\)[^/]' \| \
15314	 X"$file" : 'X\(//\)$' \| \
15315	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15316$as_echo X"$file" |
15317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15318	    s//\1/
15319	    q
15320	  }
15321	  /^X\(\/\/\)[^/].*/{
15322	    s//\1/
15323	    q
15324	  }
15325	  /^X\(\/\/\)$/{
15326	    s//\1/
15327	    q
15328	  }
15329	  /^X\(\/\).*/{
15330	    s//\1/
15331	    q
15332	  }
15333	  s/.*/./; q'`
15334      { as_dir=$dirpart/$fdir
15335  case $as_dir in #(
15336  -*) as_dir=./$as_dir;;
15337  esac
15338  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15339    as_dirs=
15340    while :; do
15341      case $as_dir in #(
15342      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15343      *) as_qdir=$as_dir;;
15344      esac
15345      as_dirs="'$as_qdir' $as_dirs"
15346      as_dir=`$as_dirname -- "$as_dir" ||
15347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15348	 X"$as_dir" : 'X\(//\)[^/]' \| \
15349	 X"$as_dir" : 'X\(//\)$' \| \
15350	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15351$as_echo X"$as_dir" |
15352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15353	    s//\1/
15354	    q
15355	  }
15356	  /^X\(\/\/\)[^/].*/{
15357	    s//\1/
15358	    q
15359	  }
15360	  /^X\(\/\/\)$/{
15361	    s//\1/
15362	    q
15363	  }
15364	  /^X\(\/\).*/{
15365	    s//\1/
15366	    q
15367	  }
15368	  s/.*/./; q'`
15369      test -d "$as_dir" && break
15370    done
15371    test -z "$as_dirs" || eval "mkdir $as_dirs"
15372  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15373$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15374   { (exit 1); exit 1; }; }; }
15375      # echo "creating $dirpart/$file"
15376      echo '# dummy' > "$dirpart/$file"
15377    done
15378  done
15379}
15380 ;;
15381    "libtool":C)
15382
15383    # See if we are running on zsh, and set the options which allow our
15384    # commands through without removal of \ escapes.
15385    if test -n "${ZSH_VERSION+set}" ; then
15386      setopt NO_GLOB_SUBST
15387    fi
15388
15389    cfgfile="${ofile}T"
15390    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15391    $RM "$cfgfile"
15392
15393    cat <<_LT_EOF >> "$cfgfile"
15394#! $SHELL
15395
15396# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15397# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15399# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15400#
15401#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15402#                 2006, 2007, 2008 Free Software Foundation, Inc.
15403#   Written by Gordon Matzigkeit, 1996
15404#
15405#   This file is part of GNU Libtool.
15406#
15407# GNU Libtool is free software; you can redistribute it and/or
15408# modify it under the terms of the GNU General Public License as
15409# published by the Free Software Foundation; either version 2 of
15410# the License, or (at your option) any later version.
15411#
15412# As a special exception to the GNU General Public License,
15413# if you distribute this file as part of a program or library that
15414# is built using GNU Libtool, you may include this file under the
15415# same distribution terms that you use for the rest of that program.
15416#
15417# GNU Libtool is distributed in the hope that it will be useful,
15418# but WITHOUT ANY WARRANTY; without even the implied warranty of
15419# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15420# GNU General Public License for more details.
15421#
15422# You should have received a copy of the GNU General Public License
15423# along with GNU Libtool; see the file COPYING.  If not, a copy
15424# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15425# obtained by writing to the Free Software Foundation, Inc.,
15426# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15427
15428
15429# The names of the tagged configurations supported by this script.
15430available_tags=""
15431
15432# ### BEGIN LIBTOOL CONFIG
15433
15434# Whether or not to build static libraries.
15435build_old_libs=$enable_static
15436
15437# Which release of libtool.m4 was used?
15438macro_version=$macro_version
15439macro_revision=$macro_revision
15440
15441# Whether or not to build shared libraries.
15442build_libtool_libs=$enable_shared
15443
15444# What type of objects to build.
15445pic_mode=$pic_mode
15446
15447# Whether or not to optimize for fast installation.
15448fast_install=$enable_fast_install
15449
15450# The host system.
15451host_alias=$host_alias
15452host=$host
15453host_os=$host_os
15454
15455# The build system.
15456build_alias=$build_alias
15457build=$build
15458build_os=$build_os
15459
15460# A sed program that does not truncate output.
15461SED=$lt_SED
15462
15463# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15464Xsed="\$SED -e 1s/^X//"
15465
15466# A grep program that handles long lines.
15467GREP=$lt_GREP
15468
15469# An ERE matcher.
15470EGREP=$lt_EGREP
15471
15472# A literal string matcher.
15473FGREP=$lt_FGREP
15474
15475# A BSD- or MS-compatible name lister.
15476NM=$lt_NM
15477
15478# Whether we need soft or hard links.
15479LN_S=$lt_LN_S
15480
15481# What is the maximum length of a command?
15482max_cmd_len=$max_cmd_len
15483
15484# Object file suffix (normally "o").
15485objext=$ac_objext
15486
15487# Executable file suffix (normally "").
15488exeext=$exeext
15489
15490# whether the shell understands "unset".
15491lt_unset=$lt_unset
15492
15493# turn spaces into newlines.
15494SP2NL=$lt_lt_SP2NL
15495
15496# turn newlines into spaces.
15497NL2SP=$lt_lt_NL2SP
15498
15499# How to create reloadable object files.
15500reload_flag=$lt_reload_flag
15501reload_cmds=$lt_reload_cmds
15502
15503# An object symbol dumper.
15504OBJDUMP=$lt_OBJDUMP
15505
15506# Method to check whether dependent libraries are shared objects.
15507deplibs_check_method=$lt_deplibs_check_method
15508
15509# Command to use when deplibs_check_method == "file_magic".
15510file_magic_cmd=$lt_file_magic_cmd
15511
15512# The archiver.
15513AR=$lt_AR
15514AR_FLAGS=$lt_AR_FLAGS
15515
15516# A symbol stripping program.
15517STRIP=$lt_STRIP
15518
15519# Commands used to install an old-style archive.
15520RANLIB=$lt_RANLIB
15521old_postinstall_cmds=$lt_old_postinstall_cmds
15522old_postuninstall_cmds=$lt_old_postuninstall_cmds
15523
15524# A C compiler.
15525LTCC=$lt_CC
15526
15527# LTCC compiler flags.
15528LTCFLAGS=$lt_CFLAGS
15529
15530# Take the output of nm and produce a listing of raw symbols and C names.
15531global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15532
15533# Transform the output of nm in a proper C declaration.
15534global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15535
15536# Transform the output of nm in a C name address pair.
15537global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15538
15539# Transform the output of nm in a C name address pair when lib prefix is needed.
15540global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15541
15542# The name of the directory that contains temporary libtool files.
15543objdir=$objdir
15544
15545# Shell to use when invoking shell scripts.
15546SHELL=$lt_SHELL
15547
15548# An echo program that does not interpret backslashes.
15549ECHO=$lt_ECHO
15550
15551# Used to examine libraries when file_magic_cmd begins with "file".
15552MAGIC_CMD=$MAGIC_CMD
15553
15554# Must we lock files when doing compilation?
15555need_locks=$lt_need_locks
15556
15557# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15558DSYMUTIL=$lt_DSYMUTIL
15559
15560# Tool to change global to local symbols on Mac OS X.
15561NMEDIT=$lt_NMEDIT
15562
15563# Tool to manipulate fat objects and archives on Mac OS X.
15564LIPO=$lt_LIPO
15565
15566# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15567OTOOL=$lt_OTOOL
15568
15569# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15570OTOOL64=$lt_OTOOL64
15571
15572# Old archive suffix (normally "a").
15573libext=$libext
15574
15575# Shared library suffix (normally ".so").
15576shrext_cmds=$lt_shrext_cmds
15577
15578# The commands to extract the exported symbol list from a shared archive.
15579extract_expsyms_cmds=$lt_extract_expsyms_cmds
15580
15581# Variables whose values should be saved in libtool wrapper scripts and
15582# restored at link time.
15583variables_saved_for_relink=$lt_variables_saved_for_relink
15584
15585# Do we need the "lib" prefix for modules?
15586need_lib_prefix=$need_lib_prefix
15587
15588# Do we need a version for libraries?
15589need_version=$need_version
15590
15591# Library versioning type.
15592version_type=$version_type
15593
15594# Shared library runtime path variable.
15595runpath_var=$runpath_var
15596
15597# Shared library path variable.
15598shlibpath_var=$shlibpath_var
15599
15600# Is shlibpath searched before the hard-coded library search path?
15601shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15602
15603# Format of library name prefix.
15604libname_spec=$lt_libname_spec
15605
15606# List of archive names.  First name is the real one, the rest are links.
15607# The last name is the one that the linker finds with -lNAME
15608library_names_spec=$lt_library_names_spec
15609
15610# The coded name of the library, if different from the real name.
15611soname_spec=$lt_soname_spec
15612
15613# Command to use after installation of a shared archive.
15614postinstall_cmds=$lt_postinstall_cmds
15615
15616# Command to use after uninstallation of a shared archive.
15617postuninstall_cmds=$lt_postuninstall_cmds
15618
15619# Commands used to finish a libtool library installation in a directory.
15620finish_cmds=$lt_finish_cmds
15621
15622# As "finish_cmds", except a single script fragment to be evaled but
15623# not shown.
15624finish_eval=$lt_finish_eval
15625
15626# Whether we should hardcode library paths into libraries.
15627hardcode_into_libs=$hardcode_into_libs
15628
15629# Compile-time system search path for libraries.
15630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15631
15632# Run-time system search path for libraries.
15633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15634
15635# Whether dlopen is supported.
15636dlopen_support=$enable_dlopen
15637
15638# Whether dlopen of programs is supported.
15639dlopen_self=$enable_dlopen_self
15640
15641# Whether dlopen of statically linked programs is supported.
15642dlopen_self_static=$enable_dlopen_self_static
15643
15644# Commands to strip libraries.
15645old_striplib=$lt_old_striplib
15646striplib=$lt_striplib
15647
15648
15649# The linker used to build libraries.
15650LD=$lt_LD
15651
15652# Commands used to build an old-style archive.
15653old_archive_cmds=$lt_old_archive_cmds
15654
15655# A language specific compiler.
15656CC=$lt_compiler
15657
15658# Is the compiler the GNU compiler?
15659with_gcc=$GCC
15660
15661# Compiler flag to turn off builtin functions.
15662no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15663
15664# How to pass a linker flag through the compiler.
15665wl=$lt_lt_prog_compiler_wl
15666
15667# Additional compiler flags for building library objects.
15668pic_flag=$lt_lt_prog_compiler_pic
15669
15670# Compiler flag to prevent dynamic linking.
15671link_static_flag=$lt_lt_prog_compiler_static
15672
15673# Does compiler simultaneously support -c and -o options?
15674compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15675
15676# Whether or not to add -lc for building shared libraries.
15677build_libtool_need_lc=$archive_cmds_need_lc
15678
15679# Whether or not to disallow shared libs when runtime libs are static.
15680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15681
15682# Compiler flag to allow reflexive dlopens.
15683export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15684
15685# Compiler flag to generate shared objects directly from archives.
15686whole_archive_flag_spec=$lt_whole_archive_flag_spec
15687
15688# Whether the compiler copes with passing no objects directly.
15689compiler_needs_object=$lt_compiler_needs_object
15690
15691# Create an old-style archive from a shared archive.
15692old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15693
15694# Create a temporary old-style archive to link instead of a shared archive.
15695old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15696
15697# Commands used to build a shared archive.
15698archive_cmds=$lt_archive_cmds
15699archive_expsym_cmds=$lt_archive_expsym_cmds
15700
15701# Commands used to build a loadable module if different from building
15702# a shared archive.
15703module_cmds=$lt_module_cmds
15704module_expsym_cmds=$lt_module_expsym_cmds
15705
15706# Whether we are building with GNU ld or not.
15707with_gnu_ld=$lt_with_gnu_ld
15708
15709# Flag that allows shared libraries with undefined symbols to be built.
15710allow_undefined_flag=$lt_allow_undefined_flag
15711
15712# Flag that enforces no undefined symbols.
15713no_undefined_flag=$lt_no_undefined_flag
15714
15715# Flag to hardcode \$libdir into a binary during linking.
15716# This must work even if \$libdir does not exist
15717hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15718
15719# If ld is used when linking, flag to hardcode \$libdir into a binary
15720# during linking.  This must work even if \$libdir does not exist.
15721hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15722
15723# Whether we need a single "-rpath" flag with a separated argument.
15724hardcode_libdir_separator=$lt_hardcode_libdir_separator
15725
15726# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15727# DIR into the resulting binary.
15728hardcode_direct=$hardcode_direct
15729
15730# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15731# DIR into the resulting binary and the resulting library dependency is
15732# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15733# library is relocated.
15734hardcode_direct_absolute=$hardcode_direct_absolute
15735
15736# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15737# into the resulting binary.
15738hardcode_minus_L=$hardcode_minus_L
15739
15740# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15741# into the resulting binary.
15742hardcode_shlibpath_var=$hardcode_shlibpath_var
15743
15744# Set to "yes" if building a shared library automatically hardcodes DIR
15745# into the library and all subsequent libraries and executables linked
15746# against it.
15747hardcode_automatic=$hardcode_automatic
15748
15749# Set to yes if linker adds runtime paths of dependent libraries
15750# to runtime path list.
15751inherit_rpath=$inherit_rpath
15752
15753# Whether libtool must link a program against all its dependency libraries.
15754link_all_deplibs=$link_all_deplibs
15755
15756# Fix the shell variable \$srcfile for the compiler.
15757fix_srcfile_path=$lt_fix_srcfile_path
15758
15759# Set to "yes" if exported symbols are required.
15760always_export_symbols=$always_export_symbols
15761
15762# The commands to list exported symbols.
15763export_symbols_cmds=$lt_export_symbols_cmds
15764
15765# Symbols that should not be listed in the preloaded symbols.
15766exclude_expsyms=$lt_exclude_expsyms
15767
15768# Symbols that must always be exported.
15769include_expsyms=$lt_include_expsyms
15770
15771# Commands necessary for linking programs (against libraries) with templates.
15772prelink_cmds=$lt_prelink_cmds
15773
15774# Specify filename containing input files.
15775file_list_spec=$lt_file_list_spec
15776
15777# How to hardcode a shared library path into an executable.
15778hardcode_action=$hardcode_action
15779
15780# ### END LIBTOOL CONFIG
15781
15782_LT_EOF
15783
15784  case $host_os in
15785  aix3*)
15786    cat <<\_LT_EOF >> "$cfgfile"
15787# AIX sometimes has problems with the GCC collect2 program.  For some
15788# reason, if we set the COLLECT_NAMES environment variable, the problems
15789# vanish in a puff of smoke.
15790if test "X${COLLECT_NAMES+set}" != Xset; then
15791  COLLECT_NAMES=
15792  export COLLECT_NAMES
15793fi
15794_LT_EOF
15795    ;;
15796  esac
15797
15798
15799ltmain="$ac_aux_dir/ltmain.sh"
15800
15801
15802  # We use sed instead of cat because bash on DJGPP gets confused if
15803  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15804  # text mode, it properly converts lines to CR/LF.  This bash problem
15805  # is reportedly fixed, but why not run on old versions too?
15806  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15807    || (rm -f "$cfgfile"; exit 1)
15808
15809  case $xsi_shell in
15810  yes)
15811    cat << \_LT_EOF >> "$cfgfile"
15812
15813# func_dirname file append nondir_replacement
15814# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15815# otherwise set result to NONDIR_REPLACEMENT.
15816func_dirname ()
15817{
15818  case ${1} in
15819    */*) func_dirname_result="${1%/*}${2}" ;;
15820    *  ) func_dirname_result="${3}" ;;
15821  esac
15822}
15823
15824# func_basename file
15825func_basename ()
15826{
15827  func_basename_result="${1##*/}"
15828}
15829
15830# func_dirname_and_basename file append nondir_replacement
15831# perform func_basename and func_dirname in a single function
15832# call:
15833#   dirname:  Compute the dirname of FILE.  If nonempty,
15834#             add APPEND to the result, otherwise set result
15835#             to NONDIR_REPLACEMENT.
15836#             value returned in "$func_dirname_result"
15837#   basename: Compute filename of FILE.
15838#             value retuned in "$func_basename_result"
15839# Implementation must be kept synchronized with func_dirname
15840# and func_basename. For efficiency, we do not delegate to
15841# those functions but instead duplicate the functionality here.
15842func_dirname_and_basename ()
15843{
15844  case ${1} in
15845    */*) func_dirname_result="${1%/*}${2}" ;;
15846    *  ) func_dirname_result="${3}" ;;
15847  esac
15848  func_basename_result="${1##*/}"
15849}
15850
15851# func_stripname prefix suffix name
15852# strip PREFIX and SUFFIX off of NAME.
15853# PREFIX and SUFFIX must not contain globbing or regex special
15854# characters, hashes, percent signs, but SUFFIX may contain a leading
15855# dot (in which case that matches only a dot).
15856func_stripname ()
15857{
15858  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15859  # positional parameters, so assign one to ordinary parameter first.
15860  func_stripname_result=${3}
15861  func_stripname_result=${func_stripname_result#"${1}"}
15862  func_stripname_result=${func_stripname_result%"${2}"}
15863}
15864
15865# func_opt_split
15866func_opt_split ()
15867{
15868  func_opt_split_opt=${1%%=*}
15869  func_opt_split_arg=${1#*=}
15870}
15871
15872# func_lo2o object
15873func_lo2o ()
15874{
15875  case ${1} in
15876    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15877    *)    func_lo2o_result=${1} ;;
15878  esac
15879}
15880
15881# func_xform libobj-or-source
15882func_xform ()
15883{
15884  func_xform_result=${1%.*}.lo
15885}
15886
15887# func_arith arithmetic-term...
15888func_arith ()
15889{
15890  func_arith_result=$(( $* ))
15891}
15892
15893# func_len string
15894# STRING may not start with a hyphen.
15895func_len ()
15896{
15897  func_len_result=${#1}
15898}
15899
15900_LT_EOF
15901    ;;
15902  *) # Bourne compatible functions.
15903    cat << \_LT_EOF >> "$cfgfile"
15904
15905# func_dirname file append nondir_replacement
15906# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15907# otherwise set result to NONDIR_REPLACEMENT.
15908func_dirname ()
15909{
15910  # Extract subdirectory from the argument.
15911  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15912  if test "X$func_dirname_result" = "X${1}"; then
15913    func_dirname_result="${3}"
15914  else
15915    func_dirname_result="$func_dirname_result${2}"
15916  fi
15917}
15918
15919# func_basename file
15920func_basename ()
15921{
15922  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15923}
15924
15925
15926# func_stripname prefix suffix name
15927# strip PREFIX and SUFFIX off of NAME.
15928# PREFIX and SUFFIX must not contain globbing or regex special
15929# characters, hashes, percent signs, but SUFFIX may contain a leading
15930# dot (in which case that matches only a dot).
15931# func_strip_suffix prefix name
15932func_stripname ()
15933{
15934  case ${2} in
15935    .*) func_stripname_result=`$ECHO "X${3}" \
15936           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15937    *)  func_stripname_result=`$ECHO "X${3}" \
15938           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15939  esac
15940}
15941
15942# sed scripts:
15943my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15944my_sed_long_arg='1s/^-[^=]*=//'
15945
15946# func_opt_split
15947func_opt_split ()
15948{
15949  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15950  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15951}
15952
15953# func_lo2o object
15954func_lo2o ()
15955{
15956  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15957}
15958
15959# func_xform libobj-or-source
15960func_xform ()
15961{
15962  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15963}
15964
15965# func_arith arithmetic-term...
15966func_arith ()
15967{
15968  func_arith_result=`expr "$@"`
15969}
15970
15971# func_len string
15972# STRING may not start with a hyphen.
15973func_len ()
15974{
15975  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15976}
15977
15978_LT_EOF
15979esac
15980
15981case $lt_shell_append in
15982  yes)
15983    cat << \_LT_EOF >> "$cfgfile"
15984
15985# func_append var value
15986# Append VALUE to the end of shell variable VAR.
15987func_append ()
15988{
15989  eval "$1+=\$2"
15990}
15991_LT_EOF
15992    ;;
15993  *)
15994    cat << \_LT_EOF >> "$cfgfile"
15995
15996# func_append var value
15997# Append VALUE to the end of shell variable VAR.
15998func_append ()
15999{
16000  eval "$1=\$$1\$2"
16001}
16002
16003_LT_EOF
16004    ;;
16005  esac
16006
16007
16008  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16009    || (rm -f "$cfgfile"; exit 1)
16010
16011  mv -f "$cfgfile" "$ofile" ||
16012    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16013  chmod +x "$ofile"
16014
16015 ;;
16016
16017  esac
16018done # for ac_tag
16019
16020
16021{ (exit 0); exit 0; }
16022_ACEOF
16023chmod +x $CONFIG_STATUS
16024ac_clean_files=$ac_clean_files_save
16025
16026test $ac_write_fail = 0 ||
16027  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16028$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16029   { (exit 1); exit 1; }; }
16030
16031
16032# configure is writing to config.log, and then calls config.status.
16033# config.status does its own redirection, appending to config.log.
16034# Unfortunately, on DOS this fails, as config.log is still kept open
16035# by configure, so config.status won't be able to write to it; its
16036# output is simply discarded.  So we exec the FD to /dev/null,
16037# effectively closing config.log, so it can be properly (re)opened and
16038# appended to by config.status.  When coming back to configure, we
16039# need to make the FD available again.
16040if test "$no_create" != yes; then
16041  ac_cs_success=:
16042  ac_config_status_args=
16043  test "$silent" = yes &&
16044    ac_config_status_args="$ac_config_status_args --quiet"
16045  exec 5>/dev/null
16046  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16047  exec 5>>config.log
16048  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16049  # would make configure fail if this is the last instruction.
16050  $ac_cs_success || { (exit 1); exit 1; }
16051fi
16052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16053  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16054$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16055fi
16056
16057