configure revision b290cf36
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libXxf86vm 1.1.0.
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='libXxf86vm'
747PACKAGE_TARNAME='libXxf86vm'
748PACKAGE_VERSION='1.1.0'
749PACKAGE_STRING='libXxf86vm 1.1.0'
750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766#  include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771#  include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
788ac_subst_vars='am__EXEEXT_FALSE
789am__EXEEXT_TRUE
790LTLIBOBJS
791LIBOBJS
792XTMALLOC_ZERO_CFLAGS
793XMALLOC_ZERO_CFLAGS
794MALLOC_ZERO_CFLAGS
795XXF86VM_LIBS
796XXF86VM_CFLAGS
797PKG_CONFIG
798ADMIN_MAN_DIR
799DRIVER_MAN_DIR
800MISC_MAN_DIR
801FILE_MAN_DIR
802LIB_MAN_DIR
803APP_MAN_DIR
804ADMIN_MAN_SUFFIX
805DRIVER_MAN_SUFFIX
806MISC_MAN_SUFFIX
807FILE_MAN_SUFFIX
808LIB_MAN_SUFFIX
809APP_MAN_SUFFIX
810distcleancheck_listfiles
811CHANGELOG_CMD
812AM_BACKSLASH
813AM_DEFAULT_VERBOSITY
814CWARNFLAGS
815CPP
816OTOOL64
817OTOOL
818LIPO
819NMEDIT
820DSYMUTIL
821lt_ECHO
822RANLIB
823AR
824OBJDUMP
825LN_S
826NM
827ac_ct_DUMPBIN
828DUMPBIN
829LD
830FGREP
831EGREP
832GREP
833SED
834host_os
835host_vendor
836host_cpu
837host
838build_os
839build_vendor
840build_cpu
841build
842LIBTOOL
843am__fastdepCC_FALSE
844am__fastdepCC_TRUE
845CCDEPMODE
846AMDEPBACKSLASH
847AMDEP_FALSE
848AMDEP_TRUE
849am__quote
850am__include
851DEPDIR
852OBJEXT
853EXEEXT
854ac_ct_CC
855CPPFLAGS
856LDFLAGS
857CFLAGS
858CC
859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
862am__untar
863am__tar
864AMTAR
865am__leading_dot
866SET_MAKE
867AWK
868mkdir_p
869MKDIR_P
870INSTALL_STRIP_PROGRAM
871STRIP
872install_sh
873MAKEINFO
874AUTOHEADER
875AUTOMAKE
876AUTOCONF
877ACLOCAL
878VERSION
879PACKAGE
880CYGPATH_W
881am__isrc
882INSTALL_DATA
883INSTALL_SCRIPT
884INSTALL_PROGRAM
885target_alias
886host_alias
887build_alias
888LIBS
889ECHO_T
890ECHO_N
891ECHO_C
892DEFS
893mandir
894localedir
895libdir
896psdir
897pdfdir
898dvidir
899htmldir
900infodir
901docdir
902oldincludedir
903includedir
904localstatedir
905sharedstatedir
906sysconfdir
907datadir
908datarootdir
909libexecdir
910sbindir
911bindir
912program_transform_name
913prefix
914exec_prefix
915PACKAGE_BUGREPORT
916PACKAGE_STRING
917PACKAGE_VERSION
918PACKAGE_TARNAME
919PACKAGE_NAME
920PATH_SEPARATOR
921SHELL'
922ac_subst_files=''
923ac_user_opts='
924enable_option_checking
925enable_maintainer_mode
926enable_dependency_tracking
927enable_shared
928enable_static
929with_pic
930enable_fast_install
931with_gnu_ld
932enable_libtool_lock
933enable_silent_rules
934enable_strict_compilation
935with_release_version
936enable_malloc0returnsnull
937'
938      ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944LIBS
945CPPFLAGS
946CPP
947PKG_CONFIG
948XXF86VM_CFLAGS
949XXF86VM_LIBS'
950
951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955ac_unrecognized_opts=
956ac_unrecognized_sep=
957# The variables have the same names as the options, with
958# dashes changed to underlines.
959cache_file=/dev/null
960exec_prefix=NONE
961no_create=
962no_recursion=
963prefix=NONE
964program_prefix=NONE
965program_suffix=NONE
966program_transform_name=s,x,x,
967silent=
968site=
969srcdir=
970verbose=
971x_includes=NONE
972x_libraries=NONE
973
974# Installation directory options.
975# These are left unexpanded so users can "make install exec_prefix=/foo"
976# and all the variables that are supposed to be based on exec_prefix
977# by default will actually change.
978# Use braces instead of parens because sh, perl, etc. also accept them.
979# (The list follows the same order as the GNU Coding Standards.)
980bindir='${exec_prefix}/bin'
981sbindir='${exec_prefix}/sbin'
982libexecdir='${exec_prefix}/libexec'
983datarootdir='${prefix}/share'
984datadir='${datarootdir}'
985sysconfdir='${prefix}/etc'
986sharedstatedir='${prefix}/com'
987localstatedir='${prefix}/var'
988includedir='${prefix}/include'
989oldincludedir='/usr/include'
990docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991infodir='${datarootdir}/info'
992htmldir='${docdir}'
993dvidir='${docdir}'
994pdfdir='${docdir}'
995psdir='${docdir}'
996libdir='${exec_prefix}/lib'
997localedir='${datarootdir}/locale'
998mandir='${datarootdir}/man'
999
1000ac_prev=
1001ac_dashdash=
1002for ac_option
1003do
1004  # If the previous option needs an argument, assign it.
1005  if test -n "$ac_prev"; then
1006    eval $ac_prev=\$ac_option
1007    ac_prev=
1008    continue
1009  fi
1010
1011  case $ac_option in
1012  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013  *)	ac_optarg=yes ;;
1014  esac
1015
1016  # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018  case $ac_dashdash$ac_option in
1019  --)
1020    ac_dashdash=yes ;;
1021
1022  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023    ac_prev=bindir ;;
1024  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025    bindir=$ac_optarg ;;
1026
1027  -build | --build | --buil | --bui | --bu)
1028    ac_prev=build_alias ;;
1029  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030    build_alias=$ac_optarg ;;
1031
1032  -cache-file | --cache-file | --cache-fil | --cache-fi \
1033  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034    ac_prev=cache_file ;;
1035  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037    cache_file=$ac_optarg ;;
1038
1039  --config-cache | -C)
1040    cache_file=config.cache ;;
1041
1042  -datadir | --datadir | --datadi | --datad)
1043    ac_prev=datadir ;;
1044  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045    datadir=$ac_optarg ;;
1046
1047  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048  | --dataroo | --dataro | --datar)
1049    ac_prev=datarootdir ;;
1050  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052    datarootdir=$ac_optarg ;;
1053
1054  -disable-* | --disable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1059   { (exit 1); exit 1; }; }
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=no ;;
1070
1071  -docdir | --docdir | --docdi | --doc | --do)
1072    ac_prev=docdir ;;
1073  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074    docdir=$ac_optarg ;;
1075
1076  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077    ac_prev=dvidir ;;
1078  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079    dvidir=$ac_optarg ;;
1080
1081  -enable-* | --enable-*)
1082    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1086   { (exit 1); exit 1; }; }
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"enable_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval enable_$ac_useropt=\$ac_optarg ;;
1097
1098  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100  | --exec | --exe | --ex)
1101    ac_prev=exec_prefix ;;
1102  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104  | --exec=* | --exe=* | --ex=*)
1105    exec_prefix=$ac_optarg ;;
1106
1107  -gas | --gas | --ga | --g)
1108    # Obsolete; use --with-gas.
1109    with_gas=yes ;;
1110
1111  -help | --help | --hel | --he | -h)
1112    ac_init_help=long ;;
1113  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114    ac_init_help=recursive ;;
1115  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116    ac_init_help=short ;;
1117
1118  -host | --host | --hos | --ho)
1119    ac_prev=host_alias ;;
1120  -host=* | --host=* | --hos=* | --ho=*)
1121    host_alias=$ac_optarg ;;
1122
1123  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124    ac_prev=htmldir ;;
1125  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126  | --ht=*)
1127    htmldir=$ac_optarg ;;
1128
1129  -includedir | --includedir | --includedi | --included | --include \
1130  | --includ | --inclu | --incl | --inc)
1131    ac_prev=includedir ;;
1132  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133  | --includ=* | --inclu=* | --incl=* | --inc=*)
1134    includedir=$ac_optarg ;;
1135
1136  -infodir | --infodir | --infodi | --infod | --info | --inf)
1137    ac_prev=infodir ;;
1138  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139    infodir=$ac_optarg ;;
1140
1141  -libdir | --libdir | --libdi | --libd)
1142    ac_prev=libdir ;;
1143  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144    libdir=$ac_optarg ;;
1145
1146  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147  | --libexe | --libex | --libe)
1148    ac_prev=libexecdir ;;
1149  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150  | --libexe=* | --libex=* | --libe=*)
1151    libexecdir=$ac_optarg ;;
1152
1153  -localedir | --localedir | --localedi | --localed | --locale)
1154    ac_prev=localedir ;;
1155  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156    localedir=$ac_optarg ;;
1157
1158  -localstatedir | --localstatedir | --localstatedi | --localstated \
1159  | --localstate | --localstat | --localsta | --localst | --locals)
1160    ac_prev=localstatedir ;;
1161  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163    localstatedir=$ac_optarg ;;
1164
1165  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166    ac_prev=mandir ;;
1167  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168    mandir=$ac_optarg ;;
1169
1170  -nfp | --nfp | --nf)
1171    # Obsolete; use --without-fp.
1172    with_fp=no ;;
1173
1174  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175  | --no-cr | --no-c | -n)
1176    no_create=yes ;;
1177
1178  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180    no_recursion=yes ;;
1181
1182  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184  | --oldin | --oldi | --old | --ol | --o)
1185    ac_prev=oldincludedir ;;
1186  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189    oldincludedir=$ac_optarg ;;
1190
1191  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192    ac_prev=prefix ;;
1193  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194    prefix=$ac_optarg ;;
1195
1196  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197  | --program-pre | --program-pr | --program-p)
1198    ac_prev=program_prefix ;;
1199  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201    program_prefix=$ac_optarg ;;
1202
1203  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204  | --program-suf | --program-su | --program-s)
1205    ac_prev=program_suffix ;;
1206  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208    program_suffix=$ac_optarg ;;
1209
1210  -program-transform-name | --program-transform-name \
1211  | --program-transform-nam | --program-transform-na \
1212  | --program-transform-n | --program-transform- \
1213  | --program-transform | --program-transfor \
1214  | --program-transfo | --program-transf \
1215  | --program-trans | --program-tran \
1216  | --progr-tra | --program-tr | --program-t)
1217    ac_prev=program_transform_name ;;
1218  -program-transform-name=* | --program-transform-name=* \
1219  | --program-transform-nam=* | --program-transform-na=* \
1220  | --program-transform-n=* | --program-transform-=* \
1221  | --program-transform=* | --program-transfor=* \
1222  | --program-transfo=* | --program-transf=* \
1223  | --program-trans=* | --program-tran=* \
1224  | --progr-tra=* | --program-tr=* | --program-t=*)
1225    program_transform_name=$ac_optarg ;;
1226
1227  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228    ac_prev=pdfdir ;;
1229  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230    pdfdir=$ac_optarg ;;
1231
1232  -psdir | --psdir | --psdi | --psd | --ps)
1233    ac_prev=psdir ;;
1234  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235    psdir=$ac_optarg ;;
1236
1237  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238  | -silent | --silent | --silen | --sile | --sil)
1239    silent=yes ;;
1240
1241  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242    ac_prev=sbindir ;;
1243  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244  | --sbi=* | --sb=*)
1245    sbindir=$ac_optarg ;;
1246
1247  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249  | --sharedst | --shareds | --shared | --share | --shar \
1250  | --sha | --sh)
1251    ac_prev=sharedstatedir ;;
1252  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255  | --sha=* | --sh=*)
1256    sharedstatedir=$ac_optarg ;;
1257
1258  -site | --site | --sit)
1259    ac_prev=site ;;
1260  -site=* | --site=* | --sit=*)
1261    site=$ac_optarg ;;
1262
1263  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264    ac_prev=srcdir ;;
1265  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266    srcdir=$ac_optarg ;;
1267
1268  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269  | --syscon | --sysco | --sysc | --sys | --sy)
1270    ac_prev=sysconfdir ;;
1271  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273    sysconfdir=$ac_optarg ;;
1274
1275  -target | --target | --targe | --targ | --tar | --ta | --t)
1276    ac_prev=target_alias ;;
1277  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278    target_alias=$ac_optarg ;;
1279
1280  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281    verbose=yes ;;
1282
1283  -version | --version | --versio | --versi | --vers | -V)
1284    ac_init_version=: ;;
1285
1286  -with-* | --with-*)
1287    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288    # Reject names that are not valid shell variable names.
1289    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1291   { (exit 1); exit 1; }; }
1292    ac_useropt_orig=$ac_useropt
1293    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294    case $ac_user_opts in
1295      *"
1296"with_$ac_useropt"
1297"*) ;;
1298      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299	 ac_unrecognized_sep=', ';;
1300    esac
1301    eval with_$ac_useropt=\$ac_optarg ;;
1302
1303  -without-* | --without-*)
1304    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305    # Reject names that are not valid shell variable names.
1306    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1308   { (exit 1); exit 1; }; }
1309    ac_useropt_orig=$ac_useropt
1310    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311    case $ac_user_opts in
1312      *"
1313"with_$ac_useropt"
1314"*) ;;
1315      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316	 ac_unrecognized_sep=', ';;
1317    esac
1318    eval with_$ac_useropt=no ;;
1319
1320  --x)
1321    # Obsolete; use --with-x.
1322    with_x=yes ;;
1323
1324  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325  | --x-incl | --x-inc | --x-in | --x-i)
1326    ac_prev=x_includes ;;
1327  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329    x_includes=$ac_optarg ;;
1330
1331  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333    ac_prev=x_libraries ;;
1334  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336    x_libraries=$ac_optarg ;;
1337
1338  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1339Try \`$0 --help' for more information." >&2
1340   { (exit 1); exit 1; }; }
1341    ;;
1342
1343  *=*)
1344    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345    # Reject names that are not valid shell variable names.
1346    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1347      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1348   { (exit 1); exit 1; }; }
1349    eval $ac_envvar=\$ac_optarg
1350    export $ac_envvar ;;
1351
1352  *)
1353    # FIXME: should be removed in autoconf 3.0.
1354    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358    ;;
1359
1360  esac
1361done
1362
1363if test -n "$ac_prev"; then
1364  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1366   { (exit 1); exit 1; }; }
1367fi
1368
1369if test -n "$ac_unrecognized_opts"; then
1370  case $enable_option_checking in
1371    no) ;;
1372    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1373   { (exit 1); exit 1; }; } ;;
1374    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375  esac
1376fi
1377
1378# Check all directory arguments for consistency.
1379for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380		datadir sysconfdir sharedstatedir localstatedir includedir \
1381		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382		libdir localedir mandir
1383do
1384  eval ac_val=\$$ac_var
1385  # Remove trailing slashes.
1386  case $ac_val in
1387    */ )
1388      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389      eval $ac_var=\$ac_val;;
1390  esac
1391  # Be sure to have absolute directory names.
1392  case $ac_val in
1393    [\\/$]* | ?:[\\/]* )  continue;;
1394    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395  esac
1396  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1397   { (exit 1); exit 1; }; }
1398done
1399
1400# There might be people who depend on the old broken behavior: `$host'
1401# used to hold the argument of --host etc.
1402# FIXME: To remove some day.
1403build=$build_alias
1404host=$host_alias
1405target=$target_alias
1406
1407# FIXME: To remove some day.
1408if test "x$host_alias" != x; then
1409  if test "x$build_alias" = x; then
1410    cross_compiling=maybe
1411    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412    If a cross compiler is detected then cross compile mode will be used." >&2
1413  elif test "x$build_alias" != "x$host_alias"; then
1414    cross_compiling=yes
1415  fi
1416fi
1417
1418ac_tool_prefix=
1419test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421test "$silent" = yes && exec 6>/dev/null
1422
1423
1424ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425ac_ls_di=`ls -di .` &&
1426ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1428   { (exit 1); exit 1; }; }
1429test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1431   { (exit 1); exit 1; }; }
1432
1433
1434# Find the source files, if location was not specified.
1435if test -z "$srcdir"; then
1436  ac_srcdir_defaulted=yes
1437  # Try the directory containing this script, then the parent directory.
1438  ac_confdir=`$as_dirname -- "$as_myself" ||
1439$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440	 X"$as_myself" : 'X\(//\)[^/]' \| \
1441	 X"$as_myself" : 'X\(//\)$' \| \
1442	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443$as_echo X"$as_myself" |
1444    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445	    s//\1/
1446	    q
1447	  }
1448	  /^X\(\/\/\)[^/].*/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)$/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\).*/{
1457	    s//\1/
1458	    q
1459	  }
1460	  s/.*/./; q'`
1461  srcdir=$ac_confdir
1462  if test ! -r "$srcdir/$ac_unique_file"; then
1463    srcdir=..
1464  fi
1465else
1466  ac_srcdir_defaulted=no
1467fi
1468if test ! -r "$srcdir/$ac_unique_file"; then
1469  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1471   { (exit 1); exit 1; }; }
1472fi
1473ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474ac_abs_confdir=`(
1475	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1476   { (exit 1); exit 1; }; }
1477	pwd)`
1478# When building in place, set srcdir=.
1479if test "$ac_abs_confdir" = "$ac_pwd"; then
1480  srcdir=.
1481fi
1482# Remove unnecessary trailing slashes from srcdir.
1483# Double slashes in file names in object file debugging info
1484# mess up M-x gdb in Emacs.
1485case $srcdir in
1486*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487esac
1488for ac_var in $ac_precious_vars; do
1489  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490  eval ac_env_${ac_var}_value=\$${ac_var}
1491  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493done
1494
1495#
1496# Report the --help message.
1497#
1498if test "$ac_init_help" = "long"; then
1499  # Omit some internal or obsolete options to make the list less imposing.
1500  # This message is too long to be a string in the A/UX 3.1 sh.
1501  cat <<_ACEOF
1502\`configure' configures libXxf86vm 1.1.0 to adapt to many kinds of systems.
1503
1504Usage: $0 [OPTION]... [VAR=VALUE]...
1505
1506To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507VAR=VALUE.  See below for descriptions of some of the useful variables.
1508
1509Defaults for the options are specified in brackets.
1510
1511Configuration:
1512  -h, --help              display this help and exit
1513      --help=short        display options specific to this package
1514      --help=recursive    display the short help of all the included packages
1515  -V, --version           display version information and exit
1516  -q, --quiet, --silent   do not print \`checking...' messages
1517      --cache-file=FILE   cache test results in FILE [disabled]
1518  -C, --config-cache      alias for \`--cache-file=config.cache'
1519  -n, --no-create         do not create output files
1520      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1521
1522Installation directories:
1523  --prefix=PREFIX         install architecture-independent files in PREFIX
1524                          [$ac_default_prefix]
1525  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1526                          [PREFIX]
1527
1528By default, \`make install' will install all the files in
1529\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1530an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531for instance \`--prefix=\$HOME'.
1532
1533For better control, use the options below.
1534
1535Fine tuning of the installation directories:
1536  --bindir=DIR            user executables [EPREFIX/bin]
1537  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1538  --libexecdir=DIR        program executables [EPREFIX/libexec]
1539  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1540  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1541  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1542  --libdir=DIR            object code libraries [EPREFIX/lib]
1543  --includedir=DIR        C header files [PREFIX/include]
1544  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1545  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1546  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1547  --infodir=DIR           info documentation [DATAROOTDIR/info]
1548  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1549  --mandir=DIR            man documentation [DATAROOTDIR/man]
1550  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXxf86vm]
1551  --htmldir=DIR           html documentation [DOCDIR]
1552  --dvidir=DIR            dvi documentation [DOCDIR]
1553  --pdfdir=DIR            pdf documentation [DOCDIR]
1554  --psdir=DIR             ps documentation [DOCDIR]
1555_ACEOF
1556
1557  cat <<\_ACEOF
1558
1559Program names:
1560  --program-prefix=PREFIX            prepend PREFIX to installed program names
1561  --program-suffix=SUFFIX            append SUFFIX to installed program names
1562  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1563
1564System types:
1565  --build=BUILD     configure for building on BUILD [guessed]
1566  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1567_ACEOF
1568fi
1569
1570if test -n "$ac_init_help"; then
1571  case $ac_init_help in
1572     short | recursive ) echo "Configuration of libXxf86vm 1.1.0:";;
1573   esac
1574  cat <<\_ACEOF
1575
1576Optional Features:
1577  --disable-option-checking  ignore unrecognized --enable/--with options
1578  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1579  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1580  --enable-maintainer-mode  enable make rules and dependencies not useful
1581			  (and sometimes confusing) to the casual installer
1582  --disable-dependency-tracking  speeds up one-time build
1583  --enable-dependency-tracking   do not reject slow dependency extractors
1584  --enable-shared[=PKGS]  build shared libraries [default=yes]
1585  --enable-static[=PKGS]  build static libraries [default=yes]
1586  --enable-fast-install[=PKGS]
1587                          optimize for fast installation [default=yes]
1588  --disable-libtool-lock  avoid locking (might break parallel builds)
1589  --enable-silent-rules          less verbose build output (undo: `make V=1')
1590  --disable-silent-rules         verbose build output (undo: `make V=0')
1591  --enable-strict-compilation
1592                          Enable all warnings from compiler and make them
1593                          errors (default: disabled)
1594  --enable-malloc0returnsnull
1595                          malloc(0) returns NULL (default: auto)
1596
1597Optional Packages:
1598  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1599  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1600  --with-pic              try to use only PIC/non-PIC objects [default=use
1601                          both]
1602  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1603  --with-release-version=STRING
1604                          Use release version string in package name
1605
1606Some influential environment variables:
1607  CC          C compiler command
1608  CFLAGS      C compiler flags
1609  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1610              nonstandard directory <lib dir>
1611  LIBS        libraries to pass to the linker, e.g. -l<library>
1612  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613              you have headers in a nonstandard directory <include dir>
1614  CPP         C preprocessor
1615  PKG_CONFIG  path to pkg-config utility
1616  XXF86VM_CFLAGS
1617              C compiler flags for XXF86VM, overriding pkg-config
1618  XXF86VM_LIBS
1619              linker flags for XXF86VM, overriding pkg-config
1620
1621Use these variables to override the choices made by `configure' or to help
1622it to find libraries and programs with nonstandard names/locations.
1623
1624Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1625_ACEOF
1626ac_status=$?
1627fi
1628
1629if test "$ac_init_help" = "recursive"; then
1630  # If there are subdirs, report their specific --help.
1631  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632    test -d "$ac_dir" ||
1633      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634      continue
1635    ac_builddir=.
1636
1637case "$ac_dir" in
1638.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639*)
1640  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1641  # A ".." for each directory in $ac_dir_suffix.
1642  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1643  case $ac_top_builddir_sub in
1644  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646  esac ;;
1647esac
1648ac_abs_top_builddir=$ac_pwd
1649ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650# for backward compatibility:
1651ac_top_builddir=$ac_top_build_prefix
1652
1653case $srcdir in
1654  .)  # We are building in place.
1655    ac_srcdir=.
1656    ac_top_srcdir=$ac_top_builddir_sub
1657    ac_abs_top_srcdir=$ac_pwd ;;
1658  [\\/]* | ?:[\\/]* )  # Absolute name.
1659    ac_srcdir=$srcdir$ac_dir_suffix;
1660    ac_top_srcdir=$srcdir
1661    ac_abs_top_srcdir=$srcdir ;;
1662  *) # Relative name.
1663    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664    ac_top_srcdir=$ac_top_build_prefix$srcdir
1665    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666esac
1667ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668
1669    cd "$ac_dir" || { ac_status=$?; continue; }
1670    # Check for guested configure.
1671    if test -f "$ac_srcdir/configure.gnu"; then
1672      echo &&
1673      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674    elif test -f "$ac_srcdir/configure"; then
1675      echo &&
1676      $SHELL "$ac_srcdir/configure" --help=recursive
1677    else
1678      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679    fi || ac_status=$?
1680    cd "$ac_pwd" || { ac_status=$?; break; }
1681  done
1682fi
1683
1684test -n "$ac_init_help" && exit $ac_status
1685if $ac_init_version; then
1686  cat <<\_ACEOF
1687libXxf86vm configure 1.1.0
1688generated by GNU Autoconf 2.63
1689
1690Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16912002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1692This configure script is free software; the Free Software Foundation
1693gives unlimited permission to copy, distribute and modify it.
1694_ACEOF
1695  exit
1696fi
1697cat >config.log <<_ACEOF
1698This file contains any messages produced by compilers while
1699running configure, to aid debugging if configure makes a mistake.
1700
1701It was created by libXxf86vm $as_me 1.1.0, which was
1702generated by GNU Autoconf 2.63.  Invocation command line was
1703
1704  $ $0 $@
1705
1706_ACEOF
1707exec 5>>config.log
1708{
1709cat <<_ASUNAME
1710## --------- ##
1711## Platform. ##
1712## --------- ##
1713
1714hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719
1720/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1722
1723/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1724/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1725/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1727/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1728/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1729/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1730
1731_ASUNAME
1732
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736  IFS=$as_save_IFS
1737  test -z "$as_dir" && as_dir=.
1738  $as_echo "PATH: $as_dir"
1739done
1740IFS=$as_save_IFS
1741
1742} >&5
1743
1744cat >&5 <<_ACEOF
1745
1746
1747## ----------- ##
1748## Core tests. ##
1749## ----------- ##
1750
1751_ACEOF
1752
1753
1754# Keep a trace of the command line.
1755# Strip out --no-create and --no-recursion so they do not pile up.
1756# Strip out --silent because we don't want to record it for future runs.
1757# Also quote any args containing shell meta-characters.
1758# Make two passes to allow for proper duplicate-argument suppression.
1759ac_configure_args=
1760ac_configure_args0=
1761ac_configure_args1=
1762ac_must_keep_next=false
1763for ac_pass in 1 2
1764do
1765  for ac_arg
1766  do
1767    case $ac_arg in
1768    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770    | -silent | --silent | --silen | --sile | --sil)
1771      continue ;;
1772    *\'*)
1773      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774    esac
1775    case $ac_pass in
1776    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777    2)
1778      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779      if test $ac_must_keep_next = true; then
1780	ac_must_keep_next=false # Got value, back to normal.
1781      else
1782	case $ac_arg in
1783	  *=* | --config-cache | -C | -disable-* | --disable-* \
1784	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786	  | -with-* | --with-* | -without-* | --without-* | --x)
1787	    case "$ac_configure_args0 " in
1788	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789	    esac
1790	    ;;
1791	  -* ) ac_must_keep_next=true ;;
1792	esac
1793      fi
1794      ac_configure_args="$ac_configure_args '$ac_arg'"
1795      ;;
1796    esac
1797  done
1798done
1799$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801
1802# When interrupted or exit'd, cleanup temporary files, and complete
1803# config.log.  We remove comments because anyway the quotes in there
1804# would cause problems or look ugly.
1805# WARNING: Use '\'' to represent an apostrophe within the trap.
1806# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807trap 'exit_status=$?
1808  # Save into config.log some information that might help in debugging.
1809  {
1810    echo
1811
1812    cat <<\_ASBOX
1813## ---------------- ##
1814## Cache variables. ##
1815## ---------------- ##
1816_ASBOX
1817    echo
1818    # The following way of writing the cache mishandles newlines in values,
1819(
1820  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821    eval ac_val=\$$ac_var
1822    case $ac_val in #(
1823    *${as_nl}*)
1824      case $ac_var in #(
1825      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1826$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1827      esac
1828      case $ac_var in #(
1829      _ | IFS | as_nl) ;; #(
1830      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1831      *) $as_unset $ac_var ;;
1832      esac ;;
1833    esac
1834  done
1835  (set) 2>&1 |
1836    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1837    *${as_nl}ac_space=\ *)
1838      sed -n \
1839	"s/'\''/'\''\\\\'\'''\''/g;
1840	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841      ;; #(
1842    *)
1843      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1844      ;;
1845    esac |
1846    sort
1847)
1848    echo
1849
1850    cat <<\_ASBOX
1851## ----------------- ##
1852## Output variables. ##
1853## ----------------- ##
1854_ASBOX
1855    echo
1856    for ac_var in $ac_subst_vars
1857    do
1858      eval ac_val=\$$ac_var
1859      case $ac_val in
1860      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861      esac
1862      $as_echo "$ac_var='\''$ac_val'\''"
1863    done | sort
1864    echo
1865
1866    if test -n "$ac_subst_files"; then
1867      cat <<\_ASBOX
1868## ------------------- ##
1869## File substitutions. ##
1870## ------------------- ##
1871_ASBOX
1872      echo
1873      for ac_var in $ac_subst_files
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    fi
1883
1884    if test -s confdefs.h; then
1885      cat <<\_ASBOX
1886## ----------- ##
1887## confdefs.h. ##
1888## ----------- ##
1889_ASBOX
1890      echo
1891      cat confdefs.h
1892      echo
1893    fi
1894    test "$ac_signal" != 0 &&
1895      $as_echo "$as_me: caught signal $ac_signal"
1896    $as_echo "$as_me: exit $exit_status"
1897  } >&5
1898  rm -f core *.core core.conftest.* &&
1899    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900    exit $exit_status
1901' 0
1902for ac_signal in 1 2 13 15; do
1903  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1904done
1905ac_signal=0
1906
1907# confdefs.h avoids OS command line length limits that DEFS can exceed.
1908rm -f -r conftest* confdefs.h
1909
1910# Predefined preprocessor variables.
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_NAME "$PACKAGE_NAME"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919_ACEOF
1920
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_VERSION "$PACKAGE_VERSION"
1924_ACEOF
1925
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_STRING "$PACKAGE_STRING"
1929_ACEOF
1930
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934_ACEOF
1935
1936
1937# Let the site file select an alternate cache file if it wants to.
1938# Prefer an explicitly selected file to automatically selected ones.
1939ac_site_file1=NONE
1940ac_site_file2=NONE
1941if test -n "$CONFIG_SITE"; then
1942  ac_site_file1=$CONFIG_SITE
1943elif test "x$prefix" != xNONE; then
1944  ac_site_file1=$prefix/share/config.site
1945  ac_site_file2=$prefix/etc/config.site
1946else
1947  ac_site_file1=$ac_default_prefix/share/config.site
1948  ac_site_file2=$ac_default_prefix/etc/config.site
1949fi
1950for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1951do
1952  test "x$ac_site_file" = xNONE && continue
1953  if test -r "$ac_site_file"; then
1954    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1955$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1956    sed 's/^/| /' "$ac_site_file" >&5
1957    . "$ac_site_file"
1958  fi
1959done
1960
1961if test -r "$cache_file"; then
1962  # Some versions of bash will fail to source /dev/null (special
1963  # files actually), so we avoid doing that.
1964  if test -f "$cache_file"; then
1965    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1966$as_echo "$as_me: loading cache $cache_file" >&6;}
1967    case $cache_file in
1968      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1969      *)                      . "./$cache_file";;
1970    esac
1971  fi
1972else
1973  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1974$as_echo "$as_me: creating cache $cache_file" >&6;}
1975  >$cache_file
1976fi
1977
1978# Check that the precious variables saved in the cache have kept the same
1979# value.
1980ac_cache_corrupted=false
1981for ac_var in $ac_precious_vars; do
1982  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1983  eval ac_new_set=\$ac_env_${ac_var}_set
1984  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1985  eval ac_new_val=\$ac_env_${ac_var}_value
1986  case $ac_old_set,$ac_new_set in
1987    set,)
1988      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1989$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1990      ac_cache_corrupted=: ;;
1991    ,set)
1992      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1993$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1994      ac_cache_corrupted=: ;;
1995    ,);;
1996    *)
1997      if test "x$ac_old_val" != "x$ac_new_val"; then
1998	# differences in whitespace do not lead to failure.
1999	ac_old_val_w=`echo x $ac_old_val`
2000	ac_new_val_w=`echo x $ac_new_val`
2001	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2002	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004	  ac_cache_corrupted=:
2005	else
2006	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2007$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2008	  eval $ac_var=\$ac_old_val
2009	fi
2010	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2011$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2012	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2013$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2014      fi;;
2015  esac
2016  # Pass precious variables to config.status.
2017  if test "$ac_new_set" = set; then
2018    case $ac_new_val in
2019    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2020    *) ac_arg=$ac_var=$ac_new_val ;;
2021    esac
2022    case " $ac_configure_args " in
2023      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2024      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2025    esac
2026  fi
2027done
2028if $ac_cache_corrupted; then
2029  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2031  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2032$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2033  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2034$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2035   { (exit 1); exit 1; }; }
2036fi
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062ac_ext=c
2063ac_cpp='$CPP $CPPFLAGS'
2064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067
2068
2069am__api_version='1.11'
2070
2071ac_aux_dir=
2072for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2073  if test -f "$ac_dir/install-sh"; then
2074    ac_aux_dir=$ac_dir
2075    ac_install_sh="$ac_aux_dir/install-sh -c"
2076    break
2077  elif test -f "$ac_dir/install.sh"; then
2078    ac_aux_dir=$ac_dir
2079    ac_install_sh="$ac_aux_dir/install.sh -c"
2080    break
2081  elif test -f "$ac_dir/shtool"; then
2082    ac_aux_dir=$ac_dir
2083    ac_install_sh="$ac_aux_dir/shtool install -c"
2084    break
2085  fi
2086done
2087if test -z "$ac_aux_dir"; then
2088  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2089$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2090   { (exit 1); exit 1; }; }
2091fi
2092
2093# These three variables are undocumented and unsupported,
2094# and are intended to be withdrawn in a future Autoconf release.
2095# They can cause serious problems if a builder's source tree is in a directory
2096# whose full name contains unusual characters.
2097ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2098ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2099ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2100
2101
2102# Find a good install program.  We prefer a C program (faster),
2103# so one script is as good as another.  But avoid the broken or
2104# incompatible versions:
2105# SysV /etc/install, /usr/sbin/install
2106# SunOS /usr/etc/install
2107# IRIX /sbin/install
2108# AIX /bin/install
2109# AmigaOS /C/install, which installs bootblocks on floppy discs
2110# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2111# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2112# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2113# OS/2's system install, which has a completely different semantic
2114# ./install, which can be erroneously created by make from ./install.sh.
2115# Reject install programs that cannot install multiple files.
2116{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2117$as_echo_n "checking for a BSD-compatible install... " >&6; }
2118if test -z "$INSTALL"; then
2119if test "${ac_cv_path_install+set}" = set; then
2120  $as_echo_n "(cached) " >&6
2121else
2122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123for as_dir in $PATH
2124do
2125  IFS=$as_save_IFS
2126  test -z "$as_dir" && as_dir=.
2127  # Account for people who put trailing slashes in PATH elements.
2128case $as_dir/ in
2129  ./ | .// | /cC/* | \
2130  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2131  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2132  /usr/ucb/* ) ;;
2133  *)
2134    # OSF1 and SCO ODT 3.0 have their own names for install.
2135    # Don't use installbsd from OSF since it installs stuff as root
2136    # by default.
2137    for ac_prog in ginstall scoinst install; do
2138      for ac_exec_ext in '' $ac_executable_extensions; do
2139	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2140	  if test $ac_prog = install &&
2141	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2142	    # AIX install.  It has an incompatible calling convention.
2143	    :
2144	  elif test $ac_prog = install &&
2145	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146	    # program-specific install script used by HP pwplus--don't use.
2147	    :
2148	  else
2149	    rm -rf conftest.one conftest.two conftest.dir
2150	    echo one > conftest.one
2151	    echo two > conftest.two
2152	    mkdir conftest.dir
2153	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2154	      test -s conftest.one && test -s conftest.two &&
2155	      test -s conftest.dir/conftest.one &&
2156	      test -s conftest.dir/conftest.two
2157	    then
2158	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2159	      break 3
2160	    fi
2161	  fi
2162	fi
2163      done
2164    done
2165    ;;
2166esac
2167
2168done
2169IFS=$as_save_IFS
2170
2171rm -rf conftest.one conftest.two conftest.dir
2172
2173fi
2174  if test "${ac_cv_path_install+set}" = set; then
2175    INSTALL=$ac_cv_path_install
2176  else
2177    # As a last resort, use the slow shell script.  Don't cache a
2178    # value for INSTALL within a source directory, because that will
2179    # break other packages using the cache if that directory is
2180    # removed, or if the value is a relative name.
2181    INSTALL=$ac_install_sh
2182  fi
2183fi
2184{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2185$as_echo "$INSTALL" >&6; }
2186
2187# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2188# It thinks the first close brace ends the variable substitution.
2189test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190
2191test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192
2193test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194
2195{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2196$as_echo_n "checking whether build environment is sane... " >&6; }
2197# Just in case
2198sleep 1
2199echo timestamp > conftest.file
2200# Reject unsafe characters in $srcdir or the absolute working directory
2201# name.  Accept space and tab only in the latter.
2202am_lf='
2203'
2204case `pwd` in
2205  *[\\\"\#\$\&\'\`$am_lf]*)
2206    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2207$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2208   { (exit 1); exit 1; }; };;
2209esac
2210case $srcdir in
2211  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2212    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2213$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2214   { (exit 1); exit 1; }; };;
2215esac
2216
2217# Do `set' in a subshell so we don't clobber the current shell's
2218# arguments.  Must try -L first in case configure is actually a
2219# symlink; some systems play weird games with the mod time of symlinks
2220# (eg FreeBSD returns the mod time of the symlink's containing
2221# directory).
2222if (
2223   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2224   if test "$*" = "X"; then
2225      # -L didn't work.
2226      set X `ls -t "$srcdir/configure" conftest.file`
2227   fi
2228   rm -f conftest.file
2229   if test "$*" != "X $srcdir/configure conftest.file" \
2230      && test "$*" != "X conftest.file $srcdir/configure"; then
2231
2232      # If neither matched, then we have a broken ls.  This can happen
2233      # if, for instance, CONFIG_SHELL is bash and it inherits a
2234      # broken ls alias from the environment.  This has actually
2235      # happened.  Such a system could not be considered "sane".
2236      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2237alias in your environment" >&5
2238$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2239alias in your environment" >&2;}
2240   { (exit 1); exit 1; }; }
2241   fi
2242
2243   test "$2" = conftest.file
2244   )
2245then
2246   # Ok.
2247   :
2248else
2249   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2250Check your system clock" >&5
2251$as_echo "$as_me: error: newly created file is older than distributed files!
2252Check your system clock" >&2;}
2253   { (exit 1); exit 1; }; }
2254fi
2255{ $as_echo "$as_me:$LINENO: result: yes" >&5
2256$as_echo "yes" >&6; }
2257test "$program_prefix" != NONE &&
2258  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2259# Use a double $ so make ignores it.
2260test "$program_suffix" != NONE &&
2261  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2262# Double any \ or $.
2263# By default was `s,x,x', remove it if useless.
2264ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2265program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2266
2267# expand $ac_aux_dir to an absolute path
2268am_aux_dir=`cd $ac_aux_dir && pwd`
2269
2270if test x"${MISSING+set}" != xset; then
2271  case $am_aux_dir in
2272  *\ * | *\	*)
2273    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2274  *)
2275    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2276  esac
2277fi
2278# Use eval to expand $SHELL
2279if eval "$MISSING --run true"; then
2280  am_missing_run="$MISSING --run "
2281else
2282  am_missing_run=
2283  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2284$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2285fi
2286
2287if test x"${install_sh}" != xset; then
2288  case $am_aux_dir in
2289  *\ * | *\	*)
2290    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2291  *)
2292    install_sh="\${SHELL} $am_aux_dir/install-sh"
2293  esac
2294fi
2295
2296# Installed binaries are usually stripped using `strip' when the user
2297# run `make install-strip'.  However `strip' might not be the right
2298# tool to use in cross-compilation environments, therefore Automake
2299# will honor the `STRIP' environment variable to overrule this program.
2300if test "$cross_compiling" != no; then
2301  if test -n "$ac_tool_prefix"; then
2302  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303set dummy ${ac_tool_prefix}strip; ac_word=$2
2304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2305$as_echo_n "checking for $ac_word... " >&6; }
2306if test "${ac_cv_prog_STRIP+set}" = set; then
2307  $as_echo_n "(cached) " >&6
2308else
2309  if test -n "$STRIP"; then
2310  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317  for ac_exec_ext in '' $ac_executable_extensions; do
2318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321    break 2
2322  fi
2323done
2324done
2325IFS=$as_save_IFS
2326
2327fi
2328fi
2329STRIP=$ac_cv_prog_STRIP
2330if test -n "$STRIP"; then
2331  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2332$as_echo "$STRIP" >&6; }
2333else
2334  { $as_echo "$as_me:$LINENO: result: no" >&5
2335$as_echo "no" >&6; }
2336fi
2337
2338
2339fi
2340if test -z "$ac_cv_prog_STRIP"; then
2341  ac_ct_STRIP=$STRIP
2342  # Extract the first word of "strip", so it can be a program name with args.
2343set dummy strip; ac_word=$2
2344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2345$as_echo_n "checking for $ac_word... " >&6; }
2346if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2347  $as_echo_n "(cached) " >&6
2348else
2349  if test -n "$ac_ct_STRIP"; then
2350  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355  IFS=$as_save_IFS
2356  test -z "$as_dir" && as_dir=.
2357  for ac_exec_ext in '' $ac_executable_extensions; do
2358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359    ac_cv_prog_ac_ct_STRIP="strip"
2360    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361    break 2
2362  fi
2363done
2364done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
2369ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2370if test -n "$ac_ct_STRIP"; then
2371  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2372$as_echo "$ac_ct_STRIP" >&6; }
2373else
2374  { $as_echo "$as_me:$LINENO: result: no" >&5
2375$as_echo "no" >&6; }
2376fi
2377
2378  if test "x$ac_ct_STRIP" = x; then
2379    STRIP=":"
2380  else
2381    case $cross_compiling:$ac_tool_warned in
2382yes:)
2383{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2385ac_tool_warned=yes ;;
2386esac
2387    STRIP=$ac_ct_STRIP
2388  fi
2389else
2390  STRIP="$ac_cv_prog_STRIP"
2391fi
2392
2393fi
2394INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2395
2396{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2397$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2398if test -z "$MKDIR_P"; then
2399  if test "${ac_cv_path_mkdir+set}" = set; then
2400  $as_echo_n "(cached) " >&6
2401else
2402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407  for ac_prog in mkdir gmkdir; do
2408	 for ac_exec_ext in '' $ac_executable_extensions; do
2409	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2410	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2411	     'mkdir (GNU coreutils) '* | \
2412	     'mkdir (coreutils) '* | \
2413	     'mkdir (fileutils) '4.1*)
2414	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2415	       break 3;;
2416	   esac
2417	 done
2418       done
2419done
2420IFS=$as_save_IFS
2421
2422fi
2423
2424  if test "${ac_cv_path_mkdir+set}" = set; then
2425    MKDIR_P="$ac_cv_path_mkdir -p"
2426  else
2427    # As a last resort, use the slow shell script.  Don't cache a
2428    # value for MKDIR_P within a source directory, because that will
2429    # break other packages using the cache if that directory is
2430    # removed, or if the value is a relative name.
2431    test -d ./--version && rmdir ./--version
2432    MKDIR_P="$ac_install_sh -d"
2433  fi
2434fi
2435{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2436$as_echo "$MKDIR_P" >&6; }
2437
2438mkdir_p="$MKDIR_P"
2439case $mkdir_p in
2440  [\\/$]* | ?:[\\/]*) ;;
2441  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2442esac
2443
2444for ac_prog in gawk mawk nawk awk
2445do
2446  # Extract the first word of "$ac_prog", so it can be a program name with args.
2447set dummy $ac_prog; ac_word=$2
2448{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2449$as_echo_n "checking for $ac_word... " >&6; }
2450if test "${ac_cv_prog_AWK+set}" = set; then
2451  $as_echo_n "(cached) " >&6
2452else
2453  if test -n "$AWK"; then
2454  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459  IFS=$as_save_IFS
2460  test -z "$as_dir" && as_dir=.
2461  for ac_exec_ext in '' $ac_executable_extensions; do
2462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463    ac_cv_prog_AWK="$ac_prog"
2464    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465    break 2
2466  fi
2467done
2468done
2469IFS=$as_save_IFS
2470
2471fi
2472fi
2473AWK=$ac_cv_prog_AWK
2474if test -n "$AWK"; then
2475  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2476$as_echo "$AWK" >&6; }
2477else
2478  { $as_echo "$as_me:$LINENO: result: no" >&5
2479$as_echo "no" >&6; }
2480fi
2481
2482
2483  test -n "$AWK" && break
2484done
2485
2486{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2487$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2488set x ${MAKE-make}
2489ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2490if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2491  $as_echo_n "(cached) " >&6
2492else
2493  cat >conftest.make <<\_ACEOF
2494SHELL = /bin/sh
2495all:
2496	@echo '@@@%%%=$(MAKE)=@@@%%%'
2497_ACEOF
2498# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2499case `${MAKE-make} -f conftest.make 2>/dev/null` in
2500  *@@@%%%=?*=@@@%%%*)
2501    eval ac_cv_prog_make_${ac_make}_set=yes;;
2502  *)
2503    eval ac_cv_prog_make_${ac_make}_set=no;;
2504esac
2505rm -f conftest.make
2506fi
2507if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2508  { $as_echo "$as_me:$LINENO: result: yes" >&5
2509$as_echo "yes" >&6; }
2510  SET_MAKE=
2511else
2512  { $as_echo "$as_me:$LINENO: result: no" >&5
2513$as_echo "no" >&6; }
2514  SET_MAKE="MAKE=${MAKE-make}"
2515fi
2516
2517rm -rf .tst 2>/dev/null
2518mkdir .tst 2>/dev/null
2519if test -d .tst; then
2520  am__leading_dot=.
2521else
2522  am__leading_dot=_
2523fi
2524rmdir .tst 2>/dev/null
2525
2526if test "`cd $srcdir && pwd`" != "`pwd`"; then
2527  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2528  # is not polluted with repeated "-I."
2529  am__isrc=' -I$(srcdir)'
2530  # test to see if srcdir already configured
2531  if test -f $srcdir/config.status; then
2532    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2533$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2534   { (exit 1); exit 1; }; }
2535  fi
2536fi
2537
2538# test whether we have cygpath
2539if test -z "$CYGPATH_W"; then
2540  if (cygpath --version) >/dev/null 2>/dev/null; then
2541    CYGPATH_W='cygpath -w'
2542  else
2543    CYGPATH_W=echo
2544  fi
2545fi
2546
2547
2548# Define the identity of the package.
2549 PACKAGE='libXxf86vm'
2550 VERSION='1.1.0'
2551
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE "$PACKAGE"
2555_ACEOF
2556
2557
2558cat >>confdefs.h <<_ACEOF
2559#define VERSION "$VERSION"
2560_ACEOF
2561
2562# Some tools Automake needs.
2563
2564ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2565
2566
2567AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2568
2569
2570AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2571
2572
2573AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2574
2575
2576MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2577
2578# We need awk for the "check" target.  The system "awk" is bad on
2579# some platforms.
2580# Always define AMTAR for backward compatibility.
2581
2582AMTAR=${AMTAR-"${am_missing_run}tar"}
2583
2584am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2585
2586
2587
2588
2589
2590
2591{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2592$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2593    # Check whether --enable-maintainer-mode was given.
2594if test "${enable_maintainer_mode+set}" = set; then
2595  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2596else
2597  USE_MAINTAINER_MODE=no
2598fi
2599
2600  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2601$as_echo "$USE_MAINTAINER_MODE" >&6; }
2602   if test $USE_MAINTAINER_MODE = yes; then
2603  MAINTAINER_MODE_TRUE=
2604  MAINTAINER_MODE_FALSE='#'
2605else
2606  MAINTAINER_MODE_TRUE='#'
2607  MAINTAINER_MODE_FALSE=
2608fi
2609
2610  MAINT=$MAINTAINER_MODE_TRUE
2611
2612
2613
2614# Require xorg-macros: XORG_DEFAULT_OPTIONS
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626ac_config_headers="$ac_config_headers src/config.h"
2627
2628
2629# Check for progs
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635if test -n "$ac_tool_prefix"; then
2636  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2637set dummy ${ac_tool_prefix}gcc; ac_word=$2
2638{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if test "${ac_cv_prog_CC+set}" = set; then
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$CC"; then
2644  ac_cv_prog_CC="$CC" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651  for ac_exec_ext in '' $ac_executable_extensions; do
2652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2654    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
2665  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2666$as_echo "$CC" >&6; }
2667else
2668  { $as_echo "$as_me:$LINENO: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673fi
2674if test -z "$ac_cv_prog_CC"; then
2675  ac_ct_CC=$CC
2676  # Extract the first word of "gcc", so it can be a program name with args.
2677set dummy gcc; ac_word=$2
2678{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$ac_ct_CC"; then
2684  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691  for ac_exec_ext in '' $ac_executable_extensions; do
2692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693    ac_cv_prog_ac_ct_CC="gcc"
2694    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
2705  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706$as_echo "$ac_ct_CC" >&6; }
2707else
2708  { $as_echo "$as_me:$LINENO: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712  if test "x$ac_ct_CC" = x; then
2713    CC=""
2714  else
2715    case $cross_compiling:$ac_tool_warned in
2716yes:)
2717{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719ac_tool_warned=yes ;;
2720esac
2721    CC=$ac_ct_CC
2722  fi
2723else
2724  CC="$ac_cv_prog_CC"
2725fi
2726
2727if test -z "$CC"; then
2728          if test -n "$ac_tool_prefix"; then
2729    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2730set dummy ${ac_tool_prefix}cc; ac_word=$2
2731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if test "${ac_cv_prog_CC+set}" = set; then
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$CC"; then
2737  ac_cv_prog_CC="$CC" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744  for ac_exec_ext in '' $ac_executable_extensions; do
2745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746    ac_cv_prog_CC="${ac_tool_prefix}cc"
2747    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756CC=$ac_cv_prog_CC
2757if test -n "$CC"; then
2758  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2759$as_echo "$CC" >&6; }
2760else
2761  { $as_echo "$as_me:$LINENO: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  fi
2767fi
2768if test -z "$CC"; then
2769  # Extract the first word of "cc", so it can be a program name with args.
2770set dummy cc; ac_word=$2
2771{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if test "${ac_cv_prog_CC+set}" = set; then
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test -n "$CC"; then
2777  ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779  ac_prog_rejected=no
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785  for ac_exec_ext in '' $ac_executable_extensions; do
2786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788       ac_prog_rejected=yes
2789       continue
2790     fi
2791    ac_cv_prog_CC="cc"
2792    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796done
2797IFS=$as_save_IFS
2798
2799if test $ac_prog_rejected = yes; then
2800  # We found a bogon in the path, so make sure we never use it.
2801  set dummy $ac_cv_prog_CC
2802  shift
2803  if test $# != 0; then
2804    # We chose a different compiler from the bogus one.
2805    # However, it has the same basename, so the bogon will be chosen
2806    # first if we set CC to just the basename; use the full file name.
2807    shift
2808    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2809  fi
2810fi
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:$LINENO: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823fi
2824if test -z "$CC"; then
2825  if test -n "$ac_tool_prefix"; then
2826  for ac_prog in cl.exe
2827  do
2828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2830{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if test "${ac_cv_prog_CC+set}" = set; then
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843  for ac_exec_ext in '' $ac_executable_extensions; do
2844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2846    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855CC=$ac_cv_prog_CC
2856if test -n "$CC"; then
2857  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2858$as_echo "$CC" >&6; }
2859else
2860  { $as_echo "$as_me:$LINENO: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865    test -n "$CC" && break
2866  done
2867fi
2868if test -z "$CC"; then
2869  ac_ct_CC=$CC
2870  for ac_prog in cl.exe
2871do
2872  # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$ac_ct_CC"; then
2880  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887  for ac_exec_ext in '' $ac_executable_extensions; do
2888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889    ac_cv_prog_ac_ct_CC="$ac_prog"
2890    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900if test -n "$ac_ct_CC"; then
2901  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902$as_echo "$ac_ct_CC" >&6; }
2903else
2904  { $as_echo "$as_me:$LINENO: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909  test -n "$ac_ct_CC" && break
2910done
2911
2912  if test "x$ac_ct_CC" = x; then
2913    CC=""
2914  else
2915    case $cross_compiling:$ac_tool_warned in
2916yes:)
2917{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919ac_tool_warned=yes ;;
2920esac
2921    CC=$ac_ct_CC
2922  fi
2923fi
2924
2925fi
2926
2927
2928test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2931See \`config.log' for more details." >&5
2932$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2933See \`config.log' for more details." >&2;}
2934   { (exit 1); exit 1; }; }; }
2935
2936# Provide some information about the compiler.
2937$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2938set X $ac_compile
2939ac_compiler=$2
2940{ (ac_try="$ac_compiler --version >&5"
2941case "(($ac_try" in
2942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943  *) ac_try_echo=$ac_try;;
2944esac
2945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2946$as_echo "$ac_try_echo") >&5
2947  (eval "$ac_compiler --version >&5") 2>&5
2948  ac_status=$?
2949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }
2951{ (ac_try="$ac_compiler -v >&5"
2952case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2957$as_echo "$ac_try_echo") >&5
2958  (eval "$ac_compiler -v >&5") 2>&5
2959  ac_status=$?
2960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }
2962{ (ac_try="$ac_compiler -V >&5"
2963case "(($ac_try" in
2964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965  *) ac_try_echo=$ac_try;;
2966esac
2967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2968$as_echo "$ac_try_echo") >&5
2969  (eval "$ac_compiler -V >&5") 2>&5
2970  ac_status=$?
2971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }
2973
2974cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h.  */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989ac_clean_files_save=$ac_clean_files
2990ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2991# Try to create an executable without -o first, disregard a.out.
2992# It will help us diagnose broken compilers, and finding out an intuition
2993# of exeext.
2994{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2995$as_echo_n "checking for C compiler default output file name... " >&6; }
2996ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2997
2998# The possible output files:
2999ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3000
3001ac_rmfiles=
3002for ac_file in $ac_files
3003do
3004  case $ac_file in
3005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3006    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3007  esac
3008done
3009rm -f $ac_rmfiles
3010
3011if { (ac_try="$ac_link_default"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3017$as_echo "$ac_try_echo") >&5
3018  (eval "$ac_link_default") 2>&5
3019  ac_status=$?
3020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; then
3022  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3023# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3024# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3025# so that the user can short-circuit this test for compilers unknown to
3026# Autoconf.
3027for ac_file in $ac_files ''
3028do
3029  test -f "$ac_file" || continue
3030  case $ac_file in
3031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3032	;;
3033    [ab].out )
3034	# We found the default executable, but exeext='' is most
3035	# certainly right.
3036	break;;
3037    *.* )
3038        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3039	then :; else
3040	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041	fi
3042	# We set ac_cv_exeext here because the later test for it is not
3043	# safe: cross compilers may not add the suffix if given an `-o'
3044	# argument, so we may need to know it at that point already.
3045	# Even if this section looks crufty: it has the advantage of
3046	# actually working.
3047	break;;
3048    * )
3049	break;;
3050  esac
3051done
3052test "$ac_cv_exeext" = no && ac_cv_exeext=
3053
3054else
3055  ac_file=''
3056fi
3057
3058{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3059$as_echo "$ac_file" >&6; }
3060if test -z "$ac_file"; then
3061  $as_echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3067See \`config.log' for more details." >&5
3068$as_echo "$as_me: error: C compiler cannot create executables
3069See \`config.log' for more details." >&2;}
3070   { (exit 77); exit 77; }; }; }
3071fi
3072
3073ac_exeext=$ac_cv_exeext
3074
3075# Check that the compiler produces executables we can run.  If not, either
3076# the compiler is broken, or we cross compile.
3077{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3078$as_echo_n "checking whether the C compiler works... " >&6; }
3079# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3080# If not cross compiling, check that we can run a simple program.
3081if test "$cross_compiling" != yes; then
3082  if { ac_try='./$ac_file'
3083  { (case "(($ac_try" in
3084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085  *) ac_try_echo=$ac_try;;
3086esac
3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088$as_echo "$ac_try_echo") >&5
3089  (eval "$ac_try") 2>&5
3090  ac_status=$?
3091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; }; then
3093    cross_compiling=no
3094  else
3095    if test "$cross_compiling" = maybe; then
3096	cross_compiling=yes
3097    else
3098	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3101If you meant to cross compile, use \`--host'.
3102See \`config.log' for more details." >&5
3103$as_echo "$as_me: error: cannot run C compiled programs.
3104If you meant to cross compile, use \`--host'.
3105See \`config.log' for more details." >&2;}
3106   { (exit 1); exit 1; }; }; }
3107    fi
3108  fi
3109fi
3110{ $as_echo "$as_me:$LINENO: result: yes" >&5
3111$as_echo "yes" >&6; }
3112
3113rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3114ac_clean_files=$ac_clean_files_save
3115# Check that the compiler produces executables we can run.  If not, either
3116# the compiler is broken, or we cross compile.
3117{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3118$as_echo_n "checking whether we are cross compiling... " >&6; }
3119{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3120$as_echo "$cross_compiling" >&6; }
3121
3122{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3123$as_echo_n "checking for suffix of executables... " >&6; }
3124if { (ac_try="$ac_link"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130$as_echo "$ac_try_echo") >&5
3131  (eval "$ac_link") 2>&5
3132  ac_status=$?
3133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; then
3135  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3137# work properly (i.e., refer to `conftest.exe'), while it won't with
3138# `rm'.
3139for ac_file in conftest.exe conftest conftest.*; do
3140  test -f "$ac_file" || continue
3141  case $ac_file in
3142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144	  break;;
3145    * ) break;;
3146  esac
3147done
3148else
3149  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3152See \`config.log' for more details." >&5
3153$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3154See \`config.log' for more details." >&2;}
3155   { (exit 1); exit 1; }; }; }
3156fi
3157
3158rm -f conftest$ac_cv_exeext
3159{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3160$as_echo "$ac_cv_exeext" >&6; }
3161
3162rm -f conftest.$ac_ext
3163EXEEXT=$ac_cv_exeext
3164ac_exeext=$EXEEXT
3165{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3166$as_echo_n "checking for suffix of object files... " >&6; }
3167if test "${ac_cv_objext+set}" = set; then
3168  $as_echo_n "(cached) " >&6
3169else
3170  cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h.  */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h.  */
3176
3177int
3178main ()
3179{
3180
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185rm -f conftest.o conftest.obj
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192$as_echo "$ac_try_echo") >&5
3193  (eval "$ac_compile") 2>&5
3194  ac_status=$?
3195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; then
3197  for ac_file in conftest.o conftest.obj conftest.*; do
3198  test -f "$ac_file" || continue;
3199  case $ac_file in
3200    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3201    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3202       break;;
3203  esac
3204done
3205else
3206  $as_echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3212See \`config.log' for more details." >&5
3213$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3214See \`config.log' for more details." >&2;}
3215   { (exit 1); exit 1; }; }; }
3216fi
3217
3218rm -f conftest.$ac_cv_objext conftest.$ac_ext
3219fi
3220{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3221$as_echo "$ac_cv_objext" >&6; }
3222OBJEXT=$ac_cv_objext
3223ac_objext=$OBJEXT
3224{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3225$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3226if test "${ac_cv_c_compiler_gnu+set}" = set; then
3227  $as_echo_n "(cached) " >&6
3228else
3229  cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h.  */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h.  */
3235
3236int
3237main ()
3238{
3239#ifndef __GNUC__
3240       choke me
3241#endif
3242
3243  ;
3244  return 0;
3245}
3246_ACEOF
3247rm -f conftest.$ac_objext
3248if { (ac_try="$ac_compile"
3249case "(($ac_try" in
3250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251  *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254$as_echo "$ac_try_echo") >&5
3255  (eval "$ac_compile") 2>conftest.er1
3256  ac_status=$?
3257  grep -v '^ *+' conftest.er1 >conftest.err
3258  rm -f conftest.er1
3259  cat conftest.err >&5
3260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); } && {
3262	 test -z "$ac_c_werror_flag" ||
3263	 test ! -s conftest.err
3264       } && test -s conftest.$ac_objext; then
3265  ac_compiler_gnu=yes
3266else
3267  $as_echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270	ac_compiler_gnu=no
3271fi
3272
3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276fi
3277{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3279if test $ac_compiler_gnu = yes; then
3280  GCC=yes
3281else
3282  GCC=
3283fi
3284ac_test_CFLAGS=${CFLAGS+set}
3285ac_save_CFLAGS=$CFLAGS
3286{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3287$as_echo_n "checking whether $CC accepts -g... " >&6; }
3288if test "${ac_cv_prog_cc_g+set}" = set; then
3289  $as_echo_n "(cached) " >&6
3290else
3291  ac_save_c_werror_flag=$ac_c_werror_flag
3292   ac_c_werror_flag=yes
3293   ac_cv_prog_cc_g=no
3294   CFLAGS="-g"
3295   cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h.  */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h.  */
3301
3302int
3303main ()
3304{
3305
3306  ;
3307  return 0;
3308}
3309_ACEOF
3310rm -f conftest.$ac_objext
3311if { (ac_try="$ac_compile"
3312case "(($ac_try" in
3313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314  *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317$as_echo "$ac_try_echo") >&5
3318  (eval "$ac_compile") 2>conftest.er1
3319  ac_status=$?
3320  grep -v '^ *+' conftest.er1 >conftest.err
3321  rm -f conftest.er1
3322  cat conftest.err >&5
3323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324  (exit $ac_status); } && {
3325	 test -z "$ac_c_werror_flag" ||
3326	 test ! -s conftest.err
3327       } && test -s conftest.$ac_objext; then
3328  ac_cv_prog_cc_g=yes
3329else
3330  $as_echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333	CFLAGS=""
3334      cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h.  */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
3339/* end confdefs.h.  */
3340
3341int
3342main ()
3343{
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349rm -f conftest.$ac_objext
3350if { (ac_try="$ac_compile"
3351case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356$as_echo "$ac_try_echo") >&5
3357  (eval "$ac_compile") 2>conftest.er1
3358  ac_status=$?
3359  grep -v '^ *+' conftest.er1 >conftest.err
3360  rm -f conftest.er1
3361  cat conftest.err >&5
3362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); } && {
3364	 test -z "$ac_c_werror_flag" ||
3365	 test ! -s conftest.err
3366       } && test -s conftest.$ac_objext; then
3367  :
3368else
3369  $as_echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372	ac_c_werror_flag=$ac_save_c_werror_flag
3373	 CFLAGS="-g"
3374	 cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380
3381int
3382main ()
3383{
3384
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389rm -f conftest.$ac_objext
3390if { (ac_try="$ac_compile"
3391case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3396$as_echo "$ac_try_echo") >&5
3397  (eval "$ac_compile") 2>conftest.er1
3398  ac_status=$?
3399  grep -v '^ *+' conftest.er1 >conftest.err
3400  rm -f conftest.er1
3401  cat conftest.err >&5
3402  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); } && {
3404	 test -z "$ac_c_werror_flag" ||
3405	 test ! -s conftest.err
3406       } && test -s conftest.$ac_objext; then
3407  ac_cv_prog_cc_g=yes
3408else
3409  $as_echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
3412
3413fi
3414
3415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416fi
3417
3418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419fi
3420
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422   ac_c_werror_flag=$ac_save_c_werror_flag
3423fi
3424{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3425$as_echo "$ac_cv_prog_cc_g" >&6; }
3426if test "$ac_test_CFLAGS" = set; then
3427  CFLAGS=$ac_save_CFLAGS
3428elif test $ac_cv_prog_cc_g = yes; then
3429  if test "$GCC" = yes; then
3430    CFLAGS="-g -O2"
3431  else
3432    CFLAGS="-g"
3433  fi
3434else
3435  if test "$GCC" = yes; then
3436    CFLAGS="-O2"
3437  else
3438    CFLAGS=
3439  fi
3440fi
3441{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3443if test "${ac_cv_prog_cc_c89+set}" = set; then
3444  $as_echo_n "(cached) " >&6
3445else
3446  ac_cv_prog_cc_c89=no
3447ac_save_CC=$CC
3448cat >conftest.$ac_ext <<_ACEOF
3449/* confdefs.h.  */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h.  */
3454#include <stdarg.h>
3455#include <stdio.h>
3456#include <sys/types.h>
3457#include <sys/stat.h>
3458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3459struct buf { int x; };
3460FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461static char *e (p, i)
3462     char **p;
3463     int i;
3464{
3465  return p[i];
3466}
3467static char *f (char * (*g) (char **, int), char **p, ...)
3468{
3469  char *s;
3470  va_list v;
3471  va_start (v,p);
3472  s = g (p, va_arg (v,int));
3473  va_end (v);
3474  return s;
3475}
3476
3477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3478   function prototypes and stuff, but not '\xHH' hex character constants.
3479   These don't provoke an error unfortunately, instead are silently treated
3480   as 'x'.  The following induces an error, until -std is added to get
3481   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3482   array size at least.  It's necessary to write '\x00'==0 to get something
3483   that's true only with -std.  */
3484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485
3486/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487   inside strings and character constants.  */
3488#define FOO(x) 'x'
3489int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490
3491int test (int i, double x);
3492struct s1 {int (*f) (int a);};
3493struct s2 {int (*f) (double a);};
3494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495int argc;
3496char **argv;
3497int
3498main ()
3499{
3500return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507do
3508  CC="$ac_save_CC $ac_arg"
3509  rm -f conftest.$ac_objext
3510if { (ac_try="$ac_compile"
3511case "(($ac_try" in
3512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513  *) ac_try_echo=$ac_try;;
3514esac
3515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516$as_echo "$ac_try_echo") >&5
3517  (eval "$ac_compile") 2>conftest.er1
3518  ac_status=$?
3519  grep -v '^ *+' conftest.er1 >conftest.err
3520  rm -f conftest.er1
3521  cat conftest.err >&5
3522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); } && {
3524	 test -z "$ac_c_werror_flag" ||
3525	 test ! -s conftest.err
3526       } && test -s conftest.$ac_objext; then
3527  ac_cv_prog_cc_c89=$ac_arg
3528else
3529  $as_echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532
3533fi
3534
3535rm -f core conftest.err conftest.$ac_objext
3536  test "x$ac_cv_prog_cc_c89" != "xno" && break
3537done
3538rm -f conftest.$ac_ext
3539CC=$ac_save_CC
3540
3541fi
3542# AC_CACHE_VAL
3543case "x$ac_cv_prog_cc_c89" in
3544  x)
3545    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3546$as_echo "none needed" >&6; } ;;
3547  xno)
3548    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3549$as_echo "unsupported" >&6; } ;;
3550  *)
3551    CC="$CC $ac_cv_prog_cc_c89"
3552    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3553$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3554esac
3555
3556
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562DEPDIR="${am__leading_dot}deps"
3563
3564ac_config_commands="$ac_config_commands depfiles"
3565
3566
3567am_make=${MAKE-make}
3568cat > confinc << 'END'
3569am__doit:
3570	@echo this is the am__doit target
3571.PHONY: am__doit
3572END
3573# If we don't find an include directive, just comment out the code.
3574{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3575$as_echo_n "checking for style of include used by $am_make... " >&6; }
3576am__include="#"
3577am__quote=
3578_am_result=none
3579# First try GNU make style include.
3580echo "include confinc" > confmf
3581# Ignore all kinds of additional output from `make'.
3582case `$am_make -s -f confmf 2> /dev/null` in #(
3583*the\ am__doit\ target*)
3584  am__include=include
3585  am__quote=
3586  _am_result=GNU
3587  ;;
3588esac
3589# Now try BSD make style include.
3590if test "$am__include" = "#"; then
3591   echo '.include "confinc"' > confmf
3592   case `$am_make -s -f confmf 2> /dev/null` in #(
3593   *the\ am__doit\ target*)
3594     am__include=.include
3595     am__quote="\""
3596     _am_result=BSD
3597     ;;
3598   esac
3599fi
3600
3601
3602{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3603$as_echo "$_am_result" >&6; }
3604rm -f confinc confmf
3605
3606# Check whether --enable-dependency-tracking was given.
3607if test "${enable_dependency_tracking+set}" = set; then
3608  enableval=$enable_dependency_tracking;
3609fi
3610
3611if test "x$enable_dependency_tracking" != xno; then
3612  am_depcomp="$ac_aux_dir/depcomp"
3613  AMDEPBACKSLASH='\'
3614fi
3615 if test "x$enable_dependency_tracking" != xno; then
3616  AMDEP_TRUE=
3617  AMDEP_FALSE='#'
3618else
3619  AMDEP_TRUE='#'
3620  AMDEP_FALSE=
3621fi
3622
3623
3624
3625depcc="$CC"   am_compiler_list=
3626
3627{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3628$as_echo_n "checking dependency style of $depcc... " >&6; }
3629if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3630  $as_echo_n "(cached) " >&6
3631else
3632  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3633  # We make a subdir and do the tests there.  Otherwise we can end up
3634  # making bogus files that we don't know about and never remove.  For
3635  # instance it was reported that on HP-UX the gcc test will end up
3636  # making a dummy file named `D' -- because `-MD' means `put the output
3637  # in D'.
3638  mkdir conftest.dir
3639  # Copy depcomp to subdir because otherwise we won't find it if we're
3640  # using a relative directory.
3641  cp "$am_depcomp" conftest.dir
3642  cd conftest.dir
3643  # We will build objects and dependencies in a subdirectory because
3644  # it helps to detect inapplicable dependency modes.  For instance
3645  # both Tru64's cc and ICC support -MD to output dependencies as a
3646  # side effect of compilation, but ICC will put the dependencies in
3647  # the current directory while Tru64 will put them in the object
3648  # directory.
3649  mkdir sub
3650
3651  am_cv_CC_dependencies_compiler_type=none
3652  if test "$am_compiler_list" = ""; then
3653     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3654  fi
3655  am__universal=false
3656  case " $depcc " in #(
3657     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3658     esac
3659
3660  for depmode in $am_compiler_list; do
3661    # Setup a source with many dependencies, because some compilers
3662    # like to wrap large dependency lists on column 80 (with \), and
3663    # we should not choose a depcomp mode which is confused by this.
3664    #
3665    # We need to recreate these files for each test, as the compiler may
3666    # overwrite some of them when testing with obscure command lines.
3667    # This happens at least with the AIX C compiler.
3668    : > sub/conftest.c
3669    for i in 1 2 3 4 5 6; do
3670      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3671      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3672      # Solaris 8's {/usr,}/bin/sh.
3673      touch sub/conftst$i.h
3674    done
3675    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3676
3677    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3678    # mode.  It turns out that the SunPro C++ compiler does not properly
3679    # handle `-M -o', and we need to detect this.  Also, some Intel
3680    # versions had trouble with output in subdirs
3681    am__obj=sub/conftest.${OBJEXT-o}
3682    am__minus_obj="-o $am__obj"
3683    case $depmode in
3684    gcc)
3685      # This depmode causes a compiler race in universal mode.
3686      test "$am__universal" = false || continue
3687      ;;
3688    nosideeffect)
3689      # after this tag, mechanisms are not by side-effect, so they'll
3690      # only be used when explicitly requested
3691      if test "x$enable_dependency_tracking" = xyes; then
3692	continue
3693      else
3694	break
3695      fi
3696      ;;
3697    msvisualcpp | msvcmsys)
3698      # This compiler won't grok `-c -o', but also, the minuso test has
3699      # not run yet.  These depmodes are late enough in the game, and
3700      # so weak that their functioning should not be impacted.
3701      am__obj=conftest.${OBJEXT-o}
3702      am__minus_obj=
3703      ;;
3704    none) break ;;
3705    esac
3706    if depmode=$depmode \
3707       source=sub/conftest.c object=$am__obj \
3708       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3709       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3710         >/dev/null 2>conftest.err &&
3711       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3712       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3713       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3714       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3715      # icc doesn't choke on unknown options, it will just issue warnings
3716      # or remarks (even with -Werror).  So we grep stderr for any message
3717      # that says an option was ignored or not supported.
3718      # When given -MP, icc 7.0 and 7.1 complain thusly:
3719      #   icc: Command line warning: ignoring option '-M'; no argument required
3720      # The diagnosis changed in icc 8.0:
3721      #   icc: Command line remark: option '-MP' not supported
3722      if (grep 'ignoring option' conftest.err ||
3723          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3724        am_cv_CC_dependencies_compiler_type=$depmode
3725        break
3726      fi
3727    fi
3728  done
3729
3730  cd ..
3731  rm -rf conftest.dir
3732else
3733  am_cv_CC_dependencies_compiler_type=none
3734fi
3735
3736fi
3737{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3738$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3739CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3740
3741 if
3742  test "x$enable_dependency_tracking" != xno \
3743  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3744  am__fastdepCC_TRUE=
3745  am__fastdepCC_FALSE='#'
3746else
3747  am__fastdepCC_TRUE='#'
3748  am__fastdepCC_FALSE=
3749fi
3750
3751
3752case `pwd` in
3753  *\ * | *\	*)
3754    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3755$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3756esac
3757
3758
3759
3760macro_version='2.2.6'
3761macro_revision='1.3012'
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775ltmain="$ac_aux_dir/ltmain.sh"
3776
3777# Make sure we can run config.sub.
3778$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3780$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3781   { (exit 1); exit 1; }; }
3782
3783{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3784$as_echo_n "checking build system type... " >&6; }
3785if test "${ac_cv_build+set}" = set; then
3786  $as_echo_n "(cached) " >&6
3787else
3788  ac_build_alias=$build_alias
3789test "x$ac_build_alias" = x &&
3790  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3791test "x$ac_build_alias" = x &&
3792  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3793$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3794   { (exit 1); exit 1; }; }
3795ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3796  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3797$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3798   { (exit 1); exit 1; }; }
3799
3800fi
3801{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3802$as_echo "$ac_cv_build" >&6; }
3803case $ac_cv_build in
3804*-*-*) ;;
3805*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3806$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3807   { (exit 1); exit 1; }; };;
3808esac
3809build=$ac_cv_build
3810ac_save_IFS=$IFS; IFS='-'
3811set x $ac_cv_build
3812shift
3813build_cpu=$1
3814build_vendor=$2
3815shift; shift
3816# Remember, the first character of IFS is used to create $*,
3817# except with old shells:
3818build_os=$*
3819IFS=$ac_save_IFS
3820case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3821
3822
3823{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3824$as_echo_n "checking host system type... " >&6; }
3825if test "${ac_cv_host+set}" = set; then
3826  $as_echo_n "(cached) " >&6
3827else
3828  if test "x$host_alias" = x; then
3829  ac_cv_host=$ac_cv_build
3830else
3831  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3832    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3833$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3834   { (exit 1); exit 1; }; }
3835fi
3836
3837fi
3838{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839$as_echo "$ac_cv_host" >&6; }
3840case $ac_cv_host in
3841*-*-*) ;;
3842*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3843$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3844   { (exit 1); exit 1; }; };;
3845esac
3846host=$ac_cv_host
3847ac_save_IFS=$IFS; IFS='-'
3848set x $ac_cv_host
3849shift
3850host_cpu=$1
3851host_vendor=$2
3852shift; shift
3853# Remember, the first character of IFS is used to create $*,
3854# except with old shells:
3855host_os=$*
3856IFS=$ac_save_IFS
3857case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3858
3859
3860{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3861$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3862if test "${ac_cv_path_SED+set}" = set; then
3863  $as_echo_n "(cached) " >&6
3864else
3865            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3866     for ac_i in 1 2 3 4 5 6 7; do
3867       ac_script="$ac_script$as_nl$ac_script"
3868     done
3869     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3870     $as_unset ac_script || ac_script=
3871     if test -z "$SED"; then
3872  ac_path_SED_found=false
3873  # Loop through the user's path and test for each of PROGNAME-LIST
3874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877  IFS=$as_save_IFS
3878  test -z "$as_dir" && as_dir=.
3879  for ac_prog in sed gsed; do
3880    for ac_exec_ext in '' $ac_executable_extensions; do
3881      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3882      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3883# Check for GNU ac_path_SED and select it if it is found.
3884  # Check for GNU $ac_path_SED
3885case `"$ac_path_SED" --version 2>&1` in
3886*GNU*)
3887  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3888*)
3889  ac_count=0
3890  $as_echo_n 0123456789 >"conftest.in"
3891  while :
3892  do
3893    cat "conftest.in" "conftest.in" >"conftest.tmp"
3894    mv "conftest.tmp" "conftest.in"
3895    cp "conftest.in" "conftest.nl"
3896    $as_echo '' >> "conftest.nl"
3897    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3899    ac_count=`expr $ac_count + 1`
3900    if test $ac_count -gt ${ac_path_SED_max-0}; then
3901      # Best one so far, save it but keep looking for a better one
3902      ac_cv_path_SED="$ac_path_SED"
3903      ac_path_SED_max=$ac_count
3904    fi
3905    # 10*(2^10) chars as input seems more than enough
3906    test $ac_count -gt 10 && break
3907  done
3908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3909esac
3910
3911      $ac_path_SED_found && break 3
3912    done
3913  done
3914done
3915IFS=$as_save_IFS
3916  if test -z "$ac_cv_path_SED"; then
3917    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3918$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3919   { (exit 1); exit 1; }; }
3920  fi
3921else
3922  ac_cv_path_SED=$SED
3923fi
3924
3925fi
3926{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3927$as_echo "$ac_cv_path_SED" >&6; }
3928 SED="$ac_cv_path_SED"
3929  rm -f conftest.sed
3930
3931test -z "$SED" && SED=sed
3932Xsed="$SED -e 1s/^X//"
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3945$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3946if test "${ac_cv_path_GREP+set}" = set; then
3947  $as_echo_n "(cached) " >&6
3948else
3949  if test -z "$GREP"; then
3950  ac_path_GREP_found=false
3951  # Loop through the user's path and test for each of PROGNAME-LIST
3952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954do
3955  IFS=$as_save_IFS
3956  test -z "$as_dir" && as_dir=.
3957  for ac_prog in grep ggrep; do
3958    for ac_exec_ext in '' $ac_executable_extensions; do
3959      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3960      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3961# Check for GNU ac_path_GREP and select it if it is found.
3962  # Check for GNU $ac_path_GREP
3963case `"$ac_path_GREP" --version 2>&1` in
3964*GNU*)
3965  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3966*)
3967  ac_count=0
3968  $as_echo_n 0123456789 >"conftest.in"
3969  while :
3970  do
3971    cat "conftest.in" "conftest.in" >"conftest.tmp"
3972    mv "conftest.tmp" "conftest.in"
3973    cp "conftest.in" "conftest.nl"
3974    $as_echo 'GREP' >> "conftest.nl"
3975    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3977    ac_count=`expr $ac_count + 1`
3978    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3979      # Best one so far, save it but keep looking for a better one
3980      ac_cv_path_GREP="$ac_path_GREP"
3981      ac_path_GREP_max=$ac_count
3982    fi
3983    # 10*(2^10) chars as input seems more than enough
3984    test $ac_count -gt 10 && break
3985  done
3986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987esac
3988
3989      $ac_path_GREP_found && break 3
3990    done
3991  done
3992done
3993IFS=$as_save_IFS
3994  if test -z "$ac_cv_path_GREP"; then
3995    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3996$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3997   { (exit 1); exit 1; }; }
3998  fi
3999else
4000  ac_cv_path_GREP=$GREP
4001fi
4002
4003fi
4004{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4005$as_echo "$ac_cv_path_GREP" >&6; }
4006 GREP="$ac_cv_path_GREP"
4007
4008
4009{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4010$as_echo_n "checking for egrep... " >&6; }
4011if test "${ac_cv_path_EGREP+set}" = set; then
4012  $as_echo_n "(cached) " >&6
4013else
4014  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4015   then ac_cv_path_EGREP="$GREP -E"
4016   else
4017     if test -z "$EGREP"; then
4018  ac_path_EGREP_found=false
4019  # Loop through the user's path and test for each of PROGNAME-LIST
4020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022do
4023  IFS=$as_save_IFS
4024  test -z "$as_dir" && as_dir=.
4025  for ac_prog in egrep; do
4026    for ac_exec_ext in '' $ac_executable_extensions; do
4027      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4029# Check for GNU ac_path_EGREP and select it if it is found.
4030  # Check for GNU $ac_path_EGREP
4031case `"$ac_path_EGREP" --version 2>&1` in
4032*GNU*)
4033  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034*)
4035  ac_count=0
4036  $as_echo_n 0123456789 >"conftest.in"
4037  while :
4038  do
4039    cat "conftest.in" "conftest.in" >"conftest.tmp"
4040    mv "conftest.tmp" "conftest.in"
4041    cp "conftest.in" "conftest.nl"
4042    $as_echo 'EGREP' >> "conftest.nl"
4043    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045    ac_count=`expr $ac_count + 1`
4046    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047      # Best one so far, save it but keep looking for a better one
4048      ac_cv_path_EGREP="$ac_path_EGREP"
4049      ac_path_EGREP_max=$ac_count
4050    fi
4051    # 10*(2^10) chars as input seems more than enough
4052    test $ac_count -gt 10 && break
4053  done
4054  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055esac
4056
4057      $ac_path_EGREP_found && break 3
4058    done
4059  done
4060done
4061IFS=$as_save_IFS
4062  if test -z "$ac_cv_path_EGREP"; then
4063    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065   { (exit 1); exit 1; }; }
4066  fi
4067else
4068  ac_cv_path_EGREP=$EGREP
4069fi
4070
4071   fi
4072fi
4073{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4074$as_echo "$ac_cv_path_EGREP" >&6; }
4075 EGREP="$ac_cv_path_EGREP"
4076
4077
4078{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4079$as_echo_n "checking for fgrep... " >&6; }
4080if test "${ac_cv_path_FGREP+set}" = set; then
4081  $as_echo_n "(cached) " >&6
4082else
4083  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4084   then ac_cv_path_FGREP="$GREP -F"
4085   else
4086     if test -z "$FGREP"; then
4087  ac_path_FGREP_found=false
4088  # Loop through the user's path and test for each of PROGNAME-LIST
4089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094  for ac_prog in fgrep; do
4095    for ac_exec_ext in '' $ac_executable_extensions; do
4096      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4097      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4098# Check for GNU ac_path_FGREP and select it if it is found.
4099  # Check for GNU $ac_path_FGREP
4100case `"$ac_path_FGREP" --version 2>&1` in
4101*GNU*)
4102  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4103*)
4104  ac_count=0
4105  $as_echo_n 0123456789 >"conftest.in"
4106  while :
4107  do
4108    cat "conftest.in" "conftest.in" >"conftest.tmp"
4109    mv "conftest.tmp" "conftest.in"
4110    cp "conftest.in" "conftest.nl"
4111    $as_echo 'FGREP' >> "conftest.nl"
4112    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4113    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4114    ac_count=`expr $ac_count + 1`
4115    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4116      # Best one so far, save it but keep looking for a better one
4117      ac_cv_path_FGREP="$ac_path_FGREP"
4118      ac_path_FGREP_max=$ac_count
4119    fi
4120    # 10*(2^10) chars as input seems more than enough
4121    test $ac_count -gt 10 && break
4122  done
4123  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124esac
4125
4126      $ac_path_FGREP_found && break 3
4127    done
4128  done
4129done
4130IFS=$as_save_IFS
4131  if test -z "$ac_cv_path_FGREP"; then
4132    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4133$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4134   { (exit 1); exit 1; }; }
4135  fi
4136else
4137  ac_cv_path_FGREP=$FGREP
4138fi
4139
4140   fi
4141fi
4142{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4143$as_echo "$ac_cv_path_FGREP" >&6; }
4144 FGREP="$ac_cv_path_FGREP"
4145
4146
4147test -z "$GREP" && GREP=grep
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167# Check whether --with-gnu-ld was given.
4168if test "${with_gnu_ld+set}" = set; then
4169  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4170else
4171  with_gnu_ld=no
4172fi
4173
4174ac_prog=ld
4175if test "$GCC" = yes; then
4176  # Check if gcc -print-prog-name=ld gives a path.
4177  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4178$as_echo_n "checking for ld used by $CC... " >&6; }
4179  case $host in
4180  *-*-mingw*)
4181    # gcc leaves a trailing carriage return which upsets mingw
4182    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4183  *)
4184    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4185  esac
4186  case $ac_prog in
4187    # Accept absolute paths.
4188    [\\/]* | ?:[\\/]*)
4189      re_direlt='/[^/][^/]*/\.\./'
4190      # Canonicalize the pathname of ld
4191      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4192      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4193	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4194      done
4195      test -z "$LD" && LD="$ac_prog"
4196      ;;
4197  "")
4198    # If it fails, then pretend we aren't using GCC.
4199    ac_prog=ld
4200    ;;
4201  *)
4202    # If it is relative, then search for the first ld in PATH.
4203    with_gnu_ld=unknown
4204    ;;
4205  esac
4206elif test "$with_gnu_ld" = yes; then
4207  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4208$as_echo_n "checking for GNU ld... " >&6; }
4209else
4210  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4211$as_echo_n "checking for non-GNU ld... " >&6; }
4212fi
4213if test "${lt_cv_path_LD+set}" = set; then
4214  $as_echo_n "(cached) " >&6
4215else
4216  if test -z "$LD"; then
4217  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4218  for ac_dir in $PATH; do
4219    IFS="$lt_save_ifs"
4220    test -z "$ac_dir" && ac_dir=.
4221    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4222      lt_cv_path_LD="$ac_dir/$ac_prog"
4223      # Check to see if the program is GNU ld.  I'd rather use --version,
4224      # but apparently some variants of GNU ld only accept -v.
4225      # Break only if it was the GNU/non-GNU ld that we prefer.
4226      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4227      *GNU* | *'with BFD'*)
4228	test "$with_gnu_ld" != no && break
4229	;;
4230      *)
4231	test "$with_gnu_ld" != yes && break
4232	;;
4233      esac
4234    fi
4235  done
4236  IFS="$lt_save_ifs"
4237else
4238  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4239fi
4240fi
4241
4242LD="$lt_cv_path_LD"
4243if test -n "$LD"; then
4244  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4245$as_echo "$LD" >&6; }
4246else
4247  { $as_echo "$as_me:$LINENO: result: no" >&5
4248$as_echo "no" >&6; }
4249fi
4250test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4251$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4252   { (exit 1); exit 1; }; }
4253{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4254$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4255if test "${lt_cv_prog_gnu_ld+set}" = set; then
4256  $as_echo_n "(cached) " >&6
4257else
4258  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4259case `$LD -v 2>&1 </dev/null` in
4260*GNU* | *'with BFD'*)
4261  lt_cv_prog_gnu_ld=yes
4262  ;;
4263*)
4264  lt_cv_prog_gnu_ld=no
4265  ;;
4266esac
4267fi
4268{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4269$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4270with_gnu_ld=$lt_cv_prog_gnu_ld
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4281$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4282if test "${lt_cv_path_NM+set}" = set; then
4283  $as_echo_n "(cached) " >&6
4284else
4285  if test -n "$NM"; then
4286  # Let the user override the test.
4287  lt_cv_path_NM="$NM"
4288else
4289  lt_nm_to_check="${ac_tool_prefix}nm"
4290  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4291    lt_nm_to_check="$lt_nm_to_check nm"
4292  fi
4293  for lt_tmp_nm in $lt_nm_to_check; do
4294    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4296      IFS="$lt_save_ifs"
4297      test -z "$ac_dir" && ac_dir=.
4298      tmp_nm="$ac_dir/$lt_tmp_nm"
4299      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4300	# Check to see if the nm accepts a BSD-compat flag.
4301	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4302	#   nm: unknown option "B" ignored
4303	# Tru64's nm complains that /dev/null is an invalid object file
4304	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4305	*/dev/null* | *'Invalid file or object type'*)
4306	  lt_cv_path_NM="$tmp_nm -B"
4307	  break
4308	  ;;
4309	*)
4310	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4311	  */dev/null*)
4312	    lt_cv_path_NM="$tmp_nm -p"
4313	    break
4314	    ;;
4315	  *)
4316	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4317	    continue # so that we can try to find one that supports BSD flags
4318	    ;;
4319	  esac
4320	  ;;
4321	esac
4322      fi
4323    done
4324    IFS="$lt_save_ifs"
4325  done
4326  : ${lt_cv_path_NM=no}
4327fi
4328fi
4329{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4330$as_echo "$lt_cv_path_NM" >&6; }
4331if test "$lt_cv_path_NM" != "no"; then
4332  NM="$lt_cv_path_NM"
4333else
4334  # Didn't find any BSD compatible name lister, look for dumpbin.
4335  if test -n "$ac_tool_prefix"; then
4336  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4337  do
4338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4341$as_echo_n "checking for $ac_word... " >&6; }
4342if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test -n "$DUMPBIN"; then
4346  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353  for ac_exec_ext in '' $ac_executable_extensions; do
4354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4356    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357    break 2
4358  fi
4359done
4360done
4361IFS=$as_save_IFS
4362
4363fi
4364fi
4365DUMPBIN=$ac_cv_prog_DUMPBIN
4366if test -n "$DUMPBIN"; then
4367  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4368$as_echo "$DUMPBIN" >&6; }
4369else
4370  { $as_echo "$as_me:$LINENO: result: no" >&5
4371$as_echo "no" >&6; }
4372fi
4373
4374
4375    test -n "$DUMPBIN" && break
4376  done
4377fi
4378if test -z "$DUMPBIN"; then
4379  ac_ct_DUMPBIN=$DUMPBIN
4380  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4381do
4382  # Extract the first word of "$ac_prog", so it can be a program name with args.
4383set dummy $ac_prog; ac_word=$2
4384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4387  $as_echo_n "(cached) " >&6
4388else
4389  if test -n "$ac_ct_DUMPBIN"; then
4390  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395  IFS=$as_save_IFS
4396  test -z "$as_dir" && as_dir=.
4397  for ac_exec_ext in '' $ac_executable_extensions; do
4398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4400    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401    break 2
4402  fi
4403done
4404done
4405IFS=$as_save_IFS
4406
4407fi
4408fi
4409ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4410if test -n "$ac_ct_DUMPBIN"; then
4411  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4412$as_echo "$ac_ct_DUMPBIN" >&6; }
4413else
4414  { $as_echo "$as_me:$LINENO: result: no" >&5
4415$as_echo "no" >&6; }
4416fi
4417
4418
4419  test -n "$ac_ct_DUMPBIN" && break
4420done
4421
4422  if test "x$ac_ct_DUMPBIN" = x; then
4423    DUMPBIN=":"
4424  else
4425    case $cross_compiling:$ac_tool_warned in
4426yes:)
4427{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4429ac_tool_warned=yes ;;
4430esac
4431    DUMPBIN=$ac_ct_DUMPBIN
4432  fi
4433fi
4434
4435
4436  if test "$DUMPBIN" != ":"; then
4437    NM="$DUMPBIN"
4438  fi
4439fi
4440test -z "$NM" && NM=nm
4441
4442
4443
4444
4445
4446
4447{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4448$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4449if test "${lt_cv_nm_interface+set}" = set; then
4450  $as_echo_n "(cached) " >&6
4451else
4452  lt_cv_nm_interface="BSD nm"
4453  echo "int some_variable = 0;" > conftest.$ac_ext
4454  (eval echo "\"\$as_me:4454: $ac_compile\"" >&5)
4455  (eval "$ac_compile" 2>conftest.err)
4456  cat conftest.err >&5
4457  (eval echo "\"\$as_me:4457: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4458  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4459  cat conftest.err >&5
4460  (eval echo "\"\$as_me:4460: output\"" >&5)
4461  cat conftest.out >&5
4462  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4463    lt_cv_nm_interface="MS dumpbin"
4464  fi
4465  rm -f conftest*
4466fi
4467{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4468$as_echo "$lt_cv_nm_interface" >&6; }
4469
4470{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4471$as_echo_n "checking whether ln -s works... " >&6; }
4472LN_S=$as_ln_s
4473if test "$LN_S" = "ln -s"; then
4474  { $as_echo "$as_me:$LINENO: result: yes" >&5
4475$as_echo "yes" >&6; }
4476else
4477  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4478$as_echo "no, using $LN_S" >&6; }
4479fi
4480
4481# find the maximum length of command line arguments
4482{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4483$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4484if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4485  $as_echo_n "(cached) " >&6
4486else
4487    i=0
4488  teststring="ABCD"
4489
4490  case $build_os in
4491  msdosdjgpp*)
4492    # On DJGPP, this test can blow up pretty badly due to problems in libc
4493    # (any single argument exceeding 2000 bytes causes a buffer overrun
4494    # during glob expansion).  Even if it were fixed, the result of this
4495    # check would be larger than it should be.
4496    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4497    ;;
4498
4499  gnu*)
4500    # Under GNU Hurd, this test is not required because there is
4501    # no limit to the length of command line arguments.
4502    # Libtool will interpret -1 as no limit whatsoever
4503    lt_cv_sys_max_cmd_len=-1;
4504    ;;
4505
4506  cygwin* | mingw* | cegcc*)
4507    # On Win9x/ME, this test blows up -- it succeeds, but takes
4508    # about 5 minutes as the teststring grows exponentially.
4509    # Worse, since 9x/ME are not pre-emptively multitasking,
4510    # you end up with a "frozen" computer, even though with patience
4511    # the test eventually succeeds (with a max line length of 256k).
4512    # Instead, let's just punt: use the minimum linelength reported by
4513    # all of the supported platforms: 8192 (on NT/2K/XP).
4514    lt_cv_sys_max_cmd_len=8192;
4515    ;;
4516
4517  amigaos*)
4518    # On AmigaOS with pdksh, this test takes hours, literally.
4519    # So we just punt and use a minimum line length of 8192.
4520    lt_cv_sys_max_cmd_len=8192;
4521    ;;
4522
4523  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4524    # This has been around since 386BSD, at least.  Likely further.
4525    if test -x /sbin/sysctl; then
4526      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4527    elif test -x /usr/sbin/sysctl; then
4528      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4529    else
4530      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4531    fi
4532    # And add a safety zone
4533    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4534    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4535    ;;
4536
4537  interix*)
4538    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4539    lt_cv_sys_max_cmd_len=196608
4540    ;;
4541
4542  osf*)
4543    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4544    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4545    # nice to cause kernel panics so lets avoid the loop below.
4546    # First set a reasonable default.
4547    lt_cv_sys_max_cmd_len=16384
4548    #
4549    if test -x /sbin/sysconfig; then
4550      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4551        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4552      esac
4553    fi
4554    ;;
4555  sco3.2v5*)
4556    lt_cv_sys_max_cmd_len=102400
4557    ;;
4558  sysv5* | sco5v6* | sysv4.2uw2*)
4559    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4560    if test -n "$kargmax"; then
4561      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4562    else
4563      lt_cv_sys_max_cmd_len=32768
4564    fi
4565    ;;
4566  *)
4567    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4568    if test -n "$lt_cv_sys_max_cmd_len"; then
4569      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4570      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4571    else
4572      # Make teststring a little bigger before we do anything with it.
4573      # a 1K string should be a reasonable start.
4574      for i in 1 2 3 4 5 6 7 8 ; do
4575        teststring=$teststring$teststring
4576      done
4577      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4578      # If test is not a shell built-in, we'll probably end up computing a
4579      # maximum length that is only half of the actual maximum length, but
4580      # we can't tell.
4581      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4582	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4583	      test $i != 17 # 1/2 MB should be enough
4584      do
4585        i=`expr $i + 1`
4586        teststring=$teststring$teststring
4587      done
4588      # Only check the string length outside the loop.
4589      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4590      teststring=
4591      # Add a significant safety factor because C++ compilers can tack on
4592      # massive amounts of additional arguments before passing them to the
4593      # linker.  It appears as though 1/2 is a usable value.
4594      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4595    fi
4596    ;;
4597  esac
4598
4599fi
4600
4601if test -n $lt_cv_sys_max_cmd_len ; then
4602  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4603$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4604else
4605  { $as_echo "$as_me:$LINENO: result: none" >&5
4606$as_echo "none" >&6; }
4607fi
4608max_cmd_len=$lt_cv_sys_max_cmd_len
4609
4610
4611
4612
4613
4614
4615: ${CP="cp -f"}
4616: ${MV="mv -f"}
4617: ${RM="rm -f"}
4618
4619{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4620$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4621# Try some XSI features
4622xsi_shell=no
4623( _lt_dummy="a/b/c"
4624  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4625      = c,a/b,, \
4626    && eval 'test $(( 1 + 1 )) -eq 2 \
4627    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4628  && xsi_shell=yes
4629{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4630$as_echo "$xsi_shell" >&6; }
4631
4632
4633{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4634$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4635lt_shell_append=no
4636( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4637    >/dev/null 2>&1 \
4638  && lt_shell_append=yes
4639{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4640$as_echo "$lt_shell_append" >&6; }
4641
4642
4643if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4644  lt_unset=unset
4645else
4646  lt_unset=false
4647fi
4648
4649
4650
4651
4652
4653# test EBCDIC or ASCII
4654case `echo X|tr X '\101'` in
4655 A) # ASCII based system
4656    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4657  lt_SP2NL='tr \040 \012'
4658  lt_NL2SP='tr \015\012 \040\040'
4659  ;;
4660 *) # EBCDIC based system
4661  lt_SP2NL='tr \100 \n'
4662  lt_NL2SP='tr \r\n \100\100'
4663  ;;
4664esac
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4675$as_echo_n "checking for $LD option to reload object files... " >&6; }
4676if test "${lt_cv_ld_reload_flag+set}" = set; then
4677  $as_echo_n "(cached) " >&6
4678else
4679  lt_cv_ld_reload_flag='-r'
4680fi
4681{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4682$as_echo "$lt_cv_ld_reload_flag" >&6; }
4683reload_flag=$lt_cv_ld_reload_flag
4684case $reload_flag in
4685"" | " "*) ;;
4686*) reload_flag=" $reload_flag" ;;
4687esac
4688reload_cmds='$LD$reload_flag -o $output$reload_objs'
4689case $host_os in
4690  darwin*)
4691    if test "$GCC" = yes; then
4692      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4693    else
4694      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4695    fi
4696    ;;
4697esac
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707if test -n "$ac_tool_prefix"; then
4708  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4709set dummy ${ac_tool_prefix}objdump; ac_word=$2
4710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711$as_echo_n "checking for $ac_word... " >&6; }
4712if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4713  $as_echo_n "(cached) " >&6
4714else
4715  if test -n "$OBJDUMP"; then
4716  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721  IFS=$as_save_IFS
4722  test -z "$as_dir" && as_dir=.
4723  for ac_exec_ext in '' $ac_executable_extensions; do
4724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4726    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727    break 2
4728  fi
4729done
4730done
4731IFS=$as_save_IFS
4732
4733fi
4734fi
4735OBJDUMP=$ac_cv_prog_OBJDUMP
4736if test -n "$OBJDUMP"; then
4737  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4738$as_echo "$OBJDUMP" >&6; }
4739else
4740  { $as_echo "$as_me:$LINENO: result: no" >&5
4741$as_echo "no" >&6; }
4742fi
4743
4744
4745fi
4746if test -z "$ac_cv_prog_OBJDUMP"; then
4747  ac_ct_OBJDUMP=$OBJDUMP
4748  # Extract the first word of "objdump", so it can be a program name with args.
4749set dummy objdump; ac_word=$2
4750{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4753  $as_echo_n "(cached) " >&6
4754else
4755  if test -n "$ac_ct_OBJDUMP"; then
4756  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761  IFS=$as_save_IFS
4762  test -z "$as_dir" && as_dir=.
4763  for ac_exec_ext in '' $ac_executable_extensions; do
4764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4766    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767    break 2
4768  fi
4769done
4770done
4771IFS=$as_save_IFS
4772
4773fi
4774fi
4775ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4776if test -n "$ac_ct_OBJDUMP"; then
4777  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4778$as_echo "$ac_ct_OBJDUMP" >&6; }
4779else
4780  { $as_echo "$as_me:$LINENO: result: no" >&5
4781$as_echo "no" >&6; }
4782fi
4783
4784  if test "x$ac_ct_OBJDUMP" = x; then
4785    OBJDUMP="false"
4786  else
4787    case $cross_compiling:$ac_tool_warned in
4788yes:)
4789{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791ac_tool_warned=yes ;;
4792esac
4793    OBJDUMP=$ac_ct_OBJDUMP
4794  fi
4795else
4796  OBJDUMP="$ac_cv_prog_OBJDUMP"
4797fi
4798
4799test -z "$OBJDUMP" && OBJDUMP=objdump
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4810$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4811if test "${lt_cv_deplibs_check_method+set}" = set; then
4812  $as_echo_n "(cached) " >&6
4813else
4814  lt_cv_file_magic_cmd='$MAGIC_CMD'
4815lt_cv_file_magic_test_file=
4816lt_cv_deplibs_check_method='unknown'
4817# Need to set the preceding variable on all platforms that support
4818# interlibrary dependencies.
4819# 'none' -- dependencies not supported.
4820# `unknown' -- same as none, but documents that we really don't know.
4821# 'pass_all' -- all dependencies passed with no checks.
4822# 'test_compile' -- check by making test program.
4823# 'file_magic [[regex]]' -- check by looking for files in library path
4824# which responds to the $file_magic_cmd with a given extended regex.
4825# If you have `file' or equivalent on your system and you're not sure
4826# whether `pass_all' will *always* work, you probably want this one.
4827
4828case $host_os in
4829aix[4-9]*)
4830  lt_cv_deplibs_check_method=pass_all
4831  ;;
4832
4833beos*)
4834  lt_cv_deplibs_check_method=pass_all
4835  ;;
4836
4837bsdi[45]*)
4838  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4839  lt_cv_file_magic_cmd='/usr/bin/file -L'
4840  lt_cv_file_magic_test_file=/shlib/libc.so
4841  ;;
4842
4843cygwin*)
4844  # func_win32_libid is a shell function defined in ltmain.sh
4845  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4846  lt_cv_file_magic_cmd='func_win32_libid'
4847  ;;
4848
4849mingw* | pw32*)
4850  # Base MSYS/MinGW do not provide the 'file' command needed by
4851  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4852  # unless we find 'file', for example because we are cross-compiling.
4853  if ( file / ) >/dev/null 2>&1; then
4854    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4855    lt_cv_file_magic_cmd='func_win32_libid'
4856  else
4857    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4858    lt_cv_file_magic_cmd='$OBJDUMP -f'
4859  fi
4860  ;;
4861
4862cegcc)
4863  # use the weaker test based on 'objdump'. See mingw*.
4864  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4865  lt_cv_file_magic_cmd='$OBJDUMP -f'
4866  ;;
4867
4868darwin* | rhapsody*)
4869  lt_cv_deplibs_check_method=pass_all
4870  ;;
4871
4872freebsd* | dragonfly*)
4873  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4874    case $host_cpu in
4875    i*86 )
4876      # Not sure whether the presence of OpenBSD here was a mistake.
4877      # Let's accept both of them until this is cleared up.
4878      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4879      lt_cv_file_magic_cmd=/usr/bin/file
4880      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4881      ;;
4882    esac
4883  else
4884    lt_cv_deplibs_check_method=pass_all
4885  fi
4886  ;;
4887
4888gnu*)
4889  lt_cv_deplibs_check_method=pass_all
4890  ;;
4891
4892hpux10.20* | hpux11*)
4893  lt_cv_file_magic_cmd=/usr/bin/file
4894  case $host_cpu in
4895  ia64*)
4896    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4897    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4898    ;;
4899  hppa*64*)
4900    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]'
4901    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4902    ;;
4903  *)
4904    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4905    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4906    ;;
4907  esac
4908  ;;
4909
4910interix[3-9]*)
4911  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4912  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4913  ;;
4914
4915irix5* | irix6* | nonstopux*)
4916  case $LD in
4917  *-32|*"-32 ") libmagic=32-bit;;
4918  *-n32|*"-n32 ") libmagic=N32;;
4919  *-64|*"-64 ") libmagic=64-bit;;
4920  *) libmagic=never-match;;
4921  esac
4922  lt_cv_deplibs_check_method=pass_all
4923  ;;
4924
4925# This must be Linux ELF.
4926linux* | k*bsd*-gnu)
4927  lt_cv_deplibs_check_method=pass_all
4928  ;;
4929
4930netbsd*)
4931  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4932    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4933  else
4934    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4935  fi
4936  ;;
4937
4938newos6*)
4939  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4940  lt_cv_file_magic_cmd=/usr/bin/file
4941  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4942  ;;
4943
4944*nto* | *qnx*)
4945  lt_cv_deplibs_check_method=pass_all
4946  ;;
4947
4948openbsd*)
4949  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4951  else
4952    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4953  fi
4954  ;;
4955
4956osf3* | osf4* | osf5*)
4957  lt_cv_deplibs_check_method=pass_all
4958  ;;
4959
4960rdos*)
4961  lt_cv_deplibs_check_method=pass_all
4962  ;;
4963
4964solaris*)
4965  lt_cv_deplibs_check_method=pass_all
4966  ;;
4967
4968sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4969  lt_cv_deplibs_check_method=pass_all
4970  ;;
4971
4972sysv4 | sysv4.3*)
4973  case $host_vendor in
4974  motorola)
4975    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]'
4976    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4977    ;;
4978  ncr)
4979    lt_cv_deplibs_check_method=pass_all
4980    ;;
4981  sequent)
4982    lt_cv_file_magic_cmd='/bin/file'
4983    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4984    ;;
4985  sni)
4986    lt_cv_file_magic_cmd='/bin/file'
4987    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4988    lt_cv_file_magic_test_file=/lib/libc.so
4989    ;;
4990  siemens)
4991    lt_cv_deplibs_check_method=pass_all
4992    ;;
4993  pc)
4994    lt_cv_deplibs_check_method=pass_all
4995    ;;
4996  esac
4997  ;;
4998
4999tpf*)
5000  lt_cv_deplibs_check_method=pass_all
5001  ;;
5002esac
5003
5004fi
5005{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5006$as_echo "$lt_cv_deplibs_check_method" >&6; }
5007file_magic_cmd=$lt_cv_file_magic_cmd
5008deplibs_check_method=$lt_cv_deplibs_check_method
5009test -z "$deplibs_check_method" && deplibs_check_method=unknown
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022if test -n "$ac_tool_prefix"; then
5023  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}ar; ac_word=$2
5025{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if test "${ac_cv_prog_AR+set}" = set; then
5028  $as_echo_n "(cached) " >&6
5029else
5030  if test -n "$AR"; then
5031  ac_cv_prog_AR="$AR" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038  for ac_exec_ext in '' $ac_executable_extensions; do
5039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040    ac_cv_prog_AR="${ac_tool_prefix}ar"
5041    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042    break 2
5043  fi
5044done
5045done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050AR=$ac_cv_prog_AR
5051if test -n "$AR"; then
5052  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5053$as_echo "$AR" >&6; }
5054else
5055  { $as_echo "$as_me:$LINENO: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060fi
5061if test -z "$ac_cv_prog_AR"; then
5062  ac_ct_AR=$AR
5063  # Extract the first word of "ar", so it can be a program name with args.
5064set dummy ar; ac_word=$2
5065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$ac_ct_AR"; then
5071  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078  for ac_exec_ext in '' $ac_executable_extensions; do
5079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080    ac_cv_prog_ac_ct_AR="ar"
5081    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090ac_ct_AR=$ac_cv_prog_ac_ct_AR
5091if test -n "$ac_ct_AR"; then
5092  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5093$as_echo "$ac_ct_AR" >&6; }
5094else
5095  { $as_echo "$as_me:$LINENO: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098
5099  if test "x$ac_ct_AR" = x; then
5100    AR="false"
5101  else
5102    case $cross_compiling:$ac_tool_warned in
5103yes:)
5104{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106ac_tool_warned=yes ;;
5107esac
5108    AR=$ac_ct_AR
5109  fi
5110else
5111  AR="$ac_cv_prog_AR"
5112fi
5113
5114test -z "$AR" && AR=ar
5115test -z "$AR_FLAGS" && AR_FLAGS=cru
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127if test -n "$ac_tool_prefix"; then
5128  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5129set dummy ${ac_tool_prefix}strip; ac_word=$2
5130{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5131$as_echo_n "checking for $ac_word... " >&6; }
5132if test "${ac_cv_prog_STRIP+set}" = set; then
5133  $as_echo_n "(cached) " >&6
5134else
5135  if test -n "$STRIP"; then
5136  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141  IFS=$as_save_IFS
5142  test -z "$as_dir" && as_dir=.
5143  for ac_exec_ext in '' $ac_executable_extensions; do
5144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5146    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147    break 2
5148  fi
5149done
5150done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
5155STRIP=$ac_cv_prog_STRIP
5156if test -n "$STRIP"; then
5157  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5158$as_echo "$STRIP" >&6; }
5159else
5160  { $as_echo "$as_me:$LINENO: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163
5164
5165fi
5166if test -z "$ac_cv_prog_STRIP"; then
5167  ac_ct_STRIP=$STRIP
5168  # Extract the first word of "strip", so it can be a program name with args.
5169set dummy strip; ac_word=$2
5170{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5173  $as_echo_n "(cached) " >&6
5174else
5175  if test -n "$ac_ct_STRIP"; then
5176  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183  for ac_exec_ext in '' $ac_executable_extensions; do
5184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185    ac_cv_prog_ac_ct_STRIP="strip"
5186    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5196if test -n "$ac_ct_STRIP"; then
5197  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5198$as_echo "$ac_ct_STRIP" >&6; }
5199else
5200  { $as_echo "$as_me:$LINENO: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204  if test "x$ac_ct_STRIP" = x; then
5205    STRIP=":"
5206  else
5207    case $cross_compiling:$ac_tool_warned in
5208yes:)
5209{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5211ac_tool_warned=yes ;;
5212esac
5213    STRIP=$ac_ct_STRIP
5214  fi
5215else
5216  STRIP="$ac_cv_prog_STRIP"
5217fi
5218
5219test -z "$STRIP" && STRIP=:
5220
5221
5222
5223
5224
5225
5226if test -n "$ac_tool_prefix"; then
5227  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
5231if test "${ac_cv_prog_RANLIB+set}" = set; then
5232  $as_echo_n "(cached) " >&6
5233else
5234  if test -n "$RANLIB"; then
5235  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242  for ac_exec_ext in '' $ac_executable_extensions; do
5243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5245    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249done
5250IFS=$as_save_IFS
5251
5252fi
5253fi
5254RANLIB=$ac_cv_prog_RANLIB
5255if test -n "$RANLIB"; then
5256  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5257$as_echo "$RANLIB" >&6; }
5258else
5259  { $as_echo "$as_me:$LINENO: result: no" >&5
5260$as_echo "no" >&6; }
5261fi
5262
5263
5264fi
5265if test -z "$ac_cv_prog_RANLIB"; then
5266  ac_ct_RANLIB=$RANLIB
5267  # Extract the first word of "ranlib", so it can be a program name with args.
5268set dummy ranlib; ac_word=$2
5269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5272  $as_echo_n "(cached) " >&6
5273else
5274  if test -n "$ac_ct_RANLIB"; then
5275  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282  for ac_exec_ext in '' $ac_executable_extensions; do
5283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284    ac_cv_prog_ac_ct_RANLIB="ranlib"
5285    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289done
5290IFS=$as_save_IFS
5291
5292fi
5293fi
5294ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5295if test -n "$ac_ct_RANLIB"; then
5296  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5297$as_echo "$ac_ct_RANLIB" >&6; }
5298else
5299  { $as_echo "$as_me:$LINENO: result: no" >&5
5300$as_echo "no" >&6; }
5301fi
5302
5303  if test "x$ac_ct_RANLIB" = x; then
5304    RANLIB=":"
5305  else
5306    case $cross_compiling:$ac_tool_warned in
5307yes:)
5308{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310ac_tool_warned=yes ;;
5311esac
5312    RANLIB=$ac_ct_RANLIB
5313  fi
5314else
5315  RANLIB="$ac_cv_prog_RANLIB"
5316fi
5317
5318test -z "$RANLIB" && RANLIB=:
5319
5320
5321
5322
5323
5324
5325# Determine commands to create old-style static archives.
5326old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5327old_postinstall_cmds='chmod 644 $oldlib'
5328old_postuninstall_cmds=
5329
5330if test -n "$RANLIB"; then
5331  case $host_os in
5332  openbsd*)
5333    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5334    ;;
5335  *)
5336    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5337    ;;
5338  esac
5339  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5340fi
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375# If no C compiler was specified, use CC.
5376LTCC=${LTCC-"$CC"}
5377
5378# If no C compiler flags were specified, use CFLAGS.
5379LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5380
5381# Allow CC to be a program name with arguments.
5382compiler=$CC
5383
5384
5385# Check for command to grab the raw symbol name followed by C symbol from nm.
5386{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5387$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5388if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5389  $as_echo_n "(cached) " >&6
5390else
5391
5392# These are sane defaults that work on at least a few old systems.
5393# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5394
5395# Character class describing NM global symbol codes.
5396symcode='[BCDEGRST]'
5397
5398# Regexp to match symbols that can be accessed directly from C.
5399sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5400
5401# Define system-specific variables.
5402case $host_os in
5403aix*)
5404  symcode='[BCDT]'
5405  ;;
5406cygwin* | mingw* | pw32* | cegcc*)
5407  symcode='[ABCDGISTW]'
5408  ;;
5409hpux*)
5410  if test "$host_cpu" = ia64; then
5411    symcode='[ABCDEGRST]'
5412  fi
5413  ;;
5414irix* | nonstopux*)
5415  symcode='[BCDEGRST]'
5416  ;;
5417osf*)
5418  symcode='[BCDEGQRST]'
5419  ;;
5420solaris*)
5421  symcode='[BDRT]'
5422  ;;
5423sco3.2v5*)
5424  symcode='[DT]'
5425  ;;
5426sysv4.2uw2*)
5427  symcode='[DT]'
5428  ;;
5429sysv5* | sco5v6* | unixware* | OpenUNIX*)
5430  symcode='[ABDT]'
5431  ;;
5432sysv4)
5433  symcode='[DFNSTU]'
5434  ;;
5435esac
5436
5437# If we're using GNU nm, then use its standard symbol codes.
5438case `$NM -V 2>&1` in
5439*GNU* | *'with BFD'*)
5440  symcode='[ABCDGIRSTW]' ;;
5441esac
5442
5443# Transform an extracted symbol line into a proper C declaration.
5444# Some systems (esp. on ia64) link data and code symbols differently,
5445# so use this general approach.
5446lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5447
5448# Transform an extracted symbol line into symbol name and symbol address
5449lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5450lt_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'"
5451
5452# Handle CRLF in mingw tool chain
5453opt_cr=
5454case $build_os in
5455mingw*)
5456  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5457  ;;
5458esac
5459
5460# Try without a prefix underscore, then with it.
5461for ac_symprfx in "" "_"; do
5462
5463  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5464  symxfrm="\\1 $ac_symprfx\\2 \\2"
5465
5466  # Write the raw and C identifiers.
5467  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5468    # Fake it for dumpbin and say T for any non-static function
5469    # and D for any global variable.
5470    # Also find C++ and __fastcall symbols from MSVC++,
5471    # which start with @ or ?.
5472    lt_cv_sys_global_symbol_pipe="$AWK '"\
5473"     {last_section=section; section=\$ 3};"\
5474"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5475"     \$ 0!~/External *\|/{next};"\
5476"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5477"     {if(hide[section]) next};"\
5478"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5479"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5480"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5481"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5482"     ' prfx=^$ac_symprfx"
5483  else
5484    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5485  fi
5486
5487  # Check to see that the pipe works correctly.
5488  pipe_works=no
5489
5490  rm -f conftest*
5491  cat > conftest.$ac_ext <<_LT_EOF
5492#ifdef __cplusplus
5493extern "C" {
5494#endif
5495char nm_test_var;
5496void nm_test_func(void);
5497void nm_test_func(void){}
5498#ifdef __cplusplus
5499}
5500#endif
5501int main(){nm_test_var='a';nm_test_func();return(0);}
5502_LT_EOF
5503
5504  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505  (eval $ac_compile) 2>&5
5506  ac_status=$?
5507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; then
5509    # Now try to grab the symbols.
5510    nlist=conftest.nm
5511    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5512  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5513  ac_status=$?
5514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); } && test -s "$nlist"; then
5516      # Try sorting and uniquifying the output.
5517      if sort "$nlist" | uniq > "$nlist"T; then
5518	mv -f "$nlist"T "$nlist"
5519      else
5520	rm -f "$nlist"T
5521      fi
5522
5523      # Make sure that we snagged all the symbols we need.
5524      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5525	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5526	  cat <<_LT_EOF > conftest.$ac_ext
5527#ifdef __cplusplus
5528extern "C" {
5529#endif
5530
5531_LT_EOF
5532	  # Now generate the symbol file.
5533	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5534
5535	  cat <<_LT_EOF >> conftest.$ac_ext
5536
5537/* The mapping between symbol names and symbols.  */
5538const struct {
5539  const char *name;
5540  void       *address;
5541}
5542lt__PROGRAM__LTX_preloaded_symbols[] =
5543{
5544  { "@PROGRAM@", (void *) 0 },
5545_LT_EOF
5546	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5547	  cat <<\_LT_EOF >> conftest.$ac_ext
5548  {0, (void *) 0}
5549};
5550
5551/* This works around a problem in FreeBSD linker */
5552#ifdef FREEBSD_WORKAROUND
5553static const void *lt_preloaded_setup() {
5554  return lt__PROGRAM__LTX_preloaded_symbols;
5555}
5556#endif
5557
5558#ifdef __cplusplus
5559}
5560#endif
5561_LT_EOF
5562	  # Now try linking the two files.
5563	  mv conftest.$ac_objext conftstm.$ac_objext
5564	  lt_save_LIBS="$LIBS"
5565	  lt_save_CFLAGS="$CFLAGS"
5566	  LIBS="conftstm.$ac_objext"
5567	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5568	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569  (eval $ac_link) 2>&5
5570  ac_status=$?
5571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5573	    pipe_works=yes
5574	  fi
5575	  LIBS="$lt_save_LIBS"
5576	  CFLAGS="$lt_save_CFLAGS"
5577	else
5578	  echo "cannot find nm_test_func in $nlist" >&5
5579	fi
5580      else
5581	echo "cannot find nm_test_var in $nlist" >&5
5582      fi
5583    else
5584      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5585    fi
5586  else
5587    echo "$progname: failed program was:" >&5
5588    cat conftest.$ac_ext >&5
5589  fi
5590  rm -rf conftest* conftst*
5591
5592  # Do not use the global_symbol_pipe unless it works.
5593  if test "$pipe_works" = yes; then
5594    break
5595  else
5596    lt_cv_sys_global_symbol_pipe=
5597  fi
5598done
5599
5600fi
5601
5602if test -z "$lt_cv_sys_global_symbol_pipe"; then
5603  lt_cv_sys_global_symbol_to_cdecl=
5604fi
5605if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5606  { $as_echo "$as_me:$LINENO: result: failed" >&5
5607$as_echo "failed" >&6; }
5608else
5609  { $as_echo "$as_me:$LINENO: result: ok" >&5
5610$as_echo "ok" >&6; }
5611fi
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635# Check whether --enable-libtool-lock was given.
5636if test "${enable_libtool_lock+set}" = set; then
5637  enableval=$enable_libtool_lock;
5638fi
5639
5640test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5641
5642# Some flags need to be propagated to the compiler or linker for good
5643# libtool support.
5644case $host in
5645ia64-*-hpux*)
5646  # Find out which ABI we are using.
5647  echo 'int i;' > conftest.$ac_ext
5648  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649  (eval $ac_compile) 2>&5
5650  ac_status=$?
5651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); }; then
5653    case `/usr/bin/file conftest.$ac_objext` in
5654      *ELF-32*)
5655	HPUX_IA64_MODE="32"
5656	;;
5657      *ELF-64*)
5658	HPUX_IA64_MODE="64"
5659	;;
5660    esac
5661  fi
5662  rm -rf conftest*
5663  ;;
5664*-*-irix6*)
5665  # Find out which ABI we are using.
5666  echo '#line 5666 "configure"' > conftest.$ac_ext
5667  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668  (eval $ac_compile) 2>&5
5669  ac_status=$?
5670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; then
5672    if test "$lt_cv_prog_gnu_ld" = yes; then
5673      case `/usr/bin/file conftest.$ac_objext` in
5674	*32-bit*)
5675	  LD="${LD-ld} -melf32bsmip"
5676	  ;;
5677	*N32*)
5678	  LD="${LD-ld} -melf32bmipn32"
5679	  ;;
5680	*64-bit*)
5681	  LD="${LD-ld} -melf64bmip"
5682	;;
5683      esac
5684    else
5685      case `/usr/bin/file conftest.$ac_objext` in
5686	*32-bit*)
5687	  LD="${LD-ld} -32"
5688	  ;;
5689	*N32*)
5690	  LD="${LD-ld} -n32"
5691	  ;;
5692	*64-bit*)
5693	  LD="${LD-ld} -64"
5694	  ;;
5695      esac
5696    fi
5697  fi
5698  rm -rf conftest*
5699  ;;
5700
5701x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5702s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5703  # Find out which ABI we are using.
5704  echo 'int i;' > conftest.$ac_ext
5705  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706  (eval $ac_compile) 2>&5
5707  ac_status=$?
5708  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); }; then
5710    case `/usr/bin/file conftest.o` in
5711      *32-bit*)
5712	case $host in
5713	  x86_64-*kfreebsd*-gnu)
5714	    LD="${LD-ld} -m elf_i386_fbsd"
5715	    ;;
5716	  x86_64-*linux*)
5717	    LD="${LD-ld} -m elf_i386"
5718	    ;;
5719	  ppc64-*linux*|powerpc64-*linux*)
5720	    LD="${LD-ld} -m elf32ppclinux"
5721	    ;;
5722	  s390x-*linux*)
5723	    LD="${LD-ld} -m elf_s390"
5724	    ;;
5725	  sparc64-*linux*)
5726	    LD="${LD-ld} -m elf32_sparc"
5727	    ;;
5728	esac
5729	;;
5730      *64-bit*)
5731	case $host in
5732	  x86_64-*kfreebsd*-gnu)
5733	    LD="${LD-ld} -m elf_x86_64_fbsd"
5734	    ;;
5735	  x86_64-*linux*)
5736	    LD="${LD-ld} -m elf_x86_64"
5737	    ;;
5738	  ppc*-*linux*|powerpc*-*linux*)
5739	    LD="${LD-ld} -m elf64ppc"
5740	    ;;
5741	  s390*-*linux*|s390*-*tpf*)
5742	    LD="${LD-ld} -m elf64_s390"
5743	    ;;
5744	  sparc*-*linux*)
5745	    LD="${LD-ld} -m elf64_sparc"
5746	    ;;
5747	esac
5748	;;
5749    esac
5750  fi
5751  rm -rf conftest*
5752  ;;
5753
5754*-*-sco3.2v5*)
5755  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5756  SAVE_CFLAGS="$CFLAGS"
5757  CFLAGS="$CFLAGS -belf"
5758  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5759$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5760if test "${lt_cv_cc_needs_belf+set}" = set; then
5761  $as_echo_n "(cached) " >&6
5762else
5763  ac_ext=c
5764ac_cpp='$CPP $CPPFLAGS'
5765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768
5769     cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h.  */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h.  */
5775
5776int
5777main ()
5778{
5779
5780  ;
5781  return 0;
5782}
5783_ACEOF
5784rm -f conftest.$ac_objext conftest$ac_exeext
5785if { (ac_try="$ac_link"
5786case "(($ac_try" in
5787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788  *) ac_try_echo=$ac_try;;
5789esac
5790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5791$as_echo "$ac_try_echo") >&5
5792  (eval "$ac_link") 2>conftest.er1
5793  ac_status=$?
5794  grep -v '^ *+' conftest.er1 >conftest.err
5795  rm -f conftest.er1
5796  cat conftest.err >&5
5797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); } && {
5799	 test -z "$ac_c_werror_flag" ||
5800	 test ! -s conftest.err
5801       } && test -s conftest$ac_exeext && {
5802	 test "$cross_compiling" = yes ||
5803	 $as_test_x conftest$ac_exeext
5804       }; then
5805  lt_cv_cc_needs_belf=yes
5806else
5807  $as_echo "$as_me: failed program was:" >&5
5808sed 's/^/| /' conftest.$ac_ext >&5
5809
5810	lt_cv_cc_needs_belf=no
5811fi
5812
5813rm -rf conftest.dSYM
5814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5815      conftest$ac_exeext conftest.$ac_ext
5816     ac_ext=c
5817ac_cpp='$CPP $CPPFLAGS'
5818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821
5822fi
5823{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5824$as_echo "$lt_cv_cc_needs_belf" >&6; }
5825  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5826    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5827    CFLAGS="$SAVE_CFLAGS"
5828  fi
5829  ;;
5830sparc*-*solaris*)
5831  # Find out which ABI we are using.
5832  echo 'int i;' > conftest.$ac_ext
5833  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834  (eval $ac_compile) 2>&5
5835  ac_status=$?
5836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837  (exit $ac_status); }; then
5838    case `/usr/bin/file conftest.o` in
5839    *64-bit*)
5840      case $lt_cv_prog_gnu_ld in
5841      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5842      *)
5843	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5844	  LD="${LD-ld} -64"
5845	fi
5846	;;
5847      esac
5848      ;;
5849    esac
5850  fi
5851  rm -rf conftest*
5852  ;;
5853esac
5854
5855need_locks="$enable_libtool_lock"
5856
5857
5858  case $host_os in
5859    rhapsody* | darwin*)
5860    if test -n "$ac_tool_prefix"; then
5861  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5862set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5863{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5864$as_echo_n "checking for $ac_word... " >&6; }
5865if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5866  $as_echo_n "(cached) " >&6
5867else
5868  if test -n "$DSYMUTIL"; then
5869  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874  IFS=$as_save_IFS
5875  test -z "$as_dir" && as_dir=.
5876  for ac_exec_ext in '' $ac_executable_extensions; do
5877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5879    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880    break 2
5881  fi
5882done
5883done
5884IFS=$as_save_IFS
5885
5886fi
5887fi
5888DSYMUTIL=$ac_cv_prog_DSYMUTIL
5889if test -n "$DSYMUTIL"; then
5890  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5891$as_echo "$DSYMUTIL" >&6; }
5892else
5893  { $as_echo "$as_me:$LINENO: result: no" >&5
5894$as_echo "no" >&6; }
5895fi
5896
5897
5898fi
5899if test -z "$ac_cv_prog_DSYMUTIL"; then
5900  ac_ct_DSYMUTIL=$DSYMUTIL
5901  # Extract the first word of "dsymutil", so it can be a program name with args.
5902set dummy dsymutil; ac_word=$2
5903{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5904$as_echo_n "checking for $ac_word... " >&6; }
5905if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5906  $as_echo_n "(cached) " >&6
5907else
5908  if test -n "$ac_ct_DSYMUTIL"; then
5909  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914  IFS=$as_save_IFS
5915  test -z "$as_dir" && as_dir=.
5916  for ac_exec_ext in '' $ac_executable_extensions; do
5917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5919    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920    break 2
5921  fi
5922done
5923done
5924IFS=$as_save_IFS
5925
5926fi
5927fi
5928ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5929if test -n "$ac_ct_DSYMUTIL"; then
5930  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5931$as_echo "$ac_ct_DSYMUTIL" >&6; }
5932else
5933  { $as_echo "$as_me:$LINENO: result: no" >&5
5934$as_echo "no" >&6; }
5935fi
5936
5937  if test "x$ac_ct_DSYMUTIL" = x; then
5938    DSYMUTIL=":"
5939  else
5940    case $cross_compiling:$ac_tool_warned in
5941yes:)
5942{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5944ac_tool_warned=yes ;;
5945esac
5946    DSYMUTIL=$ac_ct_DSYMUTIL
5947  fi
5948else
5949  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5950fi
5951
5952    if test -n "$ac_tool_prefix"; then
5953  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5954set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5956$as_echo_n "checking for $ac_word... " >&6; }
5957if test "${ac_cv_prog_NMEDIT+set}" = set; then
5958  $as_echo_n "(cached) " >&6
5959else
5960  if test -n "$NMEDIT"; then
5961  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5962else
5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966  IFS=$as_save_IFS
5967  test -z "$as_dir" && as_dir=.
5968  for ac_exec_ext in '' $ac_executable_extensions; do
5969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5971    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972    break 2
5973  fi
5974done
5975done
5976IFS=$as_save_IFS
5977
5978fi
5979fi
5980NMEDIT=$ac_cv_prog_NMEDIT
5981if test -n "$NMEDIT"; then
5982  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5983$as_echo "$NMEDIT" >&6; }
5984else
5985  { $as_echo "$as_me:$LINENO: result: no" >&5
5986$as_echo "no" >&6; }
5987fi
5988
5989
5990fi
5991if test -z "$ac_cv_prog_NMEDIT"; then
5992  ac_ct_NMEDIT=$NMEDIT
5993  # Extract the first word of "nmedit", so it can be a program name with args.
5994set dummy nmedit; ac_word=$2
5995{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5996$as_echo_n "checking for $ac_word... " >&6; }
5997if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5998  $as_echo_n "(cached) " >&6
5999else
6000  if test -n "$ac_ct_NMEDIT"; then
6001  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006  IFS=$as_save_IFS
6007  test -z "$as_dir" && as_dir=.
6008  for ac_exec_ext in '' $ac_executable_extensions; do
6009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6011    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012    break 2
6013  fi
6014done
6015done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6021if test -n "$ac_ct_NMEDIT"; then
6022  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6023$as_echo "$ac_ct_NMEDIT" >&6; }
6024else
6025  { $as_echo "$as_me:$LINENO: result: no" >&5
6026$as_echo "no" >&6; }
6027fi
6028
6029  if test "x$ac_ct_NMEDIT" = x; then
6030    NMEDIT=":"
6031  else
6032    case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036ac_tool_warned=yes ;;
6037esac
6038    NMEDIT=$ac_ct_NMEDIT
6039  fi
6040else
6041  NMEDIT="$ac_cv_prog_NMEDIT"
6042fi
6043
6044    if test -n "$ac_tool_prefix"; then
6045  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6046set dummy ${ac_tool_prefix}lipo; ac_word=$2
6047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6048$as_echo_n "checking for $ac_word... " >&6; }
6049if test "${ac_cv_prog_LIPO+set}" = set; then
6050  $as_echo_n "(cached) " >&6
6051else
6052  if test -n "$LIPO"; then
6053  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058  IFS=$as_save_IFS
6059  test -z "$as_dir" && as_dir=.
6060  for ac_exec_ext in '' $ac_executable_extensions; do
6061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6063    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064    break 2
6065  fi
6066done
6067done
6068IFS=$as_save_IFS
6069
6070fi
6071fi
6072LIPO=$ac_cv_prog_LIPO
6073if test -n "$LIPO"; then
6074  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6075$as_echo "$LIPO" >&6; }
6076else
6077  { $as_echo "$as_me:$LINENO: result: no" >&5
6078$as_echo "no" >&6; }
6079fi
6080
6081
6082fi
6083if test -z "$ac_cv_prog_LIPO"; then
6084  ac_ct_LIPO=$LIPO
6085  # Extract the first word of "lipo", so it can be a program name with args.
6086set dummy lipo; ac_word=$2
6087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6088$as_echo_n "checking for $ac_word... " >&6; }
6089if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6090  $as_echo_n "(cached) " >&6
6091else
6092  if test -n "$ac_ct_LIPO"; then
6093  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098  IFS=$as_save_IFS
6099  test -z "$as_dir" && as_dir=.
6100  for ac_exec_ext in '' $ac_executable_extensions; do
6101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102    ac_cv_prog_ac_ct_LIPO="lipo"
6103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104    break 2
6105  fi
6106done
6107done
6108IFS=$as_save_IFS
6109
6110fi
6111fi
6112ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6113if test -n "$ac_ct_LIPO"; then
6114  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6115$as_echo "$ac_ct_LIPO" >&6; }
6116else
6117  { $as_echo "$as_me:$LINENO: result: no" >&5
6118$as_echo "no" >&6; }
6119fi
6120
6121  if test "x$ac_ct_LIPO" = x; then
6122    LIPO=":"
6123  else
6124    case $cross_compiling:$ac_tool_warned in
6125yes:)
6126{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128ac_tool_warned=yes ;;
6129esac
6130    LIPO=$ac_ct_LIPO
6131  fi
6132else
6133  LIPO="$ac_cv_prog_LIPO"
6134fi
6135
6136    if test -n "$ac_tool_prefix"; then
6137  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6138set dummy ${ac_tool_prefix}otool; ac_word=$2
6139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
6141if test "${ac_cv_prog_OTOOL+set}" = set; then
6142  $as_echo_n "(cached) " >&6
6143else
6144  if test -n "$OTOOL"; then
6145  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150  IFS=$as_save_IFS
6151  test -z "$as_dir" && as_dir=.
6152  for ac_exec_ext in '' $ac_executable_extensions; do
6153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6155    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156    break 2
6157  fi
6158done
6159done
6160IFS=$as_save_IFS
6161
6162fi
6163fi
6164OTOOL=$ac_cv_prog_OTOOL
6165if test -n "$OTOOL"; then
6166  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6167$as_echo "$OTOOL" >&6; }
6168else
6169  { $as_echo "$as_me:$LINENO: result: no" >&5
6170$as_echo "no" >&6; }
6171fi
6172
6173
6174fi
6175if test -z "$ac_cv_prog_OTOOL"; then
6176  ac_ct_OTOOL=$OTOOL
6177  # Extract the first word of "otool", so it can be a program name with args.
6178set dummy otool; ac_word=$2
6179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
6181if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6182  $as_echo_n "(cached) " >&6
6183else
6184  if test -n "$ac_ct_OTOOL"; then
6185  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190  IFS=$as_save_IFS
6191  test -z "$as_dir" && as_dir=.
6192  for ac_exec_ext in '' $ac_executable_extensions; do
6193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194    ac_cv_prog_ac_ct_OTOOL="otool"
6195    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196    break 2
6197  fi
6198done
6199done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6205if test -n "$ac_ct_OTOOL"; then
6206  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6207$as_echo "$ac_ct_OTOOL" >&6; }
6208else
6209  { $as_echo "$as_me:$LINENO: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213  if test "x$ac_ct_OTOOL" = x; then
6214    OTOOL=":"
6215  else
6216    case $cross_compiling:$ac_tool_warned in
6217yes:)
6218{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220ac_tool_warned=yes ;;
6221esac
6222    OTOOL=$ac_ct_OTOOL
6223  fi
6224else
6225  OTOOL="$ac_cv_prog_OTOOL"
6226fi
6227
6228    if test -n "$ac_tool_prefix"; then
6229  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6230set dummy ${ac_tool_prefix}otool64; ac_word=$2
6231{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6232$as_echo_n "checking for $ac_word... " >&6; }
6233if test "${ac_cv_prog_OTOOL64+set}" = set; then
6234  $as_echo_n "(cached) " >&6
6235else
6236  if test -n "$OTOOL64"; then
6237  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6238else
6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242  IFS=$as_save_IFS
6243  test -z "$as_dir" && as_dir=.
6244  for ac_exec_ext in '' $ac_executable_extensions; do
6245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6247    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248    break 2
6249  fi
6250done
6251done
6252IFS=$as_save_IFS
6253
6254fi
6255fi
6256OTOOL64=$ac_cv_prog_OTOOL64
6257if test -n "$OTOOL64"; then
6258  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6259$as_echo "$OTOOL64" >&6; }
6260else
6261  { $as_echo "$as_me:$LINENO: result: no" >&5
6262$as_echo "no" >&6; }
6263fi
6264
6265
6266fi
6267if test -z "$ac_cv_prog_OTOOL64"; then
6268  ac_ct_OTOOL64=$OTOOL64
6269  # Extract the first word of "otool64", so it can be a program name with args.
6270set dummy otool64; ac_word=$2
6271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6272$as_echo_n "checking for $ac_word... " >&6; }
6273if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6274  $as_echo_n "(cached) " >&6
6275else
6276  if test -n "$ac_ct_OTOOL64"; then
6277  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282  IFS=$as_save_IFS
6283  test -z "$as_dir" && as_dir=.
6284  for ac_exec_ext in '' $ac_executable_extensions; do
6285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286    ac_cv_prog_ac_ct_OTOOL64="otool64"
6287    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288    break 2
6289  fi
6290done
6291done
6292IFS=$as_save_IFS
6293
6294fi
6295fi
6296ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6297if test -n "$ac_ct_OTOOL64"; then
6298  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6299$as_echo "$ac_ct_OTOOL64" >&6; }
6300else
6301  { $as_echo "$as_me:$LINENO: result: no" >&5
6302$as_echo "no" >&6; }
6303fi
6304
6305  if test "x$ac_ct_OTOOL64" = x; then
6306    OTOOL64=":"
6307  else
6308    case $cross_compiling:$ac_tool_warned in
6309yes:)
6310{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312ac_tool_warned=yes ;;
6313esac
6314    OTOOL64=$ac_ct_OTOOL64
6315  fi
6316else
6317  OTOOL64="$ac_cv_prog_OTOOL64"
6318fi
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6347$as_echo_n "checking for -single_module linker flag... " >&6; }
6348if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6349  $as_echo_n "(cached) " >&6
6350else
6351  lt_cv_apple_cc_single_mod=no
6352      if test -z "${LT_MULTI_MODULE}"; then
6353	# By default we will add the -single_module flag. You can override
6354	# by either setting the environment variable LT_MULTI_MODULE
6355	# non-empty at configure time, or by adding -multi_module to the
6356	# link flags.
6357	rm -rf libconftest.dylib*
6358	echo "int foo(void){return 1;}" > conftest.c
6359	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6360-dynamiclib -Wl,-single_module conftest.c" >&5
6361	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6362	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6363        _lt_result=$?
6364	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6365	  lt_cv_apple_cc_single_mod=yes
6366	else
6367	  cat conftest.err >&5
6368	fi
6369	rm -rf libconftest.dylib*
6370	rm -f conftest.*
6371      fi
6372fi
6373{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6374$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6375    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6376$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6377if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6378  $as_echo_n "(cached) " >&6
6379else
6380  lt_cv_ld_exported_symbols_list=no
6381      save_LDFLAGS=$LDFLAGS
6382      echo "_main" > conftest.sym
6383      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6384      cat >conftest.$ac_ext <<_ACEOF
6385/* confdefs.h.  */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h.  */
6390
6391int
6392main ()
6393{
6394
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399rm -f conftest.$ac_objext conftest$ac_exeext
6400if { (ac_try="$ac_link"
6401case "(($ac_try" in
6402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403  *) ac_try_echo=$ac_try;;
6404esac
6405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6406$as_echo "$ac_try_echo") >&5
6407  (eval "$ac_link") 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } && {
6414	 test -z "$ac_c_werror_flag" ||
6415	 test ! -s conftest.err
6416       } && test -s conftest$ac_exeext && {
6417	 test "$cross_compiling" = yes ||
6418	 $as_test_x conftest$ac_exeext
6419       }; then
6420  lt_cv_ld_exported_symbols_list=yes
6421else
6422  $as_echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425	lt_cv_ld_exported_symbols_list=no
6426fi
6427
6428rm -rf conftest.dSYM
6429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6430      conftest$ac_exeext conftest.$ac_ext
6431	LDFLAGS="$save_LDFLAGS"
6432
6433fi
6434{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6435$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6436    case $host_os in
6437    rhapsody* | darwin1.[012])
6438      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6439    darwin1.*)
6440      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6441    darwin*) # darwin 5.x on
6442      # if running on 10.5 or later, the deployment target defaults
6443      # to the OS version, if on x86, and 10.4, the deployment
6444      # target defaults to 10.4. Don't you love it?
6445      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6446	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6447	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6448	10.[012]*)
6449	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6450	10.*)
6451	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6452      esac
6453    ;;
6454  esac
6455    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6456      _lt_dar_single_mod='$single_module'
6457    fi
6458    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6459      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6460    else
6461      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6462    fi
6463    if test "$DSYMUTIL" != ":"; then
6464      _lt_dsymutil='~$DSYMUTIL $lib || :'
6465    else
6466      _lt_dsymutil=
6467    fi
6468    ;;
6469  esac
6470
6471ac_ext=c
6472ac_cpp='$CPP $CPPFLAGS'
6473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6477$as_echo_n "checking how to run the C preprocessor... " >&6; }
6478# On Suns, sometimes $CPP names a directory.
6479if test -n "$CPP" && test -d "$CPP"; then
6480  CPP=
6481fi
6482if test -z "$CPP"; then
6483  if test "${ac_cv_prog_CPP+set}" = set; then
6484  $as_echo_n "(cached) " >&6
6485else
6486      # Double quotes because CPP needs to be expanded
6487    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6488    do
6489      ac_preproc_ok=false
6490for ac_c_preproc_warn_flag in '' yes
6491do
6492  # Use a header file that comes with gcc, so configuring glibc
6493  # with a fresh cross-compiler works.
6494  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6495  # <limits.h> exists even on freestanding compilers.
6496  # On the NeXT, cc -E runs the code through the compiler's parser,
6497  # not just through cpp. "Syntax error" is here to catch this case.
6498  cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504#ifdef __STDC__
6505# include <limits.h>
6506#else
6507# include <assert.h>
6508#endif
6509		     Syntax error
6510_ACEOF
6511if { (ac_try="$ac_cpp conftest.$ac_ext"
6512case "(($ac_try" in
6513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514  *) ac_try_echo=$ac_try;;
6515esac
6516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6517$as_echo "$ac_try_echo") >&5
6518  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6519  ac_status=$?
6520  grep -v '^ *+' conftest.er1 >conftest.err
6521  rm -f conftest.er1
6522  cat conftest.err >&5
6523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); } >/dev/null && {
6525	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6526	 test ! -s conftest.err
6527       }; then
6528  :
6529else
6530  $as_echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533  # Broken: fails on valid input.
6534continue
6535fi
6536
6537rm -f conftest.err conftest.$ac_ext
6538
6539  # OK, works on sane cases.  Now check whether nonexistent headers
6540  # can be detected and how.
6541  cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h.  */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h.  */
6547#include <ac_nonexistent.h>
6548_ACEOF
6549if { (ac_try="$ac_cpp conftest.$ac_ext"
6550case "(($ac_try" in
6551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552  *) ac_try_echo=$ac_try;;
6553esac
6554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6555$as_echo "$ac_try_echo") >&5
6556  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6557  ac_status=$?
6558  grep -v '^ *+' conftest.er1 >conftest.err
6559  rm -f conftest.er1
6560  cat conftest.err >&5
6561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); } >/dev/null && {
6563	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6564	 test ! -s conftest.err
6565       }; then
6566  # Broken: success on invalid input.
6567continue
6568else
6569  $as_echo "$as_me: failed program was:" >&5
6570sed 's/^/| /' conftest.$ac_ext >&5
6571
6572  # Passes both tests.
6573ac_preproc_ok=:
6574break
6575fi
6576
6577rm -f conftest.err conftest.$ac_ext
6578
6579done
6580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6581rm -f conftest.err conftest.$ac_ext
6582if $ac_preproc_ok; then
6583  break
6584fi
6585
6586    done
6587    ac_cv_prog_CPP=$CPP
6588
6589fi
6590  CPP=$ac_cv_prog_CPP
6591else
6592  ac_cv_prog_CPP=$CPP
6593fi
6594{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6595$as_echo "$CPP" >&6; }
6596ac_preproc_ok=false
6597for ac_c_preproc_warn_flag in '' yes
6598do
6599  # Use a header file that comes with gcc, so configuring glibc
6600  # with a fresh cross-compiler works.
6601  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6602  # <limits.h> exists even on freestanding compilers.
6603  # On the NeXT, cc -E runs the code through the compiler's parser,
6604  # not just through cpp. "Syntax error" is here to catch this case.
6605  cat >conftest.$ac_ext <<_ACEOF
6606/* confdefs.h.  */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h.  */
6611#ifdef __STDC__
6612# include <limits.h>
6613#else
6614# include <assert.h>
6615#endif
6616		     Syntax error
6617_ACEOF
6618if { (ac_try="$ac_cpp conftest.$ac_ext"
6619case "(($ac_try" in
6620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621  *) ac_try_echo=$ac_try;;
6622esac
6623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6624$as_echo "$ac_try_echo") >&5
6625  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6626  ac_status=$?
6627  grep -v '^ *+' conftest.er1 >conftest.err
6628  rm -f conftest.er1
6629  cat conftest.err >&5
6630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); } >/dev/null && {
6632	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6633	 test ! -s conftest.err
6634       }; then
6635  :
6636else
6637  $as_echo "$as_me: failed program was:" >&5
6638sed 's/^/| /' conftest.$ac_ext >&5
6639
6640  # Broken: fails on valid input.
6641continue
6642fi
6643
6644rm -f conftest.err conftest.$ac_ext
6645
6646  # OK, works on sane cases.  Now check whether nonexistent headers
6647  # can be detected and how.
6648  cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h.  */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h.  */
6654#include <ac_nonexistent.h>
6655_ACEOF
6656if { (ac_try="$ac_cpp conftest.$ac_ext"
6657case "(($ac_try" in
6658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659  *) ac_try_echo=$ac_try;;
6660esac
6661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6662$as_echo "$ac_try_echo") >&5
6663  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6664  ac_status=$?
6665  grep -v '^ *+' conftest.er1 >conftest.err
6666  rm -f conftest.er1
6667  cat conftest.err >&5
6668  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669  (exit $ac_status); } >/dev/null && {
6670	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6671	 test ! -s conftest.err
6672       }; then
6673  # Broken: success on invalid input.
6674continue
6675else
6676  $as_echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
6678
6679  # Passes both tests.
6680ac_preproc_ok=:
6681break
6682fi
6683
6684rm -f conftest.err conftest.$ac_ext
6685
6686done
6687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6688rm -f conftest.err conftest.$ac_ext
6689if $ac_preproc_ok; then
6690  :
6691else
6692  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6694{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6695See \`config.log' for more details." >&5
6696$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6697See \`config.log' for more details." >&2;}
6698   { (exit 1); exit 1; }; }; }
6699fi
6700
6701ac_ext=c
6702ac_cpp='$CPP $CPPFLAGS'
6703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707
6708{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6709$as_echo_n "checking for ANSI C header files... " >&6; }
6710if test "${ac_cv_header_stdc+set}" = set; then
6711  $as_echo_n "(cached) " >&6
6712else
6713  cat >conftest.$ac_ext <<_ACEOF
6714/* confdefs.h.  */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h.  */
6719#include <stdlib.h>
6720#include <stdarg.h>
6721#include <string.h>
6722#include <float.h>
6723
6724int
6725main ()
6726{
6727
6728  ;
6729  return 0;
6730}
6731_ACEOF
6732rm -f conftest.$ac_objext
6733if { (ac_try="$ac_compile"
6734case "(($ac_try" in
6735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736  *) ac_try_echo=$ac_try;;
6737esac
6738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739$as_echo "$ac_try_echo") >&5
6740  (eval "$ac_compile") 2>conftest.er1
6741  ac_status=$?
6742  grep -v '^ *+' conftest.er1 >conftest.err
6743  rm -f conftest.er1
6744  cat conftest.err >&5
6745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746  (exit $ac_status); } && {
6747	 test -z "$ac_c_werror_flag" ||
6748	 test ! -s conftest.err
6749       } && test -s conftest.$ac_objext; then
6750  ac_cv_header_stdc=yes
6751else
6752  $as_echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
6755	ac_cv_header_stdc=no
6756fi
6757
6758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759
6760if test $ac_cv_header_stdc = yes; then
6761  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6762  cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h.  */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h.  */
6768#include <string.h>
6769
6770_ACEOF
6771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772  $EGREP "memchr" >/dev/null 2>&1; then
6773  :
6774else
6775  ac_cv_header_stdc=no
6776fi
6777rm -f conftest*
6778
6779fi
6780
6781if test $ac_cv_header_stdc = yes; then
6782  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6783  cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h.  */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h.  */
6789#include <stdlib.h>
6790
6791_ACEOF
6792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6793  $EGREP "free" >/dev/null 2>&1; then
6794  :
6795else
6796  ac_cv_header_stdc=no
6797fi
6798rm -f conftest*
6799
6800fi
6801
6802if test $ac_cv_header_stdc = yes; then
6803  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6804  if test "$cross_compiling" = yes; then
6805  :
6806else
6807  cat >conftest.$ac_ext <<_ACEOF
6808/* confdefs.h.  */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h.  */
6813#include <ctype.h>
6814#include <stdlib.h>
6815#if ((' ' & 0x0FF) == 0x020)
6816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6818#else
6819# define ISLOWER(c) \
6820		   (('a' <= (c) && (c) <= 'i') \
6821		     || ('j' <= (c) && (c) <= 'r') \
6822		     || ('s' <= (c) && (c) <= 'z'))
6823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6824#endif
6825
6826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6827int
6828main ()
6829{
6830  int i;
6831  for (i = 0; i < 256; i++)
6832    if (XOR (islower (i), ISLOWER (i))
6833	|| toupper (i) != TOUPPER (i))
6834      return 2;
6835  return 0;
6836}
6837_ACEOF
6838rm -f conftest$ac_exeext
6839if { (ac_try="$ac_link"
6840case "(($ac_try" in
6841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842  *) ac_try_echo=$ac_try;;
6843esac
6844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6845$as_echo "$ac_try_echo") >&5
6846  (eval "$ac_link") 2>&5
6847  ac_status=$?
6848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6850  { (case "(($ac_try" in
6851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852  *) ac_try_echo=$ac_try;;
6853esac
6854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6855$as_echo "$ac_try_echo") >&5
6856  (eval "$ac_try") 2>&5
6857  ac_status=$?
6858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859  (exit $ac_status); }; }; then
6860  :
6861else
6862  $as_echo "$as_me: program exited with status $ac_status" >&5
6863$as_echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866( exit $ac_status )
6867ac_cv_header_stdc=no
6868fi
6869rm -rf conftest.dSYM
6870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6871fi
6872
6873
6874fi
6875fi
6876{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6877$as_echo "$ac_cv_header_stdc" >&6; }
6878if test $ac_cv_header_stdc = yes; then
6879
6880cat >>confdefs.h <<\_ACEOF
6881#define STDC_HEADERS 1
6882_ACEOF
6883
6884fi
6885
6886# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6897		  inttypes.h stdint.h unistd.h
6898do
6899as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6900{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6901$as_echo_n "checking for $ac_header... " >&6; }
6902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6903  $as_echo_n "(cached) " >&6
6904else
6905  cat >conftest.$ac_ext <<_ACEOF
6906/* confdefs.h.  */
6907_ACEOF
6908cat confdefs.h >>conftest.$ac_ext
6909cat >>conftest.$ac_ext <<_ACEOF
6910/* end confdefs.h.  */
6911$ac_includes_default
6912
6913#include <$ac_header>
6914_ACEOF
6915rm -f conftest.$ac_objext
6916if { (ac_try="$ac_compile"
6917case "(($ac_try" in
6918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919  *) ac_try_echo=$ac_try;;
6920esac
6921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6922$as_echo "$ac_try_echo") >&5
6923  (eval "$ac_compile") 2>conftest.er1
6924  ac_status=$?
6925  grep -v '^ *+' conftest.er1 >conftest.err
6926  rm -f conftest.er1
6927  cat conftest.err >&5
6928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); } && {
6930	 test -z "$ac_c_werror_flag" ||
6931	 test ! -s conftest.err
6932       } && test -s conftest.$ac_objext; then
6933  eval "$as_ac_Header=yes"
6934else
6935  $as_echo "$as_me: failed program was:" >&5
6936sed 's/^/| /' conftest.$ac_ext >&5
6937
6938	eval "$as_ac_Header=no"
6939fi
6940
6941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942fi
6943ac_res=`eval 'as_val=${'$as_ac_Header'}
6944		 $as_echo "$as_val"'`
6945	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6946$as_echo "$ac_res" >&6; }
6947as_val=`eval 'as_val=${'$as_ac_Header'}
6948		 $as_echo "$as_val"'`
6949   if test "x$as_val" = x""yes; then
6950  cat >>confdefs.h <<_ACEOF
6951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952_ACEOF
6953
6954fi
6955
6956done
6957
6958
6959
6960for ac_header in dlfcn.h
6961do
6962as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6963{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6964$as_echo_n "checking for $ac_header... " >&6; }
6965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966  $as_echo_n "(cached) " >&6
6967else
6968  cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h.  */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h.  */
6974$ac_includes_default
6975
6976#include <$ac_header>
6977_ACEOF
6978rm -f conftest.$ac_objext
6979if { (ac_try="$ac_compile"
6980case "(($ac_try" in
6981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982  *) ac_try_echo=$ac_try;;
6983esac
6984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6985$as_echo "$ac_try_echo") >&5
6986  (eval "$ac_compile") 2>conftest.er1
6987  ac_status=$?
6988  grep -v '^ *+' conftest.er1 >conftest.err
6989  rm -f conftest.er1
6990  cat conftest.err >&5
6991  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); } && {
6993	 test -z "$ac_c_werror_flag" ||
6994	 test ! -s conftest.err
6995       } && test -s conftest.$ac_objext; then
6996  eval "$as_ac_Header=yes"
6997else
6998  $as_echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001	eval "$as_ac_Header=no"
7002fi
7003
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005fi
7006ac_res=`eval 'as_val=${'$as_ac_Header'}
7007		 $as_echo "$as_val"'`
7008	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7009$as_echo "$ac_res" >&6; }
7010as_val=`eval 'as_val=${'$as_ac_Header'}
7011		 $as_echo "$as_val"'`
7012   if test "x$as_val" = x""yes; then
7013  cat >>confdefs.h <<_ACEOF
7014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7015_ACEOF
7016
7017fi
7018
7019done
7020
7021
7022
7023# Set options
7024
7025
7026
7027        enable_dlopen=no
7028
7029
7030  enable_win32_dll=no
7031
7032
7033            # Check whether --enable-shared was given.
7034if test "${enable_shared+set}" = set; then
7035  enableval=$enable_shared; p=${PACKAGE-default}
7036    case $enableval in
7037    yes) enable_shared=yes ;;
7038    no) enable_shared=no ;;
7039    *)
7040      enable_shared=no
7041      # Look at the argument we got.  We use all the common list separators.
7042      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7043      for pkg in $enableval; do
7044	IFS="$lt_save_ifs"
7045	if test "X$pkg" = "X$p"; then
7046	  enable_shared=yes
7047	fi
7048      done
7049      IFS="$lt_save_ifs"
7050      ;;
7051    esac
7052else
7053  enable_shared=yes
7054fi
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064  # Check whether --enable-static was given.
7065if test "${enable_static+set}" = set; then
7066  enableval=$enable_static; p=${PACKAGE-default}
7067    case $enableval in
7068    yes) enable_static=yes ;;
7069    no) enable_static=no ;;
7070    *)
7071     enable_static=no
7072      # Look at the argument we got.  We use all the common list separators.
7073      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7074      for pkg in $enableval; do
7075	IFS="$lt_save_ifs"
7076	if test "X$pkg" = "X$p"; then
7077	  enable_static=yes
7078	fi
7079      done
7080      IFS="$lt_save_ifs"
7081      ;;
7082    esac
7083else
7084  enable_static=yes
7085fi
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096# Check whether --with-pic was given.
7097if test "${with_pic+set}" = set; then
7098  withval=$with_pic; pic_mode="$withval"
7099else
7100  pic_mode=default
7101fi
7102
7103
7104test -z "$pic_mode" && pic_mode=default
7105
7106
7107
7108
7109
7110
7111
7112  # Check whether --enable-fast-install was given.
7113if test "${enable_fast_install+set}" = set; then
7114  enableval=$enable_fast_install; p=${PACKAGE-default}
7115    case $enableval in
7116    yes) enable_fast_install=yes ;;
7117    no) enable_fast_install=no ;;
7118    *)
7119      enable_fast_install=no
7120      # Look at the argument we got.  We use all the common list separators.
7121      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7122      for pkg in $enableval; do
7123	IFS="$lt_save_ifs"
7124	if test "X$pkg" = "X$p"; then
7125	  enable_fast_install=yes
7126	fi
7127      done
7128      IFS="$lt_save_ifs"
7129      ;;
7130    esac
7131else
7132  enable_fast_install=yes
7133fi
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145# This can be used to rebuild libtool when needed
7146LIBTOOL_DEPS="$ltmain"
7147
7148# Always use our own libtool.
7149LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175test -z "$LN_S" && LN_S="ln -s"
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190if test -n "${ZSH_VERSION+set}" ; then
7191   setopt NO_GLOB_SUBST
7192fi
7193
7194{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7195$as_echo_n "checking for objdir... " >&6; }
7196if test "${lt_cv_objdir+set}" = set; then
7197  $as_echo_n "(cached) " >&6
7198else
7199  rm -f .libs 2>/dev/null
7200mkdir .libs 2>/dev/null
7201if test -d .libs; then
7202  lt_cv_objdir=.libs
7203else
7204  # MS-DOS does not allow filenames that begin with a dot.
7205  lt_cv_objdir=_libs
7206fi
7207rmdir .libs 2>/dev/null
7208fi
7209{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7210$as_echo "$lt_cv_objdir" >&6; }
7211objdir=$lt_cv_objdir
7212
7213
7214
7215
7216
7217cat >>confdefs.h <<_ACEOF
7218#define LT_OBJDIR "$lt_cv_objdir/"
7219_ACEOF
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237case $host_os in
7238aix3*)
7239  # AIX sometimes has problems with the GCC collect2 program.  For some
7240  # reason, if we set the COLLECT_NAMES environment variable, the problems
7241  # vanish in a puff of smoke.
7242  if test "X${COLLECT_NAMES+set}" != Xset; then
7243    COLLECT_NAMES=
7244    export COLLECT_NAMES
7245  fi
7246  ;;
7247esac
7248
7249# Sed substitution that helps us do robust quoting.  It backslashifies
7250# metacharacters that are still active within double-quoted strings.
7251sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7252
7253# Same as above, but do not quote variable references.
7254double_quote_subst='s/\(["`\\]\)/\\\1/g'
7255
7256# Sed substitution to delay expansion of an escaped shell variable in a
7257# double_quote_subst'ed string.
7258delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7259
7260# Sed substitution to delay expansion of an escaped single quote.
7261delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7262
7263# Sed substitution to avoid accidental globbing in evaled expressions
7264no_glob_subst='s/\*/\\\*/g'
7265
7266# Global variables:
7267ofile=libtool
7268can_build_shared=yes
7269
7270# All known linkers require a `.a' archive for static linking (except MSVC,
7271# which needs '.lib').
7272libext=a
7273
7274with_gnu_ld="$lt_cv_prog_gnu_ld"
7275
7276old_CC="$CC"
7277old_CFLAGS="$CFLAGS"
7278
7279# Set sane defaults for various variables
7280test -z "$CC" && CC=cc
7281test -z "$LTCC" && LTCC=$CC
7282test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7283test -z "$LD" && LD=ld
7284test -z "$ac_objext" && ac_objext=o
7285
7286for cc_temp in $compiler""; do
7287  case $cc_temp in
7288    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7289    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7290    \-*) ;;
7291    *) break;;
7292  esac
7293done
7294cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7295
7296
7297# Only perform the check for file, if the check method requires it
7298test -z "$MAGIC_CMD" && MAGIC_CMD=file
7299case $deplibs_check_method in
7300file_magic*)
7301  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7302    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7303$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7304if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7305  $as_echo_n "(cached) " >&6
7306else
7307  case $MAGIC_CMD in
7308[\\/*] |  ?:[\\/]*)
7309  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7310  ;;
7311*)
7312  lt_save_MAGIC_CMD="$MAGIC_CMD"
7313  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7314  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7315  for ac_dir in $ac_dummy; do
7316    IFS="$lt_save_ifs"
7317    test -z "$ac_dir" && ac_dir=.
7318    if test -f $ac_dir/${ac_tool_prefix}file; then
7319      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7320      if test -n "$file_magic_test_file"; then
7321	case $deplibs_check_method in
7322	"file_magic "*)
7323	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7324	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7325	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7326	    $EGREP "$file_magic_regex" > /dev/null; then
7327	    :
7328	  else
7329	    cat <<_LT_EOF 1>&2
7330
7331*** Warning: the command libtool uses to detect shared libraries,
7332*** $file_magic_cmd, produces output that libtool cannot recognize.
7333*** The result is that libtool may fail to recognize shared libraries
7334*** as such.  This will affect the creation of libtool libraries that
7335*** depend on shared libraries, but programs linked with such libtool
7336*** libraries will work regardless of this problem.  Nevertheless, you
7337*** may want to report the problem to your system manager and/or to
7338*** bug-libtool@gnu.org
7339
7340_LT_EOF
7341	  fi ;;
7342	esac
7343      fi
7344      break
7345    fi
7346  done
7347  IFS="$lt_save_ifs"
7348  MAGIC_CMD="$lt_save_MAGIC_CMD"
7349  ;;
7350esac
7351fi
7352
7353MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7354if test -n "$MAGIC_CMD"; then
7355  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7356$as_echo "$MAGIC_CMD" >&6; }
7357else
7358  { $as_echo "$as_me:$LINENO: result: no" >&5
7359$as_echo "no" >&6; }
7360fi
7361
7362
7363
7364
7365
7366if test -z "$lt_cv_path_MAGIC_CMD"; then
7367  if test -n "$ac_tool_prefix"; then
7368    { $as_echo "$as_me:$LINENO: checking for file" >&5
7369$as_echo_n "checking for file... " >&6; }
7370if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7371  $as_echo_n "(cached) " >&6
7372else
7373  case $MAGIC_CMD in
7374[\\/*] |  ?:[\\/]*)
7375  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7376  ;;
7377*)
7378  lt_save_MAGIC_CMD="$MAGIC_CMD"
7379  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7380  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7381  for ac_dir in $ac_dummy; do
7382    IFS="$lt_save_ifs"
7383    test -z "$ac_dir" && ac_dir=.
7384    if test -f $ac_dir/file; then
7385      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7386      if test -n "$file_magic_test_file"; then
7387	case $deplibs_check_method in
7388	"file_magic "*)
7389	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7390	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7391	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7392	    $EGREP "$file_magic_regex" > /dev/null; then
7393	    :
7394	  else
7395	    cat <<_LT_EOF 1>&2
7396
7397*** Warning: the command libtool uses to detect shared libraries,
7398*** $file_magic_cmd, produces output that libtool cannot recognize.
7399*** The result is that libtool may fail to recognize shared libraries
7400*** as such.  This will affect the creation of libtool libraries that
7401*** depend on shared libraries, but programs linked with such libtool
7402*** libraries will work regardless of this problem.  Nevertheless, you
7403*** may want to report the problem to your system manager and/or to
7404*** bug-libtool@gnu.org
7405
7406_LT_EOF
7407	  fi ;;
7408	esac
7409      fi
7410      break
7411    fi
7412  done
7413  IFS="$lt_save_ifs"
7414  MAGIC_CMD="$lt_save_MAGIC_CMD"
7415  ;;
7416esac
7417fi
7418
7419MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7420if test -n "$MAGIC_CMD"; then
7421  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7422$as_echo "$MAGIC_CMD" >&6; }
7423else
7424  { $as_echo "$as_me:$LINENO: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428
7429  else
7430    MAGIC_CMD=:
7431  fi
7432fi
7433
7434  fi
7435  ;;
7436esac
7437
7438# Use C for the default configuration in the libtool script
7439
7440lt_save_CC="$CC"
7441ac_ext=c
7442ac_cpp='$CPP $CPPFLAGS'
7443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7445ac_compiler_gnu=$ac_cv_c_compiler_gnu
7446
7447
7448# Source file extension for C test sources.
7449ac_ext=c
7450
7451# Object file extension for compiled C test sources.
7452objext=o
7453objext=$objext
7454
7455# Code to be used in simple compile tests
7456lt_simple_compile_test_code="int some_variable = 0;"
7457
7458# Code to be used in simple link tests
7459lt_simple_link_test_code='int main(){return(0);}'
7460
7461
7462
7463
7464
7465
7466
7467# If no C compiler was specified, use CC.
7468LTCC=${LTCC-"$CC"}
7469
7470# If no C compiler flags were specified, use CFLAGS.
7471LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7472
7473# Allow CC to be a program name with arguments.
7474compiler=$CC
7475
7476# Save the default compiler, since it gets overwritten when the other
7477# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7478compiler_DEFAULT=$CC
7479
7480# save warnings/boilerplate of simple test code
7481ac_outfile=conftest.$ac_objext
7482echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7484_lt_compiler_boilerplate=`cat conftest.err`
7485$RM conftest*
7486
7487ac_outfile=conftest.$ac_objext
7488echo "$lt_simple_link_test_code" >conftest.$ac_ext
7489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7490_lt_linker_boilerplate=`cat conftest.err`
7491$RM -r conftest*
7492
7493
7494if test -n "$compiler"; then
7495
7496lt_prog_compiler_no_builtin_flag=
7497
7498if test "$GCC" = yes; then
7499  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7500
7501  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7502$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7503if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7504  $as_echo_n "(cached) " >&6
7505else
7506  lt_cv_prog_compiler_rtti_exceptions=no
7507   ac_outfile=conftest.$ac_objext
7508   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7509   lt_compiler_flag="-fno-rtti -fno-exceptions"
7510   # Insert the option either (1) after the last *FLAGS variable, or
7511   # (2) before a word containing "conftest.", or (3) at the end.
7512   # Note that $ac_compile itself does not contain backslashes and begins
7513   # with a dollar sign (not a hyphen), so the echo should work correctly.
7514   # The option is referenced via a variable to avoid confusing sed.
7515   lt_compile=`echo "$ac_compile" | $SED \
7516   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7517   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7518   -e 's:$: $lt_compiler_flag:'`
7519   (eval echo "\"\$as_me:7519: $lt_compile\"" >&5)
7520   (eval "$lt_compile" 2>conftest.err)
7521   ac_status=$?
7522   cat conftest.err >&5
7523   echo "$as_me:7523: \$? = $ac_status" >&5
7524   if (exit $ac_status) && test -s "$ac_outfile"; then
7525     # The compiler can only warn and ignore the option if not recognized
7526     # So say no if there are warnings other than the usual output.
7527     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7528     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7529     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7530       lt_cv_prog_compiler_rtti_exceptions=yes
7531     fi
7532   fi
7533   $RM conftest*
7534
7535fi
7536{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7537$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7538
7539if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7540    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7541else
7542    :
7543fi
7544
7545fi
7546
7547
7548
7549
7550
7551
7552  lt_prog_compiler_wl=
7553lt_prog_compiler_pic=
7554lt_prog_compiler_static=
7555
7556{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7557$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7558
7559  if test "$GCC" = yes; then
7560    lt_prog_compiler_wl='-Wl,'
7561    lt_prog_compiler_static='-static'
7562
7563    case $host_os in
7564      aix*)
7565      # All AIX code is PIC.
7566      if test "$host_cpu" = ia64; then
7567	# AIX 5 now supports IA64 processor
7568	lt_prog_compiler_static='-Bstatic'
7569      fi
7570      ;;
7571
7572    amigaos*)
7573      case $host_cpu in
7574      powerpc)
7575            # see comment about AmigaOS4 .so support
7576            lt_prog_compiler_pic='-fPIC'
7577        ;;
7578      m68k)
7579            # FIXME: we need at least 68020 code to build shared libraries, but
7580            # adding the `-m68020' flag to GCC prevents building anything better,
7581            # like `-m68040'.
7582            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7583        ;;
7584      esac
7585      ;;
7586
7587    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7588      # PIC is the default for these OSes.
7589      ;;
7590
7591    mingw* | cygwin* | pw32* | os2* | cegcc*)
7592      # This hack is so that the source file can tell whether it is being
7593      # built for inclusion in a dll (and should export symbols for example).
7594      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7595      # (--disable-auto-import) libraries
7596      lt_prog_compiler_pic='-DDLL_EXPORT'
7597      ;;
7598
7599    darwin* | rhapsody*)
7600      # PIC is the default on this platform
7601      # Common symbols not allowed in MH_DYLIB files
7602      lt_prog_compiler_pic='-fno-common'
7603      ;;
7604
7605    hpux*)
7606      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7607      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7608      # sets the default TLS model and affects inlining.
7609      case $host_cpu in
7610      hppa*64*)
7611	# +Z the default
7612	;;
7613      *)
7614	lt_prog_compiler_pic='-fPIC'
7615	;;
7616      esac
7617      ;;
7618
7619    interix[3-9]*)
7620      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7621      # Instead, we relocate shared libraries at runtime.
7622      ;;
7623
7624    msdosdjgpp*)
7625      # Just because we use GCC doesn't mean we suddenly get shared libraries
7626      # on systems that don't support them.
7627      lt_prog_compiler_can_build_shared=no
7628      enable_shared=no
7629      ;;
7630
7631    *nto* | *qnx*)
7632      # QNX uses GNU C++, but need to define -shared option too, otherwise
7633      # it will coredump.
7634      lt_prog_compiler_pic='-fPIC -shared'
7635      ;;
7636
7637    sysv4*MP*)
7638      if test -d /usr/nec; then
7639	lt_prog_compiler_pic=-Kconform_pic
7640      fi
7641      ;;
7642
7643    *)
7644      lt_prog_compiler_pic='-fPIC'
7645      ;;
7646    esac
7647  else
7648    # PORTME Check for flag to pass linker flags through the system compiler.
7649    case $host_os in
7650    aix*)
7651      lt_prog_compiler_wl='-Wl,'
7652      if test "$host_cpu" = ia64; then
7653	# AIX 5 now supports IA64 processor
7654	lt_prog_compiler_static='-Bstatic'
7655      else
7656	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7657      fi
7658      ;;
7659
7660    mingw* | cygwin* | pw32* | os2* | cegcc*)
7661      # This hack is so that the source file can tell whether it is being
7662      # built for inclusion in a dll (and should export symbols for example).
7663      lt_prog_compiler_pic='-DDLL_EXPORT'
7664      ;;
7665
7666    hpux9* | hpux10* | hpux11*)
7667      lt_prog_compiler_wl='-Wl,'
7668      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7669      # not for PA HP-UX.
7670      case $host_cpu in
7671      hppa*64*|ia64*)
7672	# +Z the default
7673	;;
7674      *)
7675	lt_prog_compiler_pic='+Z'
7676	;;
7677      esac
7678      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7679      lt_prog_compiler_static='${wl}-a ${wl}archive'
7680      ;;
7681
7682    irix5* | irix6* | nonstopux*)
7683      lt_prog_compiler_wl='-Wl,'
7684      # PIC (with -KPIC) is the default.
7685      lt_prog_compiler_static='-non_shared'
7686      ;;
7687
7688    linux* | k*bsd*-gnu)
7689      case $cc_basename in
7690      # old Intel for x86_64 which still supported -KPIC.
7691      ecc*)
7692	lt_prog_compiler_wl='-Wl,'
7693	lt_prog_compiler_pic='-KPIC'
7694	lt_prog_compiler_static='-static'
7695        ;;
7696      # icc used to be incompatible with GCC.
7697      # ICC 10 doesn't accept -KPIC any more.
7698      icc* | ifort*)
7699	lt_prog_compiler_wl='-Wl,'
7700	lt_prog_compiler_pic='-fPIC'
7701	lt_prog_compiler_static='-static'
7702        ;;
7703      # Lahey Fortran 8.1.
7704      lf95*)
7705	lt_prog_compiler_wl='-Wl,'
7706	lt_prog_compiler_pic='--shared'
7707	lt_prog_compiler_static='--static'
7708	;;
7709      pgcc* | pgf77* | pgf90* | pgf95*)
7710        # Portland Group compilers (*not* the Pentium gcc compiler,
7711	# which looks to be a dead project)
7712	lt_prog_compiler_wl='-Wl,'
7713	lt_prog_compiler_pic='-fpic'
7714	lt_prog_compiler_static='-Bstatic'
7715        ;;
7716      ccc*)
7717        lt_prog_compiler_wl='-Wl,'
7718        # All Alpha code is PIC.
7719        lt_prog_compiler_static='-non_shared'
7720        ;;
7721      xl*)
7722	# IBM XL C 8.0/Fortran 10.1 on PPC
7723	lt_prog_compiler_wl='-Wl,'
7724	lt_prog_compiler_pic='-qpic'
7725	lt_prog_compiler_static='-qstaticlink'
7726	;;
7727      *)
7728	case `$CC -V 2>&1 | sed 5q` in
7729	*Sun\ C*)
7730	  # Sun C 5.9
7731	  lt_prog_compiler_pic='-KPIC'
7732	  lt_prog_compiler_static='-Bstatic'
7733	  lt_prog_compiler_wl='-Wl,'
7734	  ;;
7735	*Sun\ F*)
7736	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7737	  lt_prog_compiler_pic='-KPIC'
7738	  lt_prog_compiler_static='-Bstatic'
7739	  lt_prog_compiler_wl=''
7740	  ;;
7741	esac
7742	;;
7743      esac
7744      ;;
7745
7746    newsos6)
7747      lt_prog_compiler_pic='-KPIC'
7748      lt_prog_compiler_static='-Bstatic'
7749      ;;
7750
7751    *nto* | *qnx*)
7752      # QNX uses GNU C++, but need to define -shared option too, otherwise
7753      # it will coredump.
7754      lt_prog_compiler_pic='-fPIC -shared'
7755      ;;
7756
7757    osf3* | osf4* | osf5*)
7758      lt_prog_compiler_wl='-Wl,'
7759      # All OSF/1 code is PIC.
7760      lt_prog_compiler_static='-non_shared'
7761      ;;
7762
7763    rdos*)
7764      lt_prog_compiler_static='-non_shared'
7765      ;;
7766
7767    solaris*)
7768      lt_prog_compiler_pic='-KPIC'
7769      lt_prog_compiler_static='-Bstatic'
7770      case $cc_basename in
7771      f77* | f90* | f95*)
7772	lt_prog_compiler_wl='-Qoption ld ';;
7773      *)
7774	lt_prog_compiler_wl='-Wl,';;
7775      esac
7776      ;;
7777
7778    sunos4*)
7779      lt_prog_compiler_wl='-Qoption ld '
7780      lt_prog_compiler_pic='-PIC'
7781      lt_prog_compiler_static='-Bstatic'
7782      ;;
7783
7784    sysv4 | sysv4.2uw2* | sysv4.3*)
7785      lt_prog_compiler_wl='-Wl,'
7786      lt_prog_compiler_pic='-KPIC'
7787      lt_prog_compiler_static='-Bstatic'
7788      ;;
7789
7790    sysv4*MP*)
7791      if test -d /usr/nec ;then
7792	lt_prog_compiler_pic='-Kconform_pic'
7793	lt_prog_compiler_static='-Bstatic'
7794      fi
7795      ;;
7796
7797    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7798      lt_prog_compiler_wl='-Wl,'
7799      lt_prog_compiler_pic='-KPIC'
7800      lt_prog_compiler_static='-Bstatic'
7801      ;;
7802
7803    unicos*)
7804      lt_prog_compiler_wl='-Wl,'
7805      lt_prog_compiler_can_build_shared=no
7806      ;;
7807
7808    uts4*)
7809      lt_prog_compiler_pic='-pic'
7810      lt_prog_compiler_static='-Bstatic'
7811      ;;
7812
7813    *)
7814      lt_prog_compiler_can_build_shared=no
7815      ;;
7816    esac
7817  fi
7818
7819case $host_os in
7820  # For platforms which do not support PIC, -DPIC is meaningless:
7821  *djgpp*)
7822    lt_prog_compiler_pic=
7823    ;;
7824  *)
7825    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7826    ;;
7827esac
7828{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7829$as_echo "$lt_prog_compiler_pic" >&6; }
7830
7831
7832
7833
7834
7835
7836#
7837# Check to make sure the PIC flag actually works.
7838#
7839if test -n "$lt_prog_compiler_pic"; then
7840  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7841$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7842if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7843  $as_echo_n "(cached) " >&6
7844else
7845  lt_cv_prog_compiler_pic_works=no
7846   ac_outfile=conftest.$ac_objext
7847   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7849   # Insert the option either (1) after the last *FLAGS variable, or
7850   # (2) before a word containing "conftest.", or (3) at the end.
7851   # Note that $ac_compile itself does not contain backslashes and begins
7852   # with a dollar sign (not a hyphen), so the echo should work correctly.
7853   # The option is referenced via a variable to avoid confusing sed.
7854   lt_compile=`echo "$ac_compile" | $SED \
7855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857   -e 's:$: $lt_compiler_flag:'`
7858   (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859   (eval "$lt_compile" 2>conftest.err)
7860   ac_status=$?
7861   cat conftest.err >&5
7862   echo "$as_me:7862: \$? = $ac_status" >&5
7863   if (exit $ac_status) && test -s "$ac_outfile"; then
7864     # The compiler can only warn and ignore the option if not recognized
7865     # So say no if there are warnings other than the usual output.
7866     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7867     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869       lt_cv_prog_compiler_pic_works=yes
7870     fi
7871   fi
7872   $RM conftest*
7873
7874fi
7875{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7876$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7877
7878if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7879    case $lt_prog_compiler_pic in
7880     "" | " "*) ;;
7881     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7882     esac
7883else
7884    lt_prog_compiler_pic=
7885     lt_prog_compiler_can_build_shared=no
7886fi
7887
7888fi
7889
7890
7891
7892
7893
7894
7895#
7896# Check to make sure the static flag actually works.
7897#
7898wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7899{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7900$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7901if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7902  $as_echo_n "(cached) " >&6
7903else
7904  lt_cv_prog_compiler_static_works=no
7905   save_LDFLAGS="$LDFLAGS"
7906   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7907   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7908   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7909     # The linker can only warn and ignore the option if not recognized
7910     # So say no if there are warnings
7911     if test -s conftest.err; then
7912       # Append any errors to the config.log.
7913       cat conftest.err 1>&5
7914       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7915       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7916       if diff conftest.exp conftest.er2 >/dev/null; then
7917         lt_cv_prog_compiler_static_works=yes
7918       fi
7919     else
7920       lt_cv_prog_compiler_static_works=yes
7921     fi
7922   fi
7923   $RM -r conftest*
7924   LDFLAGS="$save_LDFLAGS"
7925
7926fi
7927{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7928$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7929
7930if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7931    :
7932else
7933    lt_prog_compiler_static=
7934fi
7935
7936
7937
7938
7939
7940
7941
7942  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7943$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7944if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7945  $as_echo_n "(cached) " >&6
7946else
7947  lt_cv_prog_compiler_c_o=no
7948   $RM -r conftest 2>/dev/null
7949   mkdir conftest
7950   cd conftest
7951   mkdir out
7952   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7953
7954   lt_compiler_flag="-o out/conftest2.$ac_objext"
7955   # Insert the option either (1) after the last *FLAGS variable, or
7956   # (2) before a word containing "conftest.", or (3) at the end.
7957   # Note that $ac_compile itself does not contain backslashes and begins
7958   # with a dollar sign (not a hyphen), so the echo should work correctly.
7959   lt_compile=`echo "$ac_compile" | $SED \
7960   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962   -e 's:$: $lt_compiler_flag:'`
7963   (eval echo "\"\$as_me:7963: $lt_compile\"" >&5)
7964   (eval "$lt_compile" 2>out/conftest.err)
7965   ac_status=$?
7966   cat out/conftest.err >&5
7967   echo "$as_me:7967: \$? = $ac_status" >&5
7968   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7969   then
7970     # The compiler can only warn and ignore the option if not recognized
7971     # So say no if there are warnings
7972     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7973     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7974     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7975       lt_cv_prog_compiler_c_o=yes
7976     fi
7977   fi
7978   chmod u+w . 2>&5
7979   $RM conftest*
7980   # SGI C++ compiler will create directory out/ii_files/ for
7981   # template instantiation
7982   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7983   $RM out/* && rmdir out
7984   cd ..
7985   $RM -r conftest
7986   $RM conftest*
7987
7988fi
7989{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7990$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7991
7992
7993
7994
7995
7996
7997  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7998$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7999if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8000  $as_echo_n "(cached) " >&6
8001else
8002  lt_cv_prog_compiler_c_o=no
8003   $RM -r conftest 2>/dev/null
8004   mkdir conftest
8005   cd conftest
8006   mkdir out
8007   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8008
8009   lt_compiler_flag="-o out/conftest2.$ac_objext"
8010   # Insert the option either (1) after the last *FLAGS variable, or
8011   # (2) before a word containing "conftest.", or (3) at the end.
8012   # Note that $ac_compile itself does not contain backslashes and begins
8013   # with a dollar sign (not a hyphen), so the echo should work correctly.
8014   lt_compile=`echo "$ac_compile" | $SED \
8015   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8016   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8017   -e 's:$: $lt_compiler_flag:'`
8018   (eval echo "\"\$as_me:8018: $lt_compile\"" >&5)
8019   (eval "$lt_compile" 2>out/conftest.err)
8020   ac_status=$?
8021   cat out/conftest.err >&5
8022   echo "$as_me:8022: \$? = $ac_status" >&5
8023   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8024   then
8025     # The compiler can only warn and ignore the option if not recognized
8026     # So say no if there are warnings
8027     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8028     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8029     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8030       lt_cv_prog_compiler_c_o=yes
8031     fi
8032   fi
8033   chmod u+w . 2>&5
8034   $RM conftest*
8035   # SGI C++ compiler will create directory out/ii_files/ for
8036   # template instantiation
8037   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8038   $RM out/* && rmdir out
8039   cd ..
8040   $RM -r conftest
8041   $RM conftest*
8042
8043fi
8044{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8045$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8046
8047
8048
8049
8050hard_links="nottested"
8051if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8052  # do not overwrite the value of need_locks provided by the user
8053  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8054$as_echo_n "checking if we can lock with hard links... " >&6; }
8055  hard_links=yes
8056  $RM conftest*
8057  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058  touch conftest.a
8059  ln conftest.a conftest.b 2>&5 || hard_links=no
8060  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8061  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8062$as_echo "$hard_links" >&6; }
8063  if test "$hard_links" = no; then
8064    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8065$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8066    need_locks=warn
8067  fi
8068else
8069  need_locks=no
8070fi
8071
8072
8073
8074
8075
8076
8077  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8078$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8079
8080  runpath_var=
8081  allow_undefined_flag=
8082  always_export_symbols=no
8083  archive_cmds=
8084  archive_expsym_cmds=
8085  compiler_needs_object=no
8086  enable_shared_with_static_runtimes=no
8087  export_dynamic_flag_spec=
8088  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8089  hardcode_automatic=no
8090  hardcode_direct=no
8091  hardcode_direct_absolute=no
8092  hardcode_libdir_flag_spec=
8093  hardcode_libdir_flag_spec_ld=
8094  hardcode_libdir_separator=
8095  hardcode_minus_L=no
8096  hardcode_shlibpath_var=unsupported
8097  inherit_rpath=no
8098  link_all_deplibs=unknown
8099  module_cmds=
8100  module_expsym_cmds=
8101  old_archive_from_new_cmds=
8102  old_archive_from_expsyms_cmds=
8103  thread_safe_flag_spec=
8104  whole_archive_flag_spec=
8105  # include_expsyms should be a list of space-separated symbols to be *always*
8106  # included in the symbol list
8107  include_expsyms=
8108  # exclude_expsyms can be an extended regexp of symbols to exclude
8109  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8110  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8111  # as well as any symbol that contains `d'.
8112  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8113  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8114  # platforms (ab)use it in PIC code, but their linkers get confused if
8115  # the symbol is explicitly referenced.  Since portable code cannot
8116  # rely on this symbol name, it's probably fine to never include it in
8117  # preloaded symbol tables.
8118  # Exclude shared library initialization/finalization symbols.
8119  extract_expsyms_cmds=
8120
8121  case $host_os in
8122  cygwin* | mingw* | pw32* | cegcc*)
8123    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8124    # When not using gcc, we currently assume that we are using
8125    # Microsoft Visual C++.
8126    if test "$GCC" != yes; then
8127      with_gnu_ld=no
8128    fi
8129    ;;
8130  interix*)
8131    # we just hope/assume this is gcc and not c89 (= MSVC++)
8132    with_gnu_ld=yes
8133    ;;
8134  openbsd*)
8135    with_gnu_ld=no
8136    ;;
8137  esac
8138
8139  ld_shlibs=yes
8140  if test "$with_gnu_ld" = yes; then
8141    # If archive_cmds runs LD, not CC, wlarc should be empty
8142    wlarc='${wl}'
8143
8144    # Set some defaults for GNU ld with shared library support. These
8145    # are reset later if shared libraries are not supported. Putting them
8146    # here allows them to be overridden if necessary.
8147    runpath_var=LD_RUN_PATH
8148    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8149    export_dynamic_flag_spec='${wl}--export-dynamic'
8150    # ancient GNU ld didn't support --whole-archive et. al.
8151    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8152      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8153    else
8154      whole_archive_flag_spec=
8155    fi
8156    supports_anon_versioning=no
8157    case `$LD -v 2>&1` in
8158      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8159      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8160      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8161      *\ 2.11.*) ;; # other 2.11 versions
8162      *) supports_anon_versioning=yes ;;
8163    esac
8164
8165    # See if GNU ld supports shared libraries.
8166    case $host_os in
8167    aix[3-9]*)
8168      # On AIX/PPC, the GNU linker is very broken
8169      if test "$host_cpu" != ia64; then
8170	ld_shlibs=no
8171	cat <<_LT_EOF 1>&2
8172
8173*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8174*** to be unable to reliably create shared libraries on AIX.
8175*** Therefore, libtool is disabling shared libraries support.  If you
8176*** really care for shared libraries, you may want to modify your PATH
8177*** so that a non-GNU linker is found, and then restart.
8178
8179_LT_EOF
8180      fi
8181      ;;
8182
8183    amigaos*)
8184      case $host_cpu in
8185      powerpc)
8186            # see comment about AmigaOS4 .so support
8187            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188            archive_expsym_cmds=''
8189        ;;
8190      m68k)
8191            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)'
8192            hardcode_libdir_flag_spec='-L$libdir'
8193            hardcode_minus_L=yes
8194        ;;
8195      esac
8196      ;;
8197
8198    beos*)
8199      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8200	allow_undefined_flag=unsupported
8201	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8202	# support --undefined.  This deserves some investigation.  FIXME
8203	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204      else
8205	ld_shlibs=no
8206      fi
8207      ;;
8208
8209    cygwin* | mingw* | pw32* | cegcc*)
8210      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8211      # as there is no search path for DLLs.
8212      hardcode_libdir_flag_spec='-L$libdir'
8213      allow_undefined_flag=unsupported
8214      always_export_symbols=no
8215      enable_shared_with_static_runtimes=yes
8216      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8217
8218      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8219        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8220	# If the export-symbols file already is a .def file (1st line
8221	# is EXPORTS), use it as is; otherwise, prepend...
8222	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8223	  cp $export_symbols $output_objdir/$soname.def;
8224	else
8225	  echo EXPORTS > $output_objdir/$soname.def;
8226	  cat $export_symbols >> $output_objdir/$soname.def;
8227	fi~
8228	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8229      else
8230	ld_shlibs=no
8231      fi
8232      ;;
8233
8234    interix[3-9]*)
8235      hardcode_direct=no
8236      hardcode_shlibpath_var=no
8237      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238      export_dynamic_flag_spec='${wl}-E'
8239      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8240      # Instead, shared libraries are loaded at an image base (0x10000000 by
8241      # default) and relocated if they conflict, which is a slow very memory
8242      # consuming and fragmenting process.  To avoid this, we pick a random,
8243      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8244      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8245      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8246      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'
8247      ;;
8248
8249    gnu* | linux* | tpf* | k*bsd*-gnu)
8250      tmp_diet=no
8251      if test "$host_os" = linux-dietlibc; then
8252	case $cc_basename in
8253	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8254	esac
8255      fi
8256      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8257	 && test "$tmp_diet" = no
8258      then
8259	tmp_addflag=
8260	tmp_sharedflag='-shared'
8261	case $cc_basename,$host_cpu in
8262        pgcc*)				# Portland Group C compiler
8263	  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'
8264	  tmp_addflag=' $pic_flag'
8265	  ;;
8266	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8267	  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'
8268	  tmp_addflag=' $pic_flag -Mnomain' ;;
8269	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8270	  tmp_addflag=' -i_dynamic' ;;
8271	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8272	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8273	ifc* | ifort*)			# Intel Fortran compiler
8274	  tmp_addflag=' -nofor_main' ;;
8275	lf95*)				# Lahey Fortran 8.1
8276	  whole_archive_flag_spec=
8277	  tmp_sharedflag='--shared' ;;
8278	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8279	  tmp_sharedflag='-qmkshrobj'
8280	  tmp_addflag= ;;
8281	esac
8282	case `$CC -V 2>&1 | sed 5q` in
8283	*Sun\ C*)			# Sun C 5.9
8284	  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'
8285	  compiler_needs_object=yes
8286	  tmp_sharedflag='-G' ;;
8287	*Sun\ F*)			# Sun Fortran 8.3
8288	  tmp_sharedflag='-G' ;;
8289	esac
8290	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291
8292        if test "x$supports_anon_versioning" = xyes; then
8293          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8294	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8295	    echo "local: *; };" >> $output_objdir/$libname.ver~
8296	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8297        fi
8298
8299	case $cc_basename in
8300	xlf*)
8301	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8302	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8303	  hardcode_libdir_flag_spec=
8304	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8305	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8306	  if test "x$supports_anon_versioning" = xyes; then
8307	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8308	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8309	      echo "local: *; };" >> $output_objdir/$libname.ver~
8310	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8311	  fi
8312	  ;;
8313	esac
8314      else
8315        ld_shlibs=no
8316      fi
8317      ;;
8318
8319    netbsd*)
8320      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8321	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8322	wlarc=
8323      else
8324	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326      fi
8327      ;;
8328
8329    solaris*)
8330      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8331	ld_shlibs=no
8332	cat <<_LT_EOF 1>&2
8333
8334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8335*** create shared libraries on Solaris systems.  Therefore, libtool
8336*** is disabling shared libraries support.  We urge you to upgrade GNU
8337*** binutils to release 2.9.1 or newer.  Another option is to modify
8338*** your PATH or compiler configuration so that the native linker is
8339*** used, and then restart.
8340
8341_LT_EOF
8342      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8343	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345      else
8346	ld_shlibs=no
8347      fi
8348      ;;
8349
8350    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8351      case `$LD -v 2>&1` in
8352        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8353	ld_shlibs=no
8354	cat <<_LT_EOF 1>&2
8355
8356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8357*** reliably create shared libraries on SCO systems.  Therefore, libtool
8358*** is disabling shared libraries support.  We urge you to upgrade GNU
8359*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8360*** your PATH or compiler configuration so that the native linker is
8361*** used, and then restart.
8362
8363_LT_EOF
8364	;;
8365	*)
8366	  # For security reasons, it is highly recommended that you always
8367	  # use absolute paths for naming shared libraries, and exclude the
8368	  # DT_RUNPATH tag from executables and libraries.  But doing so
8369	  # requires that you compile everything twice, which is a pain.
8370	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8371	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8372	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374	  else
8375	    ld_shlibs=no
8376	  fi
8377	;;
8378      esac
8379      ;;
8380
8381    sunos4*)
8382      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8383      wlarc=
8384      hardcode_direct=yes
8385      hardcode_shlibpath_var=no
8386      ;;
8387
8388    *)
8389      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8390	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8392      else
8393	ld_shlibs=no
8394      fi
8395      ;;
8396    esac
8397
8398    if test "$ld_shlibs" = no; then
8399      runpath_var=
8400      hardcode_libdir_flag_spec=
8401      export_dynamic_flag_spec=
8402      whole_archive_flag_spec=
8403    fi
8404  else
8405    # PORTME fill in a description of your system's linker (not GNU ld)
8406    case $host_os in
8407    aix3*)
8408      allow_undefined_flag=unsupported
8409      always_export_symbols=yes
8410      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'
8411      # Note: this linker hardcodes the directories in LIBPATH if there
8412      # are no directories specified by -L.
8413      hardcode_minus_L=yes
8414      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8415	# Neither direct hardcoding nor static linking is supported with a
8416	# broken collect2.
8417	hardcode_direct=unsupported
8418      fi
8419      ;;
8420
8421    aix[4-9]*)
8422      if test "$host_cpu" = ia64; then
8423	# On IA64, the linker does run time linking by default, so we don't
8424	# have to do anything special.
8425	aix_use_runtimelinking=no
8426	exp_sym_flag='-Bexport'
8427	no_entry_flag=""
8428      else
8429	# If we're using GNU nm, then we don't want the "-C" option.
8430	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8431	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8432	  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'
8433	else
8434	  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'
8435	fi
8436	aix_use_runtimelinking=no
8437
8438	# Test if we are trying to use run time linking or normal
8439	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8440	# need to do runtime linking.
8441	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8442	  for ld_flag in $LDFLAGS; do
8443	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8444	    aix_use_runtimelinking=yes
8445	    break
8446	  fi
8447	  done
8448	  ;;
8449	esac
8450
8451	exp_sym_flag='-bexport'
8452	no_entry_flag='-bnoentry'
8453      fi
8454
8455      # When large executables or shared objects are built, AIX ld can
8456      # have problems creating the table of contents.  If linking a library
8457      # or program results in "error TOC overflow" add -mminimal-toc to
8458      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8459      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8460
8461      archive_cmds=''
8462      hardcode_direct=yes
8463      hardcode_direct_absolute=yes
8464      hardcode_libdir_separator=':'
8465      link_all_deplibs=yes
8466      file_list_spec='${wl}-f,'
8467
8468      if test "$GCC" = yes; then
8469	case $host_os in aix4.[012]|aix4.[012].*)
8470	# We only want to do this on AIX 4.2 and lower, the check
8471	# below for broken collect2 doesn't work under 4.3+
8472	  collect2name=`${CC} -print-prog-name=collect2`
8473	  if test -f "$collect2name" &&
8474	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8475	  then
8476	  # We have reworked collect2
8477	  :
8478	  else
8479	  # We have old collect2
8480	  hardcode_direct=unsupported
8481	  # It fails to find uninstalled libraries when the uninstalled
8482	  # path is not listed in the libpath.  Setting hardcode_minus_L
8483	  # to unsupported forces relinking
8484	  hardcode_minus_L=yes
8485	  hardcode_libdir_flag_spec='-L$libdir'
8486	  hardcode_libdir_separator=
8487	  fi
8488	  ;;
8489	esac
8490	shared_flag='-shared'
8491	if test "$aix_use_runtimelinking" = yes; then
8492	  shared_flag="$shared_flag "'${wl}-G'
8493	fi
8494      else
8495	# not using gcc
8496	if test "$host_cpu" = ia64; then
8497	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8498	# chokes on -Wl,-G. The following line is correct:
8499	  shared_flag='-G'
8500	else
8501	  if test "$aix_use_runtimelinking" = yes; then
8502	    shared_flag='${wl}-G'
8503	  else
8504	    shared_flag='${wl}-bM:SRE'
8505	  fi
8506	fi
8507      fi
8508
8509      export_dynamic_flag_spec='${wl}-bexpall'
8510      # It seems that -bexpall does not export symbols beginning with
8511      # underscore (_), so it is better to generate a list of symbols to export.
8512      always_export_symbols=yes
8513      if test "$aix_use_runtimelinking" = yes; then
8514	# Warning - without using the other runtime loading flags (-brtl),
8515	# -berok will link without error, but may produce a broken library.
8516	allow_undefined_flag='-berok'
8517        # Determine the default libpath from the value encoded in an
8518        # empty executable.
8519        cat >conftest.$ac_ext <<_ACEOF
8520/* confdefs.h.  */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h.  */
8525
8526int
8527main ()
8528{
8529
8530  ;
8531  return 0;
8532}
8533_ACEOF
8534rm -f conftest.$ac_objext conftest$ac_exeext
8535if { (ac_try="$ac_link"
8536case "(($ac_try" in
8537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538  *) ac_try_echo=$ac_try;;
8539esac
8540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8541$as_echo "$ac_try_echo") >&5
8542  (eval "$ac_link") 2>conftest.er1
8543  ac_status=$?
8544  grep -v '^ *+' conftest.er1 >conftest.err
8545  rm -f conftest.er1
8546  cat conftest.err >&5
8547  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548  (exit $ac_status); } && {
8549	 test -z "$ac_c_werror_flag" ||
8550	 test ! -s conftest.err
8551       } && test -s conftest$ac_exeext && {
8552	 test "$cross_compiling" = yes ||
8553	 $as_test_x conftest$ac_exeext
8554       }; then
8555
8556lt_aix_libpath_sed='
8557    /Import File Strings/,/^$/ {
8558	/^0/ {
8559	    s/^0  *\(.*\)$/\1/
8560	    p
8561	}
8562    }'
8563aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564# Check for a 64-bit object if we didn't find anything.
8565if test -z "$aix_libpath"; then
8566  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8567fi
8568else
8569  $as_echo "$as_me: failed program was:" >&5
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572
8573fi
8574
8575rm -rf conftest.dSYM
8576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8577      conftest$ac_exeext conftest.$ac_ext
8578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8579
8580        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8581        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"
8582      else
8583	if test "$host_cpu" = ia64; then
8584	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8585	  allow_undefined_flag="-z nodefs"
8586	  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"
8587	else
8588	 # Determine the default libpath from the value encoded in an
8589	 # empty executable.
8590	 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h.  */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h.  */
8596
8597int
8598main ()
8599{
8600
8601  ;
8602  return 0;
8603}
8604_ACEOF
8605rm -f conftest.$ac_objext conftest$ac_exeext
8606if { (ac_try="$ac_link"
8607case "(($ac_try" in
8608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609  *) ac_try_echo=$ac_try;;
8610esac
8611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8612$as_echo "$ac_try_echo") >&5
8613  (eval "$ac_link") 2>conftest.er1
8614  ac_status=$?
8615  grep -v '^ *+' conftest.er1 >conftest.err
8616  rm -f conftest.er1
8617  cat conftest.err >&5
8618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619  (exit $ac_status); } && {
8620	 test -z "$ac_c_werror_flag" ||
8621	 test ! -s conftest.err
8622       } && test -s conftest$ac_exeext && {
8623	 test "$cross_compiling" = yes ||
8624	 $as_test_x conftest$ac_exeext
8625       }; then
8626
8627lt_aix_libpath_sed='
8628    /Import File Strings/,/^$/ {
8629	/^0/ {
8630	    s/^0  *\(.*\)$/\1/
8631	    p
8632	}
8633    }'
8634aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8635# Check for a 64-bit object if we didn't find anything.
8636if test -z "$aix_libpath"; then
8637  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8638fi
8639else
8640  $as_echo "$as_me: failed program was:" >&5
8641sed 's/^/| /' conftest.$ac_ext >&5
8642
8643
8644fi
8645
8646rm -rf conftest.dSYM
8647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8648      conftest$ac_exeext conftest.$ac_ext
8649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8650
8651	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8652	  # Warning - without using the other run time loading flags,
8653	  # -berok will link without error, but may produce a broken library.
8654	  no_undefined_flag=' ${wl}-bernotok'
8655	  allow_undefined_flag=' ${wl}-berok'
8656	  # Exported symbols can be pulled into shared objects from archives
8657	  whole_archive_flag_spec='$convenience'
8658	  archive_cmds_need_lc=yes
8659	  # This is similar to how AIX traditionally builds its shared libraries.
8660	  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'
8661	fi
8662      fi
8663      ;;
8664
8665    amigaos*)
8666      case $host_cpu in
8667      powerpc)
8668            # see comment about AmigaOS4 .so support
8669            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670            archive_expsym_cmds=''
8671        ;;
8672      m68k)
8673            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)'
8674            hardcode_libdir_flag_spec='-L$libdir'
8675            hardcode_minus_L=yes
8676        ;;
8677      esac
8678      ;;
8679
8680    bsdi[45]*)
8681      export_dynamic_flag_spec=-rdynamic
8682      ;;
8683
8684    cygwin* | mingw* | pw32* | cegcc*)
8685      # When not using gcc, we currently assume that we are using
8686      # Microsoft Visual C++.
8687      # hardcode_libdir_flag_spec is actually meaningless, as there is
8688      # no search path for DLLs.
8689      hardcode_libdir_flag_spec=' '
8690      allow_undefined_flag=unsupported
8691      # Tell ltmain to make .lib files, not .a files.
8692      libext=lib
8693      # Tell ltmain to make .dll files, not .so files.
8694      shrext_cmds=".dll"
8695      # FIXME: Setting linknames here is a bad hack.
8696      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8697      # The linker will automatically build a .lib file if we build a DLL.
8698      old_archive_from_new_cmds='true'
8699      # FIXME: Should let the user specify the lib program.
8700      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8701      fix_srcfile_path='`cygpath -w "$srcfile"`'
8702      enable_shared_with_static_runtimes=yes
8703      ;;
8704
8705    darwin* | rhapsody*)
8706
8707
8708  archive_cmds_need_lc=no
8709  hardcode_direct=no
8710  hardcode_automatic=yes
8711  hardcode_shlibpath_var=unsupported
8712  whole_archive_flag_spec=''
8713  link_all_deplibs=yes
8714  allow_undefined_flag="$_lt_dar_allow_undefined"
8715  case $cc_basename in
8716     ifort*) _lt_dar_can_shared=yes ;;
8717     *) _lt_dar_can_shared=$GCC ;;
8718  esac
8719  if test "$_lt_dar_can_shared" = "yes"; then
8720    output_verbose_link_cmd=echo
8721    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8722    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8723    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}"
8724    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}"
8725
8726  else
8727  ld_shlibs=no
8728  fi
8729
8730      ;;
8731
8732    dgux*)
8733      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734      hardcode_libdir_flag_spec='-L$libdir'
8735      hardcode_shlibpath_var=no
8736      ;;
8737
8738    freebsd1*)
8739      ld_shlibs=no
8740      ;;
8741
8742    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8743    # support.  Future versions do this automatically, but an explicit c++rt0.o
8744    # does not break anything, and helps significantly (at the cost of a little
8745    # extra space).
8746    freebsd2.2*)
8747      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8748      hardcode_libdir_flag_spec='-R$libdir'
8749      hardcode_direct=yes
8750      hardcode_shlibpath_var=no
8751      ;;
8752
8753    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8754    freebsd2*)
8755      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756      hardcode_direct=yes
8757      hardcode_minus_L=yes
8758      hardcode_shlibpath_var=no
8759      ;;
8760
8761    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8762    freebsd* | dragonfly*)
8763      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8764      hardcode_libdir_flag_spec='-R$libdir'
8765      hardcode_direct=yes
8766      hardcode_shlibpath_var=no
8767      ;;
8768
8769    hpux9*)
8770      if test "$GCC" = yes; then
8771	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'
8772      else
8773	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'
8774      fi
8775      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8776      hardcode_libdir_separator=:
8777      hardcode_direct=yes
8778
8779      # hardcode_minus_L: Not really in the search PATH,
8780      # but as the default location of the library.
8781      hardcode_minus_L=yes
8782      export_dynamic_flag_spec='${wl}-E'
8783      ;;
8784
8785    hpux10*)
8786      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8787	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8788      else
8789	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8790      fi
8791      if test "$with_gnu_ld" = no; then
8792	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8793	hardcode_libdir_flag_spec_ld='+b $libdir'
8794	hardcode_libdir_separator=:
8795	hardcode_direct=yes
8796	hardcode_direct_absolute=yes
8797	export_dynamic_flag_spec='${wl}-E'
8798	# hardcode_minus_L: Not really in the search PATH,
8799	# but as the default location of the library.
8800	hardcode_minus_L=yes
8801      fi
8802      ;;
8803
8804    hpux11*)
8805      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8806	case $host_cpu in
8807	hppa*64*)
8808	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8809	  ;;
8810	ia64*)
8811	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8812	  ;;
8813	*)
8814	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8815	  ;;
8816	esac
8817      else
8818	case $host_cpu in
8819	hppa*64*)
8820	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8821	  ;;
8822	ia64*)
8823	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8824	  ;;
8825	*)
8826	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827	  ;;
8828	esac
8829      fi
8830      if test "$with_gnu_ld" = no; then
8831	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832	hardcode_libdir_separator=:
8833
8834	case $host_cpu in
8835	hppa*64*|ia64*)
8836	  hardcode_direct=no
8837	  hardcode_shlibpath_var=no
8838	  ;;
8839	*)
8840	  hardcode_direct=yes
8841	  hardcode_direct_absolute=yes
8842	  export_dynamic_flag_spec='${wl}-E'
8843
8844	  # hardcode_minus_L: Not really in the search PATH,
8845	  # but as the default location of the library.
8846	  hardcode_minus_L=yes
8847	  ;;
8848	esac
8849      fi
8850      ;;
8851
8852    irix5* | irix6* | nonstopux*)
8853      if test "$GCC" = yes; then
8854	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'
8855	# Try to use the -exported_symbol ld option, if it does not
8856	# work, assume that -exports_file does not work either and
8857	# implicitly export all symbols.
8858        save_LDFLAGS="$LDFLAGS"
8859        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8860        cat >conftest.$ac_ext <<_ACEOF
8861int foo(void) {}
8862_ACEOF
8863rm -f conftest.$ac_objext conftest$ac_exeext
8864if { (ac_try="$ac_link"
8865case "(($ac_try" in
8866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867  *) ac_try_echo=$ac_try;;
8868esac
8869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8870$as_echo "$ac_try_echo") >&5
8871  (eval "$ac_link") 2>conftest.er1
8872  ac_status=$?
8873  grep -v '^ *+' conftest.er1 >conftest.err
8874  rm -f conftest.er1
8875  cat conftest.err >&5
8876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877  (exit $ac_status); } && {
8878	 test -z "$ac_c_werror_flag" ||
8879	 test ! -s conftest.err
8880       } && test -s conftest$ac_exeext && {
8881	 test "$cross_compiling" = yes ||
8882	 $as_test_x conftest$ac_exeext
8883       }; then
8884  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'
8885
8886else
8887  $as_echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
8889
8890
8891fi
8892
8893rm -rf conftest.dSYM
8894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8895      conftest$ac_exeext conftest.$ac_ext
8896        LDFLAGS="$save_LDFLAGS"
8897      else
8898	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'
8899	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'
8900      fi
8901      archive_cmds_need_lc='no'
8902      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8903      hardcode_libdir_separator=:
8904      inherit_rpath=yes
8905      link_all_deplibs=yes
8906      ;;
8907
8908    netbsd*)
8909      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8910	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8911      else
8912	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8913      fi
8914      hardcode_libdir_flag_spec='-R$libdir'
8915      hardcode_direct=yes
8916      hardcode_shlibpath_var=no
8917      ;;
8918
8919    newsos6)
8920      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921      hardcode_direct=yes
8922      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923      hardcode_libdir_separator=:
8924      hardcode_shlibpath_var=no
8925      ;;
8926
8927    *nto* | *qnx*)
8928      ;;
8929
8930    openbsd*)
8931      if test -f /usr/libexec/ld.so; then
8932	hardcode_direct=yes
8933	hardcode_shlibpath_var=no
8934	hardcode_direct_absolute=yes
8935	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8936	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8937	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8938	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939	  export_dynamic_flag_spec='${wl}-E'
8940	else
8941	  case $host_os in
8942	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8943	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8944	     hardcode_libdir_flag_spec='-R$libdir'
8945	     ;;
8946	   *)
8947	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8948	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8949	     ;;
8950	  esac
8951	fi
8952      else
8953	ld_shlibs=no
8954      fi
8955      ;;
8956
8957    os2*)
8958      hardcode_libdir_flag_spec='-L$libdir'
8959      hardcode_minus_L=yes
8960      allow_undefined_flag=unsupported
8961      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'
8962      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8963      ;;
8964
8965    osf3*)
8966      if test "$GCC" = yes; then
8967	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8968	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'
8969      else
8970	allow_undefined_flag=' -expect_unresolved \*'
8971	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'
8972      fi
8973      archive_cmds_need_lc='no'
8974      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975      hardcode_libdir_separator=:
8976      ;;
8977
8978    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8979      if test "$GCC" = yes; then
8980	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8981	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'
8982	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983      else
8984	allow_undefined_flag=' -expect_unresolved \*'
8985	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'
8986	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~
8987	$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'
8988
8989	# Both c and cxx compiler support -rpath directly
8990	hardcode_libdir_flag_spec='-rpath $libdir'
8991      fi
8992      archive_cmds_need_lc='no'
8993      hardcode_libdir_separator=:
8994      ;;
8995
8996    solaris*)
8997      no_undefined_flag=' -z defs'
8998      if test "$GCC" = yes; then
8999	wlarc='${wl}'
9000	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9002	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9003      else
9004	case `$CC -V 2>&1` in
9005	*"Compilers 5.0"*)
9006	  wlarc=''
9007	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9009	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9010	  ;;
9011	*)
9012	  wlarc='${wl}'
9013	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9014	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9015	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9016	  ;;
9017	esac
9018      fi
9019      hardcode_libdir_flag_spec='-R$libdir'
9020      hardcode_shlibpath_var=no
9021      case $host_os in
9022      solaris2.[0-5] | solaris2.[0-5].*) ;;
9023      *)
9024	# The compiler driver will combine and reorder linker options,
9025	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9026	# but is careful enough not to reorder.
9027	# Supported since Solaris 2.6 (maybe 2.5.1?)
9028	if test "$GCC" = yes; then
9029	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9030	else
9031	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9032	fi
9033	;;
9034      esac
9035      link_all_deplibs=yes
9036      ;;
9037
9038    sunos4*)
9039      if test "x$host_vendor" = xsequent; then
9040	# Use $CC to link under sequent, because it throws in some extra .o
9041	# files that make .init and .fini sections work.
9042	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9043      else
9044	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9045      fi
9046      hardcode_libdir_flag_spec='-L$libdir'
9047      hardcode_direct=yes
9048      hardcode_minus_L=yes
9049      hardcode_shlibpath_var=no
9050      ;;
9051
9052    sysv4)
9053      case $host_vendor in
9054	sni)
9055	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9056	  hardcode_direct=yes # is this really true???
9057	;;
9058	siemens)
9059	  ## LD is ld it makes a PLAMLIB
9060	  ## CC just makes a GrossModule.
9061	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9062	  reload_cmds='$CC -r -o $output$reload_objs'
9063	  hardcode_direct=no
9064        ;;
9065	motorola)
9066	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9068	;;
9069      esac
9070      runpath_var='LD_RUN_PATH'
9071      hardcode_shlibpath_var=no
9072      ;;
9073
9074    sysv4.3*)
9075      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076      hardcode_shlibpath_var=no
9077      export_dynamic_flag_spec='-Bexport'
9078      ;;
9079
9080    sysv4*MP*)
9081      if test -d /usr/nec; then
9082	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083	hardcode_shlibpath_var=no
9084	runpath_var=LD_RUN_PATH
9085	hardcode_runpath_var=yes
9086	ld_shlibs=yes
9087      fi
9088      ;;
9089
9090    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9091      no_undefined_flag='${wl}-z,text'
9092      archive_cmds_need_lc=no
9093      hardcode_shlibpath_var=no
9094      runpath_var='LD_RUN_PATH'
9095
9096      if test "$GCC" = yes; then
9097	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099      else
9100	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9102      fi
9103      ;;
9104
9105    sysv5* | sco3.2v5* | sco5v6*)
9106      # Note: We can NOT use -z defs as we might desire, because we do not
9107      # link with -lc, and that would cause any symbols used from libc to
9108      # always be unresolved, which means just about no library would
9109      # ever link correctly.  If we're not using GNU ld we use -z text
9110      # though, which does catch some bad symbols but isn't as heavy-handed
9111      # as -z defs.
9112      no_undefined_flag='${wl}-z,text'
9113      allow_undefined_flag='${wl}-z,nodefs'
9114      archive_cmds_need_lc=no
9115      hardcode_shlibpath_var=no
9116      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9117      hardcode_libdir_separator=':'
9118      link_all_deplibs=yes
9119      export_dynamic_flag_spec='${wl}-Bexport'
9120      runpath_var='LD_RUN_PATH'
9121
9122      if test "$GCC" = yes; then
9123	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9125      else
9126	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9128      fi
9129      ;;
9130
9131    uts4*)
9132      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133      hardcode_libdir_flag_spec='-L$libdir'
9134      hardcode_shlibpath_var=no
9135      ;;
9136
9137    *)
9138      ld_shlibs=no
9139      ;;
9140    esac
9141
9142    if test x$host_vendor = xsni; then
9143      case $host in
9144      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9145	export_dynamic_flag_spec='${wl}-Blargedynsym'
9146	;;
9147      esac
9148    fi
9149  fi
9150
9151{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9152$as_echo "$ld_shlibs" >&6; }
9153test "$ld_shlibs" = no && can_build_shared=no
9154
9155with_gnu_ld=$with_gnu_ld
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171#
9172# Do we need to explicitly link libc?
9173#
9174case "x$archive_cmds_need_lc" in
9175x|xyes)
9176  # Assume -lc should be added
9177  archive_cmds_need_lc=yes
9178
9179  if test "$enable_shared" = yes && test "$GCC" = yes; then
9180    case $archive_cmds in
9181    *'~'*)
9182      # FIXME: we may have to deal with multi-command sequences.
9183      ;;
9184    '$CC '*)
9185      # Test whether the compiler implicitly links with -lc since on some
9186      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9187      # to ld, don't add -lc before -lgcc.
9188      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9189$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9190      $RM conftest*
9191      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9192
9193      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194  (eval $ac_compile) 2>&5
9195  ac_status=$?
9196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197  (exit $ac_status); } 2>conftest.err; then
9198        soname=conftest
9199        lib=conftest
9200        libobjs=conftest.$ac_objext
9201        deplibs=
9202        wl=$lt_prog_compiler_wl
9203	pic_flag=$lt_prog_compiler_pic
9204        compiler_flags=-v
9205        linker_flags=-v
9206        verstring=
9207        output_objdir=.
9208        libname=conftest
9209        lt_save_allow_undefined_flag=$allow_undefined_flag
9210        allow_undefined_flag=
9211        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9212  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9213  ac_status=$?
9214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215  (exit $ac_status); }
9216        then
9217	  archive_cmds_need_lc=no
9218        else
9219	  archive_cmds_need_lc=yes
9220        fi
9221        allow_undefined_flag=$lt_save_allow_undefined_flag
9222      else
9223        cat conftest.err 1>&5
9224      fi
9225      $RM conftest*
9226      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9227$as_echo "$archive_cmds_need_lc" >&6; }
9228      ;;
9229    esac
9230  fi
9231  ;;
9232esac
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9391$as_echo_n "checking dynamic linker characteristics... " >&6; }
9392
9393if test "$GCC" = yes; then
9394  case $host_os in
9395    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9396    *) lt_awk_arg="/^libraries:/" ;;
9397  esac
9398  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9399  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9400    # if the path contains ";" then we assume it to be the separator
9401    # otherwise default to the standard path separator (i.e. ":") - it is
9402    # assumed that no part of a normal pathname contains ";" but that should
9403    # okay in the real world where ";" in dirpaths is itself problematic.
9404    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9405  else
9406    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9407  fi
9408  # Ok, now we have the path, separated by spaces, we can step through it
9409  # and add multilib dir if necessary.
9410  lt_tmp_lt_search_path_spec=
9411  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9412  for lt_sys_path in $lt_search_path_spec; do
9413    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9414      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9415    else
9416      test -d "$lt_sys_path" && \
9417	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9418    fi
9419  done
9420  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9421BEGIN {RS=" "; FS="/|\n";} {
9422  lt_foo="";
9423  lt_count=0;
9424  for (lt_i = NF; lt_i > 0; lt_i--) {
9425    if ($lt_i != "" && $lt_i != ".") {
9426      if ($lt_i == "..") {
9427        lt_count++;
9428      } else {
9429        if (lt_count == 0) {
9430          lt_foo="/" $lt_i lt_foo;
9431        } else {
9432          lt_count--;
9433        }
9434      }
9435    }
9436  }
9437  if (lt_foo != "") { lt_freq[lt_foo]++; }
9438  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9439}'`
9440  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9441else
9442  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9443fi
9444library_names_spec=
9445libname_spec='lib$name'
9446soname_spec=
9447shrext_cmds=".so"
9448postinstall_cmds=
9449postuninstall_cmds=
9450finish_cmds=
9451finish_eval=
9452shlibpath_var=
9453shlibpath_overrides_runpath=unknown
9454version_type=none
9455dynamic_linker="$host_os ld.so"
9456sys_lib_dlsearch_path_spec="/lib /usr/lib"
9457need_lib_prefix=unknown
9458hardcode_into_libs=no
9459
9460# when you set need_version to no, make sure it does not cause -set_version
9461# flags to be left without arguments
9462need_version=unknown
9463
9464case $host_os in
9465aix3*)
9466  version_type=linux
9467  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9468  shlibpath_var=LIBPATH
9469
9470  # AIX 3 has no versioning support, so we append a major version to the name.
9471  soname_spec='${libname}${release}${shared_ext}$major'
9472  ;;
9473
9474aix[4-9]*)
9475  version_type=linux
9476  need_lib_prefix=no
9477  need_version=no
9478  hardcode_into_libs=yes
9479  if test "$host_cpu" = ia64; then
9480    # AIX 5 supports IA64
9481    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9482    shlibpath_var=LD_LIBRARY_PATH
9483  else
9484    # With GCC up to 2.95.x, collect2 would create an import file
9485    # for dependence libraries.  The import file would start with
9486    # the line `#! .'.  This would cause the generated library to
9487    # depend on `.', always an invalid library.  This was fixed in
9488    # development snapshots of GCC prior to 3.0.
9489    case $host_os in
9490      aix4 | aix4.[01] | aix4.[01].*)
9491      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9492	   echo ' yes '
9493	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9494	:
9495      else
9496	can_build_shared=no
9497      fi
9498      ;;
9499    esac
9500    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9501    # soname into executable. Probably we can add versioning support to
9502    # collect2, so additional links can be useful in future.
9503    if test "$aix_use_runtimelinking" = yes; then
9504      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9505      # instead of lib<name>.a to let people know that these are not
9506      # typical AIX shared libraries.
9507      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508    else
9509      # We preserve .a as extension for shared libraries through AIX4.2
9510      # and later when we are not doing run time linking.
9511      library_names_spec='${libname}${release}.a $libname.a'
9512      soname_spec='${libname}${release}${shared_ext}$major'
9513    fi
9514    shlibpath_var=LIBPATH
9515  fi
9516  ;;
9517
9518amigaos*)
9519  case $host_cpu in
9520  powerpc)
9521    # Since July 2007 AmigaOS4 officially supports .so libraries.
9522    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524    ;;
9525  m68k)
9526    library_names_spec='$libname.ixlibrary $libname.a'
9527    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9528    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'
9529    ;;
9530  esac
9531  ;;
9532
9533beos*)
9534  library_names_spec='${libname}${shared_ext}'
9535  dynamic_linker="$host_os ld.so"
9536  shlibpath_var=LIBRARY_PATH
9537  ;;
9538
9539bsdi[45]*)
9540  version_type=linux
9541  need_version=no
9542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543  soname_spec='${libname}${release}${shared_ext}$major'
9544  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9545  shlibpath_var=LD_LIBRARY_PATH
9546  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9547  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9548  # the default ld.so.conf also contains /usr/contrib/lib and
9549  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9550  # libtool to hard-code these into programs
9551  ;;
9552
9553cygwin* | mingw* | pw32* | cegcc*)
9554  version_type=windows
9555  shrext_cmds=".dll"
9556  need_version=no
9557  need_lib_prefix=no
9558
9559  case $GCC,$host_os in
9560  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9561    library_names_spec='$libname.dll.a'
9562    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9563    postinstall_cmds='base_file=`basename \${file}`~
9564      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9565      dldir=$destdir/`dirname \$dlpath`~
9566      test -d \$dldir || mkdir -p \$dldir~
9567      $install_prog $dir/$dlname \$dldir/$dlname~
9568      chmod a+x \$dldir/$dlname~
9569      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9570        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9571      fi'
9572    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9573      dlpath=$dir/\$dldll~
9574       $RM \$dlpath'
9575    shlibpath_overrides_runpath=yes
9576
9577    case $host_os in
9578    cygwin*)
9579      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9580      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9581      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9582      ;;
9583    mingw* | cegcc*)
9584      # MinGW DLLs use traditional 'lib' prefix
9585      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9586      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9587      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9588        # It is most probably a Windows format PATH printed by
9589        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9590        # path with ; separators, and with drive letters. We can handle the
9591        # drive letters (cygwin fileutils understands them), so leave them,
9592        # especially as we might pass files found there to a mingw objdump,
9593        # which wouldn't understand a cygwinified path. Ahh.
9594        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9595      else
9596        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9597      fi
9598      ;;
9599    pw32*)
9600      # pw32 DLLs use 'pw' prefix rather than 'lib'
9601      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9602      ;;
9603    esac
9604    ;;
9605
9606  *)
9607    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9608    ;;
9609  esac
9610  dynamic_linker='Win32 ld.exe'
9611  # FIXME: first we should search . and the directory the executable is in
9612  shlibpath_var=PATH
9613  ;;
9614
9615darwin* | rhapsody*)
9616  dynamic_linker="$host_os dyld"
9617  version_type=darwin
9618  need_lib_prefix=no
9619  need_version=no
9620  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9621  soname_spec='${libname}${release}${major}$shared_ext'
9622  shlibpath_overrides_runpath=yes
9623  shlibpath_var=DYLD_LIBRARY_PATH
9624  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9625
9626  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9627  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9628  ;;
9629
9630dgux*)
9631  version_type=linux
9632  need_lib_prefix=no
9633  need_version=no
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9635  soname_spec='${libname}${release}${shared_ext}$major'
9636  shlibpath_var=LD_LIBRARY_PATH
9637  ;;
9638
9639freebsd1*)
9640  dynamic_linker=no
9641  ;;
9642
9643freebsd* | dragonfly*)
9644  # DragonFly does not have aout.  When/if they implement a new
9645  # versioning mechanism, adjust this.
9646  if test -x /usr/bin/objformat; then
9647    objformat=`/usr/bin/objformat`
9648  else
9649    case $host_os in
9650    freebsd[123]*) objformat=aout ;;
9651    *) objformat=elf ;;
9652    esac
9653  fi
9654  version_type=freebsd-$objformat
9655  case $version_type in
9656    freebsd-elf*)
9657      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9658      need_version=no
9659      need_lib_prefix=no
9660      ;;
9661    freebsd-*)
9662      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9663      need_version=yes
9664      ;;
9665  esac
9666  shlibpath_var=LD_LIBRARY_PATH
9667  case $host_os in
9668  freebsd2*)
9669    shlibpath_overrides_runpath=yes
9670    ;;
9671  freebsd3.[01]* | freebsdelf3.[01]*)
9672    shlibpath_overrides_runpath=yes
9673    hardcode_into_libs=yes
9674    ;;
9675  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9676  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9677    shlibpath_overrides_runpath=no
9678    hardcode_into_libs=yes
9679    ;;
9680  *) # from 4.6 on, and DragonFly
9681    shlibpath_overrides_runpath=yes
9682    hardcode_into_libs=yes
9683    ;;
9684  esac
9685  ;;
9686
9687gnu*)
9688  version_type=linux
9689  need_lib_prefix=no
9690  need_version=no
9691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9692  soname_spec='${libname}${release}${shared_ext}$major'
9693  shlibpath_var=LD_LIBRARY_PATH
9694  hardcode_into_libs=yes
9695  ;;
9696
9697hpux9* | hpux10* | hpux11*)
9698  # Give a soname corresponding to the major version so that dld.sl refuses to
9699  # link against other versions.
9700  version_type=sunos
9701  need_lib_prefix=no
9702  need_version=no
9703  case $host_cpu in
9704  ia64*)
9705    shrext_cmds='.so'
9706    hardcode_into_libs=yes
9707    dynamic_linker="$host_os dld.so"
9708    shlibpath_var=LD_LIBRARY_PATH
9709    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9710    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711    soname_spec='${libname}${release}${shared_ext}$major'
9712    if test "X$HPUX_IA64_MODE" = X32; then
9713      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9714    else
9715      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9716    fi
9717    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9718    ;;
9719  hppa*64*)
9720    shrext_cmds='.sl'
9721    hardcode_into_libs=yes
9722    dynamic_linker="$host_os dld.sl"
9723    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9724    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9725    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726    soname_spec='${libname}${release}${shared_ext}$major'
9727    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9728    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9729    ;;
9730  *)
9731    shrext_cmds='.sl'
9732    dynamic_linker="$host_os dld.sl"
9733    shlibpath_var=SHLIB_PATH
9734    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9735    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736    soname_spec='${libname}${release}${shared_ext}$major'
9737    ;;
9738  esac
9739  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9740  postinstall_cmds='chmod 555 $lib'
9741  ;;
9742
9743interix[3-9]*)
9744  version_type=linux
9745  need_lib_prefix=no
9746  need_version=no
9747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9748  soname_spec='${libname}${release}${shared_ext}$major'
9749  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  shlibpath_overrides_runpath=no
9752  hardcode_into_libs=yes
9753  ;;
9754
9755irix5* | irix6* | nonstopux*)
9756  case $host_os in
9757    nonstopux*) version_type=nonstopux ;;
9758    *)
9759	if test "$lt_cv_prog_gnu_ld" = yes; then
9760		version_type=linux
9761	else
9762		version_type=irix
9763	fi ;;
9764  esac
9765  need_lib_prefix=no
9766  need_version=no
9767  soname_spec='${libname}${release}${shared_ext}$major'
9768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9769  case $host_os in
9770  irix5* | nonstopux*)
9771    libsuff= shlibsuff=
9772    ;;
9773  *)
9774    case $LD in # libtool.m4 will add one of these switches to LD
9775    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9776      libsuff= shlibsuff= libmagic=32-bit;;
9777    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9778      libsuff=32 shlibsuff=N32 libmagic=N32;;
9779    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9780      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9781    *) libsuff= shlibsuff= libmagic=never-match;;
9782    esac
9783    ;;
9784  esac
9785  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9786  shlibpath_overrides_runpath=no
9787  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9788  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9789  hardcode_into_libs=yes
9790  ;;
9791
9792# No shared lib support for Linux oldld, aout, or coff.
9793linux*oldld* | linux*aout* | linux*coff*)
9794  dynamic_linker=no
9795  ;;
9796
9797# This must be Linux ELF.
9798linux* | k*bsd*-gnu)
9799  version_type=linux
9800  need_lib_prefix=no
9801  need_version=no
9802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803  soname_spec='${libname}${release}${shared_ext}$major'
9804  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9805  shlibpath_var=LD_LIBRARY_PATH
9806  shlibpath_overrides_runpath=no
9807  # Some binutils ld are patched to set DT_RUNPATH
9808  save_LDFLAGS=$LDFLAGS
9809  save_libdir=$libdir
9810  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9811       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9812  cat >conftest.$ac_ext <<_ACEOF
9813/* confdefs.h.  */
9814_ACEOF
9815cat confdefs.h >>conftest.$ac_ext
9816cat >>conftest.$ac_ext <<_ACEOF
9817/* end confdefs.h.  */
9818
9819int
9820main ()
9821{
9822
9823  ;
9824  return 0;
9825}
9826_ACEOF
9827rm -f conftest.$ac_objext conftest$ac_exeext
9828if { (ac_try="$ac_link"
9829case "(($ac_try" in
9830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831  *) ac_try_echo=$ac_try;;
9832esac
9833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9834$as_echo "$ac_try_echo") >&5
9835  (eval "$ac_link") 2>conftest.er1
9836  ac_status=$?
9837  grep -v '^ *+' conftest.er1 >conftest.err
9838  rm -f conftest.er1
9839  cat conftest.err >&5
9840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841  (exit $ac_status); } && {
9842	 test -z "$ac_c_werror_flag" ||
9843	 test ! -s conftest.err
9844       } && test -s conftest$ac_exeext && {
9845	 test "$cross_compiling" = yes ||
9846	 $as_test_x conftest$ac_exeext
9847       }; then
9848  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9849  shlibpath_overrides_runpath=yes
9850fi
9851
9852else
9853  $as_echo "$as_me: failed program was:" >&5
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
9856
9857fi
9858
9859rm -rf conftest.dSYM
9860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861      conftest$ac_exeext conftest.$ac_ext
9862  LDFLAGS=$save_LDFLAGS
9863  libdir=$save_libdir
9864
9865  # This implies no fast_install, which is unacceptable.
9866  # Some rework will be needed to allow for fast_install
9867  # before this can be enabled.
9868  hardcode_into_libs=yes
9869
9870  # Add ABI-specific directories to the system library path.
9871  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9872
9873  # Append ld.so.conf contents to the search path
9874  if test -f /etc/ld.so.conf; then
9875    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' ' '`
9876    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9877  fi
9878
9879  # We used to test for /lib/ld.so.1 and disable shared libraries on
9880  # powerpc, because MkLinux only supported shared libraries with the
9881  # GNU dynamic linker.  Since this was broken with cross compilers,
9882  # most powerpc-linux boxes support dynamic linking these days and
9883  # people can always --disable-shared, the test was removed, and we
9884  # assume the GNU/Linux dynamic linker is in use.
9885  dynamic_linker='GNU/Linux ld.so'
9886  ;;
9887
9888netbsd*)
9889  version_type=sunos
9890  need_lib_prefix=no
9891  need_version=no
9892  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9893    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9894    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9895    dynamic_linker='NetBSD (a.out) ld.so'
9896  else
9897    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9898    soname_spec='${libname}${release}${shared_ext}$major'
9899    dynamic_linker='NetBSD ld.elf_so'
9900  fi
9901  shlibpath_var=LD_LIBRARY_PATH
9902  shlibpath_overrides_runpath=yes
9903  hardcode_into_libs=yes
9904  ;;
9905
9906newsos6)
9907  version_type=linux
9908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909  shlibpath_var=LD_LIBRARY_PATH
9910  shlibpath_overrides_runpath=yes
9911  ;;
9912
9913*nto* | *qnx*)
9914  version_type=qnx
9915  need_lib_prefix=no
9916  need_version=no
9917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918  soname_spec='${libname}${release}${shared_ext}$major'
9919  shlibpath_var=LD_LIBRARY_PATH
9920  shlibpath_overrides_runpath=no
9921  hardcode_into_libs=yes
9922  dynamic_linker='ldqnx.so'
9923  ;;
9924
9925openbsd*)
9926  version_type=sunos
9927  sys_lib_dlsearch_path_spec="/usr/lib"
9928  need_lib_prefix=no
9929  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9930  case $host_os in
9931    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9932    *)				need_version=no  ;;
9933  esac
9934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9935  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9936  shlibpath_var=LD_LIBRARY_PATH
9937  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9938    case $host_os in
9939      openbsd2.[89] | openbsd2.[89].*)
9940	shlibpath_overrides_runpath=no
9941	;;
9942      *)
9943	shlibpath_overrides_runpath=yes
9944	;;
9945      esac
9946  else
9947    shlibpath_overrides_runpath=yes
9948  fi
9949  ;;
9950
9951os2*)
9952  libname_spec='$name'
9953  shrext_cmds=".dll"
9954  need_lib_prefix=no
9955  library_names_spec='$libname${shared_ext} $libname.a'
9956  dynamic_linker='OS/2 ld.exe'
9957  shlibpath_var=LIBPATH
9958  ;;
9959
9960osf3* | osf4* | osf5*)
9961  version_type=osf
9962  need_lib_prefix=no
9963  need_version=no
9964  soname_spec='${libname}${release}${shared_ext}$major'
9965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966  shlibpath_var=LD_LIBRARY_PATH
9967  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9968  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9969  ;;
9970
9971rdos*)
9972  dynamic_linker=no
9973  ;;
9974
9975solaris*)
9976  version_type=linux
9977  need_lib_prefix=no
9978  need_version=no
9979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980  soname_spec='${libname}${release}${shared_ext}$major'
9981  shlibpath_var=LD_LIBRARY_PATH
9982  shlibpath_overrides_runpath=yes
9983  hardcode_into_libs=yes
9984  # ldd complains unless libraries are executable
9985  postinstall_cmds='chmod +x $lib'
9986  ;;
9987
9988sunos4*)
9989  version_type=sunos
9990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9991  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9992  shlibpath_var=LD_LIBRARY_PATH
9993  shlibpath_overrides_runpath=yes
9994  if test "$with_gnu_ld" = yes; then
9995    need_lib_prefix=no
9996  fi
9997  need_version=yes
9998  ;;
9999
10000sysv4 | sysv4.3*)
10001  version_type=linux
10002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003  soname_spec='${libname}${release}${shared_ext}$major'
10004  shlibpath_var=LD_LIBRARY_PATH
10005  case $host_vendor in
10006    sni)
10007      shlibpath_overrides_runpath=no
10008      need_lib_prefix=no
10009      runpath_var=LD_RUN_PATH
10010      ;;
10011    siemens)
10012      need_lib_prefix=no
10013      ;;
10014    motorola)
10015      need_lib_prefix=no
10016      need_version=no
10017      shlibpath_overrides_runpath=no
10018      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10019      ;;
10020  esac
10021  ;;
10022
10023sysv4*MP*)
10024  if test -d /usr/nec ;then
10025    version_type=linux
10026    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10027    soname_spec='$libname${shared_ext}.$major'
10028    shlibpath_var=LD_LIBRARY_PATH
10029  fi
10030  ;;
10031
10032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10033  version_type=freebsd-elf
10034  need_lib_prefix=no
10035  need_version=no
10036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10037  soname_spec='${libname}${release}${shared_ext}$major'
10038  shlibpath_var=LD_LIBRARY_PATH
10039  shlibpath_overrides_runpath=yes
10040  hardcode_into_libs=yes
10041  if test "$with_gnu_ld" = yes; then
10042    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10043  else
10044    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10045    case $host_os in
10046      sco3.2v5*)
10047        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10048	;;
10049    esac
10050  fi
10051  sys_lib_dlsearch_path_spec='/usr/lib'
10052  ;;
10053
10054tpf*)
10055  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10056  version_type=linux
10057  need_lib_prefix=no
10058  need_version=no
10059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060  shlibpath_var=LD_LIBRARY_PATH
10061  shlibpath_overrides_runpath=no
10062  hardcode_into_libs=yes
10063  ;;
10064
10065uts4*)
10066  version_type=linux
10067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068  soname_spec='${libname}${release}${shared_ext}$major'
10069  shlibpath_var=LD_LIBRARY_PATH
10070  ;;
10071
10072*)
10073  dynamic_linker=no
10074  ;;
10075esac
10076{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10077$as_echo "$dynamic_linker" >&6; }
10078test "$dynamic_linker" = no && can_build_shared=no
10079
10080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10081if test "$GCC" = yes; then
10082  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10083fi
10084
10085if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10086  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10087fi
10088if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10089  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10090fi
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
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10179$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10180hardcode_action=
10181if test -n "$hardcode_libdir_flag_spec" ||
10182   test -n "$runpath_var" ||
10183   test "X$hardcode_automatic" = "Xyes" ; then
10184
10185  # We can hardcode non-existent directories.
10186  if test "$hardcode_direct" != no &&
10187     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10188     # have to relink, otherwise we might link with an installed library
10189     # when we should be linking with a yet-to-be-installed one
10190     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10191     test "$hardcode_minus_L" != no; then
10192    # Linking always hardcodes the temporary library directory.
10193    hardcode_action=relink
10194  else
10195    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10196    hardcode_action=immediate
10197  fi
10198else
10199  # We cannot hardcode anything, or else we can only hardcode existing
10200  # directories.
10201  hardcode_action=unsupported
10202fi
10203{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10204$as_echo "$hardcode_action" >&6; }
10205
10206if test "$hardcode_action" = relink ||
10207   test "$inherit_rpath" = yes; then
10208  # Fast installation is not supported
10209  enable_fast_install=no
10210elif test "$shlibpath_overrides_runpath" = yes ||
10211     test "$enable_shared" = no; then
10212  # Fast installation is not necessary
10213  enable_fast_install=needless
10214fi
10215
10216
10217
10218
10219
10220
10221  if test "x$enable_dlopen" != xyes; then
10222  enable_dlopen=unknown
10223  enable_dlopen_self=unknown
10224  enable_dlopen_self_static=unknown
10225else
10226  lt_cv_dlopen=no
10227  lt_cv_dlopen_libs=
10228
10229  case $host_os in
10230  beos*)
10231    lt_cv_dlopen="load_add_on"
10232    lt_cv_dlopen_libs=
10233    lt_cv_dlopen_self=yes
10234    ;;
10235
10236  mingw* | pw32* | cegcc*)
10237    lt_cv_dlopen="LoadLibrary"
10238    lt_cv_dlopen_libs=
10239    ;;
10240
10241  cygwin*)
10242    lt_cv_dlopen="dlopen"
10243    lt_cv_dlopen_libs=
10244    ;;
10245
10246  darwin*)
10247  # if libdl is installed we need to link against it
10248    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10249$as_echo_n "checking for dlopen in -ldl... " >&6; }
10250if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10251  $as_echo_n "(cached) " >&6
10252else
10253  ac_check_lib_save_LIBS=$LIBS
10254LIBS="-ldl  $LIBS"
10255cat >conftest.$ac_ext <<_ACEOF
10256/* confdefs.h.  */
10257_ACEOF
10258cat confdefs.h >>conftest.$ac_ext
10259cat >>conftest.$ac_ext <<_ACEOF
10260/* end confdefs.h.  */
10261
10262/* Override any GCC internal prototype to avoid an error.
10263   Use char because int might match the return type of a GCC
10264   builtin and then its argument prototype would still apply.  */
10265#ifdef __cplusplus
10266extern "C"
10267#endif
10268char dlopen ();
10269int
10270main ()
10271{
10272return dlopen ();
10273  ;
10274  return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext conftest$ac_exeext
10278if { (ac_try="$ac_link"
10279case "(($ac_try" in
10280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281  *) ac_try_echo=$ac_try;;
10282esac
10283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10284$as_echo "$ac_try_echo") >&5
10285  (eval "$ac_link") 2>conftest.er1
10286  ac_status=$?
10287  grep -v '^ *+' conftest.er1 >conftest.err
10288  rm -f conftest.er1
10289  cat conftest.err >&5
10290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); } && {
10292	 test -z "$ac_c_werror_flag" ||
10293	 test ! -s conftest.err
10294       } && test -s conftest$ac_exeext && {
10295	 test "$cross_compiling" = yes ||
10296	 $as_test_x conftest$ac_exeext
10297       }; then
10298  ac_cv_lib_dl_dlopen=yes
10299else
10300  $as_echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
10303	ac_cv_lib_dl_dlopen=no
10304fi
10305
10306rm -rf conftest.dSYM
10307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10308      conftest$ac_exeext conftest.$ac_ext
10309LIBS=$ac_check_lib_save_LIBS
10310fi
10311{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10312$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10313if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10314  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10315else
10316
10317    lt_cv_dlopen="dyld"
10318    lt_cv_dlopen_libs=
10319    lt_cv_dlopen_self=yes
10320
10321fi
10322
10323    ;;
10324
10325  *)
10326    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10327$as_echo_n "checking for shl_load... " >&6; }
10328if test "${ac_cv_func_shl_load+set}" = set; then
10329  $as_echo_n "(cached) " >&6
10330else
10331  cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h.  */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h.  */
10337/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10338   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10339#define shl_load innocuous_shl_load
10340
10341/* System header to define __stub macros and hopefully few prototypes,
10342    which can conflict with char shl_load (); below.
10343    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344    <limits.h> exists even on freestanding compilers.  */
10345
10346#ifdef __STDC__
10347# include <limits.h>
10348#else
10349# include <assert.h>
10350#endif
10351
10352#undef shl_load
10353
10354/* Override any GCC internal prototype to avoid an error.
10355   Use char because int might match the return type of a GCC
10356   builtin and then its argument prototype would still apply.  */
10357#ifdef __cplusplus
10358extern "C"
10359#endif
10360char shl_load ();
10361/* The GNU C library defines this for functions which it implements
10362    to always fail with ENOSYS.  Some functions are actually named
10363    something starting with __ and the normal name is an alias.  */
10364#if defined __stub_shl_load || defined __stub___shl_load
10365choke me
10366#endif
10367
10368int
10369main ()
10370{
10371return shl_load ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
10377if { (ac_try="$ac_link"
10378case "(($ac_try" in
10379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380  *) ac_try_echo=$ac_try;;
10381esac
10382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10383$as_echo "$ac_try_echo") >&5
10384  (eval "$ac_link") 2>conftest.er1
10385  ac_status=$?
10386  grep -v '^ *+' conftest.er1 >conftest.err
10387  rm -f conftest.er1
10388  cat conftest.err >&5
10389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390  (exit $ac_status); } && {
10391	 test -z "$ac_c_werror_flag" ||
10392	 test ! -s conftest.err
10393       } && test -s conftest$ac_exeext && {
10394	 test "$cross_compiling" = yes ||
10395	 $as_test_x conftest$ac_exeext
10396       }; then
10397  ac_cv_func_shl_load=yes
10398else
10399  $as_echo "$as_me: failed program was:" >&5
10400sed 's/^/| /' conftest.$ac_ext >&5
10401
10402	ac_cv_func_shl_load=no
10403fi
10404
10405rm -rf conftest.dSYM
10406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407      conftest$ac_exeext conftest.$ac_ext
10408fi
10409{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10410$as_echo "$ac_cv_func_shl_load" >&6; }
10411if test "x$ac_cv_func_shl_load" = x""yes; then
10412  lt_cv_dlopen="shl_load"
10413else
10414  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10415$as_echo_n "checking for shl_load in -ldld... " >&6; }
10416if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10417  $as_echo_n "(cached) " >&6
10418else
10419  ac_check_lib_save_LIBS=$LIBS
10420LIBS="-ldld  $LIBS"
10421cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h.  */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h.  */
10427
10428/* Override any GCC internal prototype to avoid an error.
10429   Use char because int might match the return type of a GCC
10430   builtin and then its argument prototype would still apply.  */
10431#ifdef __cplusplus
10432extern "C"
10433#endif
10434char shl_load ();
10435int
10436main ()
10437{
10438return shl_load ();
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443rm -f conftest.$ac_objext conftest$ac_exeext
10444if { (ac_try="$ac_link"
10445case "(($ac_try" in
10446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447  *) ac_try_echo=$ac_try;;
10448esac
10449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450$as_echo "$ac_try_echo") >&5
10451  (eval "$ac_link") 2>conftest.er1
10452  ac_status=$?
10453  grep -v '^ *+' conftest.er1 >conftest.err
10454  rm -f conftest.er1
10455  cat conftest.err >&5
10456  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457  (exit $ac_status); } && {
10458	 test -z "$ac_c_werror_flag" ||
10459	 test ! -s conftest.err
10460       } && test -s conftest$ac_exeext && {
10461	 test "$cross_compiling" = yes ||
10462	 $as_test_x conftest$ac_exeext
10463       }; then
10464  ac_cv_lib_dld_shl_load=yes
10465else
10466  $as_echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
10469	ac_cv_lib_dld_shl_load=no
10470fi
10471
10472rm -rf conftest.dSYM
10473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474      conftest$ac_exeext conftest.$ac_ext
10475LIBS=$ac_check_lib_save_LIBS
10476fi
10477{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10478$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10479if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10480  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10481else
10482  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10483$as_echo_n "checking for dlopen... " >&6; }
10484if test "${ac_cv_func_dlopen+set}" = set; then
10485  $as_echo_n "(cached) " >&6
10486else
10487  cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h.  */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h.  */
10493/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10494   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10495#define dlopen innocuous_dlopen
10496
10497/* System header to define __stub macros and hopefully few prototypes,
10498    which can conflict with char dlopen (); below.
10499    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10500    <limits.h> exists even on freestanding compilers.  */
10501
10502#ifdef __STDC__
10503# include <limits.h>
10504#else
10505# include <assert.h>
10506#endif
10507
10508#undef dlopen
10509
10510/* Override any GCC internal prototype to avoid an error.
10511   Use char because int might match the return type of a GCC
10512   builtin and then its argument prototype would still apply.  */
10513#ifdef __cplusplus
10514extern "C"
10515#endif
10516char dlopen ();
10517/* The GNU C library defines this for functions which it implements
10518    to always fail with ENOSYS.  Some functions are actually named
10519    something starting with __ and the normal name is an alias.  */
10520#if defined __stub_dlopen || defined __stub___dlopen
10521choke me
10522#endif
10523
10524int
10525main ()
10526{
10527return dlopen ();
10528  ;
10529  return 0;
10530}
10531_ACEOF
10532rm -f conftest.$ac_objext conftest$ac_exeext
10533if { (ac_try="$ac_link"
10534case "(($ac_try" in
10535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536  *) ac_try_echo=$ac_try;;
10537esac
10538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10539$as_echo "$ac_try_echo") >&5
10540  (eval "$ac_link") 2>conftest.er1
10541  ac_status=$?
10542  grep -v '^ *+' conftest.er1 >conftest.err
10543  rm -f conftest.er1
10544  cat conftest.err >&5
10545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); } && {
10547	 test -z "$ac_c_werror_flag" ||
10548	 test ! -s conftest.err
10549       } && test -s conftest$ac_exeext && {
10550	 test "$cross_compiling" = yes ||
10551	 $as_test_x conftest$ac_exeext
10552       }; then
10553  ac_cv_func_dlopen=yes
10554else
10555  $as_echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558	ac_cv_func_dlopen=no
10559fi
10560
10561rm -rf conftest.dSYM
10562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563      conftest$ac_exeext conftest.$ac_ext
10564fi
10565{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10566$as_echo "$ac_cv_func_dlopen" >&6; }
10567if test "x$ac_cv_func_dlopen" = x""yes; then
10568  lt_cv_dlopen="dlopen"
10569else
10570  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10571$as_echo_n "checking for dlopen in -ldl... " >&6; }
10572if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10573  $as_echo_n "(cached) " >&6
10574else
10575  ac_check_lib_save_LIBS=$LIBS
10576LIBS="-ldl  $LIBS"
10577cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h.  */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h.  */
10583
10584/* Override any GCC internal prototype to avoid an error.
10585   Use char because int might match the return type of a GCC
10586   builtin and then its argument prototype would still apply.  */
10587#ifdef __cplusplus
10588extern "C"
10589#endif
10590char dlopen ();
10591int
10592main ()
10593{
10594return dlopen ();
10595  ;
10596  return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext conftest$ac_exeext
10600if { (ac_try="$ac_link"
10601case "(($ac_try" in
10602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603  *) ac_try_echo=$ac_try;;
10604esac
10605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606$as_echo "$ac_try_echo") >&5
10607  (eval "$ac_link") 2>conftest.er1
10608  ac_status=$?
10609  grep -v '^ *+' conftest.er1 >conftest.err
10610  rm -f conftest.er1
10611  cat conftest.err >&5
10612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613  (exit $ac_status); } && {
10614	 test -z "$ac_c_werror_flag" ||
10615	 test ! -s conftest.err
10616       } && test -s conftest$ac_exeext && {
10617	 test "$cross_compiling" = yes ||
10618	 $as_test_x conftest$ac_exeext
10619       }; then
10620  ac_cv_lib_dl_dlopen=yes
10621else
10622  $as_echo "$as_me: failed program was:" >&5
10623sed 's/^/| /' conftest.$ac_ext >&5
10624
10625	ac_cv_lib_dl_dlopen=no
10626fi
10627
10628rm -rf conftest.dSYM
10629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630      conftest$ac_exeext conftest.$ac_ext
10631LIBS=$ac_check_lib_save_LIBS
10632fi
10633{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10634$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10635if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10636  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10637else
10638  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10639$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10640if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10641  $as_echo_n "(cached) " >&6
10642else
10643  ac_check_lib_save_LIBS=$LIBS
10644LIBS="-lsvld  $LIBS"
10645cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h.  */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h.  */
10651
10652/* Override any GCC internal prototype to avoid an error.
10653   Use char because int might match the return type of a GCC
10654   builtin and then its argument prototype would still apply.  */
10655#ifdef __cplusplus
10656extern "C"
10657#endif
10658char dlopen ();
10659int
10660main ()
10661{
10662return dlopen ();
10663  ;
10664  return 0;
10665}
10666_ACEOF
10667rm -f conftest.$ac_objext conftest$ac_exeext
10668if { (ac_try="$ac_link"
10669case "(($ac_try" in
10670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671  *) ac_try_echo=$ac_try;;
10672esac
10673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10674$as_echo "$ac_try_echo") >&5
10675  (eval "$ac_link") 2>conftest.er1
10676  ac_status=$?
10677  grep -v '^ *+' conftest.er1 >conftest.err
10678  rm -f conftest.er1
10679  cat conftest.err >&5
10680  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681  (exit $ac_status); } && {
10682	 test -z "$ac_c_werror_flag" ||
10683	 test ! -s conftest.err
10684       } && test -s conftest$ac_exeext && {
10685	 test "$cross_compiling" = yes ||
10686	 $as_test_x conftest$ac_exeext
10687       }; then
10688  ac_cv_lib_svld_dlopen=yes
10689else
10690  $as_echo "$as_me: failed program was:" >&5
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
10693	ac_cv_lib_svld_dlopen=no
10694fi
10695
10696rm -rf conftest.dSYM
10697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10698      conftest$ac_exeext conftest.$ac_ext
10699LIBS=$ac_check_lib_save_LIBS
10700fi
10701{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10702$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10703if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10704  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10705else
10706  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10707$as_echo_n "checking for dld_link in -ldld... " >&6; }
10708if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10709  $as_echo_n "(cached) " >&6
10710else
10711  ac_check_lib_save_LIBS=$LIBS
10712LIBS="-ldld  $LIBS"
10713cat >conftest.$ac_ext <<_ACEOF
10714/* confdefs.h.  */
10715_ACEOF
10716cat confdefs.h >>conftest.$ac_ext
10717cat >>conftest.$ac_ext <<_ACEOF
10718/* end confdefs.h.  */
10719
10720/* Override any GCC internal prototype to avoid an error.
10721   Use char because int might match the return type of a GCC
10722   builtin and then its argument prototype would still apply.  */
10723#ifdef __cplusplus
10724extern "C"
10725#endif
10726char dld_link ();
10727int
10728main ()
10729{
10730return dld_link ();
10731  ;
10732  return 0;
10733}
10734_ACEOF
10735rm -f conftest.$ac_objext conftest$ac_exeext
10736if { (ac_try="$ac_link"
10737case "(($ac_try" in
10738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739  *) ac_try_echo=$ac_try;;
10740esac
10741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10742$as_echo "$ac_try_echo") >&5
10743  (eval "$ac_link") 2>conftest.er1
10744  ac_status=$?
10745  grep -v '^ *+' conftest.er1 >conftest.err
10746  rm -f conftest.er1
10747  cat conftest.err >&5
10748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); } && {
10750	 test -z "$ac_c_werror_flag" ||
10751	 test ! -s conftest.err
10752       } && test -s conftest$ac_exeext && {
10753	 test "$cross_compiling" = yes ||
10754	 $as_test_x conftest$ac_exeext
10755       }; then
10756  ac_cv_lib_dld_dld_link=yes
10757else
10758  $as_echo "$as_me: failed program was:" >&5
10759sed 's/^/| /' conftest.$ac_ext >&5
10760
10761	ac_cv_lib_dld_dld_link=no
10762fi
10763
10764rm -rf conftest.dSYM
10765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766      conftest$ac_exeext conftest.$ac_ext
10767LIBS=$ac_check_lib_save_LIBS
10768fi
10769{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10770$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10771if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10772  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10773fi
10774
10775
10776fi
10777
10778
10779fi
10780
10781
10782fi
10783
10784
10785fi
10786
10787
10788fi
10789
10790    ;;
10791  esac
10792
10793  if test "x$lt_cv_dlopen" != xno; then
10794    enable_dlopen=yes
10795  else
10796    enable_dlopen=no
10797  fi
10798
10799  case $lt_cv_dlopen in
10800  dlopen)
10801    save_CPPFLAGS="$CPPFLAGS"
10802    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10803
10804    save_LDFLAGS="$LDFLAGS"
10805    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10806
10807    save_LIBS="$LIBS"
10808    LIBS="$lt_cv_dlopen_libs $LIBS"
10809
10810    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10811$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10812if test "${lt_cv_dlopen_self+set}" = set; then
10813  $as_echo_n "(cached) " >&6
10814else
10815  	  if test "$cross_compiling" = yes; then :
10816  lt_cv_dlopen_self=cross
10817else
10818  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10819  lt_status=$lt_dlunknown
10820  cat > conftest.$ac_ext <<_LT_EOF
10821#line 10821 "configure"
10822#include "confdefs.h"
10823
10824#if HAVE_DLFCN_H
10825#include <dlfcn.h>
10826#endif
10827
10828#include <stdio.h>
10829
10830#ifdef RTLD_GLOBAL
10831#  define LT_DLGLOBAL		RTLD_GLOBAL
10832#else
10833#  ifdef DL_GLOBAL
10834#    define LT_DLGLOBAL		DL_GLOBAL
10835#  else
10836#    define LT_DLGLOBAL		0
10837#  endif
10838#endif
10839
10840/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10841   find out it does not work in some platform. */
10842#ifndef LT_DLLAZY_OR_NOW
10843#  ifdef RTLD_LAZY
10844#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10845#  else
10846#    ifdef DL_LAZY
10847#      define LT_DLLAZY_OR_NOW		DL_LAZY
10848#    else
10849#      ifdef RTLD_NOW
10850#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10851#      else
10852#        ifdef DL_NOW
10853#          define LT_DLLAZY_OR_NOW	DL_NOW
10854#        else
10855#          define LT_DLLAZY_OR_NOW	0
10856#        endif
10857#      endif
10858#    endif
10859#  endif
10860#endif
10861
10862void fnord() { int i=42;}
10863int main ()
10864{
10865  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10866  int status = $lt_dlunknown;
10867
10868  if (self)
10869    {
10870      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10871      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10872      /* dlclose (self); */
10873    }
10874  else
10875    puts (dlerror ());
10876
10877  return status;
10878}
10879_LT_EOF
10880  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881  (eval $ac_link) 2>&5
10882  ac_status=$?
10883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10885    (./conftest; exit; ) >&5 2>/dev/null
10886    lt_status=$?
10887    case x$lt_status in
10888      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10889      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10890      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10891    esac
10892  else :
10893    # compilation failed
10894    lt_cv_dlopen_self=no
10895  fi
10896fi
10897rm -fr conftest*
10898
10899
10900fi
10901{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10902$as_echo "$lt_cv_dlopen_self" >&6; }
10903
10904    if test "x$lt_cv_dlopen_self" = xyes; then
10905      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10906      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10907$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10908if test "${lt_cv_dlopen_self_static+set}" = set; then
10909  $as_echo_n "(cached) " >&6
10910else
10911  	  if test "$cross_compiling" = yes; then :
10912  lt_cv_dlopen_self_static=cross
10913else
10914  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10915  lt_status=$lt_dlunknown
10916  cat > conftest.$ac_ext <<_LT_EOF
10917#line 10917 "configure"
10918#include "confdefs.h"
10919
10920#if HAVE_DLFCN_H
10921#include <dlfcn.h>
10922#endif
10923
10924#include <stdio.h>
10925
10926#ifdef RTLD_GLOBAL
10927#  define LT_DLGLOBAL		RTLD_GLOBAL
10928#else
10929#  ifdef DL_GLOBAL
10930#    define LT_DLGLOBAL		DL_GLOBAL
10931#  else
10932#    define LT_DLGLOBAL		0
10933#  endif
10934#endif
10935
10936/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10937   find out it does not work in some platform. */
10938#ifndef LT_DLLAZY_OR_NOW
10939#  ifdef RTLD_LAZY
10940#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10941#  else
10942#    ifdef DL_LAZY
10943#      define LT_DLLAZY_OR_NOW		DL_LAZY
10944#    else
10945#      ifdef RTLD_NOW
10946#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10947#      else
10948#        ifdef DL_NOW
10949#          define LT_DLLAZY_OR_NOW	DL_NOW
10950#        else
10951#          define LT_DLLAZY_OR_NOW	0
10952#        endif
10953#      endif
10954#    endif
10955#  endif
10956#endif
10957
10958void fnord() { int i=42;}
10959int main ()
10960{
10961  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10962  int status = $lt_dlunknown;
10963
10964  if (self)
10965    {
10966      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10967      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10968      /* dlclose (self); */
10969    }
10970  else
10971    puts (dlerror ());
10972
10973  return status;
10974}
10975_LT_EOF
10976  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977  (eval $ac_link) 2>&5
10978  ac_status=$?
10979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10981    (./conftest; exit; ) >&5 2>/dev/null
10982    lt_status=$?
10983    case x$lt_status in
10984      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10985      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10986      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10987    esac
10988  else :
10989    # compilation failed
10990    lt_cv_dlopen_self_static=no
10991  fi
10992fi
10993rm -fr conftest*
10994
10995
10996fi
10997{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10998$as_echo "$lt_cv_dlopen_self_static" >&6; }
10999    fi
11000
11001    CPPFLAGS="$save_CPPFLAGS"
11002    LDFLAGS="$save_LDFLAGS"
11003    LIBS="$save_LIBS"
11004    ;;
11005  esac
11006
11007  case $lt_cv_dlopen_self in
11008  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11009  *) enable_dlopen_self=unknown ;;
11010  esac
11011
11012  case $lt_cv_dlopen_self_static in
11013  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11014  *) enable_dlopen_self_static=unknown ;;
11015  esac
11016fi
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034striplib=
11035old_striplib=
11036{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11037$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11038if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11039  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11040  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11041  { $as_echo "$as_me:$LINENO: result: yes" >&5
11042$as_echo "yes" >&6; }
11043else
11044# FIXME - insert some real tests, host_os isn't really good enough
11045  case $host_os in
11046  darwin*)
11047    if test -n "$STRIP" ; then
11048      striplib="$STRIP -x"
11049      old_striplib="$STRIP -S"
11050      { $as_echo "$as_me:$LINENO: result: yes" >&5
11051$as_echo "yes" >&6; }
11052    else
11053      { $as_echo "$as_me:$LINENO: result: no" >&5
11054$as_echo "no" >&6; }
11055    fi
11056    ;;
11057  *)
11058    { $as_echo "$as_me:$LINENO: result: no" >&5
11059$as_echo "no" >&6; }
11060    ;;
11061  esac
11062fi
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075  # Report which library types will actually be built
11076  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11077$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11078  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11079$as_echo "$can_build_shared" >&6; }
11080
11081  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11082$as_echo_n "checking whether to build shared libraries... " >&6; }
11083  test "$can_build_shared" = "no" && enable_shared=no
11084
11085  # On AIX, shared libraries and static libraries use the same namespace, and
11086  # are all built from PIC.
11087  case $host_os in
11088  aix3*)
11089    test "$enable_shared" = yes && enable_static=no
11090    if test -n "$RANLIB"; then
11091      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11092      postinstall_cmds='$RANLIB $lib'
11093    fi
11094    ;;
11095
11096  aix[4-9]*)
11097    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11098      test "$enable_shared" = yes && enable_static=no
11099    fi
11100    ;;
11101  esac
11102  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11103$as_echo "$enable_shared" >&6; }
11104
11105  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11106$as_echo_n "checking whether to build static libraries... " >&6; }
11107  # Make sure either enable_shared or enable_static is yes.
11108  test "$enable_shared" = yes || enable_static=yes
11109  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11110$as_echo "$enable_static" >&6; }
11111
11112
11113
11114
11115fi
11116ac_ext=c
11117ac_cpp='$CPP $CPPFLAGS'
11118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120ac_compiler_gnu=$ac_cv_c_compiler_gnu
11121
11122CC="$lt_save_CC"
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136        ac_config_commands="$ac_config_commands libtool"
11137
11138
11139
11140
11141# Only expand once:
11142
11143
11144   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
11145$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11146if test "${ac_cv_prog_cc_c99+set}" = set; then
11147  $as_echo_n "(cached) " >&6
11148else
11149  ac_cv_prog_cc_c99=no
11150ac_save_CC=$CC
11151cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h.  */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h.  */
11157#include <stdarg.h>
11158#include <stdbool.h>
11159#include <stdlib.h>
11160#include <wchar.h>
11161#include <stdio.h>
11162
11163// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11164#define debug(...) fprintf (stderr, __VA_ARGS__)
11165#define showlist(...) puts (#__VA_ARGS__)
11166#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11167static void
11168test_varargs_macros (void)
11169{
11170  int x = 1234;
11171  int y = 5678;
11172  debug ("Flag");
11173  debug ("X = %d\n", x);
11174  showlist (The first, second, and third items.);
11175  report (x>y, "x is %d but y is %d", x, y);
11176}
11177
11178// Check long long types.
11179#define BIG64 18446744073709551615ull
11180#define BIG32 4294967295ul
11181#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11182#if !BIG_OK
11183  your preprocessor is broken;
11184#endif
11185#if BIG_OK
11186#else
11187  your preprocessor is broken;
11188#endif
11189static long long int bignum = -9223372036854775807LL;
11190static unsigned long long int ubignum = BIG64;
11191
11192struct incomplete_array
11193{
11194  int datasize;
11195  double data[];
11196};
11197
11198struct named_init {
11199  int number;
11200  const wchar_t *name;
11201  double average;
11202};
11203
11204typedef const char *ccp;
11205
11206static inline int
11207test_restrict (ccp restrict text)
11208{
11209  // See if C++-style comments work.
11210  // Iterate through items via the restricted pointer.
11211  // Also check for declarations in for loops.
11212  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11213    continue;
11214  return 0;
11215}
11216
11217// Check varargs and va_copy.
11218static void
11219test_varargs (const char *format, ...)
11220{
11221  va_list args;
11222  va_start (args, format);
11223  va_list args_copy;
11224  va_copy (args_copy, args);
11225
11226  const char *str;
11227  int number;
11228  float fnumber;
11229
11230  while (*format)
11231    {
11232      switch (*format++)
11233	{
11234	case 's': // string
11235	  str = va_arg (args_copy, const char *);
11236	  break;
11237	case 'd': // int
11238	  number = va_arg (args_copy, int);
11239	  break;
11240	case 'f': // float
11241	  fnumber = va_arg (args_copy, double);
11242	  break;
11243	default:
11244	  break;
11245	}
11246    }
11247  va_end (args_copy);
11248  va_end (args);
11249}
11250
11251int
11252main ()
11253{
11254
11255  // Check bool.
11256  _Bool success = false;
11257
11258  // Check restrict.
11259  if (test_restrict ("String literal") == 0)
11260    success = true;
11261  char *restrict newvar = "Another string";
11262
11263  // Check varargs.
11264  test_varargs ("s, d' f .", "string", 65, 34.234);
11265  test_varargs_macros ();
11266
11267  // Check flexible array members.
11268  struct incomplete_array *ia =
11269    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11270  ia->datasize = 10;
11271  for (int i = 0; i < ia->datasize; ++i)
11272    ia->data[i] = i * 1.234;
11273
11274  // Check named initializers.
11275  struct named_init ni = {
11276    .number = 34,
11277    .name = L"Test wide string",
11278    .average = 543.34343,
11279  };
11280
11281  ni.number = 58;
11282
11283  int dynamic_array[ni.number];
11284  dynamic_array[ni.number - 1] = 543;
11285
11286  // work around unused variable warnings
11287  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11288	  || dynamic_array[ni.number - 1] != 543);
11289
11290  ;
11291  return 0;
11292}
11293_ACEOF
11294for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11295do
11296  CC="$ac_save_CC $ac_arg"
11297  rm -f conftest.$ac_objext
11298if { (ac_try="$ac_compile"
11299case "(($ac_try" in
11300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301  *) ac_try_echo=$ac_try;;
11302esac
11303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11304$as_echo "$ac_try_echo") >&5
11305  (eval "$ac_compile") 2>conftest.er1
11306  ac_status=$?
11307  grep -v '^ *+' conftest.er1 >conftest.err
11308  rm -f conftest.er1
11309  cat conftest.err >&5
11310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311  (exit $ac_status); } && {
11312	 test -z "$ac_c_werror_flag" ||
11313	 test ! -s conftest.err
11314       } && test -s conftest.$ac_objext; then
11315  ac_cv_prog_cc_c99=$ac_arg
11316else
11317  $as_echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320
11321fi
11322
11323rm -f core conftest.err conftest.$ac_objext
11324  test "x$ac_cv_prog_cc_c99" != "xno" && break
11325done
11326rm -f conftest.$ac_ext
11327CC=$ac_save_CC
11328
11329fi
11330# AC_CACHE_VAL
11331case "x$ac_cv_prog_cc_c99" in
11332  x)
11333    { $as_echo "$as_me:$LINENO: result: none needed" >&5
11334$as_echo "none needed" >&6; } ;;
11335  xno)
11336    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11337$as_echo "unsupported" >&6; } ;;
11338  *)
11339    CC="$CC $ac_cv_prog_cc_c99"
11340    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
11341$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11342esac
11343
11344
11345
11346
11347
11348
11349if  test "x$GCC" = xyes ; then
11350    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11351-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11352-Wbad-function-cast"
11353    case `$CC -dumpversion` in
11354    3.4.* | 4.*)
11355	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11356	;;
11357    esac
11358else
11359    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11360$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11361if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11362  $as_echo_n "(cached) " >&6
11363else
11364  cat >conftest.$ac_ext <<_ACEOF
11365/* confdefs.h.  */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h.  */
11370$ac_includes_default
11371int
11372main ()
11373{
11374#ifndef __SUNPRO_C
11375  (void) __SUNPRO_C;
11376#endif
11377
11378  ;
11379  return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext
11383if { (ac_try="$ac_compile"
11384case "(($ac_try" in
11385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386  *) ac_try_echo=$ac_try;;
11387esac
11388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11389$as_echo "$ac_try_echo") >&5
11390  (eval "$ac_compile") 2>conftest.er1
11391  ac_status=$?
11392  grep -v '^ *+' conftest.er1 >conftest.err
11393  rm -f conftest.er1
11394  cat conftest.err >&5
11395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396  (exit $ac_status); } && {
11397	 test -z "$ac_c_werror_flag" ||
11398	 test ! -s conftest.err
11399       } && test -s conftest.$ac_objext; then
11400  ac_cv_have_decl___SUNPRO_C=yes
11401else
11402  $as_echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405	ac_cv_have_decl___SUNPRO_C=no
11406fi
11407
11408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409fi
11410{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11411$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11412if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11413  SUNCC="yes"
11414else
11415  SUNCC="no"
11416fi
11417
11418    if test "x$SUNCC" = "xyes"; then
11419	CWARNFLAGS="-v"
11420    fi
11421fi
11422
11423# Check whether --enable-silent-rules was given.
11424if test "${enable_silent_rules+set}" = set; then
11425  enableval=$enable_silent_rules;
11426fi
11427
11428case $enable_silent_rules in
11429yes) AM_DEFAULT_VERBOSITY=0;;
11430no)  AM_DEFAULT_VERBOSITY=1;;
11431*)   AM_DEFAULT_VERBOSITY=0;;
11432esac
11433AM_BACKSLASH='\'
11434
11435
11436
11437
11438
11439
11440
11441# Check whether --enable-strict-compilation was given.
11442if test "${enable_strict_compilation+set}" = set; then
11443  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11444else
11445  STRICT_COMPILE=no
11446fi
11447
11448if test "x$STRICT_COMPILE" = "xyes"; then
11449	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11450$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11451if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11452  $as_echo_n "(cached) " >&6
11453else
11454  cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h.  */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h.  */
11460$ac_includes_default
11461int
11462main ()
11463{
11464#ifndef __SUNPRO_C
11465  (void) __SUNPRO_C;
11466#endif
11467
11468  ;
11469  return 0;
11470}
11471_ACEOF
11472rm -f conftest.$ac_objext
11473if { (ac_try="$ac_compile"
11474case "(($ac_try" in
11475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476  *) ac_try_echo=$ac_try;;
11477esac
11478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11479$as_echo "$ac_try_echo") >&5
11480  (eval "$ac_compile") 2>conftest.er1
11481  ac_status=$?
11482  grep -v '^ *+' conftest.er1 >conftest.err
11483  rm -f conftest.er1
11484  cat conftest.err >&5
11485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486  (exit $ac_status); } && {
11487	 test -z "$ac_c_werror_flag" ||
11488	 test ! -s conftest.err
11489       } && test -s conftest.$ac_objext; then
11490  ac_cv_have_decl___SUNPRO_C=yes
11491else
11492  $as_echo "$as_me: failed program was:" >&5
11493sed 's/^/| /' conftest.$ac_ext >&5
11494
11495	ac_cv_have_decl___SUNPRO_C=no
11496fi
11497
11498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499fi
11500{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11501$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11502if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11503  SUNCC="yes"
11504else
11505  SUNCC="no"
11506fi
11507
11508	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
11509$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
11510if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
11511  $as_echo_n "(cached) " >&6
11512else
11513  cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h.  */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h.  */
11519$ac_includes_default
11520int
11521main ()
11522{
11523#ifndef __INTEL_COMPILER
11524  (void) __INTEL_COMPILER;
11525#endif
11526
11527  ;
11528  return 0;
11529}
11530_ACEOF
11531rm -f conftest.$ac_objext
11532if { (ac_try="$ac_compile"
11533case "(($ac_try" in
11534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535  *) ac_try_echo=$ac_try;;
11536esac
11537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11538$as_echo "$ac_try_echo") >&5
11539  (eval "$ac_compile") 2>conftest.er1
11540  ac_status=$?
11541  grep -v '^ *+' conftest.er1 >conftest.err
11542  rm -f conftest.er1
11543  cat conftest.err >&5
11544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545  (exit $ac_status); } && {
11546	 test -z "$ac_c_werror_flag" ||
11547	 test ! -s conftest.err
11548       } && test -s conftest.$ac_objext; then
11549  ac_cv_have_decl___INTEL_COMPILER=yes
11550else
11551  $as_echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554	ac_cv_have_decl___INTEL_COMPILER=no
11555fi
11556
11557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558fi
11559{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
11560$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
11561if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
11562  INTELCC="yes"
11563else
11564  INTELCC="no"
11565fi
11566
11567	if test "x$GCC" = xyes ; then
11568		STRICT_CFLAGS="-pedantic -Werror"
11569	elif test "x$SUNCC" = "xyes"; then
11570		STRICT_CFLAGS="-errwarn"
11571    elif test "x$INTELCC" = "xyes"; then
11572		STRICT_CFLAGS="-Werror"
11573	fi
11574fi
11575CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11576
11577
11578
11579
11580# Check whether --with-release-version was given.
11581if test "${with_release_version+set}" = set; then
11582  withval=$with_release_version; RELEASE_VERSION="$withval"
11583else
11584  RELEASE_VERSION=""
11585fi
11586
11587	if test "x$RELEASE_VERSION" != "x"; then
11588		PACKAGE="$PACKAGE-$RELEASE_VERSION"
11589		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
11590		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
11591$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
11592	fi
11593
11594cat >>confdefs.h <<_ACEOF
11595#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11596_ACEOF
11597
11598	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11599	if test "x$PVM" = "x"; then
11600		PVM="0"
11601	fi
11602
11603cat >>confdefs.h <<_ACEOF
11604#define PACKAGE_VERSION_MINOR $PVM
11605_ACEOF
11606
11607	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11608	if test "x$PVP" = "x"; then
11609		PVP="0"
11610	fi
11611
11612cat >>confdefs.h <<_ACEOF
11613#define PACKAGE_VERSION_PATCHLEVEL $PVP
11614_ACEOF
11615
11616
11617
11618CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
11619mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
11620echo 'git directory not found: installing possibly empty changelog.' >&2)"
11621
11622distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
11623
11624
11625
11626
11627
11628if test x$APP_MAN_SUFFIX = x    ; then
11629    APP_MAN_SUFFIX=1
11630fi
11631if test x$APP_MAN_DIR = x    ; then
11632    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11633fi
11634
11635if test x$LIB_MAN_SUFFIX = x    ; then
11636    LIB_MAN_SUFFIX=3
11637fi
11638if test x$LIB_MAN_DIR = x    ; then
11639    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11640fi
11641
11642if test x$FILE_MAN_SUFFIX = x    ; then
11643    case $host_os in
11644	solaris*)	FILE_MAN_SUFFIX=4  ;;
11645	*)		FILE_MAN_SUFFIX=5  ;;
11646    esac
11647fi
11648if test x$FILE_MAN_DIR = x    ; then
11649    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11650fi
11651
11652if test x$MISC_MAN_SUFFIX = x    ; then
11653    case $host_os in
11654	solaris*)	MISC_MAN_SUFFIX=5  ;;
11655	*)		MISC_MAN_SUFFIX=7  ;;
11656    esac
11657fi
11658if test x$MISC_MAN_DIR = x    ; then
11659    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11660fi
11661
11662if test x$DRIVER_MAN_SUFFIX = x    ; then
11663    case $host_os in
11664	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11665	*)		DRIVER_MAN_SUFFIX=4  ;;
11666    esac
11667fi
11668if test x$DRIVER_MAN_DIR = x    ; then
11669    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11670fi
11671
11672if test x$ADMIN_MAN_SUFFIX = x    ; then
11673    case $host_os in
11674	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11675	*)		ADMIN_MAN_SUFFIX=8  ;;
11676    esac
11677fi
11678if test x$ADMIN_MAN_DIR = x    ; then
11679    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11680fi
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698# Checks for pkg-config packages
11699
11700
11701if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11702	if test -n "$ac_tool_prefix"; then
11703  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11704set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11706$as_echo_n "checking for $ac_word... " >&6; }
11707if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11708  $as_echo_n "(cached) " >&6
11709else
11710  case $PKG_CONFIG in
11711  [\\/]* | ?:[\\/]*)
11712  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11713  ;;
11714  *)
11715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718  IFS=$as_save_IFS
11719  test -z "$as_dir" && as_dir=.
11720  for ac_exec_ext in '' $ac_executable_extensions; do
11721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11723    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724    break 2
11725  fi
11726done
11727done
11728IFS=$as_save_IFS
11729
11730  ;;
11731esac
11732fi
11733PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11734if test -n "$PKG_CONFIG"; then
11735  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11736$as_echo "$PKG_CONFIG" >&6; }
11737else
11738  { $as_echo "$as_me:$LINENO: result: no" >&5
11739$as_echo "no" >&6; }
11740fi
11741
11742
11743fi
11744if test -z "$ac_cv_path_PKG_CONFIG"; then
11745  ac_pt_PKG_CONFIG=$PKG_CONFIG
11746  # Extract the first word of "pkg-config", so it can be a program name with args.
11747set dummy pkg-config; ac_word=$2
11748{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11749$as_echo_n "checking for $ac_word... " >&6; }
11750if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11751  $as_echo_n "(cached) " >&6
11752else
11753  case $ac_pt_PKG_CONFIG in
11754  [\\/]* | ?:[\\/]*)
11755  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11756  ;;
11757  *)
11758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759for as_dir in $PATH
11760do
11761  IFS=$as_save_IFS
11762  test -z "$as_dir" && as_dir=.
11763  for ac_exec_ext in '' $ac_executable_extensions; do
11764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11765    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11766    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11767    break 2
11768  fi
11769done
11770done
11771IFS=$as_save_IFS
11772
11773  ;;
11774esac
11775fi
11776ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11777if test -n "$ac_pt_PKG_CONFIG"; then
11778  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11779$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11780else
11781  { $as_echo "$as_me:$LINENO: result: no" >&5
11782$as_echo "no" >&6; }
11783fi
11784
11785  if test "x$ac_pt_PKG_CONFIG" = x; then
11786    PKG_CONFIG=""
11787  else
11788    case $cross_compiling:$ac_tool_warned in
11789yes:)
11790{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11792ac_tool_warned=yes ;;
11793esac
11794    PKG_CONFIG=$ac_pt_PKG_CONFIG
11795  fi
11796else
11797  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11798fi
11799
11800fi
11801if test -n "$PKG_CONFIG"; then
11802	_pkg_min_version=0.9.0
11803	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11804$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11805	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11806		{ $as_echo "$as_me:$LINENO: result: yes" >&5
11807$as_echo "yes" >&6; }
11808	else
11809		{ $as_echo "$as_me:$LINENO: result: no" >&5
11810$as_echo "no" >&6; }
11811		PKG_CONFIG=""
11812	fi
11813
11814fi
11815
11816pkg_failed=no
11817{ $as_echo "$as_me:$LINENO: checking for XXF86VM" >&5
11818$as_echo_n "checking for XXF86VM... " >&6; }
11819
11820if test -n "$XXF86VM_CFLAGS"; then
11821    pkg_cv_XXF86VM_CFLAGS="$XXF86VM_CFLAGS"
11822 elif test -n "$PKG_CONFIG"; then
11823    if test -n "$PKG_CONFIG" && \
11824    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1\"") >&5
11825  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5
11826  ac_status=$?
11827  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828  (exit $ac_status); }; then
11829  pkg_cv_XXF86VM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null`
11830else
11831  pkg_failed=yes
11832fi
11833 else
11834    pkg_failed=untried
11835fi
11836if test -n "$XXF86VM_LIBS"; then
11837    pkg_cv_XXF86VM_LIBS="$XXF86VM_LIBS"
11838 elif test -n "$PKG_CONFIG"; then
11839    if test -n "$PKG_CONFIG" && \
11840    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1\"") >&5
11841  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5
11842  ac_status=$?
11843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844  (exit $ac_status); }; then
11845  pkg_cv_XXF86VM_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null`
11846else
11847  pkg_failed=yes
11848fi
11849 else
11850    pkg_failed=untried
11851fi
11852
11853
11854
11855if test $pkg_failed = yes; then
11856
11857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11858        _pkg_short_errors_supported=yes
11859else
11860        _pkg_short_errors_supported=no
11861fi
11862        if test $_pkg_short_errors_supported = yes; then
11863	        XXF86VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1`
11864        else
11865	        XXF86VM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1`
11866        fi
11867	# Put the nasty error message in config.log where it belongs
11868	echo "$XXF86VM_PKG_ERRORS" >&5
11869
11870	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1) were not met:
11871
11872$XXF86VM_PKG_ERRORS
11873
11874Consider adjusting the PKG_CONFIG_PATH environment variable if you
11875installed software in a non-standard prefix.
11876
11877Alternatively, you may set the environment variables XXF86VM_CFLAGS
11878and XXF86VM_LIBS to avoid the need to call pkg-config.
11879See the pkg-config man page for more details.
11880" >&5
11881$as_echo "$as_me: error: Package requirements (xproto x11 xextproto xext xf86vidmodeproto >= 2.2.99.1) were not met:
11882
11883$XXF86VM_PKG_ERRORS
11884
11885Consider adjusting the PKG_CONFIG_PATH environment variable if you
11886installed software in a non-standard prefix.
11887
11888Alternatively, you may set the environment variables XXF86VM_CFLAGS
11889and XXF86VM_LIBS to avoid the need to call pkg-config.
11890See the pkg-config man page for more details.
11891" >&2;}
11892   { (exit 1); exit 1; }; }
11893elif test $pkg_failed = untried; then
11894	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11896{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11897is in your PATH or set the PKG_CONFIG environment variable to the full
11898path to pkg-config.
11899
11900Alternatively, you may set the environment variables XXF86VM_CFLAGS
11901and XXF86VM_LIBS to avoid the need to call pkg-config.
11902See the pkg-config man page for more details.
11903
11904To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11905See \`config.log' for more details." >&5
11906$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11907is in your PATH or set the PKG_CONFIG environment variable to the full
11908path to pkg-config.
11909
11910Alternatively, you may set the environment variables XXF86VM_CFLAGS
11911and XXF86VM_LIBS to avoid the need to call pkg-config.
11912See the pkg-config man page for more details.
11913
11914To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11915See \`config.log' for more details." >&2;}
11916   { (exit 1); exit 1; }; }; }
11917else
11918	XXF86VM_CFLAGS=$pkg_cv_XXF86VM_CFLAGS
11919	XXF86VM_LIBS=$pkg_cv_XXF86VM_LIBS
11920        { $as_echo "$as_me:$LINENO: result: yes" >&5
11921$as_echo "yes" >&6; }
11922	:
11923fi
11924
11925
11926# Check whether --enable-malloc0returnsnull was given.
11927if test "${enable_malloc0returnsnull+set}" = set; then
11928  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11929else
11930  MALLOC_ZERO_RETURNS_NULL=auto
11931fi
11932
11933
11934{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
11935$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11936if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11937	if test "$cross_compiling" = yes; then
11938  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11940{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11941See \`config.log' for more details." >&5
11942$as_echo "$as_me: error: cannot run test program while cross compiling
11943See \`config.log' for more details." >&2;}
11944   { (exit 1); exit 1; }; }; }
11945else
11946  cat >conftest.$ac_ext <<_ACEOF
11947
11948char *malloc();
11949char *realloc();
11950char *calloc();
11951main() {
11952    char *m0, *r0, *c0, *p;
11953    m0 = malloc(0);
11954    p = malloc(10);
11955    r0 = realloc(p,0);
11956    c0 = calloc(0);
11957    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11958}
11959_ACEOF
11960rm -f conftest$ac_exeext
11961if { (ac_try="$ac_link"
11962case "(($ac_try" in
11963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964  *) ac_try_echo=$ac_try;;
11965esac
11966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11967$as_echo "$ac_try_echo") >&5
11968  (eval "$ac_link") 2>&5
11969  ac_status=$?
11970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11972  { (case "(($ac_try" in
11973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974  *) ac_try_echo=$ac_try;;
11975esac
11976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11977$as_echo "$ac_try_echo") >&5
11978  (eval "$ac_try") 2>&5
11979  ac_status=$?
11980  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981  (exit $ac_status); }; }; then
11982  MALLOC_ZERO_RETURNS_NULL=yes
11983else
11984  $as_echo "$as_me: program exited with status $ac_status" >&5
11985$as_echo "$as_me: failed program was:" >&5
11986sed 's/^/| /' conftest.$ac_ext >&5
11987
11988( exit $ac_status )
11989MALLOC_ZERO_RETURNS_NULL=no
11990fi
11991rm -rf conftest.dSYM
11992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11993fi
11994
11995
11996fi
11997{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11998$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11999
12000if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12001	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12002	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12003	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12004else
12005	MALLOC_ZERO_CFLAGS=""
12006	XMALLOC_ZERO_CFLAGS=""
12007	XTMALLOC_ZERO_CFLAGS=""
12008fi
12009
12010
12011
12012
12013
12014
12015ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86vm.pc"
12016
12017cat >confcache <<\_ACEOF
12018# This file is a shell script that caches the results of configure
12019# tests run on this system so they can be shared between configure
12020# scripts and configure runs, see configure's option --config-cache.
12021# It is not useful on other systems.  If it contains results you don't
12022# want to keep, you may remove or edit it.
12023#
12024# config.status only pays attention to the cache file if you give it
12025# the --recheck option to rerun configure.
12026#
12027# `ac_cv_env_foo' variables (set or unset) will be overridden when
12028# loading this file, other *unset* `ac_cv_foo' will be assigned the
12029# following values.
12030
12031_ACEOF
12032
12033# The following way of writing the cache mishandles newlines in values,
12034# but we know of no workaround that is simple, portable, and efficient.
12035# So, we kill variables containing newlines.
12036# Ultrix sh set writes to stderr and can't be redirected directly,
12037# and sets the high bit in the cache file unless we assign to the vars.
12038(
12039  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12040    eval ac_val=\$$ac_var
12041    case $ac_val in #(
12042    *${as_nl}*)
12043      case $ac_var in #(
12044      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12046      esac
12047      case $ac_var in #(
12048      _ | IFS | as_nl) ;; #(
12049      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12050      *) $as_unset $ac_var ;;
12051      esac ;;
12052    esac
12053  done
12054
12055  (set) 2>&1 |
12056    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12057    *${as_nl}ac_space=\ *)
12058      # `set' does not quote correctly, so add quotes (double-quote
12059      # substitution turns \\\\ into \\, and sed turns \\ into \).
12060      sed -n \
12061	"s/'/'\\\\''/g;
12062	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12063      ;; #(
12064    *)
12065      # `set' quotes correctly as required by POSIX, so do not add quotes.
12066      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12067      ;;
12068    esac |
12069    sort
12070) |
12071  sed '
12072     /^ac_cv_env_/b end
12073     t clear
12074     :clear
12075     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12076     t end
12077     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12078     :end' >>confcache
12079if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12080  if test -w "$cache_file"; then
12081    test "x$cache_file" != "x/dev/null" &&
12082      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12083$as_echo "$as_me: updating cache $cache_file" >&6;}
12084    cat confcache >$cache_file
12085  else
12086    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12087$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12088  fi
12089fi
12090rm -f confcache
12091
12092test "x$prefix" = xNONE && prefix=$ac_default_prefix
12093# Let make expand exec_prefix.
12094test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12095
12096DEFS=-DHAVE_CONFIG_H
12097
12098ac_libobjs=
12099ac_ltlibobjs=
12100for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12101  # 1. Remove the extension, and $U if already installed.
12102  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12103  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12104  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12105  #    will be set to the directory where LIBOBJS objects are built.
12106  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12107  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12108done
12109LIBOBJS=$ac_libobjs
12110
12111LTLIBOBJS=$ac_ltlibobjs
12112
12113
12114 if test -n "$EXEEXT"; then
12115  am__EXEEXT_TRUE=
12116  am__EXEEXT_FALSE='#'
12117else
12118  am__EXEEXT_TRUE='#'
12119  am__EXEEXT_FALSE=
12120fi
12121
12122if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12123  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12124Usually this means the macro was only invoked conditionally." >&5
12125$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12126Usually this means the macro was only invoked conditionally." >&2;}
12127   { (exit 1); exit 1; }; }
12128fi
12129if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12130  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12131Usually this means the macro was only invoked conditionally." >&5
12132$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12133Usually this means the macro was only invoked conditionally." >&2;}
12134   { (exit 1); exit 1; }; }
12135fi
12136if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12137  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12138Usually this means the macro was only invoked conditionally." >&5
12139$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12140Usually this means the macro was only invoked conditionally." >&2;}
12141   { (exit 1); exit 1; }; }
12142fi
12143
12144: ${CONFIG_STATUS=./config.status}
12145ac_write_fail=0
12146ac_clean_files_save=$ac_clean_files
12147ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12148{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12149$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12150cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12151#! $SHELL
12152# Generated by $as_me.
12153# Run this file to recreate the current configuration.
12154# Compiler output produced by configure, useful for debugging
12155# configure, is in config.log if it exists.
12156
12157debug=false
12158ac_cs_recheck=false
12159ac_cs_silent=false
12160SHELL=\${CONFIG_SHELL-$SHELL}
12161_ACEOF
12162
12163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12164## --------------------- ##
12165## M4sh Initialization.  ##
12166## --------------------- ##
12167
12168# Be more Bourne compatible
12169DUALCASE=1; export DUALCASE # for MKS sh
12170if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12171  emulate sh
12172  NULLCMD=:
12173  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12174  # is contrary to our usage.  Disable this feature.
12175  alias -g '${1+"$@"}'='"$@"'
12176  setopt NO_GLOB_SUBST
12177else
12178  case `(set -o) 2>/dev/null` in
12179  *posix*) set -o posix ;;
12180esac
12181
12182fi
12183
12184
12185
12186
12187# PATH needs CR
12188# Avoid depending upon Character Ranges.
12189as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12190as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12191as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12192as_cr_digits='0123456789'
12193as_cr_alnum=$as_cr_Letters$as_cr_digits
12194
12195as_nl='
12196'
12197export as_nl
12198# Printing a long string crashes Solaris 7 /usr/bin/printf.
12199as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12200as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12201as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12202if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12203  as_echo='printf %s\n'
12204  as_echo_n='printf %s'
12205else
12206  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12207    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12208    as_echo_n='/usr/ucb/echo -n'
12209  else
12210    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12211    as_echo_n_body='eval
12212      arg=$1;
12213      case $arg in
12214      *"$as_nl"*)
12215	expr "X$arg" : "X\\(.*\\)$as_nl";
12216	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12217      esac;
12218      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12219    '
12220    export as_echo_n_body
12221    as_echo_n='sh -c $as_echo_n_body as_echo'
12222  fi
12223  export as_echo_body
12224  as_echo='sh -c $as_echo_body as_echo'
12225fi
12226
12227# The user is always right.
12228if test "${PATH_SEPARATOR+set}" != set; then
12229  PATH_SEPARATOR=:
12230  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12231    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12232      PATH_SEPARATOR=';'
12233  }
12234fi
12235
12236# Support unset when possible.
12237if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12238  as_unset=unset
12239else
12240  as_unset=false
12241fi
12242
12243
12244# IFS
12245# We need space, tab and new line, in precisely that order.  Quoting is
12246# there to prevent editors from complaining about space-tab.
12247# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12248# splitting by setting IFS to empty value.)
12249IFS=" ""	$as_nl"
12250
12251# Find who we are.  Look in the path if we contain no directory separator.
12252case $0 in
12253  *[\\/]* ) as_myself=$0 ;;
12254  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255for as_dir in $PATH
12256do
12257  IFS=$as_save_IFS
12258  test -z "$as_dir" && as_dir=.
12259  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12260done
12261IFS=$as_save_IFS
12262
12263     ;;
12264esac
12265# We did not find ourselves, most probably we were run as `sh COMMAND'
12266# in which case we are not to be found in the path.
12267if test "x$as_myself" = x; then
12268  as_myself=$0
12269fi
12270if test ! -f "$as_myself"; then
12271  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12272  { (exit 1); exit 1; }
12273fi
12274
12275# Work around bugs in pre-3.0 UWIN ksh.
12276for as_var in ENV MAIL MAILPATH
12277do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12278done
12279PS1='$ '
12280PS2='> '
12281PS4='+ '
12282
12283# NLS nuisances.
12284LC_ALL=C
12285export LC_ALL
12286LANGUAGE=C
12287export LANGUAGE
12288
12289# Required to use basename.
12290if expr a : '\(a\)' >/dev/null 2>&1 &&
12291   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12292  as_expr=expr
12293else
12294  as_expr=false
12295fi
12296
12297if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12298  as_basename=basename
12299else
12300  as_basename=false
12301fi
12302
12303
12304# Name of the executable.
12305as_me=`$as_basename -- "$0" ||
12306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12307	 X"$0" : 'X\(//\)$' \| \
12308	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12309$as_echo X/"$0" |
12310    sed '/^.*\/\([^/][^/]*\)\/*$/{
12311	    s//\1/
12312	    q
12313	  }
12314	  /^X\/\(\/\/\)$/{
12315	    s//\1/
12316	    q
12317	  }
12318	  /^X\/\(\/\).*/{
12319	    s//\1/
12320	    q
12321	  }
12322	  s/.*/./; q'`
12323
12324# CDPATH.
12325$as_unset CDPATH
12326
12327
12328
12329  as_lineno_1=$LINENO
12330  as_lineno_2=$LINENO
12331  test "x$as_lineno_1" != "x$as_lineno_2" &&
12332  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12333
12334  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12335  # uniformly replaced by the line number.  The first 'sed' inserts a
12336  # line-number line after each line using $LINENO; the second 'sed'
12337  # does the real work.  The second script uses 'N' to pair each
12338  # line-number line with the line containing $LINENO, and appends
12339  # trailing '-' during substitution so that $LINENO is not a special
12340  # case at line end.
12341  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12342  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12343  # E. McMahon (1931-1989) for sed's syntax.  :-)
12344  sed -n '
12345    p
12346    /[$]LINENO/=
12347  ' <$as_myself |
12348    sed '
12349      s/[$]LINENO.*/&-/
12350      t lineno
12351      b
12352      :lineno
12353      N
12354      :loop
12355      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12356      t loop
12357      s/-\n.*//
12358    ' >$as_me.lineno &&
12359  chmod +x "$as_me.lineno" ||
12360    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12361   { (exit 1); exit 1; }; }
12362
12363  # Don't try to exec as it changes $[0], causing all sort of problems
12364  # (the dirname of $[0] is not the place where we might find the
12365  # original and so on.  Autoconf is especially sensitive to this).
12366  . "./$as_me.lineno"
12367  # Exit status is that of the last command.
12368  exit
12369}
12370
12371
12372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12373  as_dirname=dirname
12374else
12375  as_dirname=false
12376fi
12377
12378ECHO_C= ECHO_N= ECHO_T=
12379case `echo -n x` in
12380-n*)
12381  case `echo 'x\c'` in
12382  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12383  *)   ECHO_C='\c';;
12384  esac;;
12385*)
12386  ECHO_N='-n';;
12387esac
12388if expr a : '\(a\)' >/dev/null 2>&1 &&
12389   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12390  as_expr=expr
12391else
12392  as_expr=false
12393fi
12394
12395rm -f conf$$ conf$$.exe conf$$.file
12396if test -d conf$$.dir; then
12397  rm -f conf$$.dir/conf$$.file
12398else
12399  rm -f conf$$.dir
12400  mkdir conf$$.dir 2>/dev/null
12401fi
12402if (echo >conf$$.file) 2>/dev/null; then
12403  if ln -s conf$$.file conf$$ 2>/dev/null; then
12404    as_ln_s='ln -s'
12405    # ... but there are two gotchas:
12406    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12407    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12408    # In both cases, we have to default to `cp -p'.
12409    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12410      as_ln_s='cp -p'
12411  elif ln conf$$.file conf$$ 2>/dev/null; then
12412    as_ln_s=ln
12413  else
12414    as_ln_s='cp -p'
12415  fi
12416else
12417  as_ln_s='cp -p'
12418fi
12419rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12420rmdir conf$$.dir 2>/dev/null
12421
12422if mkdir -p . 2>/dev/null; then
12423  as_mkdir_p=:
12424else
12425  test -d ./-p && rmdir ./-p
12426  as_mkdir_p=false
12427fi
12428
12429if test -x / >/dev/null 2>&1; then
12430  as_test_x='test -x'
12431else
12432  if ls -dL / >/dev/null 2>&1; then
12433    as_ls_L_option=L
12434  else
12435    as_ls_L_option=
12436  fi
12437  as_test_x='
12438    eval sh -c '\''
12439      if test -d "$1"; then
12440	test -d "$1/.";
12441      else
12442	case $1 in
12443	-*)set "./$1";;
12444	esac;
12445	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12446	???[sx]*):;;*)false;;esac;fi
12447    '\'' sh
12448  '
12449fi
12450as_executable_p=$as_test_x
12451
12452# Sed expression to map a string onto a valid CPP name.
12453as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12454
12455# Sed expression to map a string onto a valid variable name.
12456as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12457
12458
12459exec 6>&1
12460
12461# Save the log message, to keep $[0] and so on meaningful, and to
12462# report actual input values of CONFIG_FILES etc. instead of their
12463# values after options handling.
12464ac_log="
12465This file was extended by libXxf86vm $as_me 1.1.0, which was
12466generated by GNU Autoconf 2.63.  Invocation command line was
12467
12468  CONFIG_FILES    = $CONFIG_FILES
12469  CONFIG_HEADERS  = $CONFIG_HEADERS
12470  CONFIG_LINKS    = $CONFIG_LINKS
12471  CONFIG_COMMANDS = $CONFIG_COMMANDS
12472  $ $0 $@
12473
12474on `(hostname || uname -n) 2>/dev/null | sed 1q`
12475"
12476
12477_ACEOF
12478
12479case $ac_config_files in *"
12480"*) set x $ac_config_files; shift; ac_config_files=$*;;
12481esac
12482
12483case $ac_config_headers in *"
12484"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12485esac
12486
12487
12488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12489# Files that config.status was made for.
12490config_files="$ac_config_files"
12491config_headers="$ac_config_headers"
12492config_commands="$ac_config_commands"
12493
12494_ACEOF
12495
12496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12497ac_cs_usage="\
12498\`$as_me' instantiates files from templates according to the
12499current configuration.
12500
12501Usage: $0 [OPTION]... [FILE]...
12502
12503  -h, --help       print this help, then exit
12504  -V, --version    print version number and configuration settings, then exit
12505  -q, --quiet, --silent
12506                   do not print progress messages
12507  -d, --debug      don't remove temporary files
12508      --recheck    update $as_me by reconfiguring in the same conditions
12509      --file=FILE[:TEMPLATE]
12510                   instantiate the configuration file FILE
12511      --header=FILE[:TEMPLATE]
12512                   instantiate the configuration header FILE
12513
12514Configuration files:
12515$config_files
12516
12517Configuration headers:
12518$config_headers
12519
12520Configuration commands:
12521$config_commands
12522
12523Report bugs to <bug-autoconf@gnu.org>."
12524
12525_ACEOF
12526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12527ac_cs_version="\\
12528libXxf86vm config.status 1.1.0
12529configured by $0, generated by GNU Autoconf 2.63,
12530  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12531
12532Copyright (C) 2008 Free Software Foundation, Inc.
12533This config.status script is free software; the Free Software Foundation
12534gives unlimited permission to copy, distribute and modify it."
12535
12536ac_pwd='$ac_pwd'
12537srcdir='$srcdir'
12538INSTALL='$INSTALL'
12539MKDIR_P='$MKDIR_P'
12540AWK='$AWK'
12541test -n "\$AWK" || AWK=awk
12542_ACEOF
12543
12544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12545# The default lists apply if the user does not specify any file.
12546ac_need_defaults=:
12547while test $# != 0
12548do
12549  case $1 in
12550  --*=*)
12551    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12552    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12553    ac_shift=:
12554    ;;
12555  *)
12556    ac_option=$1
12557    ac_optarg=$2
12558    ac_shift=shift
12559    ;;
12560  esac
12561
12562  case $ac_option in
12563  # Handling of the options.
12564  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12565    ac_cs_recheck=: ;;
12566  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12567    $as_echo "$ac_cs_version"; exit ;;
12568  --debug | --debu | --deb | --de | --d | -d )
12569    debug=: ;;
12570  --file | --fil | --fi | --f )
12571    $ac_shift
12572    case $ac_optarg in
12573    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12574    esac
12575    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12576    ac_need_defaults=false;;
12577  --header | --heade | --head | --hea )
12578    $ac_shift
12579    case $ac_optarg in
12580    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12581    esac
12582    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12583    ac_need_defaults=false;;
12584  --he | --h)
12585    # Conflict between --help and --header
12586    { $as_echo "$as_me: error: ambiguous option: $1
12587Try \`$0 --help' for more information." >&2
12588   { (exit 1); exit 1; }; };;
12589  --help | --hel | -h )
12590    $as_echo "$ac_cs_usage"; exit ;;
12591  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12592  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12593    ac_cs_silent=: ;;
12594
12595  # This is an error.
12596  -*) { $as_echo "$as_me: error: unrecognized option: $1
12597Try \`$0 --help' for more information." >&2
12598   { (exit 1); exit 1; }; } ;;
12599
12600  *) ac_config_targets="$ac_config_targets $1"
12601     ac_need_defaults=false ;;
12602
12603  esac
12604  shift
12605done
12606
12607ac_configure_extra_args=
12608
12609if $ac_cs_silent; then
12610  exec 6>/dev/null
12611  ac_configure_extra_args="$ac_configure_extra_args --silent"
12612fi
12613
12614_ACEOF
12615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12616if \$ac_cs_recheck; then
12617  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12618  shift
12619  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12620  CONFIG_SHELL='$SHELL'
12621  export CONFIG_SHELL
12622  exec "\$@"
12623fi
12624
12625_ACEOF
12626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12627exec 5>>config.log
12628{
12629  echo
12630  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12631## Running $as_me. ##
12632_ASBOX
12633  $as_echo "$ac_log"
12634} >&5
12635
12636_ACEOF
12637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638#
12639# INIT-COMMANDS
12640#
12641AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12642
12643
12644# The HP-UX ksh and POSIX shell print the target directory to stdout
12645# if CDPATH is set.
12646(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12647
12648sed_quote_subst='$sed_quote_subst'
12649double_quote_subst='$double_quote_subst'
12650delay_variable_subst='$delay_variable_subst'
12651macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12652macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12653enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12654enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12655pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12656enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12657host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12658host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12659host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12660build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12661build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12662build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12663SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12664Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12665GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12666EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12667FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12668LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12669NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12670LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12671max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12672ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12673exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12674lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12675lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12676lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12677reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12678reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12679OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12680deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12681file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12682AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12683AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12684STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12685RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12686old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12687old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12688old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12689CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12690CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12691compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12692GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12693lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12694lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12695lt_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"`'
12696lt_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"`'
12697objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12698SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12699ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12700MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12701lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12702lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12703lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12704lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12705lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12706need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12707DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12708NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12709LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12710OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12711OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12712libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12713shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12714extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12715archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12716enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12717export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12718whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12719compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12720old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12721old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12722archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12723archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12724module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12725module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12726with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12727allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12728no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12729hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12730hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12731hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12732hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12733hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12734hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12735hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12736hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12737inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12738link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12739fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12740always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12741export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12742exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12743include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12744prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12745file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12746variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12747need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12748need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12749version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12750runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12751shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12752shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12753libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12754library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12755soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12756postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12757postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12758finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12759finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12760hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12761sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12762sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12763hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12764enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12765enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12766enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12767old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12768striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12769
12770LTCC='$LTCC'
12771LTCFLAGS='$LTCFLAGS'
12772compiler='$compiler_DEFAULT'
12773
12774# Quote evaled strings.
12775for var in SED \
12776GREP \
12777EGREP \
12778FGREP \
12779LD \
12780NM \
12781LN_S \
12782lt_SP2NL \
12783lt_NL2SP \
12784reload_flag \
12785OBJDUMP \
12786deplibs_check_method \
12787file_magic_cmd \
12788AR \
12789AR_FLAGS \
12790STRIP \
12791RANLIB \
12792CC \
12793CFLAGS \
12794compiler \
12795lt_cv_sys_global_symbol_pipe \
12796lt_cv_sys_global_symbol_to_cdecl \
12797lt_cv_sys_global_symbol_to_c_name_address \
12798lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12799SHELL \
12800ECHO \
12801lt_prog_compiler_no_builtin_flag \
12802lt_prog_compiler_wl \
12803lt_prog_compiler_pic \
12804lt_prog_compiler_static \
12805lt_cv_prog_compiler_c_o \
12806need_locks \
12807DSYMUTIL \
12808NMEDIT \
12809LIPO \
12810OTOOL \
12811OTOOL64 \
12812shrext_cmds \
12813export_dynamic_flag_spec \
12814whole_archive_flag_spec \
12815compiler_needs_object \
12816with_gnu_ld \
12817allow_undefined_flag \
12818no_undefined_flag \
12819hardcode_libdir_flag_spec \
12820hardcode_libdir_flag_spec_ld \
12821hardcode_libdir_separator \
12822fix_srcfile_path \
12823exclude_expsyms \
12824include_expsyms \
12825file_list_spec \
12826variables_saved_for_relink \
12827libname_spec \
12828library_names_spec \
12829soname_spec \
12830finish_eval \
12831old_striplib \
12832striplib; do
12833    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12834    *[\\\\\\\`\\"\\\$]*)
12835      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12836      ;;
12837    *)
12838      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12839      ;;
12840    esac
12841done
12842
12843# Double-quote double-evaled strings.
12844for var in reload_cmds \
12845old_postinstall_cmds \
12846old_postuninstall_cmds \
12847old_archive_cmds \
12848extract_expsyms_cmds \
12849old_archive_from_new_cmds \
12850old_archive_from_expsyms_cmds \
12851archive_cmds \
12852archive_expsym_cmds \
12853module_cmds \
12854module_expsym_cmds \
12855export_symbols_cmds \
12856prelink_cmds \
12857postinstall_cmds \
12858postuninstall_cmds \
12859finish_cmds \
12860sys_lib_search_path_spec \
12861sys_lib_dlsearch_path_spec; do
12862    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12863    *[\\\\\\\`\\"\\\$]*)
12864      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12865      ;;
12866    *)
12867      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12868      ;;
12869    esac
12870done
12871
12872# Fix-up fallback echo if it was mangled by the above quoting rules.
12873case \$lt_ECHO in
12874*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12875  ;;
12876esac
12877
12878ac_aux_dir='$ac_aux_dir'
12879xsi_shell='$xsi_shell'
12880lt_shell_append='$lt_shell_append'
12881
12882# See if we are running on zsh, and set the options which allow our
12883# commands through without removal of \ escapes INIT.
12884if test -n "\${ZSH_VERSION+set}" ; then
12885   setopt NO_GLOB_SUBST
12886fi
12887
12888
12889    PACKAGE='$PACKAGE'
12890    VERSION='$VERSION'
12891    TIMESTAMP='$TIMESTAMP'
12892    RM='$RM'
12893    ofile='$ofile'
12894
12895
12896
12897
12898_ACEOF
12899
12900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12901
12902# Handling of arguments.
12903for ac_config_target in $ac_config_targets
12904do
12905  case $ac_config_target in
12906    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12907    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12908    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12909    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12910    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12911    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12912    "xxf86vm.pc") CONFIG_FILES="$CONFIG_FILES xxf86vm.pc" ;;
12913
12914  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12915$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12916   { (exit 1); exit 1; }; };;
12917  esac
12918done
12919
12920
12921# If the user did not use the arguments to specify the items to instantiate,
12922# then the envvar interface is used.  Set only those that are not.
12923# We use the long form for the default assignment because of an extremely
12924# bizarre bug on SunOS 4.1.3.
12925if $ac_need_defaults; then
12926  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12927  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12928  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12929fi
12930
12931# Have a temporary directory for convenience.  Make it in the build tree
12932# simply because there is no reason against having it here, and in addition,
12933# creating and moving files from /tmp can sometimes cause problems.
12934# Hook for its removal unless debugging.
12935# Note that there is a small window in which the directory will not be cleaned:
12936# after its creation but before its name has been assigned to `$tmp'.
12937$debug ||
12938{
12939  tmp=
12940  trap 'exit_status=$?
12941  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12942' 0
12943  trap '{ (exit 1); exit 1; }' 1 2 13 15
12944}
12945# Create a (secure) tmp directory for tmp files.
12946
12947{
12948  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12949  test -n "$tmp" && test -d "$tmp"
12950}  ||
12951{
12952  tmp=./conf$$-$RANDOM
12953  (umask 077 && mkdir "$tmp")
12954} ||
12955{
12956   $as_echo "$as_me: cannot create a temporary directory in ." >&2
12957   { (exit 1); exit 1; }
12958}
12959
12960# Set up the scripts for CONFIG_FILES section.
12961# No need to generate them if there are no CONFIG_FILES.
12962# This happens for instance with `./config.status config.h'.
12963if test -n "$CONFIG_FILES"; then
12964
12965
12966ac_cr='
12967'
12968ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12969if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12970  ac_cs_awk_cr='\\r'
12971else
12972  ac_cs_awk_cr=$ac_cr
12973fi
12974
12975echo 'BEGIN {' >"$tmp/subs1.awk" &&
12976_ACEOF
12977
12978
12979{
12980  echo "cat >conf$$subs.awk <<_ACEOF" &&
12981  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12982  echo "_ACEOF"
12983} >conf$$subs.sh ||
12984  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12985$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12986   { (exit 1); exit 1; }; }
12987ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12988ac_delim='%!_!# '
12989for ac_last_try in false false false false false :; do
12990  . ./conf$$subs.sh ||
12991    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12992$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12993   { (exit 1); exit 1; }; }
12994
12995  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12996  if test $ac_delim_n = $ac_delim_num; then
12997    break
12998  elif $ac_last_try; then
12999    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13000$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13001   { (exit 1); exit 1; }; }
13002  else
13003    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13004  fi
13005done
13006rm -f conf$$subs.sh
13007
13008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13009cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13010_ACEOF
13011sed -n '
13012h
13013s/^/S["/; s/!.*/"]=/
13014p
13015g
13016s/^[^!]*!//
13017:repl
13018t repl
13019s/'"$ac_delim"'$//
13020t delim
13021:nl
13022h
13023s/\(.\{148\}\).*/\1/
13024t more1
13025s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13026p
13027n
13028b repl
13029:more1
13030s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13031p
13032g
13033s/.\{148\}//
13034t nl
13035:delim
13036h
13037s/\(.\{148\}\).*/\1/
13038t more2
13039s/["\\]/\\&/g; s/^/"/; s/$/"/
13040p
13041b
13042:more2
13043s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13044p
13045g
13046s/.\{148\}//
13047t delim
13048' <conf$$subs.awk | sed '
13049/^[^""]/{
13050  N
13051  s/\n//
13052}
13053' >>$CONFIG_STATUS || ac_write_fail=1
13054rm -f conf$$subs.awk
13055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056_ACAWK
13057cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13058  for (key in S) S_is_set[key] = 1
13059  FS = ""
13060
13061}
13062{
13063  line = $ 0
13064  nfields = split(line, field, "@")
13065  substed = 0
13066  len = length(field[1])
13067  for (i = 2; i < nfields; i++) {
13068    key = field[i]
13069    keylen = length(key)
13070    if (S_is_set[key]) {
13071      value = S[key]
13072      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13073      len += length(value) + length(field[++i])
13074      substed = 1
13075    } else
13076      len += 1 + keylen
13077  }
13078
13079  print line
13080}
13081
13082_ACAWK
13083_ACEOF
13084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13085if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13086  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13087else
13088  cat
13089fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13090  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13091$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13092   { (exit 1); exit 1; }; }
13093_ACEOF
13094
13095# VPATH may cause trouble with some makes, so we remove $(srcdir),
13096# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13097# trailing colons and then remove the whole line if VPATH becomes empty
13098# (actually we leave an empty line to preserve line numbers).
13099if test "x$srcdir" = x.; then
13100  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13101s/:*\$(srcdir):*/:/
13102s/:*\${srcdir}:*/:/
13103s/:*@srcdir@:*/:/
13104s/^\([^=]*=[	 ]*\):*/\1/
13105s/:*$//
13106s/^[^=]*=[	 ]*$//
13107}'
13108fi
13109
13110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13111fi # test -n "$CONFIG_FILES"
13112
13113# Set up the scripts for CONFIG_HEADERS section.
13114# No need to generate them if there are no CONFIG_HEADERS.
13115# This happens for instance with `./config.status Makefile'.
13116if test -n "$CONFIG_HEADERS"; then
13117cat >"$tmp/defines.awk" <<\_ACAWK ||
13118BEGIN {
13119_ACEOF
13120
13121# Transform confdefs.h into an awk script `defines.awk', embedded as
13122# here-document in config.status, that substitutes the proper values into
13123# config.h.in to produce config.h.
13124
13125# Create a delimiter string that does not exist in confdefs.h, to ease
13126# handling of long lines.
13127ac_delim='%!_!# '
13128for ac_last_try in false false :; do
13129  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13130  if test -z "$ac_t"; then
13131    break
13132  elif $ac_last_try; then
13133    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13134$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13135   { (exit 1); exit 1; }; }
13136  else
13137    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13138  fi
13139done
13140
13141# For the awk script, D is an array of macro values keyed by name,
13142# likewise P contains macro parameters if any.  Preserve backslash
13143# newline sequences.
13144
13145ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13146sed -n '
13147s/.\{148\}/&'"$ac_delim"'/g
13148t rset
13149:rset
13150s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13151t def
13152d
13153:def
13154s/\\$//
13155t bsnl
13156s/["\\]/\\&/g
13157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13158D["\1"]=" \3"/p
13159s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13160d
13161:bsnl
13162s/["\\]/\\&/g
13163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13164D["\1"]=" \3\\\\\\n"\\/p
13165t cont
13166s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13167t cont
13168d
13169:cont
13170n
13171s/.\{148\}/&'"$ac_delim"'/g
13172t clear
13173:clear
13174s/\\$//
13175t bsnlc
13176s/["\\]/\\&/g; s/^/"/; s/$/"/p
13177d
13178:bsnlc
13179s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13180b cont
13181' <confdefs.h | sed '
13182s/'"$ac_delim"'/"\\\
13183"/g' >>$CONFIG_STATUS || ac_write_fail=1
13184
13185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13186  for (key in D) D_is_set[key] = 1
13187  FS = ""
13188}
13189/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13190  line = \$ 0
13191  split(line, arg, " ")
13192  if (arg[1] == "#") {
13193    defundef = arg[2]
13194    mac1 = arg[3]
13195  } else {
13196    defundef = substr(arg[1], 2)
13197    mac1 = arg[2]
13198  }
13199  split(mac1, mac2, "(") #)
13200  macro = mac2[1]
13201  prefix = substr(line, 1, index(line, defundef) - 1)
13202  if (D_is_set[macro]) {
13203    # Preserve the white space surrounding the "#".
13204    print prefix "define", macro P[macro] D[macro]
13205    next
13206  } else {
13207    # Replace #undef with comments.  This is necessary, for example,
13208    # in the case of _POSIX_SOURCE, which is predefined and required
13209    # on some systems where configure will not decide to define it.
13210    if (defundef == "undef") {
13211      print "/*", prefix defundef, macro, "*/"
13212      next
13213    }
13214  }
13215}
13216{ print }
13217_ACAWK
13218_ACEOF
13219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13220  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13221$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13222   { (exit 1); exit 1; }; }
13223fi # test -n "$CONFIG_HEADERS"
13224
13225
13226eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13227shift
13228for ac_tag
13229do
13230  case $ac_tag in
13231  :[FHLC]) ac_mode=$ac_tag; continue;;
13232  esac
13233  case $ac_mode$ac_tag in
13234  :[FHL]*:*);;
13235  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13236$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13237   { (exit 1); exit 1; }; };;
13238  :[FH]-) ac_tag=-:-;;
13239  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13240  esac
13241  ac_save_IFS=$IFS
13242  IFS=:
13243  set x $ac_tag
13244  IFS=$ac_save_IFS
13245  shift
13246  ac_file=$1
13247  shift
13248
13249  case $ac_mode in
13250  :L) ac_source=$1;;
13251  :[FH])
13252    ac_file_inputs=
13253    for ac_f
13254    do
13255      case $ac_f in
13256      -) ac_f="$tmp/stdin";;
13257      *) # Look for the file first in the build tree, then in the source tree
13258	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13259	 # because $ac_f cannot contain `:'.
13260	 test -f "$ac_f" ||
13261	   case $ac_f in
13262	   [\\/$]*) false;;
13263	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13264	   esac ||
13265	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13266$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13267   { (exit 1); exit 1; }; };;
13268      esac
13269      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13270      ac_file_inputs="$ac_file_inputs '$ac_f'"
13271    done
13272
13273    # Let's still pretend it is `configure' which instantiates (i.e., don't
13274    # use $as_me), people would be surprised to read:
13275    #    /* config.h.  Generated by config.status.  */
13276    configure_input='Generated from '`
13277	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13278	`' by configure.'
13279    if test x"$ac_file" != x-; then
13280      configure_input="$ac_file.  $configure_input"
13281      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13282$as_echo "$as_me: creating $ac_file" >&6;}
13283    fi
13284    # Neutralize special characters interpreted by sed in replacement strings.
13285    case $configure_input in #(
13286    *\&* | *\|* | *\\* )
13287       ac_sed_conf_input=`$as_echo "$configure_input" |
13288       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13289    *) ac_sed_conf_input=$configure_input;;
13290    esac
13291
13292    case $ac_tag in
13293    *:-:* | *:-) cat >"$tmp/stdin" \
13294      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13295$as_echo "$as_me: error: could not create $ac_file" >&2;}
13296   { (exit 1); exit 1; }; } ;;
13297    esac
13298    ;;
13299  esac
13300
13301  ac_dir=`$as_dirname -- "$ac_file" ||
13302$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13303	 X"$ac_file" : 'X\(//\)[^/]' \| \
13304	 X"$ac_file" : 'X\(//\)$' \| \
13305	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13306$as_echo X"$ac_file" |
13307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13308	    s//\1/
13309	    q
13310	  }
13311	  /^X\(\/\/\)[^/].*/{
13312	    s//\1/
13313	    q
13314	  }
13315	  /^X\(\/\/\)$/{
13316	    s//\1/
13317	    q
13318	  }
13319	  /^X\(\/\).*/{
13320	    s//\1/
13321	    q
13322	  }
13323	  s/.*/./; q'`
13324  { as_dir="$ac_dir"
13325  case $as_dir in #(
13326  -*) as_dir=./$as_dir;;
13327  esac
13328  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13329    as_dirs=
13330    while :; do
13331      case $as_dir in #(
13332      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13333      *) as_qdir=$as_dir;;
13334      esac
13335      as_dirs="'$as_qdir' $as_dirs"
13336      as_dir=`$as_dirname -- "$as_dir" ||
13337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13338	 X"$as_dir" : 'X\(//\)[^/]' \| \
13339	 X"$as_dir" : 'X\(//\)$' \| \
13340	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13341$as_echo X"$as_dir" |
13342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13343	    s//\1/
13344	    q
13345	  }
13346	  /^X\(\/\/\)[^/].*/{
13347	    s//\1/
13348	    q
13349	  }
13350	  /^X\(\/\/\)$/{
13351	    s//\1/
13352	    q
13353	  }
13354	  /^X\(\/\).*/{
13355	    s//\1/
13356	    q
13357	  }
13358	  s/.*/./; q'`
13359      test -d "$as_dir" && break
13360    done
13361    test -z "$as_dirs" || eval "mkdir $as_dirs"
13362  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13363$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13364   { (exit 1); exit 1; }; }; }
13365  ac_builddir=.
13366
13367case "$ac_dir" in
13368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13369*)
13370  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13371  # A ".." for each directory in $ac_dir_suffix.
13372  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13373  case $ac_top_builddir_sub in
13374  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13375  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13376  esac ;;
13377esac
13378ac_abs_top_builddir=$ac_pwd
13379ac_abs_builddir=$ac_pwd$ac_dir_suffix
13380# for backward compatibility:
13381ac_top_builddir=$ac_top_build_prefix
13382
13383case $srcdir in
13384  .)  # We are building in place.
13385    ac_srcdir=.
13386    ac_top_srcdir=$ac_top_builddir_sub
13387    ac_abs_top_srcdir=$ac_pwd ;;
13388  [\\/]* | ?:[\\/]* )  # Absolute name.
13389    ac_srcdir=$srcdir$ac_dir_suffix;
13390    ac_top_srcdir=$srcdir
13391    ac_abs_top_srcdir=$srcdir ;;
13392  *) # Relative name.
13393    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13394    ac_top_srcdir=$ac_top_build_prefix$srcdir
13395    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13396esac
13397ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13398
13399
13400  case $ac_mode in
13401  :F)
13402  #
13403  # CONFIG_FILE
13404  #
13405
13406  case $INSTALL in
13407  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13408  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13409  esac
13410  ac_MKDIR_P=$MKDIR_P
13411  case $MKDIR_P in
13412  [\\/$]* | ?:[\\/]* ) ;;
13413  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13414  esac
13415_ACEOF
13416
13417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13418# If the template does not know about datarootdir, expand it.
13419# FIXME: This hack should be removed a few years after 2.60.
13420ac_datarootdir_hack=; ac_datarootdir_seen=
13421
13422ac_sed_dataroot='
13423/datarootdir/ {
13424  p
13425  q
13426}
13427/@datadir@/p
13428/@docdir@/p
13429/@infodir@/p
13430/@localedir@/p
13431/@mandir@/p
13432'
13433case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13434*datarootdir*) ac_datarootdir_seen=yes;;
13435*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13436  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13437$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13438_ACEOF
13439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13440  ac_datarootdir_hack='
13441  s&@datadir@&$datadir&g
13442  s&@docdir@&$docdir&g
13443  s&@infodir@&$infodir&g
13444  s&@localedir@&$localedir&g
13445  s&@mandir@&$mandir&g
13446    s&\\\${datarootdir}&$datarootdir&g' ;;
13447esac
13448_ACEOF
13449
13450# Neutralize VPATH when `$srcdir' = `.'.
13451# Shell code in configure.ac might set extrasub.
13452# FIXME: do we really want to maintain this feature?
13453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13454ac_sed_extra="$ac_vpsub
13455$extrasub
13456_ACEOF
13457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458:t
13459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13460s|@configure_input@|$ac_sed_conf_input|;t t
13461s&@top_builddir@&$ac_top_builddir_sub&;t t
13462s&@top_build_prefix@&$ac_top_build_prefix&;t t
13463s&@srcdir@&$ac_srcdir&;t t
13464s&@abs_srcdir@&$ac_abs_srcdir&;t t
13465s&@top_srcdir@&$ac_top_srcdir&;t t
13466s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13467s&@builddir@&$ac_builddir&;t t
13468s&@abs_builddir@&$ac_abs_builddir&;t t
13469s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13470s&@INSTALL@&$ac_INSTALL&;t t
13471s&@MKDIR_P@&$ac_MKDIR_P&;t t
13472$ac_datarootdir_hack
13473"
13474eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13475  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13476$as_echo "$as_me: error: could not create $ac_file" >&2;}
13477   { (exit 1); exit 1; }; }
13478
13479test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13480  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13481  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13482  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13483which seems to be undefined.  Please make sure it is defined." >&5
13484$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13485which seems to be undefined.  Please make sure it is defined." >&2;}
13486
13487  rm -f "$tmp/stdin"
13488  case $ac_file in
13489  -) cat "$tmp/out" && rm -f "$tmp/out";;
13490  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13491  esac \
13492  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13493$as_echo "$as_me: error: could not create $ac_file" >&2;}
13494   { (exit 1); exit 1; }; }
13495 ;;
13496  :H)
13497  #
13498  # CONFIG_HEADER
13499  #
13500  if test x"$ac_file" != x-; then
13501    {
13502      $as_echo "/* $configure_input  */" \
13503      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13504    } >"$tmp/config.h" \
13505      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13506$as_echo "$as_me: error: could not create $ac_file" >&2;}
13507   { (exit 1); exit 1; }; }
13508    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13509      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13510$as_echo "$as_me: $ac_file is unchanged" >&6;}
13511    else
13512      rm -f "$ac_file"
13513      mv "$tmp/config.h" "$ac_file" \
13514	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13515$as_echo "$as_me: error: could not create $ac_file" >&2;}
13516   { (exit 1); exit 1; }; }
13517    fi
13518  else
13519    $as_echo "/* $configure_input  */" \
13520      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13521      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13522$as_echo "$as_me: error: could not create -" >&2;}
13523   { (exit 1); exit 1; }; }
13524  fi
13525# Compute "$ac_file"'s index in $config_headers.
13526_am_arg="$ac_file"
13527_am_stamp_count=1
13528for _am_header in $config_headers :; do
13529  case $_am_header in
13530    $_am_arg | $_am_arg:* )
13531      break ;;
13532    * )
13533      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13534  esac
13535done
13536echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13537$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13538	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13539	 X"$_am_arg" : 'X\(//\)$' \| \
13540	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13541$as_echo X"$_am_arg" |
13542    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13543	    s//\1/
13544	    q
13545	  }
13546	  /^X\(\/\/\)[^/].*/{
13547	    s//\1/
13548	    q
13549	  }
13550	  /^X\(\/\/\)$/{
13551	    s//\1/
13552	    q
13553	  }
13554	  /^X\(\/\).*/{
13555	    s//\1/
13556	    q
13557	  }
13558	  s/.*/./; q'`/stamp-h$_am_stamp_count
13559 ;;
13560
13561  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13562$as_echo "$as_me: executing $ac_file commands" >&6;}
13563 ;;
13564  esac
13565
13566
13567  case $ac_file$ac_mode in
13568    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13569  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13570  # are listed without --file.  Let's play safe and only enable the eval
13571  # if we detect the quoting.
13572  case $CONFIG_FILES in
13573  *\'*) eval set x "$CONFIG_FILES" ;;
13574  *)   set x $CONFIG_FILES ;;
13575  esac
13576  shift
13577  for mf
13578  do
13579    # Strip MF so we end up with the name of the file.
13580    mf=`echo "$mf" | sed -e 's/:.*$//'`
13581    # Check whether this is an Automake generated Makefile or not.
13582    # We used to match only the files named `Makefile.in', but
13583    # some people rename them; so instead we look at the file content.
13584    # Grep'ing the first line is not enough: some people post-process
13585    # each Makefile.in and add a new line on top of each file to say so.
13586    # Grep'ing the whole file is not good either: AIX grep has a line
13587    # limit of 2048, but all sed's we know have understand at least 4000.
13588    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13589      dirpart=`$as_dirname -- "$mf" ||
13590$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13591	 X"$mf" : 'X\(//\)[^/]' \| \
13592	 X"$mf" : 'X\(//\)$' \| \
13593	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13594$as_echo X"$mf" |
13595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13596	    s//\1/
13597	    q
13598	  }
13599	  /^X\(\/\/\)[^/].*/{
13600	    s//\1/
13601	    q
13602	  }
13603	  /^X\(\/\/\)$/{
13604	    s//\1/
13605	    q
13606	  }
13607	  /^X\(\/\).*/{
13608	    s//\1/
13609	    q
13610	  }
13611	  s/.*/./; q'`
13612    else
13613      continue
13614    fi
13615    # Extract the definition of DEPDIR, am__include, and am__quote
13616    # from the Makefile without running `make'.
13617    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13618    test -z "$DEPDIR" && continue
13619    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13620    test -z "am__include" && continue
13621    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13622    # When using ansi2knr, U may be empty or an underscore; expand it
13623    U=`sed -n 's/^U = //p' < "$mf"`
13624    # Find all dependency output files, they are included files with
13625    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13626    # simplest approach to changing $(DEPDIR) to its actual value in the
13627    # expansion.
13628    for file in `sed -n "
13629      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13630	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13631      # Make sure the directory exists.
13632      test -f "$dirpart/$file" && continue
13633      fdir=`$as_dirname -- "$file" ||
13634$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13635	 X"$file" : 'X\(//\)[^/]' \| \
13636	 X"$file" : 'X\(//\)$' \| \
13637	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13638$as_echo X"$file" |
13639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13640	    s//\1/
13641	    q
13642	  }
13643	  /^X\(\/\/\)[^/].*/{
13644	    s//\1/
13645	    q
13646	  }
13647	  /^X\(\/\/\)$/{
13648	    s//\1/
13649	    q
13650	  }
13651	  /^X\(\/\).*/{
13652	    s//\1/
13653	    q
13654	  }
13655	  s/.*/./; q'`
13656      { as_dir=$dirpart/$fdir
13657  case $as_dir in #(
13658  -*) as_dir=./$as_dir;;
13659  esac
13660  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13661    as_dirs=
13662    while :; do
13663      case $as_dir in #(
13664      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13665      *) as_qdir=$as_dir;;
13666      esac
13667      as_dirs="'$as_qdir' $as_dirs"
13668      as_dir=`$as_dirname -- "$as_dir" ||
13669$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13670	 X"$as_dir" : 'X\(//\)[^/]' \| \
13671	 X"$as_dir" : 'X\(//\)$' \| \
13672	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13673$as_echo X"$as_dir" |
13674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13675	    s//\1/
13676	    q
13677	  }
13678	  /^X\(\/\/\)[^/].*/{
13679	    s//\1/
13680	    q
13681	  }
13682	  /^X\(\/\/\)$/{
13683	    s//\1/
13684	    q
13685	  }
13686	  /^X\(\/\).*/{
13687	    s//\1/
13688	    q
13689	  }
13690	  s/.*/./; q'`
13691      test -d "$as_dir" && break
13692    done
13693    test -z "$as_dirs" || eval "mkdir $as_dirs"
13694  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13695$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13696   { (exit 1); exit 1; }; }; }
13697      # echo "creating $dirpart/$file"
13698      echo '# dummy' > "$dirpart/$file"
13699    done
13700  done
13701}
13702 ;;
13703    "libtool":C)
13704
13705    # See if we are running on zsh, and set the options which allow our
13706    # commands through without removal of \ escapes.
13707    if test -n "${ZSH_VERSION+set}" ; then
13708      setopt NO_GLOB_SUBST
13709    fi
13710
13711    cfgfile="${ofile}T"
13712    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13713    $RM "$cfgfile"
13714
13715    cat <<_LT_EOF >> "$cfgfile"
13716#! $SHELL
13717
13718# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13719# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13720# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13721# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13722#
13723#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13724#                 2006, 2007, 2008 Free Software Foundation, Inc.
13725#   Written by Gordon Matzigkeit, 1996
13726#
13727#   This file is part of GNU Libtool.
13728#
13729# GNU Libtool is free software; you can redistribute it and/or
13730# modify it under the terms of the GNU General Public License as
13731# published by the Free Software Foundation; either version 2 of
13732# the License, or (at your option) any later version.
13733#
13734# As a special exception to the GNU General Public License,
13735# if you distribute this file as part of a program or library that
13736# is built using GNU Libtool, you may include this file under the
13737# same distribution terms that you use for the rest of that program.
13738#
13739# GNU Libtool is distributed in the hope that it will be useful,
13740# but WITHOUT ANY WARRANTY; without even the implied warranty of
13741# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13742# GNU General Public License for more details.
13743#
13744# You should have received a copy of the GNU General Public License
13745# along with GNU Libtool; see the file COPYING.  If not, a copy
13746# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13747# obtained by writing to the Free Software Foundation, Inc.,
13748# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13749
13750
13751# The names of the tagged configurations supported by this script.
13752available_tags=""
13753
13754# ### BEGIN LIBTOOL CONFIG
13755
13756# Which release of libtool.m4 was used?
13757macro_version=$macro_version
13758macro_revision=$macro_revision
13759
13760# Whether or not to build shared libraries.
13761build_libtool_libs=$enable_shared
13762
13763# Whether or not to build static libraries.
13764build_old_libs=$enable_static
13765
13766# What type of objects to build.
13767pic_mode=$pic_mode
13768
13769# Whether or not to optimize for fast installation.
13770fast_install=$enable_fast_install
13771
13772# The host system.
13773host_alias=$host_alias
13774host=$host
13775host_os=$host_os
13776
13777# The build system.
13778build_alias=$build_alias
13779build=$build
13780build_os=$build_os
13781
13782# A sed program that does not truncate output.
13783SED=$lt_SED
13784
13785# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13786Xsed="\$SED -e 1s/^X//"
13787
13788# A grep program that handles long lines.
13789GREP=$lt_GREP
13790
13791# An ERE matcher.
13792EGREP=$lt_EGREP
13793
13794# A literal string matcher.
13795FGREP=$lt_FGREP
13796
13797# A BSD- or MS-compatible name lister.
13798NM=$lt_NM
13799
13800# Whether we need soft or hard links.
13801LN_S=$lt_LN_S
13802
13803# What is the maximum length of a command?
13804max_cmd_len=$max_cmd_len
13805
13806# Object file suffix (normally "o").
13807objext=$ac_objext
13808
13809# Executable file suffix (normally "").
13810exeext=$exeext
13811
13812# whether the shell understands "unset".
13813lt_unset=$lt_unset
13814
13815# turn spaces into newlines.
13816SP2NL=$lt_lt_SP2NL
13817
13818# turn newlines into spaces.
13819NL2SP=$lt_lt_NL2SP
13820
13821# How to create reloadable object files.
13822reload_flag=$lt_reload_flag
13823reload_cmds=$lt_reload_cmds
13824
13825# An object symbol dumper.
13826OBJDUMP=$lt_OBJDUMP
13827
13828# Method to check whether dependent libraries are shared objects.
13829deplibs_check_method=$lt_deplibs_check_method
13830
13831# Command to use when deplibs_check_method == "file_magic".
13832file_magic_cmd=$lt_file_magic_cmd
13833
13834# The archiver.
13835AR=$lt_AR
13836AR_FLAGS=$lt_AR_FLAGS
13837
13838# A symbol stripping program.
13839STRIP=$lt_STRIP
13840
13841# Commands used to install an old-style archive.
13842RANLIB=$lt_RANLIB
13843old_postinstall_cmds=$lt_old_postinstall_cmds
13844old_postuninstall_cmds=$lt_old_postuninstall_cmds
13845
13846# A C compiler.
13847LTCC=$lt_CC
13848
13849# LTCC compiler flags.
13850LTCFLAGS=$lt_CFLAGS
13851
13852# Take the output of nm and produce a listing of raw symbols and C names.
13853global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13854
13855# Transform the output of nm in a proper C declaration.
13856global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13857
13858# Transform the output of nm in a C name address pair.
13859global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13860
13861# Transform the output of nm in a C name address pair when lib prefix is needed.
13862global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13863
13864# The name of the directory that contains temporary libtool files.
13865objdir=$objdir
13866
13867# Shell to use when invoking shell scripts.
13868SHELL=$lt_SHELL
13869
13870# An echo program that does not interpret backslashes.
13871ECHO=$lt_ECHO
13872
13873# Used to examine libraries when file_magic_cmd begins with "file".
13874MAGIC_CMD=$MAGIC_CMD
13875
13876# Must we lock files when doing compilation?
13877need_locks=$lt_need_locks
13878
13879# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13880DSYMUTIL=$lt_DSYMUTIL
13881
13882# Tool to change global to local symbols on Mac OS X.
13883NMEDIT=$lt_NMEDIT
13884
13885# Tool to manipulate fat objects and archives on Mac OS X.
13886LIPO=$lt_LIPO
13887
13888# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13889OTOOL=$lt_OTOOL
13890
13891# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13892OTOOL64=$lt_OTOOL64
13893
13894# Old archive suffix (normally "a").
13895libext=$libext
13896
13897# Shared library suffix (normally ".so").
13898shrext_cmds=$lt_shrext_cmds
13899
13900# The commands to extract the exported symbol list from a shared archive.
13901extract_expsyms_cmds=$lt_extract_expsyms_cmds
13902
13903# Variables whose values should be saved in libtool wrapper scripts and
13904# restored at link time.
13905variables_saved_for_relink=$lt_variables_saved_for_relink
13906
13907# Do we need the "lib" prefix for modules?
13908need_lib_prefix=$need_lib_prefix
13909
13910# Do we need a version for libraries?
13911need_version=$need_version
13912
13913# Library versioning type.
13914version_type=$version_type
13915
13916# Shared library runtime path variable.
13917runpath_var=$runpath_var
13918
13919# Shared library path variable.
13920shlibpath_var=$shlibpath_var
13921
13922# Is shlibpath searched before the hard-coded library search path?
13923shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13924
13925# Format of library name prefix.
13926libname_spec=$lt_libname_spec
13927
13928# List of archive names.  First name is the real one, the rest are links.
13929# The last name is the one that the linker finds with -lNAME
13930library_names_spec=$lt_library_names_spec
13931
13932# The coded name of the library, if different from the real name.
13933soname_spec=$lt_soname_spec
13934
13935# Command to use after installation of a shared archive.
13936postinstall_cmds=$lt_postinstall_cmds
13937
13938# Command to use after uninstallation of a shared archive.
13939postuninstall_cmds=$lt_postuninstall_cmds
13940
13941# Commands used to finish a libtool library installation in a directory.
13942finish_cmds=$lt_finish_cmds
13943
13944# As "finish_cmds", except a single script fragment to be evaled but
13945# not shown.
13946finish_eval=$lt_finish_eval
13947
13948# Whether we should hardcode library paths into libraries.
13949hardcode_into_libs=$hardcode_into_libs
13950
13951# Compile-time system search path for libraries.
13952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13953
13954# Run-time system search path for libraries.
13955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13956
13957# Whether dlopen is supported.
13958dlopen_support=$enable_dlopen
13959
13960# Whether dlopen of programs is supported.
13961dlopen_self=$enable_dlopen_self
13962
13963# Whether dlopen of statically linked programs is supported.
13964dlopen_self_static=$enable_dlopen_self_static
13965
13966# Commands to strip libraries.
13967old_striplib=$lt_old_striplib
13968striplib=$lt_striplib
13969
13970
13971# The linker used to build libraries.
13972LD=$lt_LD
13973
13974# Commands used to build an old-style archive.
13975old_archive_cmds=$lt_old_archive_cmds
13976
13977# A language specific compiler.
13978CC=$lt_compiler
13979
13980# Is the compiler the GNU compiler?
13981with_gcc=$GCC
13982
13983# Compiler flag to turn off builtin functions.
13984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13985
13986# How to pass a linker flag through the compiler.
13987wl=$lt_lt_prog_compiler_wl
13988
13989# Additional compiler flags for building library objects.
13990pic_flag=$lt_lt_prog_compiler_pic
13991
13992# Compiler flag to prevent dynamic linking.
13993link_static_flag=$lt_lt_prog_compiler_static
13994
13995# Does compiler simultaneously support -c and -o options?
13996compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13997
13998# Whether or not to add -lc for building shared libraries.
13999build_libtool_need_lc=$archive_cmds_need_lc
14000
14001# Whether or not to disallow shared libs when runtime libs are static.
14002allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14003
14004# Compiler flag to allow reflexive dlopens.
14005export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14006
14007# Compiler flag to generate shared objects directly from archives.
14008whole_archive_flag_spec=$lt_whole_archive_flag_spec
14009
14010# Whether the compiler copes with passing no objects directly.
14011compiler_needs_object=$lt_compiler_needs_object
14012
14013# Create an old-style archive from a shared archive.
14014old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14015
14016# Create a temporary old-style archive to link instead of a shared archive.
14017old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14018
14019# Commands used to build a shared archive.
14020archive_cmds=$lt_archive_cmds
14021archive_expsym_cmds=$lt_archive_expsym_cmds
14022
14023# Commands used to build a loadable module if different from building
14024# a shared archive.
14025module_cmds=$lt_module_cmds
14026module_expsym_cmds=$lt_module_expsym_cmds
14027
14028# Whether we are building with GNU ld or not.
14029with_gnu_ld=$lt_with_gnu_ld
14030
14031# Flag that allows shared libraries with undefined symbols to be built.
14032allow_undefined_flag=$lt_allow_undefined_flag
14033
14034# Flag that enforces no undefined symbols.
14035no_undefined_flag=$lt_no_undefined_flag
14036
14037# Flag to hardcode \$libdir into a binary during linking.
14038# This must work even if \$libdir does not exist
14039hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14040
14041# If ld is used when linking, flag to hardcode \$libdir into a binary
14042# during linking.  This must work even if \$libdir does not exist.
14043hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14044
14045# Whether we need a single "-rpath" flag with a separated argument.
14046hardcode_libdir_separator=$lt_hardcode_libdir_separator
14047
14048# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14049# DIR into the resulting binary.
14050hardcode_direct=$hardcode_direct
14051
14052# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14053# DIR into the resulting binary and the resulting library dependency is
14054# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14055# library is relocated.
14056hardcode_direct_absolute=$hardcode_direct_absolute
14057
14058# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14059# into the resulting binary.
14060hardcode_minus_L=$hardcode_minus_L
14061
14062# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14063# into the resulting binary.
14064hardcode_shlibpath_var=$hardcode_shlibpath_var
14065
14066# Set to "yes" if building a shared library automatically hardcodes DIR
14067# into the library and all subsequent libraries and executables linked
14068# against it.
14069hardcode_automatic=$hardcode_automatic
14070
14071# Set to yes if linker adds runtime paths of dependent libraries
14072# to runtime path list.
14073inherit_rpath=$inherit_rpath
14074
14075# Whether libtool must link a program against all its dependency libraries.
14076link_all_deplibs=$link_all_deplibs
14077
14078# Fix the shell variable \$srcfile for the compiler.
14079fix_srcfile_path=$lt_fix_srcfile_path
14080
14081# Set to "yes" if exported symbols are required.
14082always_export_symbols=$always_export_symbols
14083
14084# The commands to list exported symbols.
14085export_symbols_cmds=$lt_export_symbols_cmds
14086
14087# Symbols that should not be listed in the preloaded symbols.
14088exclude_expsyms=$lt_exclude_expsyms
14089
14090# Symbols that must always be exported.
14091include_expsyms=$lt_include_expsyms
14092
14093# Commands necessary for linking programs (against libraries) with templates.
14094prelink_cmds=$lt_prelink_cmds
14095
14096# Specify filename containing input files.
14097file_list_spec=$lt_file_list_spec
14098
14099# How to hardcode a shared library path into an executable.
14100hardcode_action=$hardcode_action
14101
14102# ### END LIBTOOL CONFIG
14103
14104_LT_EOF
14105
14106  case $host_os in
14107  aix3*)
14108    cat <<\_LT_EOF >> "$cfgfile"
14109# AIX sometimes has problems with the GCC collect2 program.  For some
14110# reason, if we set the COLLECT_NAMES environment variable, the problems
14111# vanish in a puff of smoke.
14112if test "X${COLLECT_NAMES+set}" != Xset; then
14113  COLLECT_NAMES=
14114  export COLLECT_NAMES
14115fi
14116_LT_EOF
14117    ;;
14118  esac
14119
14120
14121ltmain="$ac_aux_dir/ltmain.sh"
14122
14123
14124  # We use sed instead of cat because bash on DJGPP gets confused if
14125  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14126  # text mode, it properly converts lines to CR/LF.  This bash problem
14127  # is reportedly fixed, but why not run on old versions too?
14128  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14129    || (rm -f "$cfgfile"; exit 1)
14130
14131  case $xsi_shell in
14132  yes)
14133    cat << \_LT_EOF >> "$cfgfile"
14134
14135# func_dirname file append nondir_replacement
14136# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14137# otherwise set result to NONDIR_REPLACEMENT.
14138func_dirname ()
14139{
14140  case ${1} in
14141    */*) func_dirname_result="${1%/*}${2}" ;;
14142    *  ) func_dirname_result="${3}" ;;
14143  esac
14144}
14145
14146# func_basename file
14147func_basename ()
14148{
14149  func_basename_result="${1##*/}"
14150}
14151
14152# func_dirname_and_basename file append nondir_replacement
14153# perform func_basename and func_dirname in a single function
14154# call:
14155#   dirname:  Compute the dirname of FILE.  If nonempty,
14156#             add APPEND to the result, otherwise set result
14157#             to NONDIR_REPLACEMENT.
14158#             value returned in "$func_dirname_result"
14159#   basename: Compute filename of FILE.
14160#             value retuned in "$func_basename_result"
14161# Implementation must be kept synchronized with func_dirname
14162# and func_basename. For efficiency, we do not delegate to
14163# those functions but instead duplicate the functionality here.
14164func_dirname_and_basename ()
14165{
14166  case ${1} in
14167    */*) func_dirname_result="${1%/*}${2}" ;;
14168    *  ) func_dirname_result="${3}" ;;
14169  esac
14170  func_basename_result="${1##*/}"
14171}
14172
14173# func_stripname prefix suffix name
14174# strip PREFIX and SUFFIX off of NAME.
14175# PREFIX and SUFFIX must not contain globbing or regex special
14176# characters, hashes, percent signs, but SUFFIX may contain a leading
14177# dot (in which case that matches only a dot).
14178func_stripname ()
14179{
14180  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14181  # positional parameters, so assign one to ordinary parameter first.
14182  func_stripname_result=${3}
14183  func_stripname_result=${func_stripname_result#"${1}"}
14184  func_stripname_result=${func_stripname_result%"${2}"}
14185}
14186
14187# func_opt_split
14188func_opt_split ()
14189{
14190  func_opt_split_opt=${1%%=*}
14191  func_opt_split_arg=${1#*=}
14192}
14193
14194# func_lo2o object
14195func_lo2o ()
14196{
14197  case ${1} in
14198    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14199    *)    func_lo2o_result=${1} ;;
14200  esac
14201}
14202
14203# func_xform libobj-or-source
14204func_xform ()
14205{
14206  func_xform_result=${1%.*}.lo
14207}
14208
14209# func_arith arithmetic-term...
14210func_arith ()
14211{
14212  func_arith_result=$(( $* ))
14213}
14214
14215# func_len string
14216# STRING may not start with a hyphen.
14217func_len ()
14218{
14219  func_len_result=${#1}
14220}
14221
14222_LT_EOF
14223    ;;
14224  *) # Bourne compatible functions.
14225    cat << \_LT_EOF >> "$cfgfile"
14226
14227# func_dirname file append nondir_replacement
14228# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14229# otherwise set result to NONDIR_REPLACEMENT.
14230func_dirname ()
14231{
14232  # Extract subdirectory from the argument.
14233  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14234  if test "X$func_dirname_result" = "X${1}"; then
14235    func_dirname_result="${3}"
14236  else
14237    func_dirname_result="$func_dirname_result${2}"
14238  fi
14239}
14240
14241# func_basename file
14242func_basename ()
14243{
14244  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14245}
14246
14247
14248# func_stripname prefix suffix name
14249# strip PREFIX and SUFFIX off of NAME.
14250# PREFIX and SUFFIX must not contain globbing or regex special
14251# characters, hashes, percent signs, but SUFFIX may contain a leading
14252# dot (in which case that matches only a dot).
14253# func_strip_suffix prefix name
14254func_stripname ()
14255{
14256  case ${2} in
14257    .*) func_stripname_result=`$ECHO "X${3}" \
14258           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14259    *)  func_stripname_result=`$ECHO "X${3}" \
14260           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14261  esac
14262}
14263
14264# sed scripts:
14265my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14266my_sed_long_arg='1s/^-[^=]*=//'
14267
14268# func_opt_split
14269func_opt_split ()
14270{
14271  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14272  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14273}
14274
14275# func_lo2o object
14276func_lo2o ()
14277{
14278  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14279}
14280
14281# func_xform libobj-or-source
14282func_xform ()
14283{
14284  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14285}
14286
14287# func_arith arithmetic-term...
14288func_arith ()
14289{
14290  func_arith_result=`expr "$@"`
14291}
14292
14293# func_len string
14294# STRING may not start with a hyphen.
14295func_len ()
14296{
14297  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14298}
14299
14300_LT_EOF
14301esac
14302
14303case $lt_shell_append in
14304  yes)
14305    cat << \_LT_EOF >> "$cfgfile"
14306
14307# func_append var value
14308# Append VALUE to the end of shell variable VAR.
14309func_append ()
14310{
14311  eval "$1+=\$2"
14312}
14313_LT_EOF
14314    ;;
14315  *)
14316    cat << \_LT_EOF >> "$cfgfile"
14317
14318# func_append var value
14319# Append VALUE to the end of shell variable VAR.
14320func_append ()
14321{
14322  eval "$1=\$$1\$2"
14323}
14324
14325_LT_EOF
14326    ;;
14327  esac
14328
14329
14330  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14331    || (rm -f "$cfgfile"; exit 1)
14332
14333  mv -f "$cfgfile" "$ofile" ||
14334    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14335  chmod +x "$ofile"
14336
14337 ;;
14338
14339  esac
14340done # for ac_tag
14341
14342
14343{ (exit 0); exit 0; }
14344_ACEOF
14345chmod +x $CONFIG_STATUS
14346ac_clean_files=$ac_clean_files_save
14347
14348test $ac_write_fail = 0 ||
14349  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14350$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14351   { (exit 1); exit 1; }; }
14352
14353
14354# configure is writing to config.log, and then calls config.status.
14355# config.status does its own redirection, appending to config.log.
14356# Unfortunately, on DOS this fails, as config.log is still kept open
14357# by configure, so config.status won't be able to write to it; its
14358# output is simply discarded.  So we exec the FD to /dev/null,
14359# effectively closing config.log, so it can be properly (re)opened and
14360# appended to by config.status.  When coming back to configure, we
14361# need to make the FD available again.
14362if test "$no_create" != yes; then
14363  ac_cs_success=:
14364  ac_config_status_args=
14365  test "$silent" = yes &&
14366    ac_config_status_args="$ac_config_status_args --quiet"
14367  exec 5>/dev/null
14368  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14369  exec 5>>config.log
14370  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14371  # would make configure fail if this is the last instruction.
14372  $ac_cs_success || { (exit 1); exit 1; }
14373fi
14374if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14375  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14376$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14377fi
14378
14379