configure revision e19dfac4
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libXau 1.0.5.
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='libXau'
747PACKAGE_TARNAME='libXau'
748PACKAGE_VERSION='1.0.5'
749PACKAGE_STRING='libXau 1.0.5'
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
792distcleancheck_listfiles
793CHANGELOG_CMD
794ADMIN_MAN_DIR
795DRIVER_MAN_DIR
796MISC_MAN_DIR
797FILE_MAN_DIR
798LIB_MAN_DIR
799APP_MAN_DIR
800ADMIN_MAN_SUFFIX
801DRIVER_MAN_SUFFIX
802MISC_MAN_SUFFIX
803FILE_MAN_SUFFIX
804LIB_MAN_SUFFIX
805APP_MAN_SUFFIX
806MAKE_LINT_LIB_FALSE
807MAKE_LINT_LIB_TRUE
808LINTLIB
809LINT_FALSE
810LINT_TRUE
811LINT_FLAGS
812LINT
813XAU_LIBS
814XAU_CFLAGS
815PKG_CONFIG
816AM_BACKSLASH
817AM_DEFAULT_VERBOSITY
818CWARNFLAGS
819CPP
820OTOOL64
821OTOOL
822LIPO
823NMEDIT
824DSYMUTIL
825lt_ECHO
826RANLIB
827AR
828NM
829ac_ct_DUMPBIN
830DUMPBIN
831LD
832FGREP
833EGREP
834GREP
835SED
836LIBTOOL
837OBJDUMP
838DLLTOOL
839AS
840host_os
841host_vendor
842host_cpu
843host
844build_os
845build_vendor
846build_cpu
847build
848LN_S
849am__fastdepCC_FALSE
850am__fastdepCC_TRUE
851CCDEPMODE
852AMDEPBACKSLASH
853AMDEP_FALSE
854AMDEP_TRUE
855am__quote
856am__include
857DEPDIR
858OBJEXT
859EXEEXT
860ac_ct_CC
861CPPFLAGS
862LDFLAGS
863CFLAGS
864CC
865MAINT
866MAINTAINER_MODE_FALSE
867MAINTAINER_MODE_TRUE
868am__untar
869am__tar
870AMTAR
871am__leading_dot
872SET_MAKE
873AWK
874mkdir_p
875MKDIR_P
876INSTALL_STRIP_PROGRAM
877STRIP
878install_sh
879MAKEINFO
880AUTOHEADER
881AUTOMAKE
882AUTOCONF
883ACLOCAL
884VERSION
885PACKAGE
886CYGPATH_W
887am__isrc
888INSTALL_DATA
889INSTALL_SCRIPT
890INSTALL_PROGRAM
891target_alias
892host_alias
893build_alias
894LIBS
895ECHO_T
896ECHO_N
897ECHO_C
898DEFS
899mandir
900localedir
901libdir
902psdir
903pdfdir
904dvidir
905htmldir
906infodir
907docdir
908oldincludedir
909includedir
910localstatedir
911sharedstatedir
912sysconfdir
913datadir
914datarootdir
915libexecdir
916sbindir
917bindir
918program_transform_name
919prefix
920exec_prefix
921PACKAGE_BUGREPORT
922PACKAGE_STRING
923PACKAGE_VERSION
924PACKAGE_TARNAME
925PACKAGE_NAME
926PATH_SEPARATOR
927SHELL'
928ac_subst_files=''
929ac_user_opts='
930enable_option_checking
931enable_maintainer_mode
932enable_dependency_tracking
933enable_shared
934enable_static
935with_pic
936enable_fast_install
937with_gnu_ld
938enable_libtool_lock
939enable_silent_rules
940enable_xthreads
941with_lint
942enable_lint_library
943with_release_version
944'
945      ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CPP
954PKG_CONFIG
955XAU_CFLAGS
956XAU_LIBS'
957
958
959# Initialize some variables set by options.
960ac_init_help=
961ac_init_version=false
962ac_unrecognized_opts=
963ac_unrecognized_sep=
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
986# (The list follows the same order as the GNU Coding Standards.)
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011  # If the previous option needs an argument, assign it.
1012  if test -n "$ac_prev"; then
1013    eval $ac_prev=\$ac_option
1014    ac_prev=
1015    continue
1016  fi
1017
1018  case $ac_option in
1019  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020  *)	ac_optarg=yes ;;
1021  esac
1022
1023  # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025  case $ac_dashdash$ac_option in
1026  --)
1027    ac_dashdash=yes ;;
1028
1029  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030    ac_prev=bindir ;;
1031  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032    bindir=$ac_optarg ;;
1033
1034  -build | --build | --buil | --bui | --bu)
1035    ac_prev=build_alias ;;
1036  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037    build_alias=$ac_optarg ;;
1038
1039  -cache-file | --cache-file | --cache-fil | --cache-fi \
1040  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041    ac_prev=cache_file ;;
1042  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044    cache_file=$ac_optarg ;;
1045
1046  --config-cache | -C)
1047    cache_file=config.cache ;;
1048
1049  -datadir | --datadir | --datadi | --datad)
1050    ac_prev=datadir ;;
1051  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052    datadir=$ac_optarg ;;
1053
1054  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055  | --dataroo | --dataro | --datar)
1056    ac_prev=datarootdir ;;
1057  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059    datarootdir=$ac_optarg ;;
1060
1061  -disable-* | --disable-*)
1062    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063    # Reject names that are not valid shell variable names.
1064    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1066   { (exit 1); exit 1; }; }
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=no ;;
1077
1078  -docdir | --docdir | --docdi | --doc | --do)
1079    ac_prev=docdir ;;
1080  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081    docdir=$ac_optarg ;;
1082
1083  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084    ac_prev=dvidir ;;
1085  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086    dvidir=$ac_optarg ;;
1087
1088  -enable-* | --enable-*)
1089    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1093   { (exit 1); exit 1; }; }
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"enable_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101	 ac_unrecognized_sep=', ';;
1102    esac
1103    eval enable_$ac_useropt=\$ac_optarg ;;
1104
1105  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107  | --exec | --exe | --ex)
1108    ac_prev=exec_prefix ;;
1109  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111  | --exec=* | --exe=* | --ex=*)
1112    exec_prefix=$ac_optarg ;;
1113
1114  -gas | --gas | --ga | --g)
1115    # Obsolete; use --with-gas.
1116    with_gas=yes ;;
1117
1118  -help | --help | --hel | --he | -h)
1119    ac_init_help=long ;;
1120  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121    ac_init_help=recursive ;;
1122  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123    ac_init_help=short ;;
1124
1125  -host | --host | --hos | --ho)
1126    ac_prev=host_alias ;;
1127  -host=* | --host=* | --hos=* | --ho=*)
1128    host_alias=$ac_optarg ;;
1129
1130  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131    ac_prev=htmldir ;;
1132  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133  | --ht=*)
1134    htmldir=$ac_optarg ;;
1135
1136  -includedir | --includedir | --includedi | --included | --include \
1137  | --includ | --inclu | --incl | --inc)
1138    ac_prev=includedir ;;
1139  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140  | --includ=* | --inclu=* | --incl=* | --inc=*)
1141    includedir=$ac_optarg ;;
1142
1143  -infodir | --infodir | --infodi | --infod | --info | --inf)
1144    ac_prev=infodir ;;
1145  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146    infodir=$ac_optarg ;;
1147
1148  -libdir | --libdir | --libdi | --libd)
1149    ac_prev=libdir ;;
1150  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151    libdir=$ac_optarg ;;
1152
1153  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154  | --libexe | --libex | --libe)
1155    ac_prev=libexecdir ;;
1156  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157  | --libexe=* | --libex=* | --libe=*)
1158    libexecdir=$ac_optarg ;;
1159
1160  -localedir | --localedir | --localedi | --localed | --locale)
1161    ac_prev=localedir ;;
1162  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163    localedir=$ac_optarg ;;
1164
1165  -localstatedir | --localstatedir | --localstatedi | --localstated \
1166  | --localstate | --localstat | --localsta | --localst | --locals)
1167    ac_prev=localstatedir ;;
1168  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170    localstatedir=$ac_optarg ;;
1171
1172  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173    ac_prev=mandir ;;
1174  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175    mandir=$ac_optarg ;;
1176
1177  -nfp | --nfp | --nf)
1178    # Obsolete; use --without-fp.
1179    with_fp=no ;;
1180
1181  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182  | --no-cr | --no-c | -n)
1183    no_create=yes ;;
1184
1185  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187    no_recursion=yes ;;
1188
1189  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191  | --oldin | --oldi | --old | --ol | --o)
1192    ac_prev=oldincludedir ;;
1193  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196    oldincludedir=$ac_optarg ;;
1197
1198  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199    ac_prev=prefix ;;
1200  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201    prefix=$ac_optarg ;;
1202
1203  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204  | --program-pre | --program-pr | --program-p)
1205    ac_prev=program_prefix ;;
1206  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208    program_prefix=$ac_optarg ;;
1209
1210  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211  | --program-suf | --program-su | --program-s)
1212    ac_prev=program_suffix ;;
1213  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215    program_suffix=$ac_optarg ;;
1216
1217  -program-transform-name | --program-transform-name \
1218  | --program-transform-nam | --program-transform-na \
1219  | --program-transform-n | --program-transform- \
1220  | --program-transform | --program-transfor \
1221  | --program-transfo | --program-transf \
1222  | --program-trans | --program-tran \
1223  | --progr-tra | --program-tr | --program-t)
1224    ac_prev=program_transform_name ;;
1225  -program-transform-name=* | --program-transform-name=* \
1226  | --program-transform-nam=* | --program-transform-na=* \
1227  | --program-transform-n=* | --program-transform-=* \
1228  | --program-transform=* | --program-transfor=* \
1229  | --program-transfo=* | --program-transf=* \
1230  | --program-trans=* | --program-tran=* \
1231  | --progr-tra=* | --program-tr=* | --program-t=*)
1232    program_transform_name=$ac_optarg ;;
1233
1234  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235    ac_prev=pdfdir ;;
1236  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237    pdfdir=$ac_optarg ;;
1238
1239  -psdir | --psdir | --psdi | --psd | --ps)
1240    ac_prev=psdir ;;
1241  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242    psdir=$ac_optarg ;;
1243
1244  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245  | -silent | --silent | --silen | --sile | --sil)
1246    silent=yes ;;
1247
1248  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249    ac_prev=sbindir ;;
1250  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251  | --sbi=* | --sb=*)
1252    sbindir=$ac_optarg ;;
1253
1254  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256  | --sharedst | --shareds | --shared | --share | --shar \
1257  | --sha | --sh)
1258    ac_prev=sharedstatedir ;;
1259  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262  | --sha=* | --sh=*)
1263    sharedstatedir=$ac_optarg ;;
1264
1265  -site | --site | --sit)
1266    ac_prev=site ;;
1267  -site=* | --site=* | --sit=*)
1268    site=$ac_optarg ;;
1269
1270  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271    ac_prev=srcdir ;;
1272  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273    srcdir=$ac_optarg ;;
1274
1275  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276  | --syscon | --sysco | --sysc | --sys | --sy)
1277    ac_prev=sysconfdir ;;
1278  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280    sysconfdir=$ac_optarg ;;
1281
1282  -target | --target | --targe | --targ | --tar | --ta | --t)
1283    ac_prev=target_alias ;;
1284  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285    target_alias=$ac_optarg ;;
1286
1287  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288    verbose=yes ;;
1289
1290  -version | --version | --versio | --versi | --vers | -V)
1291    ac_init_version=: ;;
1292
1293  -with-* | --with-*)
1294    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295    # Reject names that are not valid shell variable names.
1296    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298   { (exit 1); exit 1; }; }
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=\$ac_optarg ;;
1309
1310  -without-* | --without-*)
1311    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312    # Reject names that are not valid shell variable names.
1313    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1315   { (exit 1); exit 1; }; }
1316    ac_useropt_orig=$ac_useropt
1317    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318    case $ac_user_opts in
1319      *"
1320"with_$ac_useropt"
1321"*) ;;
1322      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323	 ac_unrecognized_sep=', ';;
1324    esac
1325    eval with_$ac_useropt=no ;;
1326
1327  --x)
1328    # Obsolete; use --with-x.
1329    with_x=yes ;;
1330
1331  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332  | --x-incl | --x-inc | --x-in | --x-i)
1333    ac_prev=x_includes ;;
1334  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336    x_includes=$ac_optarg ;;
1337
1338  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340    ac_prev=x_libraries ;;
1341  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343    x_libraries=$ac_optarg ;;
1344
1345  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1346Try \`$0 --help' for more information." >&2
1347   { (exit 1); exit 1; }; }
1348    ;;
1349
1350  *=*)
1351    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352    # Reject names that are not valid shell variable names.
1353    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1354      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1355   { (exit 1); exit 1; }; }
1356    eval $ac_envvar=\$ac_optarg
1357    export $ac_envvar ;;
1358
1359  *)
1360    # FIXME: should be removed in autoconf 3.0.
1361    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365    ;;
1366
1367  esac
1368done
1369
1370if test -n "$ac_prev"; then
1371  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1373   { (exit 1); exit 1; }; }
1374fi
1375
1376if test -n "$ac_unrecognized_opts"; then
1377  case $enable_option_checking in
1378    no) ;;
1379    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1380   { (exit 1); exit 1; }; } ;;
1381    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382  esac
1383fi
1384
1385# Check all directory arguments for consistency.
1386for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387		datadir sysconfdir sharedstatedir localstatedir includedir \
1388		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389		libdir localedir mandir
1390do
1391  eval ac_val=\$$ac_var
1392  # Remove trailing slashes.
1393  case $ac_val in
1394    */ )
1395      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396      eval $ac_var=\$ac_val;;
1397  esac
1398  # Be sure to have absolute directory names.
1399  case $ac_val in
1400    [\\/$]* | ?:[\\/]* )  continue;;
1401    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402  esac
1403  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1404   { (exit 1); exit 1; }; }
1405done
1406
1407# There might be people who depend on the old broken behavior: `$host'
1408# used to hold the argument of --host etc.
1409# FIXME: To remove some day.
1410build=$build_alias
1411host=$host_alias
1412target=$target_alias
1413
1414# FIXME: To remove some day.
1415if test "x$host_alias" != x; then
1416  if test "x$build_alias" = x; then
1417    cross_compiling=maybe
1418    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1419    If a cross compiler is detected then cross compile mode will be used." >&2
1420  elif test "x$build_alias" != "x$host_alias"; then
1421    cross_compiling=yes
1422  fi
1423fi
1424
1425ac_tool_prefix=
1426test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427
1428test "$silent" = yes && exec 6>/dev/null
1429
1430
1431ac_pwd=`pwd` && test -n "$ac_pwd" &&
1432ac_ls_di=`ls -di .` &&
1433ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1434  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1435   { (exit 1); exit 1; }; }
1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1438   { (exit 1); exit 1; }; }
1439
1440
1441# Find the source files, if location was not specified.
1442if test -z "$srcdir"; then
1443  ac_srcdir_defaulted=yes
1444  # Try the directory containing this script, then the parent directory.
1445  ac_confdir=`$as_dirname -- "$as_myself" ||
1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447	 X"$as_myself" : 'X\(//\)[^/]' \| \
1448	 X"$as_myself" : 'X\(//\)$' \| \
1449	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450$as_echo X"$as_myself" |
1451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452	    s//\1/
1453	    q
1454	  }
1455	  /^X\(\/\/\)[^/].*/{
1456	    s//\1/
1457	    q
1458	  }
1459	  /^X\(\/\/\)$/{
1460	    s//\1/
1461	    q
1462	  }
1463	  /^X\(\/\).*/{
1464	    s//\1/
1465	    q
1466	  }
1467	  s/.*/./; q'`
1468  srcdir=$ac_confdir
1469  if test ! -r "$srcdir/$ac_unique_file"; then
1470    srcdir=..
1471  fi
1472else
1473  ac_srcdir_defaulted=no
1474fi
1475if test ! -r "$srcdir/$ac_unique_file"; then
1476  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1478   { (exit 1); exit 1; }; }
1479fi
1480ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481ac_abs_confdir=`(
1482	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1483   { (exit 1); exit 1; }; }
1484	pwd)`
1485# When building in place, set srcdir=.
1486if test "$ac_abs_confdir" = "$ac_pwd"; then
1487  srcdir=.
1488fi
1489# Remove unnecessary trailing slashes from srcdir.
1490# Double slashes in file names in object file debugging info
1491# mess up M-x gdb in Emacs.
1492case $srcdir in
1493*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494esac
1495for ac_var in $ac_precious_vars; do
1496  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497  eval ac_env_${ac_var}_value=\$${ac_var}
1498  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500done
1501
1502#
1503# Report the --help message.
1504#
1505if test "$ac_init_help" = "long"; then
1506  # Omit some internal or obsolete options to make the list less imposing.
1507  # This message is too long to be a string in the A/UX 3.1 sh.
1508  cat <<_ACEOF
1509\`configure' configures libXau 1.0.5 to adapt to many kinds of systems.
1510
1511Usage: $0 [OPTION]... [VAR=VALUE]...
1512
1513To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514VAR=VALUE.  See below for descriptions of some of the useful variables.
1515
1516Defaults for the options are specified in brackets.
1517
1518Configuration:
1519  -h, --help              display this help and exit
1520      --help=short        display options specific to this package
1521      --help=recursive    display the short help of all the included packages
1522  -V, --version           display version information and exit
1523  -q, --quiet, --silent   do not print \`checking...' messages
1524      --cache-file=FILE   cache test results in FILE [disabled]
1525  -C, --config-cache      alias for \`--cache-file=config.cache'
1526  -n, --no-create         do not create output files
1527      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1528
1529Installation directories:
1530  --prefix=PREFIX         install architecture-independent files in PREFIX
1531                          [$ac_default_prefix]
1532  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1533                          [PREFIX]
1534
1535By default, \`make install' will install all the files in
1536\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1537an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538for instance \`--prefix=\$HOME'.
1539
1540For better control, use the options below.
1541
1542Fine tuning of the installation directories:
1543  --bindir=DIR            user executables [EPREFIX/bin]
1544  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1545  --libexecdir=DIR        program executables [EPREFIX/libexec]
1546  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1547  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1548  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1549  --libdir=DIR            object code libraries [EPREFIX/lib]
1550  --includedir=DIR        C header files [PREFIX/include]
1551  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1552  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1553  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1554  --infodir=DIR           info documentation [DATAROOTDIR/info]
1555  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1556  --mandir=DIR            man documentation [DATAROOTDIR/man]
1557  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXau]
1558  --htmldir=DIR           html documentation [DOCDIR]
1559  --dvidir=DIR            dvi documentation [DOCDIR]
1560  --pdfdir=DIR            pdf documentation [DOCDIR]
1561  --psdir=DIR             ps documentation [DOCDIR]
1562_ACEOF
1563
1564  cat <<\_ACEOF
1565
1566Program names:
1567  --program-prefix=PREFIX            prepend PREFIX to installed program names
1568  --program-suffix=SUFFIX            append SUFFIX to installed program names
1569  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1570
1571System types:
1572  --build=BUILD     configure for building on BUILD [guessed]
1573  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1574_ACEOF
1575fi
1576
1577if test -n "$ac_init_help"; then
1578  case $ac_init_help in
1579     short | recursive ) echo "Configuration of libXau 1.0.5:";;
1580   esac
1581  cat <<\_ACEOF
1582
1583Optional Features:
1584  --disable-option-checking  ignore unrecognized --enable/--with options
1585  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1586  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1587  --enable-maintainer-mode  enable make rules and dependencies not useful
1588			  (and sometimes confusing) to the casual installer
1589  --disable-dependency-tracking  speeds up one-time build
1590  --enable-dependency-tracking   do not reject slow dependency extractors
1591  --enable-shared[=PKGS]  build shared libraries [default=yes]
1592  --enable-static[=PKGS]  build static libraries [default=yes]
1593  --enable-fast-install[=PKGS]
1594                          optimize for fast installation [default=yes]
1595  --disable-libtool-lock  avoid locking (might break parallel builds)
1596  --enable-silent-rules          less verbose build output (undo: `make V=1')
1597  --disable-silent-rules         verbose build output (undo: `make V=0')
1598  --disable-xthreads      Disable libXau support for Multithreading
1599  --enable-lint-library   Create lint library (default: disabled)
1600
1601Optional Packages:
1602  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1603  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1604  --with-pic              try to use only PIC/non-PIC objects [default=use
1605                          both]
1606  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1607  --with-lint             Use a lint-style source code checker (default:
1608                          disabled)
1609  --with-release-version=STRING
1610                          Use release version string in package name
1611
1612Some influential environment variables:
1613  CC          C compiler command
1614  CFLAGS      C compiler flags
1615  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1616              nonstandard directory <lib dir>
1617  LIBS        libraries to pass to the linker, e.g. -l<library>
1618  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1619              you have headers in a nonstandard directory <include dir>
1620  CPP         C preprocessor
1621  PKG_CONFIG  path to pkg-config utility
1622  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1623  XAU_LIBS    linker flags for XAU, overriding pkg-config
1624
1625Use these variables to override the choices made by `configure' or to help
1626it to find libraries and programs with nonstandard names/locations.
1627
1628Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1629_ACEOF
1630ac_status=$?
1631fi
1632
1633if test "$ac_init_help" = "recursive"; then
1634  # If there are subdirs, report their specific --help.
1635  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636    test -d "$ac_dir" ||
1637      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638      continue
1639    ac_builddir=.
1640
1641case "$ac_dir" in
1642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643*)
1644  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645  # A ".." for each directory in $ac_dir_suffix.
1646  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647  case $ac_top_builddir_sub in
1648  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650  esac ;;
1651esac
1652ac_abs_top_builddir=$ac_pwd
1653ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654# for backward compatibility:
1655ac_top_builddir=$ac_top_build_prefix
1656
1657case $srcdir in
1658  .)  # We are building in place.
1659    ac_srcdir=.
1660    ac_top_srcdir=$ac_top_builddir_sub
1661    ac_abs_top_srcdir=$ac_pwd ;;
1662  [\\/]* | ?:[\\/]* )  # Absolute name.
1663    ac_srcdir=$srcdir$ac_dir_suffix;
1664    ac_top_srcdir=$srcdir
1665    ac_abs_top_srcdir=$srcdir ;;
1666  *) # Relative name.
1667    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668    ac_top_srcdir=$ac_top_build_prefix$srcdir
1669    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670esac
1671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673    cd "$ac_dir" || { ac_status=$?; continue; }
1674    # Check for guested configure.
1675    if test -f "$ac_srcdir/configure.gnu"; then
1676      echo &&
1677      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678    elif test -f "$ac_srcdir/configure"; then
1679      echo &&
1680      $SHELL "$ac_srcdir/configure" --help=recursive
1681    else
1682      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683    fi || ac_status=$?
1684    cd "$ac_pwd" || { ac_status=$?; break; }
1685  done
1686fi
1687
1688test -n "$ac_init_help" && exit $ac_status
1689if $ac_init_version; then
1690  cat <<\_ACEOF
1691libXau configure 1.0.5
1692generated by GNU Autoconf 2.63
1693
1694Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16952002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1696This configure script is free software; the Free Software Foundation
1697gives unlimited permission to copy, distribute and modify it.
1698_ACEOF
1699  exit
1700fi
1701cat >config.log <<_ACEOF
1702This file contains any messages produced by compilers while
1703running configure, to aid debugging if configure makes a mistake.
1704
1705It was created by libXau $as_me 1.0.5, which was
1706generated by GNU Autoconf 2.63.  Invocation command line was
1707
1708  $ $0 $@
1709
1710_ACEOF
1711exec 5>>config.log
1712{
1713cat <<_ASUNAME
1714## --------- ##
1715## Platform. ##
1716## --------- ##
1717
1718hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1719uname -m = `(uname -m) 2>/dev/null || echo unknown`
1720uname -r = `(uname -r) 2>/dev/null || echo unknown`
1721uname -s = `(uname -s) 2>/dev/null || echo unknown`
1722uname -v = `(uname -v) 2>/dev/null || echo unknown`
1723
1724/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1725/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1726
1727/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1728/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1729/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1730/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1731/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1732/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1733/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1734
1735_ASUNAME
1736
1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738for as_dir in $PATH
1739do
1740  IFS=$as_save_IFS
1741  test -z "$as_dir" && as_dir=.
1742  $as_echo "PATH: $as_dir"
1743done
1744IFS=$as_save_IFS
1745
1746} >&5
1747
1748cat >&5 <<_ACEOF
1749
1750
1751## ----------- ##
1752## Core tests. ##
1753## ----------- ##
1754
1755_ACEOF
1756
1757
1758# Keep a trace of the command line.
1759# Strip out --no-create and --no-recursion so they do not pile up.
1760# Strip out --silent because we don't want to record it for future runs.
1761# Also quote any args containing shell meta-characters.
1762# Make two passes to allow for proper duplicate-argument suppression.
1763ac_configure_args=
1764ac_configure_args0=
1765ac_configure_args1=
1766ac_must_keep_next=false
1767for ac_pass in 1 2
1768do
1769  for ac_arg
1770  do
1771    case $ac_arg in
1772    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1773    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1774    | -silent | --silent | --silen | --sile | --sil)
1775      continue ;;
1776    *\'*)
1777      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1778    esac
1779    case $ac_pass in
1780    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1781    2)
1782      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1783      if test $ac_must_keep_next = true; then
1784	ac_must_keep_next=false # Got value, back to normal.
1785      else
1786	case $ac_arg in
1787	  *=* | --config-cache | -C | -disable-* | --disable-* \
1788	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1789	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1790	  | -with-* | --with-* | -without-* | --without-* | --x)
1791	    case "$ac_configure_args0 " in
1792	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1793	    esac
1794	    ;;
1795	  -* ) ac_must_keep_next=true ;;
1796	esac
1797      fi
1798      ac_configure_args="$ac_configure_args '$ac_arg'"
1799      ;;
1800    esac
1801  done
1802done
1803$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1804$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1805
1806# When interrupted or exit'd, cleanup temporary files, and complete
1807# config.log.  We remove comments because anyway the quotes in there
1808# would cause problems or look ugly.
1809# WARNING: Use '\'' to represent an apostrophe within the trap.
1810# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1811trap 'exit_status=$?
1812  # Save into config.log some information that might help in debugging.
1813  {
1814    echo
1815
1816    cat <<\_ASBOX
1817## ---------------- ##
1818## Cache variables. ##
1819## ---------------- ##
1820_ASBOX
1821    echo
1822    # The following way of writing the cache mishandles newlines in values,
1823(
1824  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1825    eval ac_val=\$$ac_var
1826    case $ac_val in #(
1827    *${as_nl}*)
1828      case $ac_var in #(
1829      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1830$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1831      esac
1832      case $ac_var in #(
1833      _ | IFS | as_nl) ;; #(
1834      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1835      *) $as_unset $ac_var ;;
1836      esac ;;
1837    esac
1838  done
1839  (set) 2>&1 |
1840    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841    *${as_nl}ac_space=\ *)
1842      sed -n \
1843	"s/'\''/'\''\\\\'\'''\''/g;
1844	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845      ;; #(
1846    *)
1847      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848      ;;
1849    esac |
1850    sort
1851)
1852    echo
1853
1854    cat <<\_ASBOX
1855## ----------------- ##
1856## Output variables. ##
1857## ----------------- ##
1858_ASBOX
1859    echo
1860    for ac_var in $ac_subst_vars
1861    do
1862      eval ac_val=\$$ac_var
1863      case $ac_val in
1864      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865      esac
1866      $as_echo "$ac_var='\''$ac_val'\''"
1867    done | sort
1868    echo
1869
1870    if test -n "$ac_subst_files"; then
1871      cat <<\_ASBOX
1872## ------------------- ##
1873## File substitutions. ##
1874## ------------------- ##
1875_ASBOX
1876      echo
1877      for ac_var in $ac_subst_files
1878      do
1879	eval ac_val=\$$ac_var
1880	case $ac_val in
1881	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882	esac
1883	$as_echo "$ac_var='\''$ac_val'\''"
1884      done | sort
1885      echo
1886    fi
1887
1888    if test -s confdefs.h; then
1889      cat <<\_ASBOX
1890## ----------- ##
1891## confdefs.h. ##
1892## ----------- ##
1893_ASBOX
1894      echo
1895      cat confdefs.h
1896      echo
1897    fi
1898    test "$ac_signal" != 0 &&
1899      $as_echo "$as_me: caught signal $ac_signal"
1900    $as_echo "$as_me: exit $exit_status"
1901  } >&5
1902  rm -f core *.core core.conftest.* &&
1903    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904    exit $exit_status
1905' 0
1906for ac_signal in 1 2 13 15; do
1907  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908done
1909ac_signal=0
1910
1911# confdefs.h avoids OS command line length limits that DEFS can exceed.
1912rm -f -r conftest* confdefs.h
1913
1914# Predefined preprocessor variables.
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_NAME "$PACKAGE_NAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_VERSION "$PACKAGE_VERSION"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_STRING "$PACKAGE_STRING"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938_ACEOF
1939
1940
1941# Let the site file select an alternate cache file if it wants to.
1942# Prefer an explicitly selected file to automatically selected ones.
1943ac_site_file1=NONE
1944ac_site_file2=NONE
1945if test -n "$CONFIG_SITE"; then
1946  ac_site_file1=$CONFIG_SITE
1947elif test "x$prefix" != xNONE; then
1948  ac_site_file1=$prefix/share/config.site
1949  ac_site_file2=$prefix/etc/config.site
1950else
1951  ac_site_file1=$ac_default_prefix/share/config.site
1952  ac_site_file2=$ac_default_prefix/etc/config.site
1953fi
1954for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955do
1956  test "x$ac_site_file" = xNONE && continue
1957  if test -r "$ac_site_file"; then
1958    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1959$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1960    sed 's/^/| /' "$ac_site_file" >&5
1961    . "$ac_site_file"
1962  fi
1963done
1964
1965if test -r "$cache_file"; then
1966  # Some versions of bash will fail to source /dev/null (special
1967  # files actually), so we avoid doing that.
1968  if test -f "$cache_file"; then
1969    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1970$as_echo "$as_me: loading cache $cache_file" >&6;}
1971    case $cache_file in
1972      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1973      *)                      . "./$cache_file";;
1974    esac
1975  fi
1976else
1977  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1978$as_echo "$as_me: creating cache $cache_file" >&6;}
1979  >$cache_file
1980fi
1981
1982# Check that the precious variables saved in the cache have kept the same
1983# value.
1984ac_cache_corrupted=false
1985for ac_var in $ac_precious_vars; do
1986  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987  eval ac_new_set=\$ac_env_${ac_var}_set
1988  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989  eval ac_new_val=\$ac_env_${ac_var}_value
1990  case $ac_old_set,$ac_new_set in
1991    set,)
1992      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994      ac_cache_corrupted=: ;;
1995    ,set)
1996      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998      ac_cache_corrupted=: ;;
1999    ,);;
2000    *)
2001      if test "x$ac_old_val" != "x$ac_new_val"; then
2002	# differences in whitespace do not lead to failure.
2003	ac_old_val_w=`echo x $ac_old_val`
2004	ac_new_val_w=`echo x $ac_new_val`
2005	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2006	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008	  ac_cache_corrupted=:
2009	else
2010	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2011$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2012	  eval $ac_var=\$ac_old_val
2013	fi
2014	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2015$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2016	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2017$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2018      fi;;
2019  esac
2020  # Pass precious variables to config.status.
2021  if test "$ac_new_set" = set; then
2022    case $ac_new_val in
2023    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2024    *) ac_arg=$ac_var=$ac_new_val ;;
2025    esac
2026    case " $ac_configure_args " in
2027      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2028      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2029    esac
2030  fi
2031done
2032if $ac_cache_corrupted; then
2033  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2036$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2038$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2039   { (exit 1); exit 1; }; }
2040fi
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066ac_ext=c
2067ac_cpp='$CPP $CPPFLAGS'
2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071
2072
2073am__api_version='1.11'
2074
2075ac_aux_dir=
2076for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2077  if 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/install.sh"; then
2082    ac_aux_dir=$ac_dir
2083    ac_install_sh="$ac_aux_dir/install.sh -c"
2084    break
2085  elif test -f "$ac_dir/shtool"; then
2086    ac_aux_dir=$ac_dir
2087    ac_install_sh="$ac_aux_dir/shtool install -c"
2088    break
2089  fi
2090done
2091if test -z "$ac_aux_dir"; then
2092  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2093$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097# These three variables are undocumented and unsupported,
2098# and are intended to be withdrawn in a future Autoconf release.
2099# They can cause serious problems if a builder's source tree is in a directory
2100# whose full name contains unusual characters.
2101ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2102ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2103ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2104
2105
2106# Find a good install program.  We prefer a C program (faster),
2107# so one script is as good as another.  But avoid the broken or
2108# incompatible versions:
2109# SysV /etc/install, /usr/sbin/install
2110# SunOS /usr/etc/install
2111# IRIX /sbin/install
2112# AIX /bin/install
2113# AmigaOS /C/install, which installs bootblocks on floppy discs
2114# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117# OS/2's system install, which has a completely different semantic
2118# ./install, which can be erroneously created by make from ./install.sh.
2119# Reject install programs that cannot install multiple files.
2120{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2121$as_echo_n "checking for a BSD-compatible install... " >&6; }
2122if test -z "$INSTALL"; then
2123if test "${ac_cv_path_install+set}" = set; then
2124  $as_echo_n "(cached) " >&6
2125else
2126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  # Account for people who put trailing slashes in PATH elements.
2132case $as_dir/ in
2133  ./ | .// | /cC/* | \
2134  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2135  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2136  /usr/ucb/* ) ;;
2137  *)
2138    # OSF1 and SCO ODT 3.0 have their own names for install.
2139    # Don't use installbsd from OSF since it installs stuff as root
2140    # by default.
2141    for ac_prog in ginstall scoinst install; do
2142      for ac_exec_ext in '' $ac_executable_extensions; do
2143	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2144	  if test $ac_prog = install &&
2145	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146	    # AIX install.  It has an incompatible calling convention.
2147	    :
2148	  elif test $ac_prog = install &&
2149	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150	    # program-specific install script used by HP pwplus--don't use.
2151	    :
2152	  else
2153	    rm -rf conftest.one conftest.two conftest.dir
2154	    echo one > conftest.one
2155	    echo two > conftest.two
2156	    mkdir conftest.dir
2157	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2158	      test -s conftest.one && test -s conftest.two &&
2159	      test -s conftest.dir/conftest.one &&
2160	      test -s conftest.dir/conftest.two
2161	    then
2162	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2163	      break 3
2164	    fi
2165	  fi
2166	fi
2167      done
2168    done
2169    ;;
2170esac
2171
2172done
2173IFS=$as_save_IFS
2174
2175rm -rf conftest.one conftest.two conftest.dir
2176
2177fi
2178  if test "${ac_cv_path_install+set}" = set; then
2179    INSTALL=$ac_cv_path_install
2180  else
2181    # As a last resort, use the slow shell script.  Don't cache a
2182    # value for INSTALL within a source directory, because that will
2183    # break other packages using the cache if that directory is
2184    # removed, or if the value is a relative name.
2185    INSTALL=$ac_install_sh
2186  fi
2187fi
2188{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2189$as_echo "$INSTALL" >&6; }
2190
2191# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2192# It thinks the first close brace ends the variable substitution.
2193test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2194
2195test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2196
2197test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2198
2199{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2200$as_echo_n "checking whether build environment is sane... " >&6; }
2201# Just in case
2202sleep 1
2203echo timestamp > conftest.file
2204# Reject unsafe characters in $srcdir or the absolute working directory
2205# name.  Accept space and tab only in the latter.
2206am_lf='
2207'
2208case `pwd` in
2209  *[\\\"\#\$\&\'\`$am_lf]*)
2210    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2211$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2212   { (exit 1); exit 1; }; };;
2213esac
2214case $srcdir in
2215  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2216    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2217$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2218   { (exit 1); exit 1; }; };;
2219esac
2220
2221# Do `set' in a subshell so we don't clobber the current shell's
2222# arguments.  Must try -L first in case configure is actually a
2223# symlink; some systems play weird games with the mod time of symlinks
2224# (eg FreeBSD returns the mod time of the symlink's containing
2225# directory).
2226if (
2227   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2228   if test "$*" = "X"; then
2229      # -L didn't work.
2230      set X `ls -t "$srcdir/configure" conftest.file`
2231   fi
2232   rm -f conftest.file
2233   if test "$*" != "X $srcdir/configure conftest.file" \
2234      && test "$*" != "X conftest.file $srcdir/configure"; then
2235
2236      # If neither matched, then we have a broken ls.  This can happen
2237      # if, for instance, CONFIG_SHELL is bash and it inherits a
2238      # broken ls alias from the environment.  This has actually
2239      # happened.  Such a system could not be considered "sane".
2240      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2241alias in your environment" >&5
2242$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2243alias in your environment" >&2;}
2244   { (exit 1); exit 1; }; }
2245   fi
2246
2247   test "$2" = conftest.file
2248   )
2249then
2250   # Ok.
2251   :
2252else
2253   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2254Check your system clock" >&5
2255$as_echo "$as_me: error: newly created file is older than distributed files!
2256Check your system clock" >&2;}
2257   { (exit 1); exit 1; }; }
2258fi
2259{ $as_echo "$as_me:$LINENO: result: yes" >&5
2260$as_echo "yes" >&6; }
2261test "$program_prefix" != NONE &&
2262  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2263# Use a double $ so make ignores it.
2264test "$program_suffix" != NONE &&
2265  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2266# Double any \ or $.
2267# By default was `s,x,x', remove it if useless.
2268ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2269program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2270
2271# expand $ac_aux_dir to an absolute path
2272am_aux_dir=`cd $ac_aux_dir && pwd`
2273
2274if test x"${MISSING+set}" != xset; then
2275  case $am_aux_dir in
2276  *\ * | *\	*)
2277    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2278  *)
2279    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2280  esac
2281fi
2282# Use eval to expand $SHELL
2283if eval "$MISSING --run true"; then
2284  am_missing_run="$MISSING --run "
2285else
2286  am_missing_run=
2287  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2288$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2289fi
2290
2291if test x"${install_sh}" != xset; then
2292  case $am_aux_dir in
2293  *\ * | *\	*)
2294    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2295  *)
2296    install_sh="\${SHELL} $am_aux_dir/install-sh"
2297  esac
2298fi
2299
2300# Installed binaries are usually stripped using `strip' when the user
2301# run `make install-strip'.  However `strip' might not be the right
2302# tool to use in cross-compilation environments, therefore Automake
2303# will honor the `STRIP' environment variable to overrule this program.
2304if test "$cross_compiling" != no; then
2305  if test -n "$ac_tool_prefix"; then
2306  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307set dummy ${ac_tool_prefix}strip; ac_word=$2
2308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2309$as_echo_n "checking for $ac_word... " >&6; }
2310if test "${ac_cv_prog_STRIP+set}" = set; then
2311  $as_echo_n "(cached) " >&6
2312else
2313  if test -n "$STRIP"; then
2314  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315else
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319  IFS=$as_save_IFS
2320  test -z "$as_dir" && as_dir=.
2321  for ac_exec_ext in '' $ac_executable_extensions; do
2322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325    break 2
2326  fi
2327done
2328done
2329IFS=$as_save_IFS
2330
2331fi
2332fi
2333STRIP=$ac_cv_prog_STRIP
2334if test -n "$STRIP"; then
2335  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2336$as_echo "$STRIP" >&6; }
2337else
2338  { $as_echo "$as_me:$LINENO: result: no" >&5
2339$as_echo "no" >&6; }
2340fi
2341
2342
2343fi
2344if test -z "$ac_cv_prog_STRIP"; then
2345  ac_ct_STRIP=$STRIP
2346  # Extract the first word of "strip", so it can be a program name with args.
2347set dummy strip; ac_word=$2
2348{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2349$as_echo_n "checking for $ac_word... " >&6; }
2350if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2351  $as_echo_n "(cached) " >&6
2352else
2353  if test -n "$ac_ct_STRIP"; then
2354  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2355else
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359  IFS=$as_save_IFS
2360  test -z "$as_dir" && as_dir=.
2361  for ac_exec_ext in '' $ac_executable_extensions; do
2362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363    ac_cv_prog_ac_ct_STRIP="strip"
2364    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365    break 2
2366  fi
2367done
2368done
2369IFS=$as_save_IFS
2370
2371fi
2372fi
2373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374if test -n "$ac_ct_STRIP"; then
2375  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2376$as_echo "$ac_ct_STRIP" >&6; }
2377else
2378  { $as_echo "$as_me:$LINENO: result: no" >&5
2379$as_echo "no" >&6; }
2380fi
2381
2382  if test "x$ac_ct_STRIP" = x; then
2383    STRIP=":"
2384  else
2385    case $cross_compiling:$ac_tool_warned in
2386yes:)
2387{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2389ac_tool_warned=yes ;;
2390esac
2391    STRIP=$ac_ct_STRIP
2392  fi
2393else
2394  STRIP="$ac_cv_prog_STRIP"
2395fi
2396
2397fi
2398INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2399
2400{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2401$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2402if test -z "$MKDIR_P"; then
2403  if test "${ac_cv_path_mkdir+set}" = set; then
2404  $as_echo_n "(cached) " >&6
2405else
2406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2408do
2409  IFS=$as_save_IFS
2410  test -z "$as_dir" && as_dir=.
2411  for ac_prog in mkdir gmkdir; do
2412	 for ac_exec_ext in '' $ac_executable_extensions; do
2413	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2414	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2415	     'mkdir (GNU coreutils) '* | \
2416	     'mkdir (coreutils) '* | \
2417	     'mkdir (fileutils) '4.1*)
2418	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2419	       break 3;;
2420	   esac
2421	 done
2422       done
2423done
2424IFS=$as_save_IFS
2425
2426fi
2427
2428  if test "${ac_cv_path_mkdir+set}" = set; then
2429    MKDIR_P="$ac_cv_path_mkdir -p"
2430  else
2431    # As a last resort, use the slow shell script.  Don't cache a
2432    # value for MKDIR_P within a source directory, because that will
2433    # break other packages using the cache if that directory is
2434    # removed, or if the value is a relative name.
2435    test -d ./--version && rmdir ./--version
2436    MKDIR_P="$ac_install_sh -d"
2437  fi
2438fi
2439{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2440$as_echo "$MKDIR_P" >&6; }
2441
2442mkdir_p="$MKDIR_P"
2443case $mkdir_p in
2444  [\\/$]* | ?:[\\/]*) ;;
2445  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2446esac
2447
2448for ac_prog in gawk mawk nawk awk
2449do
2450  # Extract the first word of "$ac_prog", so it can be a program name with args.
2451set dummy $ac_prog; ac_word=$2
2452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
2454if test "${ac_cv_prog_AWK+set}" = set; then
2455  $as_echo_n "(cached) " >&6
2456else
2457  if test -n "$AWK"; then
2458  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465  for ac_exec_ext in '' $ac_executable_extensions; do
2466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467    ac_cv_prog_AWK="$ac_prog"
2468    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469    break 2
2470  fi
2471done
2472done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477AWK=$ac_cv_prog_AWK
2478if test -n "$AWK"; then
2479  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2480$as_echo "$AWK" >&6; }
2481else
2482  { $as_echo "$as_me:$LINENO: result: no" >&5
2483$as_echo "no" >&6; }
2484fi
2485
2486
2487  test -n "$AWK" && break
2488done
2489
2490{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2491$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2492set x ${MAKE-make}
2493ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2494if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2495  $as_echo_n "(cached) " >&6
2496else
2497  cat >conftest.make <<\_ACEOF
2498SHELL = /bin/sh
2499all:
2500	@echo '@@@%%%=$(MAKE)=@@@%%%'
2501_ACEOF
2502# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2503case `${MAKE-make} -f conftest.make 2>/dev/null` in
2504  *@@@%%%=?*=@@@%%%*)
2505    eval ac_cv_prog_make_${ac_make}_set=yes;;
2506  *)
2507    eval ac_cv_prog_make_${ac_make}_set=no;;
2508esac
2509rm -f conftest.make
2510fi
2511if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2512  { $as_echo "$as_me:$LINENO: result: yes" >&5
2513$as_echo "yes" >&6; }
2514  SET_MAKE=
2515else
2516  { $as_echo "$as_me:$LINENO: result: no" >&5
2517$as_echo "no" >&6; }
2518  SET_MAKE="MAKE=${MAKE-make}"
2519fi
2520
2521rm -rf .tst 2>/dev/null
2522mkdir .tst 2>/dev/null
2523if test -d .tst; then
2524  am__leading_dot=.
2525else
2526  am__leading_dot=_
2527fi
2528rmdir .tst 2>/dev/null
2529
2530if test "`cd $srcdir && pwd`" != "`pwd`"; then
2531  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2532  # is not polluted with repeated "-I."
2533  am__isrc=' -I$(srcdir)'
2534  # test to see if srcdir already configured
2535  if test -f $srcdir/config.status; then
2536    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2537$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2538   { (exit 1); exit 1; }; }
2539  fi
2540fi
2541
2542# test whether we have cygpath
2543if test -z "$CYGPATH_W"; then
2544  if (cygpath --version) >/dev/null 2>/dev/null; then
2545    CYGPATH_W='cygpath -w'
2546  else
2547    CYGPATH_W=echo
2548  fi
2549fi
2550
2551
2552# Define the identity of the package.
2553 PACKAGE='libXau'
2554 VERSION='1.0.5'
2555
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE "$PACKAGE"
2559_ACEOF
2560
2561
2562cat >>confdefs.h <<_ACEOF
2563#define VERSION "$VERSION"
2564_ACEOF
2565
2566# Some tools Automake needs.
2567
2568ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2569
2570
2571AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2572
2573
2574AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2575
2576
2577AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2578
2579
2580MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2581
2582# We need awk for the "check" target.  The system "awk" is bad on
2583# some platforms.
2584# Always define AMTAR for backward compatibility.
2585
2586AMTAR=${AMTAR-"${am_missing_run}tar"}
2587
2588am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2589
2590
2591
2592
2593
2594
2595{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2596$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2597    # Check whether --enable-maintainer-mode was given.
2598if test "${enable_maintainer_mode+set}" = set; then
2599  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2600else
2601  USE_MAINTAINER_MODE=no
2602fi
2603
2604  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2605$as_echo "$USE_MAINTAINER_MODE" >&6; }
2606   if test $USE_MAINTAINER_MODE = yes; then
2607  MAINTAINER_MODE_TRUE=
2608  MAINTAINER_MODE_FALSE='#'
2609else
2610  MAINTAINER_MODE_TRUE='#'
2611  MAINTAINER_MODE_FALSE=
2612fi
2613
2614  MAINT=$MAINTAINER_MODE_TRUE
2615
2616
2617
2618ac_config_headers="$ac_config_headers config.h"
2619
2620
2621# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634ac_ext=c
2635ac_cpp='$CPP $CPPFLAGS'
2636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639if test -n "$ac_tool_prefix"; then
2640  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2641set dummy ${ac_tool_prefix}gcc; ac_word=$2
2642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if test "${ac_cv_prog_CC+set}" = set; then
2645  $as_echo_n "(cached) " >&6
2646else
2647  if test -n "$CC"; then
2648  ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655  for ac_exec_ext in '' $ac_executable_extensions; do
2656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2658    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
2669  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2670$as_echo "$CC" >&6; }
2671else
2672  { $as_echo "$as_me:$LINENO: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676
2677fi
2678if test -z "$ac_cv_prog_CC"; then
2679  ac_ct_CC=$CC
2680  # Extract the first word of "gcc", so it can be a program name with args.
2681set dummy gcc; ac_word=$2
2682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685  $as_echo_n "(cached) " >&6
2686else
2687  if test -n "$ac_ct_CC"; then
2688  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695  for ac_exec_ext in '' $ac_executable_extensions; do
2696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697    ac_cv_prog_ac_ct_CC="gcc"
2698    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708if test -n "$ac_ct_CC"; then
2709  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710$as_echo "$ac_ct_CC" >&6; }
2711else
2712  { $as_echo "$as_me:$LINENO: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716  if test "x$ac_ct_CC" = x; then
2717    CC=""
2718  else
2719    case $cross_compiling:$ac_tool_warned in
2720yes:)
2721{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723ac_tool_warned=yes ;;
2724esac
2725    CC=$ac_ct_CC
2726  fi
2727else
2728  CC="$ac_cv_prog_CC"
2729fi
2730
2731if test -z "$CC"; then
2732          if test -n "$ac_tool_prefix"; then
2733    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734set dummy ${ac_tool_prefix}cc; ac_word=$2
2735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736$as_echo_n "checking for $ac_word... " >&6; }
2737if test "${ac_cv_prog_CC+set}" = set; then
2738  $as_echo_n "(cached) " >&6
2739else
2740  if test -n "$CC"; then
2741  ac_cv_prog_CC="$CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746  IFS=$as_save_IFS
2747  test -z "$as_dir" && as_dir=.
2748  for ac_exec_ext in '' $ac_executable_extensions; do
2749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750    ac_cv_prog_CC="${ac_tool_prefix}cc"
2751    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760CC=$ac_cv_prog_CC
2761if test -n "$CC"; then
2762  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2763$as_echo "$CC" >&6; }
2764else
2765  { $as_echo "$as_me:$LINENO: result: no" >&5
2766$as_echo "no" >&6; }
2767fi
2768
2769
2770  fi
2771fi
2772if test -z "$CC"; then
2773  # Extract the first word of "cc", so it can be a program name with args.
2774set dummy cc; ac_word=$2
2775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if test "${ac_cv_prog_CC+set}" = set; then
2778  $as_echo_n "(cached) " >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783  ac_prog_rejected=no
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787  IFS=$as_save_IFS
2788  test -z "$as_dir" && as_dir=.
2789  for ac_exec_ext in '' $ac_executable_extensions; do
2790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792       ac_prog_rejected=yes
2793       continue
2794     fi
2795    ac_cv_prog_CC="cc"
2796    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797    break 2
2798  fi
2799done
2800done
2801IFS=$as_save_IFS
2802
2803if test $ac_prog_rejected = yes; then
2804  # We found a bogon in the path, so make sure we never use it.
2805  set dummy $ac_cv_prog_CC
2806  shift
2807  if test $# != 0; then
2808    # We chose a different compiler from the bogus one.
2809    # However, it has the same basename, so the bogon will be chosen
2810    # first if we set CC to just the basename; use the full file name.
2811    shift
2812    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2813  fi
2814fi
2815fi
2816fi
2817CC=$ac_cv_prog_CC
2818if test -n "$CC"; then
2819  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2820$as_echo "$CC" >&6; }
2821else
2822  { $as_echo "$as_me:$LINENO: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827fi
2828if test -z "$CC"; then
2829  if test -n "$ac_tool_prefix"; then
2830  for ac_prog in cl.exe
2831  do
2832    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if test "${ac_cv_prog_CC+set}" = set; then
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$CC"; then
2840  ac_cv_prog_CC="$CC" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847  for ac_exec_ext in '' $ac_executable_extensions; do
2848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2850    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851    break 2
2852  fi
2853done
2854done
2855IFS=$as_save_IFS
2856
2857fi
2858fi
2859CC=$ac_cv_prog_CC
2860if test -n "$CC"; then
2861  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2862$as_echo "$CC" >&6; }
2863else
2864  { $as_echo "$as_me:$LINENO: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869    test -n "$CC" && break
2870  done
2871fi
2872if test -z "$CC"; then
2873  ac_ct_CC=$CC
2874  for ac_prog in cl.exe
2875do
2876  # Extract the first word of "$ac_prog", so it can be a program name with args.
2877set dummy $ac_prog; ac_word=$2
2878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2881  $as_echo_n "(cached) " >&6
2882else
2883  if test -n "$ac_ct_CC"; then
2884  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889  IFS=$as_save_IFS
2890  test -z "$as_dir" && as_dir=.
2891  for ac_exec_ext in '' $ac_executable_extensions; do
2892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893    ac_cv_prog_ac_ct_CC="$ac_prog"
2894    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895    break 2
2896  fi
2897done
2898done
2899IFS=$as_save_IFS
2900
2901fi
2902fi
2903ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904if test -n "$ac_ct_CC"; then
2905  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2906$as_echo "$ac_ct_CC" >&6; }
2907else
2908  { $as_echo "$as_me:$LINENO: result: no" >&5
2909$as_echo "no" >&6; }
2910fi
2911
2912
2913  test -n "$ac_ct_CC" && break
2914done
2915
2916  if test "x$ac_ct_CC" = x; then
2917    CC=""
2918  else
2919    case $cross_compiling:$ac_tool_warned in
2920yes:)
2921{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923ac_tool_warned=yes ;;
2924esac
2925    CC=$ac_ct_CC
2926  fi
2927fi
2928
2929fi
2930
2931
2932test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2935See \`config.log' for more details." >&5
2936$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2937See \`config.log' for more details." >&2;}
2938   { (exit 1); exit 1; }; }; }
2939
2940# Provide some information about the compiler.
2941$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2942set X $ac_compile
2943ac_compiler=$2
2944{ (ac_try="$ac_compiler --version >&5"
2945case "(($ac_try" in
2946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947  *) ac_try_echo=$ac_try;;
2948esac
2949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950$as_echo "$ac_try_echo") >&5
2951  (eval "$ac_compiler --version >&5") 2>&5
2952  ac_status=$?
2953  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }
2955{ (ac_try="$ac_compiler -v >&5"
2956case "(($ac_try" in
2957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958  *) ac_try_echo=$ac_try;;
2959esac
2960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2961$as_echo "$ac_try_echo") >&5
2962  (eval "$ac_compiler -v >&5") 2>&5
2963  ac_status=$?
2964  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }
2966{ (ac_try="$ac_compiler -V >&5"
2967case "(($ac_try" in
2968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969  *) ac_try_echo=$ac_try;;
2970esac
2971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2972$as_echo "$ac_try_echo") >&5
2973  (eval "$ac_compiler -V >&5") 2>&5
2974  ac_status=$?
2975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }
2977
2978cat >conftest.$ac_ext <<_ACEOF
2979/* confdefs.h.  */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h.  */
2984
2985int
2986main ()
2987{
2988
2989  ;
2990  return 0;
2991}
2992_ACEOF
2993ac_clean_files_save=$ac_clean_files
2994ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2995# Try to create an executable without -o first, disregard a.out.
2996# It will help us diagnose broken compilers, and finding out an intuition
2997# of exeext.
2998{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2999$as_echo_n "checking for C compiler default output file name... " >&6; }
3000ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3001
3002# The possible output files:
3003ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3004
3005ac_rmfiles=
3006for ac_file in $ac_files
3007do
3008  case $ac_file in
3009    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3010    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3011  esac
3012done
3013rm -f $ac_rmfiles
3014
3015if { (ac_try="$ac_link_default"
3016case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021$as_echo "$ac_try_echo") >&5
3022  (eval "$ac_link_default") 2>&5
3023  ac_status=$?
3024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; then
3026  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3027# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3028# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3029# so that the user can short-circuit this test for compilers unknown to
3030# Autoconf.
3031for ac_file in $ac_files ''
3032do
3033  test -f "$ac_file" || continue
3034  case $ac_file in
3035    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3036	;;
3037    [ab].out )
3038	# We found the default executable, but exeext='' is most
3039	# certainly right.
3040	break;;
3041    *.* )
3042        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3043	then :; else
3044	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3045	fi
3046	# We set ac_cv_exeext here because the later test for it is not
3047	# safe: cross compilers may not add the suffix if given an `-o'
3048	# argument, so we may need to know it at that point already.
3049	# Even if this section looks crufty: it has the advantage of
3050	# actually working.
3051	break;;
3052    * )
3053	break;;
3054  esac
3055done
3056test "$ac_cv_exeext" = no && ac_cv_exeext=
3057
3058else
3059  ac_file=''
3060fi
3061
3062{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3063$as_echo "$ac_file" >&6; }
3064if test -z "$ac_file"; then
3065  $as_echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3071See \`config.log' for more details." >&5
3072$as_echo "$as_me: error: C compiler cannot create executables
3073See \`config.log' for more details." >&2;}
3074   { (exit 77); exit 77; }; }; }
3075fi
3076
3077ac_exeext=$ac_cv_exeext
3078
3079# Check that the compiler produces executables we can run.  If not, either
3080# the compiler is broken, or we cross compile.
3081{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3082$as_echo_n "checking whether the C compiler works... " >&6; }
3083# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3084# If not cross compiling, check that we can run a simple program.
3085if test "$cross_compiling" != yes; then
3086  if { ac_try='./$ac_file'
3087  { (case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092$as_echo "$ac_try_echo") >&5
3093  (eval "$ac_try") 2>&5
3094  ac_status=$?
3095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; }; then
3097    cross_compiling=no
3098  else
3099    if test "$cross_compiling" = maybe; then
3100	cross_compiling=yes
3101    else
3102	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3105If you meant to cross compile, use \`--host'.
3106See \`config.log' for more details." >&5
3107$as_echo "$as_me: error: cannot run C compiled programs.
3108If you meant to cross compile, use \`--host'.
3109See \`config.log' for more details." >&2;}
3110   { (exit 1); exit 1; }; }; }
3111    fi
3112  fi
3113fi
3114{ $as_echo "$as_me:$LINENO: result: yes" >&5
3115$as_echo "yes" >&6; }
3116
3117rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3118ac_clean_files=$ac_clean_files_save
3119# Check that the compiler produces executables we can run.  If not, either
3120# the compiler is broken, or we cross compile.
3121{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3122$as_echo_n "checking whether we are cross compiling... " >&6; }
3123{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3124$as_echo "$cross_compiling" >&6; }
3125
3126{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3127$as_echo_n "checking for suffix of executables... " >&6; }
3128if { (ac_try="$ac_link"
3129case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134$as_echo "$ac_try_echo") >&5
3135  (eval "$ac_link") 2>&5
3136  ac_status=$?
3137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; then
3139  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3140# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3141# work properly (i.e., refer to `conftest.exe'), while it won't with
3142# `rm'.
3143for ac_file in conftest.exe conftest conftest.*; do
3144  test -f "$ac_file" || continue
3145  case $ac_file in
3146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3147    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148	  break;;
3149    * ) break;;
3150  esac
3151done
3152else
3153  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3156See \`config.log' for more details." >&5
3157$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3158See \`config.log' for more details." >&2;}
3159   { (exit 1); exit 1; }; }; }
3160fi
3161
3162rm -f conftest$ac_cv_exeext
3163{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3164$as_echo "$ac_cv_exeext" >&6; }
3165
3166rm -f conftest.$ac_ext
3167EXEEXT=$ac_cv_exeext
3168ac_exeext=$EXEEXT
3169{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3170$as_echo_n "checking for suffix of object files... " >&6; }
3171if test "${ac_cv_objext+set}" = set; then
3172  $as_echo_n "(cached) " >&6
3173else
3174  cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h.  */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h.  */
3180
3181int
3182main ()
3183{
3184
3185  ;
3186  return 0;
3187}
3188_ACEOF
3189rm -f conftest.o conftest.obj
3190if { (ac_try="$ac_compile"
3191case "(($ac_try" in
3192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193  *) ac_try_echo=$ac_try;;
3194esac
3195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3196$as_echo "$ac_try_echo") >&5
3197  (eval "$ac_compile") 2>&5
3198  ac_status=$?
3199  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200  (exit $ac_status); }; then
3201  for ac_file in conftest.o conftest.obj conftest.*; do
3202  test -f "$ac_file" || continue;
3203  case $ac_file in
3204    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3205    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3206       break;;
3207  esac
3208done
3209else
3210  $as_echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3216See \`config.log' for more details." >&5
3217$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3218See \`config.log' for more details." >&2;}
3219   { (exit 1); exit 1; }; }; }
3220fi
3221
3222rm -f conftest.$ac_cv_objext conftest.$ac_ext
3223fi
3224{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3225$as_echo "$ac_cv_objext" >&6; }
3226OBJEXT=$ac_cv_objext
3227ac_objext=$OBJEXT
3228{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3229$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3230if test "${ac_cv_c_compiler_gnu+set}" = set; then
3231  $as_echo_n "(cached) " >&6
3232else
3233  cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h.  */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h.  */
3239
3240int
3241main ()
3242{
3243#ifndef __GNUC__
3244       choke me
3245#endif
3246
3247  ;
3248  return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext
3252if { (ac_try="$ac_compile"
3253case "(($ac_try" in
3254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255  *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258$as_echo "$ac_try_echo") >&5
3259  (eval "$ac_compile") 2>conftest.er1
3260  ac_status=$?
3261  grep -v '^ *+' conftest.er1 >conftest.err
3262  rm -f conftest.er1
3263  cat conftest.err >&5
3264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); } && {
3266	 test -z "$ac_c_werror_flag" ||
3267	 test ! -s conftest.err
3268       } && test -s conftest.$ac_objext; then
3269  ac_compiler_gnu=yes
3270else
3271  $as_echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274	ac_compiler_gnu=no
3275fi
3276
3277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278ac_cv_c_compiler_gnu=$ac_compiler_gnu
3279
3280fi
3281{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3282$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3283if test $ac_compiler_gnu = yes; then
3284  GCC=yes
3285else
3286  GCC=
3287fi
3288ac_test_CFLAGS=${CFLAGS+set}
3289ac_save_CFLAGS=$CFLAGS
3290{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3291$as_echo_n "checking whether $CC accepts -g... " >&6; }
3292if test "${ac_cv_prog_cc_g+set}" = set; then
3293  $as_echo_n "(cached) " >&6
3294else
3295  ac_save_c_werror_flag=$ac_c_werror_flag
3296   ac_c_werror_flag=yes
3297   ac_cv_prog_cc_g=no
3298   CFLAGS="-g"
3299   cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h.  */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h.  */
3305
3306int
3307main ()
3308{
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314rm -f conftest.$ac_objext
3315if { (ac_try="$ac_compile"
3316case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321$as_echo "$ac_try_echo") >&5
3322  (eval "$ac_compile") 2>conftest.er1
3323  ac_status=$?
3324  grep -v '^ *+' conftest.er1 >conftest.err
3325  rm -f conftest.er1
3326  cat conftest.err >&5
3327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328  (exit $ac_status); } && {
3329	 test -z "$ac_c_werror_flag" ||
3330	 test ! -s conftest.err
3331       } && test -s conftest.$ac_objext; then
3332  ac_cv_prog_cc_g=yes
3333else
3334  $as_echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337	CFLAGS=""
3338      cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (ac_try="$ac_compile"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360$as_echo "$ac_try_echo") >&5
3361  (eval "$ac_compile") 2>conftest.er1
3362  ac_status=$?
3363  grep -v '^ *+' conftest.er1 >conftest.err
3364  rm -f conftest.er1
3365  cat conftest.err >&5
3366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367  (exit $ac_status); } && {
3368	 test -z "$ac_c_werror_flag" ||
3369	 test ! -s conftest.err
3370       } && test -s conftest.$ac_objext; then
3371  :
3372else
3373  $as_echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376	ac_c_werror_flag=$ac_save_c_werror_flag
3377	 CFLAGS="-g"
3378	 cat >conftest.$ac_ext <<_ACEOF
3379/* confdefs.h.  */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h.  */
3384
3385int
3386main ()
3387{
3388
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393rm -f conftest.$ac_objext
3394if { (ac_try="$ac_compile"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400$as_echo "$ac_try_echo") >&5
3401  (eval "$ac_compile") 2>conftest.er1
3402  ac_status=$?
3403  grep -v '^ *+' conftest.er1 >conftest.err
3404  rm -f conftest.er1
3405  cat conftest.err >&5
3406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } && {
3408	 test -z "$ac_c_werror_flag" ||
3409	 test ! -s conftest.err
3410       } && test -s conftest.$ac_objext; then
3411  ac_cv_prog_cc_g=yes
3412else
3413  $as_echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417fi
3418
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420fi
3421
3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423fi
3424
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426   ac_c_werror_flag=$ac_save_c_werror_flag
3427fi
3428{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429$as_echo "$ac_cv_prog_cc_g" >&6; }
3430if test "$ac_test_CFLAGS" = set; then
3431  CFLAGS=$ac_save_CFLAGS
3432elif test $ac_cv_prog_cc_g = yes; then
3433  if test "$GCC" = yes; then
3434    CFLAGS="-g -O2"
3435  else
3436    CFLAGS="-g"
3437  fi
3438else
3439  if test "$GCC" = yes; then
3440    CFLAGS="-O2"
3441  else
3442    CFLAGS=
3443  fi
3444fi
3445{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447if test "${ac_cv_prog_cc_c89+set}" = set; then
3448  $as_echo_n "(cached) " >&6
3449else
3450  ac_cv_prog_cc_c89=no
3451ac_save_CC=$CC
3452cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h.  */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h.  */
3458#include <stdarg.h>
3459#include <stdio.h>
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3463struct buf { int x; };
3464FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465static char *e (p, i)
3466     char **p;
3467     int i;
3468{
3469  return p[i];
3470}
3471static char *f (char * (*g) (char **, int), char **p, ...)
3472{
3473  char *s;
3474  va_list v;
3475  va_start (v,p);
3476  s = g (p, va_arg (v,int));
3477  va_end (v);
3478  return s;
3479}
3480
3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3482   function prototypes and stuff, but not '\xHH' hex character constants.
3483   These don't provoke an error unfortunately, instead are silently treated
3484   as 'x'.  The following induces an error, until -std is added to get
3485   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3486   array size at least.  It's necessary to write '\x00'==0 to get something
3487   that's true only with -std.  */
3488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491   inside strings and character constants.  */
3492#define FOO(x) 'x'
3493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495int test (int i, double x);
3496struct s1 {int (*f) (int a);};
3497struct s2 {int (*f) (double a);};
3498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499int argc;
3500char **argv;
3501int
3502main ()
3503{
3504return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511do
3512  CC="$ac_save_CC $ac_arg"
3513  rm -f conftest.$ac_objext
3514if { (ac_try="$ac_compile"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520$as_echo "$ac_try_echo") >&5
3521  (eval "$ac_compile") 2>conftest.er1
3522  ac_status=$?
3523  grep -v '^ *+' conftest.er1 >conftest.err
3524  rm -f conftest.er1
3525  cat conftest.err >&5
3526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); } && {
3528	 test -z "$ac_c_werror_flag" ||
3529	 test ! -s conftest.err
3530       } && test -s conftest.$ac_objext; then
3531  ac_cv_prog_cc_c89=$ac_arg
3532else
3533  $as_echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536
3537fi
3538
3539rm -f core conftest.err conftest.$ac_objext
3540  test "x$ac_cv_prog_cc_c89" != "xno" && break
3541done
3542rm -f conftest.$ac_ext
3543CC=$ac_save_CC
3544
3545fi
3546# AC_CACHE_VAL
3547case "x$ac_cv_prog_cc_c89" in
3548  x)
3549    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3550$as_echo "none needed" >&6; } ;;
3551  xno)
3552    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3553$as_echo "unsupported" >&6; } ;;
3554  *)
3555    CC="$CC $ac_cv_prog_cc_c89"
3556    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3557$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3558esac
3559
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566DEPDIR="${am__leading_dot}deps"
3567
3568ac_config_commands="$ac_config_commands depfiles"
3569
3570
3571am_make=${MAKE-make}
3572cat > confinc << 'END'
3573am__doit:
3574	@echo this is the am__doit target
3575.PHONY: am__doit
3576END
3577# If we don't find an include directive, just comment out the code.
3578{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3579$as_echo_n "checking for style of include used by $am_make... " >&6; }
3580am__include="#"
3581am__quote=
3582_am_result=none
3583# First try GNU make style include.
3584echo "include confinc" > confmf
3585# Ignore all kinds of additional output from `make'.
3586case `$am_make -s -f confmf 2> /dev/null` in #(
3587*the\ am__doit\ target*)
3588  am__include=include
3589  am__quote=
3590  _am_result=GNU
3591  ;;
3592esac
3593# Now try BSD make style include.
3594if test "$am__include" = "#"; then
3595   echo '.include "confinc"' > confmf
3596   case `$am_make -s -f confmf 2> /dev/null` in #(
3597   *the\ am__doit\ target*)
3598     am__include=.include
3599     am__quote="\""
3600     _am_result=BSD
3601     ;;
3602   esac
3603fi
3604
3605
3606{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3607$as_echo "$_am_result" >&6; }
3608rm -f confinc confmf
3609
3610# Check whether --enable-dependency-tracking was given.
3611if test "${enable_dependency_tracking+set}" = set; then
3612  enableval=$enable_dependency_tracking;
3613fi
3614
3615if test "x$enable_dependency_tracking" != xno; then
3616  am_depcomp="$ac_aux_dir/depcomp"
3617  AMDEPBACKSLASH='\'
3618fi
3619 if test "x$enable_dependency_tracking" != xno; then
3620  AMDEP_TRUE=
3621  AMDEP_FALSE='#'
3622else
3623  AMDEP_TRUE='#'
3624  AMDEP_FALSE=
3625fi
3626
3627
3628
3629depcc="$CC"   am_compiler_list=
3630
3631{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3632$as_echo_n "checking dependency style of $depcc... " >&6; }
3633if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3634  $as_echo_n "(cached) " >&6
3635else
3636  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3637  # We make a subdir and do the tests there.  Otherwise we can end up
3638  # making bogus files that we don't know about and never remove.  For
3639  # instance it was reported that on HP-UX the gcc test will end up
3640  # making a dummy file named `D' -- because `-MD' means `put the output
3641  # in D'.
3642  mkdir conftest.dir
3643  # Copy depcomp to subdir because otherwise we won't find it if we're
3644  # using a relative directory.
3645  cp "$am_depcomp" conftest.dir
3646  cd conftest.dir
3647  # We will build objects and dependencies in a subdirectory because
3648  # it helps to detect inapplicable dependency modes.  For instance
3649  # both Tru64's cc and ICC support -MD to output dependencies as a
3650  # side effect of compilation, but ICC will put the dependencies in
3651  # the current directory while Tru64 will put them in the object
3652  # directory.
3653  mkdir sub
3654
3655  am_cv_CC_dependencies_compiler_type=none
3656  if test "$am_compiler_list" = ""; then
3657     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3658  fi
3659  am__universal=false
3660  case " $depcc " in #(
3661     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3662     esac
3663
3664  for depmode in $am_compiler_list; do
3665    # Setup a source with many dependencies, because some compilers
3666    # like to wrap large dependency lists on column 80 (with \), and
3667    # we should not choose a depcomp mode which is confused by this.
3668    #
3669    # We need to recreate these files for each test, as the compiler may
3670    # overwrite some of them when testing with obscure command lines.
3671    # This happens at least with the AIX C compiler.
3672    : > sub/conftest.c
3673    for i in 1 2 3 4 5 6; do
3674      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3675      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3676      # Solaris 8's {/usr,}/bin/sh.
3677      touch sub/conftst$i.h
3678    done
3679    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3680
3681    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3682    # mode.  It turns out that the SunPro C++ compiler does not properly
3683    # handle `-M -o', and we need to detect this.  Also, some Intel
3684    # versions had trouble with output in subdirs
3685    am__obj=sub/conftest.${OBJEXT-o}
3686    am__minus_obj="-o $am__obj"
3687    case $depmode in
3688    gcc)
3689      # This depmode causes a compiler race in universal mode.
3690      test "$am__universal" = false || continue
3691      ;;
3692    nosideeffect)
3693      # after this tag, mechanisms are not by side-effect, so they'll
3694      # only be used when explicitly requested
3695      if test "x$enable_dependency_tracking" = xyes; then
3696	continue
3697      else
3698	break
3699      fi
3700      ;;
3701    msvisualcpp | msvcmsys)
3702      # This compiler won't grok `-c -o', but also, the minuso test has
3703      # not run yet.  These depmodes are late enough in the game, and
3704      # so weak that their functioning should not be impacted.
3705      am__obj=conftest.${OBJEXT-o}
3706      am__minus_obj=
3707      ;;
3708    none) break ;;
3709    esac
3710    if depmode=$depmode \
3711       source=sub/conftest.c object=$am__obj \
3712       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3713       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3714         >/dev/null 2>conftest.err &&
3715       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3716       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3718       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719      # icc doesn't choke on unknown options, it will just issue warnings
3720      # or remarks (even with -Werror).  So we grep stderr for any message
3721      # that says an option was ignored or not supported.
3722      # When given -MP, icc 7.0 and 7.1 complain thusly:
3723      #   icc: Command line warning: ignoring option '-M'; no argument required
3724      # The diagnosis changed in icc 8.0:
3725      #   icc: Command line remark: option '-MP' not supported
3726      if (grep 'ignoring option' conftest.err ||
3727          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728        am_cv_CC_dependencies_compiler_type=$depmode
3729        break
3730      fi
3731    fi
3732  done
3733
3734  cd ..
3735  rm -rf conftest.dir
3736else
3737  am_cv_CC_dependencies_compiler_type=none
3738fi
3739
3740fi
3741{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3742$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3743CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3744
3745 if
3746  test "x$enable_dependency_tracking" != xno \
3747  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3748  am__fastdepCC_TRUE=
3749  am__fastdepCC_FALSE='#'
3750else
3751  am__fastdepCC_TRUE='#'
3752  am__fastdepCC_FALSE=
3753fi
3754
3755
3756# Find a good install program.  We prefer a C program (faster),
3757# so one script is as good as another.  But avoid the broken or
3758# incompatible versions:
3759# SysV /etc/install, /usr/sbin/install
3760# SunOS /usr/etc/install
3761# IRIX /sbin/install
3762# AIX /bin/install
3763# AmigaOS /C/install, which installs bootblocks on floppy discs
3764# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3765# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3766# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3767# OS/2's system install, which has a completely different semantic
3768# ./install, which can be erroneously created by make from ./install.sh.
3769# Reject install programs that cannot install multiple files.
3770{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3771$as_echo_n "checking for a BSD-compatible install... " >&6; }
3772if test -z "$INSTALL"; then
3773if test "${ac_cv_path_install+set}" = set; then
3774  $as_echo_n "(cached) " >&6
3775else
3776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779  IFS=$as_save_IFS
3780  test -z "$as_dir" && as_dir=.
3781  # Account for people who put trailing slashes in PATH elements.
3782case $as_dir/ in
3783  ./ | .// | /cC/* | \
3784  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3785  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3786  /usr/ucb/* ) ;;
3787  *)
3788    # OSF1 and SCO ODT 3.0 have their own names for install.
3789    # Don't use installbsd from OSF since it installs stuff as root
3790    # by default.
3791    for ac_prog in ginstall scoinst install; do
3792      for ac_exec_ext in '' $ac_executable_extensions; do
3793	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3794	  if test $ac_prog = install &&
3795	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3796	    # AIX install.  It has an incompatible calling convention.
3797	    :
3798	  elif test $ac_prog = install &&
3799	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3800	    # program-specific install script used by HP pwplus--don't use.
3801	    :
3802	  else
3803	    rm -rf conftest.one conftest.two conftest.dir
3804	    echo one > conftest.one
3805	    echo two > conftest.two
3806	    mkdir conftest.dir
3807	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3808	      test -s conftest.one && test -s conftest.two &&
3809	      test -s conftest.dir/conftest.one &&
3810	      test -s conftest.dir/conftest.two
3811	    then
3812	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3813	      break 3
3814	    fi
3815	  fi
3816	fi
3817      done
3818    done
3819    ;;
3820esac
3821
3822done
3823IFS=$as_save_IFS
3824
3825rm -rf conftest.one conftest.two conftest.dir
3826
3827fi
3828  if test "${ac_cv_path_install+set}" = set; then
3829    INSTALL=$ac_cv_path_install
3830  else
3831    # As a last resort, use the slow shell script.  Don't cache a
3832    # value for INSTALL within a source directory, because that will
3833    # break other packages using the cache if that directory is
3834    # removed, or if the value is a relative name.
3835    INSTALL=$ac_install_sh
3836  fi
3837fi
3838{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3839$as_echo "$INSTALL" >&6; }
3840
3841# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3842# It thinks the first close brace ends the variable substitution.
3843test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3844
3845test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3846
3847test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3848
3849{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3850$as_echo_n "checking whether ln -s works... " >&6; }
3851LN_S=$as_ln_s
3852if test "$LN_S" = "ln -s"; then
3853  { $as_echo "$as_me:$LINENO: result: yes" >&5
3854$as_echo "yes" >&6; }
3855else
3856  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3857$as_echo "no, using $LN_S" >&6; }
3858fi
3859
3860# Make sure we can run config.sub.
3861$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3862  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3863$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3864   { (exit 1); exit 1; }; }
3865
3866{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3867$as_echo_n "checking build system type... " >&6; }
3868if test "${ac_cv_build+set}" = set; then
3869  $as_echo_n "(cached) " >&6
3870else
3871  ac_build_alias=$build_alias
3872test "x$ac_build_alias" = x &&
3873  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3874test "x$ac_build_alias" = x &&
3875  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3876$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3877   { (exit 1); exit 1; }; }
3878ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3879  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3880$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3881   { (exit 1); exit 1; }; }
3882
3883fi
3884{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3885$as_echo "$ac_cv_build" >&6; }
3886case $ac_cv_build in
3887*-*-*) ;;
3888*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3889$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3890   { (exit 1); exit 1; }; };;
3891esac
3892build=$ac_cv_build
3893ac_save_IFS=$IFS; IFS='-'
3894set x $ac_cv_build
3895shift
3896build_cpu=$1
3897build_vendor=$2
3898shift; shift
3899# Remember, the first character of IFS is used to create $*,
3900# except with old shells:
3901build_os=$*
3902IFS=$ac_save_IFS
3903case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3904
3905
3906{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3907$as_echo_n "checking host system type... " >&6; }
3908if test "${ac_cv_host+set}" = set; then
3909  $as_echo_n "(cached) " >&6
3910else
3911  if test "x$host_alias" = x; then
3912  ac_cv_host=$ac_cv_build
3913else
3914  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3915    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3916$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3917   { (exit 1); exit 1; }; }
3918fi
3919
3920fi
3921{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3922$as_echo "$ac_cv_host" >&6; }
3923case $ac_cv_host in
3924*-*-*) ;;
3925*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3926$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3927   { (exit 1); exit 1; }; };;
3928esac
3929host=$ac_cv_host
3930ac_save_IFS=$IFS; IFS='-'
3931set x $ac_cv_host
3932shift
3933host_cpu=$1
3934host_vendor=$2
3935shift; shift
3936# Remember, the first character of IFS is used to create $*,
3937# except with old shells:
3938host_os=$*
3939IFS=$ac_save_IFS
3940case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3941
3942
3943enable_win32_dll=yes
3944
3945case $host in
3946*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3947  if test -n "$ac_tool_prefix"; then
3948  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3949set dummy ${ac_tool_prefix}as; ac_word=$2
3950{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3951$as_echo_n "checking for $ac_word... " >&6; }
3952if test "${ac_cv_prog_AS+set}" = set; then
3953  $as_echo_n "(cached) " >&6
3954else
3955  if test -n "$AS"; then
3956  ac_cv_prog_AS="$AS" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  test -z "$as_dir" && as_dir=.
3963  for ac_exec_ext in '' $ac_executable_extensions; do
3964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965    ac_cv_prog_AS="${ac_tool_prefix}as"
3966    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967    break 2
3968  fi
3969done
3970done
3971IFS=$as_save_IFS
3972
3973fi
3974fi
3975AS=$ac_cv_prog_AS
3976if test -n "$AS"; then
3977  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3978$as_echo "$AS" >&6; }
3979else
3980  { $as_echo "$as_me:$LINENO: result: no" >&5
3981$as_echo "no" >&6; }
3982fi
3983
3984
3985fi
3986if test -z "$ac_cv_prog_AS"; then
3987  ac_ct_AS=$AS
3988  # Extract the first word of "as", so it can be a program name with args.
3989set dummy as; ac_word=$2
3990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
3992if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -n "$ac_ct_AS"; then
3996  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3997else
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003  for ac_exec_ext in '' $ac_executable_extensions; do
4004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005    ac_cv_prog_ac_ct_AS="as"
4006    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007    break 2
4008  fi
4009done
4010done
4011IFS=$as_save_IFS
4012
4013fi
4014fi
4015ac_ct_AS=$ac_cv_prog_ac_ct_AS
4016if test -n "$ac_ct_AS"; then
4017  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4018$as_echo "$ac_ct_AS" >&6; }
4019else
4020  { $as_echo "$as_me:$LINENO: result: no" >&5
4021$as_echo "no" >&6; }
4022fi
4023
4024  if test "x$ac_ct_AS" = x; then
4025    AS="false"
4026  else
4027    case $cross_compiling:$ac_tool_warned in
4028yes:)
4029{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4031ac_tool_warned=yes ;;
4032esac
4033    AS=$ac_ct_AS
4034  fi
4035else
4036  AS="$ac_cv_prog_AS"
4037fi
4038
4039  if test -n "$ac_tool_prefix"; then
4040  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4041set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4043$as_echo_n "checking for $ac_word... " >&6; }
4044if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4045  $as_echo_n "(cached) " >&6
4046else
4047  if test -n "$DLLTOOL"; then
4048  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4049else
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053  IFS=$as_save_IFS
4054  test -z "$as_dir" && as_dir=.
4055  for ac_exec_ext in '' $ac_executable_extensions; do
4056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4058    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059    break 2
4060  fi
4061done
4062done
4063IFS=$as_save_IFS
4064
4065fi
4066fi
4067DLLTOOL=$ac_cv_prog_DLLTOOL
4068if test -n "$DLLTOOL"; then
4069  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4070$as_echo "$DLLTOOL" >&6; }
4071else
4072  { $as_echo "$as_me:$LINENO: result: no" >&5
4073$as_echo "no" >&6; }
4074fi
4075
4076
4077fi
4078if test -z "$ac_cv_prog_DLLTOOL"; then
4079  ac_ct_DLLTOOL=$DLLTOOL
4080  # Extract the first word of "dlltool", so it can be a program name with args.
4081set dummy dlltool; ac_word=$2
4082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4083$as_echo_n "checking for $ac_word... " >&6; }
4084if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4085  $as_echo_n "(cached) " >&6
4086else
4087  if test -n "$ac_ct_DLLTOOL"; then
4088  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093  IFS=$as_save_IFS
4094  test -z "$as_dir" && as_dir=.
4095  for ac_exec_ext in '' $ac_executable_extensions; do
4096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4098    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099    break 2
4100  fi
4101done
4102done
4103IFS=$as_save_IFS
4104
4105fi
4106fi
4107ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4108if test -n "$ac_ct_DLLTOOL"; then
4109  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4110$as_echo "$ac_ct_DLLTOOL" >&6; }
4111else
4112  { $as_echo "$as_me:$LINENO: result: no" >&5
4113$as_echo "no" >&6; }
4114fi
4115
4116  if test "x$ac_ct_DLLTOOL" = x; then
4117    DLLTOOL="false"
4118  else
4119    case $cross_compiling:$ac_tool_warned in
4120yes:)
4121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4123ac_tool_warned=yes ;;
4124esac
4125    DLLTOOL=$ac_ct_DLLTOOL
4126  fi
4127else
4128  DLLTOOL="$ac_cv_prog_DLLTOOL"
4129fi
4130
4131  if test -n "$ac_tool_prefix"; then
4132  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4133set dummy ${ac_tool_prefix}objdump; ac_word=$2
4134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
4136if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4137  $as_echo_n "(cached) " >&6
4138else
4139  if test -n "$OBJDUMP"; then
4140  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145  IFS=$as_save_IFS
4146  test -z "$as_dir" && as_dir=.
4147  for ac_exec_ext in '' $ac_executable_extensions; do
4148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4150    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151    break 2
4152  fi
4153done
4154done
4155IFS=$as_save_IFS
4156
4157fi
4158fi
4159OBJDUMP=$ac_cv_prog_OBJDUMP
4160if test -n "$OBJDUMP"; then
4161  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4162$as_echo "$OBJDUMP" >&6; }
4163else
4164  { $as_echo "$as_me:$LINENO: result: no" >&5
4165$as_echo "no" >&6; }
4166fi
4167
4168
4169fi
4170if test -z "$ac_cv_prog_OBJDUMP"; then
4171  ac_ct_OBJDUMP=$OBJDUMP
4172  # Extract the first word of "objdump", so it can be a program name with args.
4173set dummy objdump; ac_word=$2
4174{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
4176if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4177  $as_echo_n "(cached) " >&6
4178else
4179  if test -n "$ac_ct_OBJDUMP"; then
4180  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187  for ac_exec_ext in '' $ac_executable_extensions; do
4188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4190    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191    break 2
4192  fi
4193done
4194done
4195IFS=$as_save_IFS
4196
4197fi
4198fi
4199ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4200if test -n "$ac_ct_OBJDUMP"; then
4201  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4202$as_echo "$ac_ct_OBJDUMP" >&6; }
4203else
4204  { $as_echo "$as_me:$LINENO: result: no" >&5
4205$as_echo "no" >&6; }
4206fi
4207
4208  if test "x$ac_ct_OBJDUMP" = x; then
4209    OBJDUMP="false"
4210  else
4211    case $cross_compiling:$ac_tool_warned in
4212yes:)
4213{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215ac_tool_warned=yes ;;
4216esac
4217    OBJDUMP=$ac_ct_OBJDUMP
4218  fi
4219else
4220  OBJDUMP="$ac_cv_prog_OBJDUMP"
4221fi
4222
4223  ;;
4224esac
4225
4226test -z "$AS" && AS=as
4227
4228
4229
4230
4231
4232test -z "$DLLTOOL" && DLLTOOL=dlltool
4233
4234
4235
4236
4237
4238test -z "$OBJDUMP" && OBJDUMP=objdump
4239
4240
4241
4242
4243
4244
4245
4246case `pwd` in
4247  *\ * | *\	*)
4248    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4249$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4250esac
4251
4252
4253
4254macro_version='2.2.6'
4255macro_revision='1.3012'
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269ltmain="$ac_aux_dir/ltmain.sh"
4270
4271{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4272$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4273if test "${ac_cv_path_SED+set}" = set; then
4274  $as_echo_n "(cached) " >&6
4275else
4276            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4277     for ac_i in 1 2 3 4 5 6 7; do
4278       ac_script="$ac_script$as_nl$ac_script"
4279     done
4280     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4281     $as_unset ac_script || ac_script=
4282     if test -z "$SED"; then
4283  ac_path_SED_found=false
4284  # Loop through the user's path and test for each of PROGNAME-LIST
4285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288  IFS=$as_save_IFS
4289  test -z "$as_dir" && as_dir=.
4290  for ac_prog in sed gsed; do
4291    for ac_exec_ext in '' $ac_executable_extensions; do
4292      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4293      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4294# Check for GNU ac_path_SED and select it if it is found.
4295  # Check for GNU $ac_path_SED
4296case `"$ac_path_SED" --version 2>&1` in
4297*GNU*)
4298  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4299*)
4300  ac_count=0
4301  $as_echo_n 0123456789 >"conftest.in"
4302  while :
4303  do
4304    cat "conftest.in" "conftest.in" >"conftest.tmp"
4305    mv "conftest.tmp" "conftest.in"
4306    cp "conftest.in" "conftest.nl"
4307    $as_echo '' >> "conftest.nl"
4308    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310    ac_count=`expr $ac_count + 1`
4311    if test $ac_count -gt ${ac_path_SED_max-0}; then
4312      # Best one so far, save it but keep looking for a better one
4313      ac_cv_path_SED="$ac_path_SED"
4314      ac_path_SED_max=$ac_count
4315    fi
4316    # 10*(2^10) chars as input seems more than enough
4317    test $ac_count -gt 10 && break
4318  done
4319  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320esac
4321
4322      $ac_path_SED_found && break 3
4323    done
4324  done
4325done
4326IFS=$as_save_IFS
4327  if test -z "$ac_cv_path_SED"; then
4328    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4329$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4330   { (exit 1); exit 1; }; }
4331  fi
4332else
4333  ac_cv_path_SED=$SED
4334fi
4335
4336fi
4337{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4338$as_echo "$ac_cv_path_SED" >&6; }
4339 SED="$ac_cv_path_SED"
4340  rm -f conftest.sed
4341
4342test -z "$SED" && SED=sed
4343Xsed="$SED -e 1s/^X//"
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4356$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4357if test "${ac_cv_path_GREP+set}" = set; then
4358  $as_echo_n "(cached) " >&6
4359else
4360  if test -z "$GREP"; then
4361  ac_path_GREP_found=false
4362  # Loop through the user's path and test for each of PROGNAME-LIST
4363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368  for ac_prog in grep ggrep; do
4369    for ac_exec_ext in '' $ac_executable_extensions; do
4370      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4371      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4372# Check for GNU ac_path_GREP and select it if it is found.
4373  # Check for GNU $ac_path_GREP
4374case `"$ac_path_GREP" --version 2>&1` in
4375*GNU*)
4376  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4377*)
4378  ac_count=0
4379  $as_echo_n 0123456789 >"conftest.in"
4380  while :
4381  do
4382    cat "conftest.in" "conftest.in" >"conftest.tmp"
4383    mv "conftest.tmp" "conftest.in"
4384    cp "conftest.in" "conftest.nl"
4385    $as_echo 'GREP' >> "conftest.nl"
4386    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388    ac_count=`expr $ac_count + 1`
4389    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4390      # Best one so far, save it but keep looking for a better one
4391      ac_cv_path_GREP="$ac_path_GREP"
4392      ac_path_GREP_max=$ac_count
4393    fi
4394    # 10*(2^10) chars as input seems more than enough
4395    test $ac_count -gt 10 && break
4396  done
4397  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398esac
4399
4400      $ac_path_GREP_found && break 3
4401    done
4402  done
4403done
4404IFS=$as_save_IFS
4405  if test -z "$ac_cv_path_GREP"; then
4406    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4408   { (exit 1); exit 1; }; }
4409  fi
4410else
4411  ac_cv_path_GREP=$GREP
4412fi
4413
4414fi
4415{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4416$as_echo "$ac_cv_path_GREP" >&6; }
4417 GREP="$ac_cv_path_GREP"
4418
4419
4420{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4421$as_echo_n "checking for egrep... " >&6; }
4422if test "${ac_cv_path_EGREP+set}" = set; then
4423  $as_echo_n "(cached) " >&6
4424else
4425  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4426   then ac_cv_path_EGREP="$GREP -E"
4427   else
4428     if test -z "$EGREP"; then
4429  ac_path_EGREP_found=false
4430  # Loop through the user's path and test for each of PROGNAME-LIST
4431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4433do
4434  IFS=$as_save_IFS
4435  test -z "$as_dir" && as_dir=.
4436  for ac_prog in egrep; do
4437    for ac_exec_ext in '' $ac_executable_extensions; do
4438      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4439      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4440# Check for GNU ac_path_EGREP and select it if it is found.
4441  # Check for GNU $ac_path_EGREP
4442case `"$ac_path_EGREP" --version 2>&1` in
4443*GNU*)
4444  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4445*)
4446  ac_count=0
4447  $as_echo_n 0123456789 >"conftest.in"
4448  while :
4449  do
4450    cat "conftest.in" "conftest.in" >"conftest.tmp"
4451    mv "conftest.tmp" "conftest.in"
4452    cp "conftest.in" "conftest.nl"
4453    $as_echo 'EGREP' >> "conftest.nl"
4454    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456    ac_count=`expr $ac_count + 1`
4457    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4458      # Best one so far, save it but keep looking for a better one
4459      ac_cv_path_EGREP="$ac_path_EGREP"
4460      ac_path_EGREP_max=$ac_count
4461    fi
4462    # 10*(2^10) chars as input seems more than enough
4463    test $ac_count -gt 10 && break
4464  done
4465  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466esac
4467
4468      $ac_path_EGREP_found && break 3
4469    done
4470  done
4471done
4472IFS=$as_save_IFS
4473  if test -z "$ac_cv_path_EGREP"; then
4474    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4475$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4476   { (exit 1); exit 1; }; }
4477  fi
4478else
4479  ac_cv_path_EGREP=$EGREP
4480fi
4481
4482   fi
4483fi
4484{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4485$as_echo "$ac_cv_path_EGREP" >&6; }
4486 EGREP="$ac_cv_path_EGREP"
4487
4488
4489{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4490$as_echo_n "checking for fgrep... " >&6; }
4491if test "${ac_cv_path_FGREP+set}" = set; then
4492  $as_echo_n "(cached) " >&6
4493else
4494  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4495   then ac_cv_path_FGREP="$GREP -F"
4496   else
4497     if test -z "$FGREP"; then
4498  ac_path_FGREP_found=false
4499  # Loop through the user's path and test for each of PROGNAME-LIST
4500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502do
4503  IFS=$as_save_IFS
4504  test -z "$as_dir" && as_dir=.
4505  for ac_prog in fgrep; do
4506    for ac_exec_ext in '' $ac_executable_extensions; do
4507      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4508      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4509# Check for GNU ac_path_FGREP and select it if it is found.
4510  # Check for GNU $ac_path_FGREP
4511case `"$ac_path_FGREP" --version 2>&1` in
4512*GNU*)
4513  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4514*)
4515  ac_count=0
4516  $as_echo_n 0123456789 >"conftest.in"
4517  while :
4518  do
4519    cat "conftest.in" "conftest.in" >"conftest.tmp"
4520    mv "conftest.tmp" "conftest.in"
4521    cp "conftest.in" "conftest.nl"
4522    $as_echo 'FGREP' >> "conftest.nl"
4523    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525    ac_count=`expr $ac_count + 1`
4526    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4527      # Best one so far, save it but keep looking for a better one
4528      ac_cv_path_FGREP="$ac_path_FGREP"
4529      ac_path_FGREP_max=$ac_count
4530    fi
4531    # 10*(2^10) chars as input seems more than enough
4532    test $ac_count -gt 10 && break
4533  done
4534  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535esac
4536
4537      $ac_path_FGREP_found && break 3
4538    done
4539  done
4540done
4541IFS=$as_save_IFS
4542  if test -z "$ac_cv_path_FGREP"; then
4543    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4544$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4545   { (exit 1); exit 1; }; }
4546  fi
4547else
4548  ac_cv_path_FGREP=$FGREP
4549fi
4550
4551   fi
4552fi
4553{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4554$as_echo "$ac_cv_path_FGREP" >&6; }
4555 FGREP="$ac_cv_path_FGREP"
4556
4557
4558test -z "$GREP" && GREP=grep
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578# Check whether --with-gnu-ld was given.
4579if test "${with_gnu_ld+set}" = set; then
4580  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4581else
4582  with_gnu_ld=no
4583fi
4584
4585ac_prog=ld
4586if test "$GCC" = yes; then
4587  # Check if gcc -print-prog-name=ld gives a path.
4588  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4589$as_echo_n "checking for ld used by $CC... " >&6; }
4590  case $host in
4591  *-*-mingw*)
4592    # gcc leaves a trailing carriage return which upsets mingw
4593    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4594  *)
4595    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4596  esac
4597  case $ac_prog in
4598    # Accept absolute paths.
4599    [\\/]* | ?:[\\/]*)
4600      re_direlt='/[^/][^/]*/\.\./'
4601      # Canonicalize the pathname of ld
4602      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4603      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4604	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4605      done
4606      test -z "$LD" && LD="$ac_prog"
4607      ;;
4608  "")
4609    # If it fails, then pretend we aren't using GCC.
4610    ac_prog=ld
4611    ;;
4612  *)
4613    # If it is relative, then search for the first ld in PATH.
4614    with_gnu_ld=unknown
4615    ;;
4616  esac
4617elif test "$with_gnu_ld" = yes; then
4618  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4619$as_echo_n "checking for GNU ld... " >&6; }
4620else
4621  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4622$as_echo_n "checking for non-GNU ld... " >&6; }
4623fi
4624if test "${lt_cv_path_LD+set}" = set; then
4625  $as_echo_n "(cached) " >&6
4626else
4627  if test -z "$LD"; then
4628  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4629  for ac_dir in $PATH; do
4630    IFS="$lt_save_ifs"
4631    test -z "$ac_dir" && ac_dir=.
4632    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4633      lt_cv_path_LD="$ac_dir/$ac_prog"
4634      # Check to see if the program is GNU ld.  I'd rather use --version,
4635      # but apparently some variants of GNU ld only accept -v.
4636      # Break only if it was the GNU/non-GNU ld that we prefer.
4637      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4638      *GNU* | *'with BFD'*)
4639	test "$with_gnu_ld" != no && break
4640	;;
4641      *)
4642	test "$with_gnu_ld" != yes && break
4643	;;
4644      esac
4645    fi
4646  done
4647  IFS="$lt_save_ifs"
4648else
4649  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4650fi
4651fi
4652
4653LD="$lt_cv_path_LD"
4654if test -n "$LD"; then
4655  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4656$as_echo "$LD" >&6; }
4657else
4658  { $as_echo "$as_me:$LINENO: result: no" >&5
4659$as_echo "no" >&6; }
4660fi
4661test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4662$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4663   { (exit 1); exit 1; }; }
4664{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4665$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4666if test "${lt_cv_prog_gnu_ld+set}" = set; then
4667  $as_echo_n "(cached) " >&6
4668else
4669  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4670case `$LD -v 2>&1 </dev/null` in
4671*GNU* | *'with BFD'*)
4672  lt_cv_prog_gnu_ld=yes
4673  ;;
4674*)
4675  lt_cv_prog_gnu_ld=no
4676  ;;
4677esac
4678fi
4679{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4680$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4681with_gnu_ld=$lt_cv_prog_gnu_ld
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4692$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4693if test "${lt_cv_path_NM+set}" = set; then
4694  $as_echo_n "(cached) " >&6
4695else
4696  if test -n "$NM"; then
4697  # Let the user override the test.
4698  lt_cv_path_NM="$NM"
4699else
4700  lt_nm_to_check="${ac_tool_prefix}nm"
4701  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4702    lt_nm_to_check="$lt_nm_to_check nm"
4703  fi
4704  for lt_tmp_nm in $lt_nm_to_check; do
4705    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4706    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4707      IFS="$lt_save_ifs"
4708      test -z "$ac_dir" && ac_dir=.
4709      tmp_nm="$ac_dir/$lt_tmp_nm"
4710      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4711	# Check to see if the nm accepts a BSD-compat flag.
4712	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4713	#   nm: unknown option "B" ignored
4714	# Tru64's nm complains that /dev/null is an invalid object file
4715	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4716	*/dev/null* | *'Invalid file or object type'*)
4717	  lt_cv_path_NM="$tmp_nm -B"
4718	  break
4719	  ;;
4720	*)
4721	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4722	  */dev/null*)
4723	    lt_cv_path_NM="$tmp_nm -p"
4724	    break
4725	    ;;
4726	  *)
4727	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4728	    continue # so that we can try to find one that supports BSD flags
4729	    ;;
4730	  esac
4731	  ;;
4732	esac
4733      fi
4734    done
4735    IFS="$lt_save_ifs"
4736  done
4737  : ${lt_cv_path_NM=no}
4738fi
4739fi
4740{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4741$as_echo "$lt_cv_path_NM" >&6; }
4742if test "$lt_cv_path_NM" != "no"; then
4743  NM="$lt_cv_path_NM"
4744else
4745  # Didn't find any BSD compatible name lister, look for dumpbin.
4746  if test -n "$ac_tool_prefix"; then
4747  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4748  do
4749    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test -n "$DUMPBIN"; then
4757  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764  for ac_exec_ext in '' $ac_executable_extensions; do
4765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4767    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771done
4772IFS=$as_save_IFS
4773
4774fi
4775fi
4776DUMPBIN=$ac_cv_prog_DUMPBIN
4777if test -n "$DUMPBIN"; then
4778  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4779$as_echo "$DUMPBIN" >&6; }
4780else
4781  { $as_echo "$as_me:$LINENO: result: no" >&5
4782$as_echo "no" >&6; }
4783fi
4784
4785
4786    test -n "$DUMPBIN" && break
4787  done
4788fi
4789if test -z "$DUMPBIN"; then
4790  ac_ct_DUMPBIN=$DUMPBIN
4791  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4792do
4793  # Extract the first word of "$ac_prog", so it can be a program name with args.
4794set dummy $ac_prog; ac_word=$2
4795{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4796$as_echo_n "checking for $ac_word... " >&6; }
4797if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4798  $as_echo_n "(cached) " >&6
4799else
4800  if test -n "$ac_ct_DUMPBIN"; then
4801  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4802else
4803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH
4805do
4806  IFS=$as_save_IFS
4807  test -z "$as_dir" && as_dir=.
4808  for ac_exec_ext in '' $ac_executable_extensions; do
4809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4811    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812    break 2
4813  fi
4814done
4815done
4816IFS=$as_save_IFS
4817
4818fi
4819fi
4820ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4821if test -n "$ac_ct_DUMPBIN"; then
4822  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4823$as_echo "$ac_ct_DUMPBIN" >&6; }
4824else
4825  { $as_echo "$as_me:$LINENO: result: no" >&5
4826$as_echo "no" >&6; }
4827fi
4828
4829
4830  test -n "$ac_ct_DUMPBIN" && break
4831done
4832
4833  if test "x$ac_ct_DUMPBIN" = x; then
4834    DUMPBIN=":"
4835  else
4836    case $cross_compiling:$ac_tool_warned in
4837yes:)
4838{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840ac_tool_warned=yes ;;
4841esac
4842    DUMPBIN=$ac_ct_DUMPBIN
4843  fi
4844fi
4845
4846
4847  if test "$DUMPBIN" != ":"; then
4848    NM="$DUMPBIN"
4849  fi
4850fi
4851test -z "$NM" && NM=nm
4852
4853
4854
4855
4856
4857
4858{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4859$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4860if test "${lt_cv_nm_interface+set}" = set; then
4861  $as_echo_n "(cached) " >&6
4862else
4863  lt_cv_nm_interface="BSD nm"
4864  echo "int some_variable = 0;" > conftest.$ac_ext
4865  (eval echo "\"\$as_me:4865: $ac_compile\"" >&5)
4866  (eval "$ac_compile" 2>conftest.err)
4867  cat conftest.err >&5
4868  (eval echo "\"\$as_me:4868: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4869  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4870  cat conftest.err >&5
4871  (eval echo "\"\$as_me:4871: output\"" >&5)
4872  cat conftest.out >&5
4873  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4874    lt_cv_nm_interface="MS dumpbin"
4875  fi
4876  rm -f conftest*
4877fi
4878{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4879$as_echo "$lt_cv_nm_interface" >&6; }
4880
4881# find the maximum length of command line arguments
4882{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4883$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4884if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4885  $as_echo_n "(cached) " >&6
4886else
4887    i=0
4888  teststring="ABCD"
4889
4890  case $build_os in
4891  msdosdjgpp*)
4892    # On DJGPP, this test can blow up pretty badly due to problems in libc
4893    # (any single argument exceeding 2000 bytes causes a buffer overrun
4894    # during glob expansion).  Even if it were fixed, the result of this
4895    # check would be larger than it should be.
4896    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4897    ;;
4898
4899  gnu*)
4900    # Under GNU Hurd, this test is not required because there is
4901    # no limit to the length of command line arguments.
4902    # Libtool will interpret -1 as no limit whatsoever
4903    lt_cv_sys_max_cmd_len=-1;
4904    ;;
4905
4906  cygwin* | mingw* | cegcc*)
4907    # On Win9x/ME, this test blows up -- it succeeds, but takes
4908    # about 5 minutes as the teststring grows exponentially.
4909    # Worse, since 9x/ME are not pre-emptively multitasking,
4910    # you end up with a "frozen" computer, even though with patience
4911    # the test eventually succeeds (with a max line length of 256k).
4912    # Instead, let's just punt: use the minimum linelength reported by
4913    # all of the supported platforms: 8192 (on NT/2K/XP).
4914    lt_cv_sys_max_cmd_len=8192;
4915    ;;
4916
4917  amigaos*)
4918    # On AmigaOS with pdksh, this test takes hours, literally.
4919    # So we just punt and use a minimum line length of 8192.
4920    lt_cv_sys_max_cmd_len=8192;
4921    ;;
4922
4923  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4924    # This has been around since 386BSD, at least.  Likely further.
4925    if test -x /sbin/sysctl; then
4926      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4927    elif test -x /usr/sbin/sysctl; then
4928      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4929    else
4930      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4931    fi
4932    # And add a safety zone
4933    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4934    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4935    ;;
4936
4937  interix*)
4938    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4939    lt_cv_sys_max_cmd_len=196608
4940    ;;
4941
4942  osf*)
4943    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4944    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4945    # nice to cause kernel panics so lets avoid the loop below.
4946    # First set a reasonable default.
4947    lt_cv_sys_max_cmd_len=16384
4948    #
4949    if test -x /sbin/sysconfig; then
4950      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4951        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4952      esac
4953    fi
4954    ;;
4955  sco3.2v5*)
4956    lt_cv_sys_max_cmd_len=102400
4957    ;;
4958  sysv5* | sco5v6* | sysv4.2uw2*)
4959    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4960    if test -n "$kargmax"; then
4961      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4962    else
4963      lt_cv_sys_max_cmd_len=32768
4964    fi
4965    ;;
4966  *)
4967    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4968    if test -n "$lt_cv_sys_max_cmd_len"; then
4969      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4970      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4971    else
4972      # Make teststring a little bigger before we do anything with it.
4973      # a 1K string should be a reasonable start.
4974      for i in 1 2 3 4 5 6 7 8 ; do
4975        teststring=$teststring$teststring
4976      done
4977      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4978      # If test is not a shell built-in, we'll probably end up computing a
4979      # maximum length that is only half of the actual maximum length, but
4980      # we can't tell.
4981      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4982	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4983	      test $i != 17 # 1/2 MB should be enough
4984      do
4985        i=`expr $i + 1`
4986        teststring=$teststring$teststring
4987      done
4988      # Only check the string length outside the loop.
4989      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4990      teststring=
4991      # Add a significant safety factor because C++ compilers can tack on
4992      # massive amounts of additional arguments before passing them to the
4993      # linker.  It appears as though 1/2 is a usable value.
4994      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4995    fi
4996    ;;
4997  esac
4998
4999fi
5000
5001if test -n $lt_cv_sys_max_cmd_len ; then
5002  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5003$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5004else
5005  { $as_echo "$as_me:$LINENO: result: none" >&5
5006$as_echo "none" >&6; }
5007fi
5008max_cmd_len=$lt_cv_sys_max_cmd_len
5009
5010
5011
5012
5013
5014
5015: ${CP="cp -f"}
5016: ${MV="mv -f"}
5017: ${RM="rm -f"}
5018
5019{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5020$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5021# Try some XSI features
5022xsi_shell=no
5023( _lt_dummy="a/b/c"
5024  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5025      = c,a/b,, \
5026    && eval 'test $(( 1 + 1 )) -eq 2 \
5027    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5028  && xsi_shell=yes
5029{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5030$as_echo "$xsi_shell" >&6; }
5031
5032
5033{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5034$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5035lt_shell_append=no
5036( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5037    >/dev/null 2>&1 \
5038  && lt_shell_append=yes
5039{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5040$as_echo "$lt_shell_append" >&6; }
5041
5042
5043if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5044  lt_unset=unset
5045else
5046  lt_unset=false
5047fi
5048
5049
5050
5051
5052
5053# test EBCDIC or ASCII
5054case `echo X|tr X '\101'` in
5055 A) # ASCII based system
5056    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5057  lt_SP2NL='tr \040 \012'
5058  lt_NL2SP='tr \015\012 \040\040'
5059  ;;
5060 *) # EBCDIC based system
5061  lt_SP2NL='tr \100 \n'
5062  lt_NL2SP='tr \r\n \100\100'
5063  ;;
5064esac
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5075$as_echo_n "checking for $LD option to reload object files... " >&6; }
5076if test "${lt_cv_ld_reload_flag+set}" = set; then
5077  $as_echo_n "(cached) " >&6
5078else
5079  lt_cv_ld_reload_flag='-r'
5080fi
5081{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5082$as_echo "$lt_cv_ld_reload_flag" >&6; }
5083reload_flag=$lt_cv_ld_reload_flag
5084case $reload_flag in
5085"" | " "*) ;;
5086*) reload_flag=" $reload_flag" ;;
5087esac
5088reload_cmds='$LD$reload_flag -o $output$reload_objs'
5089case $host_os in
5090  darwin*)
5091    if test "$GCC" = yes; then
5092      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5093    else
5094      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5095    fi
5096    ;;
5097esac
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107if test -n "$ac_tool_prefix"; then
5108  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5109set dummy ${ac_tool_prefix}objdump; ac_word=$2
5110{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5113  $as_echo_n "(cached) " >&6
5114else
5115  if test -n "$OBJDUMP"; then
5116  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121  IFS=$as_save_IFS
5122  test -z "$as_dir" && as_dir=.
5123  for ac_exec_ext in '' $ac_executable_extensions; do
5124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5126    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127    break 2
5128  fi
5129done
5130done
5131IFS=$as_save_IFS
5132
5133fi
5134fi
5135OBJDUMP=$ac_cv_prog_OBJDUMP
5136if test -n "$OBJDUMP"; then
5137  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5138$as_echo "$OBJDUMP" >&6; }
5139else
5140  { $as_echo "$as_me:$LINENO: result: no" >&5
5141$as_echo "no" >&6; }
5142fi
5143
5144
5145fi
5146if test -z "$ac_cv_prog_OBJDUMP"; then
5147  ac_ct_OBJDUMP=$OBJDUMP
5148  # Extract the first word of "objdump", so it can be a program name with args.
5149set dummy objdump; ac_word=$2
5150{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5151$as_echo_n "checking for $ac_word... " >&6; }
5152if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5153  $as_echo_n "(cached) " >&6
5154else
5155  if test -n "$ac_ct_OBJDUMP"; then
5156  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161  IFS=$as_save_IFS
5162  test -z "$as_dir" && as_dir=.
5163  for ac_exec_ext in '' $ac_executable_extensions; do
5164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5166    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167    break 2
5168  fi
5169done
5170done
5171IFS=$as_save_IFS
5172
5173fi
5174fi
5175ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5176if test -n "$ac_ct_OBJDUMP"; then
5177  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5178$as_echo "$ac_ct_OBJDUMP" >&6; }
5179else
5180  { $as_echo "$as_me:$LINENO: result: no" >&5
5181$as_echo "no" >&6; }
5182fi
5183
5184  if test "x$ac_ct_OBJDUMP" = x; then
5185    OBJDUMP="false"
5186  else
5187    case $cross_compiling:$ac_tool_warned in
5188yes:)
5189{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5191ac_tool_warned=yes ;;
5192esac
5193    OBJDUMP=$ac_ct_OBJDUMP
5194  fi
5195else
5196  OBJDUMP="$ac_cv_prog_OBJDUMP"
5197fi
5198
5199test -z "$OBJDUMP" && OBJDUMP=objdump
5200
5201
5202
5203
5204
5205
5206{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5207$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5208if test "${lt_cv_deplibs_check_method+set}" = set; then
5209  $as_echo_n "(cached) " >&6
5210else
5211  lt_cv_file_magic_cmd='$MAGIC_CMD'
5212lt_cv_file_magic_test_file=
5213lt_cv_deplibs_check_method='unknown'
5214# Need to set the preceding variable on all platforms that support
5215# interlibrary dependencies.
5216# 'none' -- dependencies not supported.
5217# `unknown' -- same as none, but documents that we really don't know.
5218# 'pass_all' -- all dependencies passed with no checks.
5219# 'test_compile' -- check by making test program.
5220# 'file_magic [[regex]]' -- check by looking for files in library path
5221# which responds to the $file_magic_cmd with a given extended regex.
5222# If you have `file' or equivalent on your system and you're not sure
5223# whether `pass_all' will *always* work, you probably want this one.
5224
5225case $host_os in
5226aix[4-9]*)
5227  lt_cv_deplibs_check_method=pass_all
5228  ;;
5229
5230beos*)
5231  lt_cv_deplibs_check_method=pass_all
5232  ;;
5233
5234bsdi[45]*)
5235  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5236  lt_cv_file_magic_cmd='/usr/bin/file -L'
5237  lt_cv_file_magic_test_file=/shlib/libc.so
5238  ;;
5239
5240cygwin*)
5241  # func_win32_libid is a shell function defined in ltmain.sh
5242  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243  lt_cv_file_magic_cmd='func_win32_libid'
5244  ;;
5245
5246mingw* | pw32*)
5247  # Base MSYS/MinGW do not provide the 'file' command needed by
5248  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5249  # unless we find 'file', for example because we are cross-compiling.
5250  if ( file / ) >/dev/null 2>&1; then
5251    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5252    lt_cv_file_magic_cmd='func_win32_libid'
5253  else
5254    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5255    lt_cv_file_magic_cmd='$OBJDUMP -f'
5256  fi
5257  ;;
5258
5259cegcc)
5260  # use the weaker test based on 'objdump'. See mingw*.
5261  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5262  lt_cv_file_magic_cmd='$OBJDUMP -f'
5263  ;;
5264
5265darwin* | rhapsody*)
5266  lt_cv_deplibs_check_method=pass_all
5267  ;;
5268
5269freebsd* | dragonfly*)
5270  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5271    case $host_cpu in
5272    i*86 )
5273      # Not sure whether the presence of OpenBSD here was a mistake.
5274      # Let's accept both of them until this is cleared up.
5275      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5276      lt_cv_file_magic_cmd=/usr/bin/file
5277      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5278      ;;
5279    esac
5280  else
5281    lt_cv_deplibs_check_method=pass_all
5282  fi
5283  ;;
5284
5285gnu*)
5286  lt_cv_deplibs_check_method=pass_all
5287  ;;
5288
5289hpux10.20* | hpux11*)
5290  lt_cv_file_magic_cmd=/usr/bin/file
5291  case $host_cpu in
5292  ia64*)
5293    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5294    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5295    ;;
5296  hppa*64*)
5297    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]'
5298    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5299    ;;
5300  *)
5301    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5302    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5303    ;;
5304  esac
5305  ;;
5306
5307interix[3-9]*)
5308  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5309  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5310  ;;
5311
5312irix5* | irix6* | nonstopux*)
5313  case $LD in
5314  *-32|*"-32 ") libmagic=32-bit;;
5315  *-n32|*"-n32 ") libmagic=N32;;
5316  *-64|*"-64 ") libmagic=64-bit;;
5317  *) libmagic=never-match;;
5318  esac
5319  lt_cv_deplibs_check_method=pass_all
5320  ;;
5321
5322# This must be Linux ELF.
5323linux* | k*bsd*-gnu)
5324  lt_cv_deplibs_check_method=pass_all
5325  ;;
5326
5327netbsd*)
5328  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5329    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5330  else
5331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5332  fi
5333  ;;
5334
5335newos6*)
5336  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5337  lt_cv_file_magic_cmd=/usr/bin/file
5338  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5339  ;;
5340
5341*nto* | *qnx*)
5342  lt_cv_deplibs_check_method=pass_all
5343  ;;
5344
5345openbsd*)
5346  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5348  else
5349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5350  fi
5351  ;;
5352
5353osf3* | osf4* | osf5*)
5354  lt_cv_deplibs_check_method=pass_all
5355  ;;
5356
5357rdos*)
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361solaris*)
5362  lt_cv_deplibs_check_method=pass_all
5363  ;;
5364
5365sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5366  lt_cv_deplibs_check_method=pass_all
5367  ;;
5368
5369sysv4 | sysv4.3*)
5370  case $host_vendor in
5371  motorola)
5372    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]'
5373    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5374    ;;
5375  ncr)
5376    lt_cv_deplibs_check_method=pass_all
5377    ;;
5378  sequent)
5379    lt_cv_file_magic_cmd='/bin/file'
5380    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5381    ;;
5382  sni)
5383    lt_cv_file_magic_cmd='/bin/file'
5384    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5385    lt_cv_file_magic_test_file=/lib/libc.so
5386    ;;
5387  siemens)
5388    lt_cv_deplibs_check_method=pass_all
5389    ;;
5390  pc)
5391    lt_cv_deplibs_check_method=pass_all
5392    ;;
5393  esac
5394  ;;
5395
5396tpf*)
5397  lt_cv_deplibs_check_method=pass_all
5398  ;;
5399esac
5400
5401fi
5402{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5403$as_echo "$lt_cv_deplibs_check_method" >&6; }
5404file_magic_cmd=$lt_cv_file_magic_cmd
5405deplibs_check_method=$lt_cv_deplibs_check_method
5406test -z "$deplibs_check_method" && deplibs_check_method=unknown
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419if test -n "$ac_tool_prefix"; then
5420  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5421set dummy ${ac_tool_prefix}ar; ac_word=$2
5422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if test "${ac_cv_prog_AR+set}" = set; then
5425  $as_echo_n "(cached) " >&6
5426else
5427  if test -n "$AR"; then
5428  ac_cv_prog_AR="$AR" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433  IFS=$as_save_IFS
5434  test -z "$as_dir" && as_dir=.
5435  for ac_exec_ext in '' $ac_executable_extensions; do
5436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437    ac_cv_prog_AR="${ac_tool_prefix}ar"
5438    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439    break 2
5440  fi
5441done
5442done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447AR=$ac_cv_prog_AR
5448if test -n "$AR"; then
5449  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5450$as_echo "$AR" >&6; }
5451else
5452  { $as_echo "$as_me:$LINENO: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457fi
5458if test -z "$ac_cv_prog_AR"; then
5459  ac_ct_AR=$AR
5460  # Extract the first word of "ar", so it can be a program name with args.
5461set dummy ar; ac_word=$2
5462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5465  $as_echo_n "(cached) " >&6
5466else
5467  if test -n "$ac_ct_AR"; then
5468  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473  IFS=$as_save_IFS
5474  test -z "$as_dir" && as_dir=.
5475  for ac_exec_ext in '' $ac_executable_extensions; do
5476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477    ac_cv_prog_ac_ct_AR="ar"
5478    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479    break 2
5480  fi
5481done
5482done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_AR=$ac_cv_prog_ac_ct_AR
5488if test -n "$ac_ct_AR"; then
5489  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5490$as_echo "$ac_ct_AR" >&6; }
5491else
5492  { $as_echo "$as_me:$LINENO: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496  if test "x$ac_ct_AR" = x; then
5497    AR="false"
5498  else
5499    case $cross_compiling:$ac_tool_warned in
5500yes:)
5501{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503ac_tool_warned=yes ;;
5504esac
5505    AR=$ac_ct_AR
5506  fi
5507else
5508  AR="$ac_cv_prog_AR"
5509fi
5510
5511test -z "$AR" && AR=ar
5512test -z "$AR_FLAGS" && AR_FLAGS=cru
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524if test -n "$ac_tool_prefix"; then
5525  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5526set dummy ${ac_tool_prefix}strip; ac_word=$2
5527{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5528$as_echo_n "checking for $ac_word... " >&6; }
5529if test "${ac_cv_prog_STRIP+set}" = set; then
5530  $as_echo_n "(cached) " >&6
5531else
5532  if test -n "$STRIP"; then
5533  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538  IFS=$as_save_IFS
5539  test -z "$as_dir" && as_dir=.
5540  for ac_exec_ext in '' $ac_executable_extensions; do
5541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5543    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544    break 2
5545  fi
5546done
5547done
5548IFS=$as_save_IFS
5549
5550fi
5551fi
5552STRIP=$ac_cv_prog_STRIP
5553if test -n "$STRIP"; then
5554  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5555$as_echo "$STRIP" >&6; }
5556else
5557  { $as_echo "$as_me:$LINENO: result: no" >&5
5558$as_echo "no" >&6; }
5559fi
5560
5561
5562fi
5563if test -z "$ac_cv_prog_STRIP"; then
5564  ac_ct_STRIP=$STRIP
5565  # Extract the first word of "strip", so it can be a program name with args.
5566set dummy strip; ac_word=$2
5567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5568$as_echo_n "checking for $ac_word... " >&6; }
5569if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5570  $as_echo_n "(cached) " >&6
5571else
5572  if test -n "$ac_ct_STRIP"; then
5573  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5574else
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578  IFS=$as_save_IFS
5579  test -z "$as_dir" && as_dir=.
5580  for ac_exec_ext in '' $ac_executable_extensions; do
5581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582    ac_cv_prog_ac_ct_STRIP="strip"
5583    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584    break 2
5585  fi
5586done
5587done
5588IFS=$as_save_IFS
5589
5590fi
5591fi
5592ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5593if test -n "$ac_ct_STRIP"; then
5594  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5595$as_echo "$ac_ct_STRIP" >&6; }
5596else
5597  { $as_echo "$as_me:$LINENO: result: no" >&5
5598$as_echo "no" >&6; }
5599fi
5600
5601  if test "x$ac_ct_STRIP" = x; then
5602    STRIP=":"
5603  else
5604    case $cross_compiling:$ac_tool_warned in
5605yes:)
5606{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608ac_tool_warned=yes ;;
5609esac
5610    STRIP=$ac_ct_STRIP
5611  fi
5612else
5613  STRIP="$ac_cv_prog_STRIP"
5614fi
5615
5616test -z "$STRIP" && STRIP=:
5617
5618
5619
5620
5621
5622
5623if test -n "$ac_tool_prefix"; then
5624  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5625set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5626{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5627$as_echo_n "checking for $ac_word... " >&6; }
5628if test "${ac_cv_prog_RANLIB+set}" = set; then
5629  $as_echo_n "(cached) " >&6
5630else
5631  if test -n "$RANLIB"; then
5632  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5633else
5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637  IFS=$as_save_IFS
5638  test -z "$as_dir" && as_dir=.
5639  for ac_exec_ext in '' $ac_executable_extensions; do
5640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5642    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643    break 2
5644  fi
5645done
5646done
5647IFS=$as_save_IFS
5648
5649fi
5650fi
5651RANLIB=$ac_cv_prog_RANLIB
5652if test -n "$RANLIB"; then
5653  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5654$as_echo "$RANLIB" >&6; }
5655else
5656  { $as_echo "$as_me:$LINENO: result: no" >&5
5657$as_echo "no" >&6; }
5658fi
5659
5660
5661fi
5662if test -z "$ac_cv_prog_RANLIB"; then
5663  ac_ct_RANLIB=$RANLIB
5664  # Extract the first word of "ranlib", so it can be a program name with args.
5665set dummy ranlib; ac_word=$2
5666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5669  $as_echo_n "(cached) " >&6
5670else
5671  if test -n "$ac_ct_RANLIB"; then
5672  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677  IFS=$as_save_IFS
5678  test -z "$as_dir" && as_dir=.
5679  for ac_exec_ext in '' $ac_executable_extensions; do
5680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681    ac_cv_prog_ac_ct_RANLIB="ranlib"
5682    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683    break 2
5684  fi
5685done
5686done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5692if test -n "$ac_ct_RANLIB"; then
5693  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5694$as_echo "$ac_ct_RANLIB" >&6; }
5695else
5696  { $as_echo "$as_me:$LINENO: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700  if test "x$ac_ct_RANLIB" = x; then
5701    RANLIB=":"
5702  else
5703    case $cross_compiling:$ac_tool_warned in
5704yes:)
5705{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707ac_tool_warned=yes ;;
5708esac
5709    RANLIB=$ac_ct_RANLIB
5710  fi
5711else
5712  RANLIB="$ac_cv_prog_RANLIB"
5713fi
5714
5715test -z "$RANLIB" && RANLIB=:
5716
5717
5718
5719
5720
5721
5722# Determine commands to create old-style static archives.
5723old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5724old_postinstall_cmds='chmod 644 $oldlib'
5725old_postuninstall_cmds=
5726
5727if test -n "$RANLIB"; then
5728  case $host_os in
5729  openbsd*)
5730    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5731    ;;
5732  *)
5733    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5734    ;;
5735  esac
5736  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5737fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772# If no C compiler was specified, use CC.
5773LTCC=${LTCC-"$CC"}
5774
5775# If no C compiler flags were specified, use CFLAGS.
5776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5777
5778# Allow CC to be a program name with arguments.
5779compiler=$CC
5780
5781
5782# Check for command to grab the raw symbol name followed by C symbol from nm.
5783{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5784$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5785if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5786  $as_echo_n "(cached) " >&6
5787else
5788
5789# These are sane defaults that work on at least a few old systems.
5790# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5791
5792# Character class describing NM global symbol codes.
5793symcode='[BCDEGRST]'
5794
5795# Regexp to match symbols that can be accessed directly from C.
5796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5797
5798# Define system-specific variables.
5799case $host_os in
5800aix*)
5801  symcode='[BCDT]'
5802  ;;
5803cygwin* | mingw* | pw32* | cegcc*)
5804  symcode='[ABCDGISTW]'
5805  ;;
5806hpux*)
5807  if test "$host_cpu" = ia64; then
5808    symcode='[ABCDEGRST]'
5809  fi
5810  ;;
5811irix* | nonstopux*)
5812  symcode='[BCDEGRST]'
5813  ;;
5814osf*)
5815  symcode='[BCDEGQRST]'
5816  ;;
5817solaris*)
5818  symcode='[BDRT]'
5819  ;;
5820sco3.2v5*)
5821  symcode='[DT]'
5822  ;;
5823sysv4.2uw2*)
5824  symcode='[DT]'
5825  ;;
5826sysv5* | sco5v6* | unixware* | OpenUNIX*)
5827  symcode='[ABDT]'
5828  ;;
5829sysv4)
5830  symcode='[DFNSTU]'
5831  ;;
5832esac
5833
5834# If we're using GNU nm, then use its standard symbol codes.
5835case `$NM -V 2>&1` in
5836*GNU* | *'with BFD'*)
5837  symcode='[ABCDGIRSTW]' ;;
5838esac
5839
5840# Transform an extracted symbol line into a proper C declaration.
5841# Some systems (esp. on ia64) link data and code symbols differently,
5842# so use this general approach.
5843lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5844
5845# Transform an extracted symbol line into symbol name and symbol address
5846lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5847lt_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'"
5848
5849# Handle CRLF in mingw tool chain
5850opt_cr=
5851case $build_os in
5852mingw*)
5853  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5854  ;;
5855esac
5856
5857# Try without a prefix underscore, then with it.
5858for ac_symprfx in "" "_"; do
5859
5860  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5861  symxfrm="\\1 $ac_symprfx\\2 \\2"
5862
5863  # Write the raw and C identifiers.
5864  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5865    # Fake it for dumpbin and say T for any non-static function
5866    # and D for any global variable.
5867    # Also find C++ and __fastcall symbols from MSVC++,
5868    # which start with @ or ?.
5869    lt_cv_sys_global_symbol_pipe="$AWK '"\
5870"     {last_section=section; section=\$ 3};"\
5871"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5872"     \$ 0!~/External *\|/{next};"\
5873"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5874"     {if(hide[section]) next};"\
5875"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5876"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5877"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5878"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5879"     ' prfx=^$ac_symprfx"
5880  else
5881    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5882  fi
5883
5884  # Check to see that the pipe works correctly.
5885  pipe_works=no
5886
5887  rm -f conftest*
5888  cat > conftest.$ac_ext <<_LT_EOF
5889#ifdef __cplusplus
5890extern "C" {
5891#endif
5892char nm_test_var;
5893void nm_test_func(void);
5894void nm_test_func(void){}
5895#ifdef __cplusplus
5896}
5897#endif
5898int main(){nm_test_var='a';nm_test_func();return(0);}
5899_LT_EOF
5900
5901  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902  (eval $ac_compile) 2>&5
5903  ac_status=$?
5904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }; then
5906    # Now try to grab the symbols.
5907    nlist=conftest.nm
5908    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5909  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5910  ac_status=$?
5911  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); } && test -s "$nlist"; then
5913      # Try sorting and uniquifying the output.
5914      if sort "$nlist" | uniq > "$nlist"T; then
5915	mv -f "$nlist"T "$nlist"
5916      else
5917	rm -f "$nlist"T
5918      fi
5919
5920      # Make sure that we snagged all the symbols we need.
5921      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5922	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5923	  cat <<_LT_EOF > conftest.$ac_ext
5924#ifdef __cplusplus
5925extern "C" {
5926#endif
5927
5928_LT_EOF
5929	  # Now generate the symbol file.
5930	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5931
5932	  cat <<_LT_EOF >> conftest.$ac_ext
5933
5934/* The mapping between symbol names and symbols.  */
5935const struct {
5936  const char *name;
5937  void       *address;
5938}
5939lt__PROGRAM__LTX_preloaded_symbols[] =
5940{
5941  { "@PROGRAM@", (void *) 0 },
5942_LT_EOF
5943	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5944	  cat <<\_LT_EOF >> conftest.$ac_ext
5945  {0, (void *) 0}
5946};
5947
5948/* This works around a problem in FreeBSD linker */
5949#ifdef FREEBSD_WORKAROUND
5950static const void *lt_preloaded_setup() {
5951  return lt__PROGRAM__LTX_preloaded_symbols;
5952}
5953#endif
5954
5955#ifdef __cplusplus
5956}
5957#endif
5958_LT_EOF
5959	  # Now try linking the two files.
5960	  mv conftest.$ac_objext conftstm.$ac_objext
5961	  lt_save_LIBS="$LIBS"
5962	  lt_save_CFLAGS="$CFLAGS"
5963	  LIBS="conftstm.$ac_objext"
5964	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5965	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966  (eval $ac_link) 2>&5
5967  ac_status=$?
5968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5970	    pipe_works=yes
5971	  fi
5972	  LIBS="$lt_save_LIBS"
5973	  CFLAGS="$lt_save_CFLAGS"
5974	else
5975	  echo "cannot find nm_test_func in $nlist" >&5
5976	fi
5977      else
5978	echo "cannot find nm_test_var in $nlist" >&5
5979      fi
5980    else
5981      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5982    fi
5983  else
5984    echo "$progname: failed program was:" >&5
5985    cat conftest.$ac_ext >&5
5986  fi
5987  rm -rf conftest* conftst*
5988
5989  # Do not use the global_symbol_pipe unless it works.
5990  if test "$pipe_works" = yes; then
5991    break
5992  else
5993    lt_cv_sys_global_symbol_pipe=
5994  fi
5995done
5996
5997fi
5998
5999if test -z "$lt_cv_sys_global_symbol_pipe"; then
6000  lt_cv_sys_global_symbol_to_cdecl=
6001fi
6002if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6003  { $as_echo "$as_me:$LINENO: result: failed" >&5
6004$as_echo "failed" >&6; }
6005else
6006  { $as_echo "$as_me:$LINENO: result: ok" >&5
6007$as_echo "ok" >&6; }
6008fi
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032# Check whether --enable-libtool-lock was given.
6033if test "${enable_libtool_lock+set}" = set; then
6034  enableval=$enable_libtool_lock;
6035fi
6036
6037test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6038
6039# Some flags need to be propagated to the compiler or linker for good
6040# libtool support.
6041case $host in
6042ia64-*-hpux*)
6043  # Find out which ABI we are using.
6044  echo 'int i;' > conftest.$ac_ext
6045  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046  (eval $ac_compile) 2>&5
6047  ac_status=$?
6048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); }; then
6050    case `/usr/bin/file conftest.$ac_objext` in
6051      *ELF-32*)
6052	HPUX_IA64_MODE="32"
6053	;;
6054      *ELF-64*)
6055	HPUX_IA64_MODE="64"
6056	;;
6057    esac
6058  fi
6059  rm -rf conftest*
6060  ;;
6061*-*-irix6*)
6062  # Find out which ABI we are using.
6063  echo '#line 6063 "configure"' > conftest.$ac_ext
6064  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065  (eval $ac_compile) 2>&5
6066  ac_status=$?
6067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); }; then
6069    if test "$lt_cv_prog_gnu_ld" = yes; then
6070      case `/usr/bin/file conftest.$ac_objext` in
6071	*32-bit*)
6072	  LD="${LD-ld} -melf32bsmip"
6073	  ;;
6074	*N32*)
6075	  LD="${LD-ld} -melf32bmipn32"
6076	  ;;
6077	*64-bit*)
6078	  LD="${LD-ld} -melf64bmip"
6079	;;
6080      esac
6081    else
6082      case `/usr/bin/file conftest.$ac_objext` in
6083	*32-bit*)
6084	  LD="${LD-ld} -32"
6085	  ;;
6086	*N32*)
6087	  LD="${LD-ld} -n32"
6088	  ;;
6089	*64-bit*)
6090	  LD="${LD-ld} -64"
6091	  ;;
6092      esac
6093    fi
6094  fi
6095  rm -rf conftest*
6096  ;;
6097
6098x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6099s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6100  # Find out which ABI we are using.
6101  echo 'int i;' > conftest.$ac_ext
6102  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103  (eval $ac_compile) 2>&5
6104  ac_status=$?
6105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); }; then
6107    case `/usr/bin/file conftest.o` in
6108      *32-bit*)
6109	case $host in
6110	  x86_64-*kfreebsd*-gnu)
6111	    LD="${LD-ld} -m elf_i386_fbsd"
6112	    ;;
6113	  x86_64-*linux*)
6114	    LD="${LD-ld} -m elf_i386"
6115	    ;;
6116	  ppc64-*linux*|powerpc64-*linux*)
6117	    LD="${LD-ld} -m elf32ppclinux"
6118	    ;;
6119	  s390x-*linux*)
6120	    LD="${LD-ld} -m elf_s390"
6121	    ;;
6122	  sparc64-*linux*)
6123	    LD="${LD-ld} -m elf32_sparc"
6124	    ;;
6125	esac
6126	;;
6127      *64-bit*)
6128	case $host in
6129	  x86_64-*kfreebsd*-gnu)
6130	    LD="${LD-ld} -m elf_x86_64_fbsd"
6131	    ;;
6132	  x86_64-*linux*)
6133	    LD="${LD-ld} -m elf_x86_64"
6134	    ;;
6135	  ppc*-*linux*|powerpc*-*linux*)
6136	    LD="${LD-ld} -m elf64ppc"
6137	    ;;
6138	  s390*-*linux*|s390*-*tpf*)
6139	    LD="${LD-ld} -m elf64_s390"
6140	    ;;
6141	  sparc*-*linux*)
6142	    LD="${LD-ld} -m elf64_sparc"
6143	    ;;
6144	esac
6145	;;
6146    esac
6147  fi
6148  rm -rf conftest*
6149  ;;
6150
6151*-*-sco3.2v5*)
6152  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6153  SAVE_CFLAGS="$CFLAGS"
6154  CFLAGS="$CFLAGS -belf"
6155  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6156$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6157if test "${lt_cv_cc_needs_belf+set}" = set; then
6158  $as_echo_n "(cached) " >&6
6159else
6160  ac_ext=c
6161ac_cpp='$CPP $CPPFLAGS'
6162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165
6166     cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172
6173int
6174main ()
6175{
6176
6177  ;
6178  return 0;
6179}
6180_ACEOF
6181rm -f conftest.$ac_objext conftest$ac_exeext
6182if { (ac_try="$ac_link"
6183case "(($ac_try" in
6184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185  *) ac_try_echo=$ac_try;;
6186esac
6187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188$as_echo "$ac_try_echo") >&5
6189  (eval "$ac_link") 2>conftest.er1
6190  ac_status=$?
6191  grep -v '^ *+' conftest.er1 >conftest.err
6192  rm -f conftest.er1
6193  cat conftest.err >&5
6194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); } && {
6196	 test -z "$ac_c_werror_flag" ||
6197	 test ! -s conftest.err
6198       } && test -s conftest$ac_exeext && {
6199	 test "$cross_compiling" = yes ||
6200	 $as_test_x conftest$ac_exeext
6201       }; then
6202  lt_cv_cc_needs_belf=yes
6203else
6204  $as_echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207	lt_cv_cc_needs_belf=no
6208fi
6209
6210rm -rf conftest.dSYM
6211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6212      conftest$ac_exeext conftest.$ac_ext
6213     ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219fi
6220{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6221$as_echo "$lt_cv_cc_needs_belf" >&6; }
6222  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6223    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6224    CFLAGS="$SAVE_CFLAGS"
6225  fi
6226  ;;
6227sparc*-*solaris*)
6228  # Find out which ABI we are using.
6229  echo 'int i;' > conftest.$ac_ext
6230  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231  (eval $ac_compile) 2>&5
6232  ac_status=$?
6233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234  (exit $ac_status); }; then
6235    case `/usr/bin/file conftest.o` in
6236    *64-bit*)
6237      case $lt_cv_prog_gnu_ld in
6238      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6239      *)
6240	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6241	  LD="${LD-ld} -64"
6242	fi
6243	;;
6244      esac
6245      ;;
6246    esac
6247  fi
6248  rm -rf conftest*
6249  ;;
6250esac
6251
6252need_locks="$enable_libtool_lock"
6253
6254
6255  case $host_os in
6256    rhapsody* | darwin*)
6257    if test -n "$ac_tool_prefix"; then
6258  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6261$as_echo_n "checking for $ac_word... " >&6; }
6262if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6263  $as_echo_n "(cached) " >&6
6264else
6265  if test -n "$DSYMUTIL"; then
6266  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6267else
6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271  IFS=$as_save_IFS
6272  test -z "$as_dir" && as_dir=.
6273  for ac_exec_ext in '' $ac_executable_extensions; do
6274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6276    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277    break 2
6278  fi
6279done
6280done
6281IFS=$as_save_IFS
6282
6283fi
6284fi
6285DSYMUTIL=$ac_cv_prog_DSYMUTIL
6286if test -n "$DSYMUTIL"; then
6287  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6288$as_echo "$DSYMUTIL" >&6; }
6289else
6290  { $as_echo "$as_me:$LINENO: result: no" >&5
6291$as_echo "no" >&6; }
6292fi
6293
6294
6295fi
6296if test -z "$ac_cv_prog_DSYMUTIL"; then
6297  ac_ct_DSYMUTIL=$DSYMUTIL
6298  # Extract the first word of "dsymutil", so it can be a program name with args.
6299set dummy dsymutil; ac_word=$2
6300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6301$as_echo_n "checking for $ac_word... " >&6; }
6302if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6303  $as_echo_n "(cached) " >&6
6304else
6305  if test -n "$ac_ct_DSYMUTIL"; then
6306  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311  IFS=$as_save_IFS
6312  test -z "$as_dir" && as_dir=.
6313  for ac_exec_ext in '' $ac_executable_extensions; do
6314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6316    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317    break 2
6318  fi
6319done
6320done
6321IFS=$as_save_IFS
6322
6323fi
6324fi
6325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6326if test -n "$ac_ct_DSYMUTIL"; then
6327  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6328$as_echo "$ac_ct_DSYMUTIL" >&6; }
6329else
6330  { $as_echo "$as_me:$LINENO: result: no" >&5
6331$as_echo "no" >&6; }
6332fi
6333
6334  if test "x$ac_ct_DSYMUTIL" = x; then
6335    DSYMUTIL=":"
6336  else
6337    case $cross_compiling:$ac_tool_warned in
6338yes:)
6339{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341ac_tool_warned=yes ;;
6342esac
6343    DSYMUTIL=$ac_ct_DSYMUTIL
6344  fi
6345else
6346  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6347fi
6348
6349    if test -n "$ac_tool_prefix"; then
6350  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if test "${ac_cv_prog_NMEDIT+set}" = set; then
6355  $as_echo_n "(cached) " >&6
6356else
6357  if test -n "$NMEDIT"; then
6358  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365  for ac_exec_ext in '' $ac_executable_extensions; do
6366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6368    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377NMEDIT=$ac_cv_prog_NMEDIT
6378if test -n "$NMEDIT"; then
6379  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6380$as_echo "$NMEDIT" >&6; }
6381else
6382  { $as_echo "$as_me:$LINENO: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386
6387fi
6388if test -z "$ac_cv_prog_NMEDIT"; then
6389  ac_ct_NMEDIT=$NMEDIT
6390  # Extract the first word of "nmedit", so it can be a program name with args.
6391set dummy nmedit; ac_word=$2
6392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
6394if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6395  $as_echo_n "(cached) " >&6
6396else
6397  if test -n "$ac_ct_NMEDIT"; then
6398  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405  for ac_exec_ext in '' $ac_executable_extensions; do
6406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6408    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6418if test -n "$ac_ct_NMEDIT"; then
6419  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6420$as_echo "$ac_ct_NMEDIT" >&6; }
6421else
6422  { $as_echo "$as_me:$LINENO: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426  if test "x$ac_ct_NMEDIT" = x; then
6427    NMEDIT=":"
6428  else
6429    case $cross_compiling:$ac_tool_warned in
6430yes:)
6431{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433ac_tool_warned=yes ;;
6434esac
6435    NMEDIT=$ac_ct_NMEDIT
6436  fi
6437else
6438  NMEDIT="$ac_cv_prog_NMEDIT"
6439fi
6440
6441    if test -n "$ac_tool_prefix"; then
6442  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6443set dummy ${ac_tool_prefix}lipo; ac_word=$2
6444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if test "${ac_cv_prog_LIPO+set}" = set; then
6447  $as_echo_n "(cached) " >&6
6448else
6449  if test -n "$LIPO"; then
6450  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455  IFS=$as_save_IFS
6456  test -z "$as_dir" && as_dir=.
6457  for ac_exec_ext in '' $ac_executable_extensions; do
6458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6460    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461    break 2
6462  fi
6463done
6464done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469LIPO=$ac_cv_prog_LIPO
6470if test -n "$LIPO"; then
6471  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6472$as_echo "$LIPO" >&6; }
6473else
6474  { $as_echo "$as_me:$LINENO: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478
6479fi
6480if test -z "$ac_cv_prog_LIPO"; then
6481  ac_ct_LIPO=$LIPO
6482  # Extract the first word of "lipo", so it can be a program name with args.
6483set dummy lipo; ac_word=$2
6484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
6486if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6487  $as_echo_n "(cached) " >&6
6488else
6489  if test -n "$ac_ct_LIPO"; then
6490  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495  IFS=$as_save_IFS
6496  test -z "$as_dir" && as_dir=.
6497  for ac_exec_ext in '' $ac_executable_extensions; do
6498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499    ac_cv_prog_ac_ct_LIPO="lipo"
6500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501    break 2
6502  fi
6503done
6504done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6510if test -n "$ac_ct_LIPO"; then
6511  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6512$as_echo "$ac_ct_LIPO" >&6; }
6513else
6514  { $as_echo "$as_me:$LINENO: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518  if test "x$ac_ct_LIPO" = x; then
6519    LIPO=":"
6520  else
6521    case $cross_compiling:$ac_tool_warned in
6522yes:)
6523{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525ac_tool_warned=yes ;;
6526esac
6527    LIPO=$ac_ct_LIPO
6528  fi
6529else
6530  LIPO="$ac_cv_prog_LIPO"
6531fi
6532
6533    if test -n "$ac_tool_prefix"; then
6534  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6535set dummy ${ac_tool_prefix}otool; ac_word=$2
6536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if test "${ac_cv_prog_OTOOL+set}" = set; then
6539  $as_echo_n "(cached) " >&6
6540else
6541  if test -n "$OTOOL"; then
6542  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549  for ac_exec_ext in '' $ac_executable_extensions; do
6550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6552    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561OTOOL=$ac_cv_prog_OTOOL
6562if test -n "$OTOOL"; then
6563  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6564$as_echo "$OTOOL" >&6; }
6565else
6566  { $as_echo "$as_me:$LINENO: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570
6571fi
6572if test -z "$ac_cv_prog_OTOOL"; then
6573  ac_ct_OTOOL=$OTOOL
6574  # Extract the first word of "otool", so it can be a program name with args.
6575set dummy otool; ac_word=$2
6576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6577$as_echo_n "checking for $ac_word... " >&6; }
6578if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6579  $as_echo_n "(cached) " >&6
6580else
6581  if test -n "$ac_ct_OTOOL"; then
6582  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6583else
6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587  IFS=$as_save_IFS
6588  test -z "$as_dir" && as_dir=.
6589  for ac_exec_ext in '' $ac_executable_extensions; do
6590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591    ac_cv_prog_ac_ct_OTOOL="otool"
6592    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593    break 2
6594  fi
6595done
6596done
6597IFS=$as_save_IFS
6598
6599fi
6600fi
6601ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6602if test -n "$ac_ct_OTOOL"; then
6603  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6604$as_echo "$ac_ct_OTOOL" >&6; }
6605else
6606  { $as_echo "$as_me:$LINENO: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609
6610  if test "x$ac_ct_OTOOL" = x; then
6611    OTOOL=":"
6612  else
6613    case $cross_compiling:$ac_tool_warned in
6614yes:)
6615{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617ac_tool_warned=yes ;;
6618esac
6619    OTOOL=$ac_ct_OTOOL
6620  fi
6621else
6622  OTOOL="$ac_cv_prog_OTOOL"
6623fi
6624
6625    if test -n "$ac_tool_prefix"; then
6626  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}otool64; ac_word=$2
6628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6629$as_echo_n "checking for $ac_word... " >&6; }
6630if test "${ac_cv_prog_OTOOL64+set}" = set; then
6631  $as_echo_n "(cached) " >&6
6632else
6633  if test -n "$OTOOL64"; then
6634  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641  for ac_exec_ext in '' $ac_executable_extensions; do
6642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6644    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653OTOOL64=$ac_cv_prog_OTOOL64
6654if test -n "$OTOOL64"; then
6655  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6656$as_echo "$OTOOL64" >&6; }
6657else
6658  { $as_echo "$as_me:$LINENO: result: no" >&5
6659$as_echo "no" >&6; }
6660fi
6661
6662
6663fi
6664if test -z "$ac_cv_prog_OTOOL64"; then
6665  ac_ct_OTOOL64=$OTOOL64
6666  # Extract the first word of "otool64", so it can be a program name with args.
6667set dummy otool64; ac_word=$2
6668{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6671  $as_echo_n "(cached) " >&6
6672else
6673  if test -n "$ac_ct_OTOOL64"; then
6674  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681  for ac_exec_ext in '' $ac_executable_extensions; do
6682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683    ac_cv_prog_ac_ct_OTOOL64="otool64"
6684    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6694if test -n "$ac_ct_OTOOL64"; then
6695  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6696$as_echo "$ac_ct_OTOOL64" >&6; }
6697else
6698  { $as_echo "$as_me:$LINENO: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702  if test "x$ac_ct_OTOOL64" = x; then
6703    OTOOL64=":"
6704  else
6705    case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709ac_tool_warned=yes ;;
6710esac
6711    OTOOL64=$ac_ct_OTOOL64
6712  fi
6713else
6714  OTOOL64="$ac_cv_prog_OTOOL64"
6715fi
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6744$as_echo_n "checking for -single_module linker flag... " >&6; }
6745if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6746  $as_echo_n "(cached) " >&6
6747else
6748  lt_cv_apple_cc_single_mod=no
6749      if test -z "${LT_MULTI_MODULE}"; then
6750	# By default we will add the -single_module flag. You can override
6751	# by either setting the environment variable LT_MULTI_MODULE
6752	# non-empty at configure time, or by adding -multi_module to the
6753	# link flags.
6754	rm -rf libconftest.dylib*
6755	echo "int foo(void){return 1;}" > conftest.c
6756	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6757-dynamiclib -Wl,-single_module conftest.c" >&5
6758	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6759	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6760        _lt_result=$?
6761	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6762	  lt_cv_apple_cc_single_mod=yes
6763	else
6764	  cat conftest.err >&5
6765	fi
6766	rm -rf libconftest.dylib*
6767	rm -f conftest.*
6768      fi
6769fi
6770{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6771$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6772    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6773$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6774if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6775  $as_echo_n "(cached) " >&6
6776else
6777  lt_cv_ld_exported_symbols_list=no
6778      save_LDFLAGS=$LDFLAGS
6779      echo "_main" > conftest.sym
6780      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6781      cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787
6788int
6789main ()
6790{
6791
6792  ;
6793  return 0;
6794}
6795_ACEOF
6796rm -f conftest.$ac_objext conftest$ac_exeext
6797if { (ac_try="$ac_link"
6798case "(($ac_try" in
6799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800  *) ac_try_echo=$ac_try;;
6801esac
6802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6803$as_echo "$ac_try_echo") >&5
6804  (eval "$ac_link") 2>conftest.er1
6805  ac_status=$?
6806  grep -v '^ *+' conftest.er1 >conftest.err
6807  rm -f conftest.er1
6808  cat conftest.err >&5
6809  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810  (exit $ac_status); } && {
6811	 test -z "$ac_c_werror_flag" ||
6812	 test ! -s conftest.err
6813       } && test -s conftest$ac_exeext && {
6814	 test "$cross_compiling" = yes ||
6815	 $as_test_x conftest$ac_exeext
6816       }; then
6817  lt_cv_ld_exported_symbols_list=yes
6818else
6819  $as_echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822	lt_cv_ld_exported_symbols_list=no
6823fi
6824
6825rm -rf conftest.dSYM
6826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6827      conftest$ac_exeext conftest.$ac_ext
6828	LDFLAGS="$save_LDFLAGS"
6829
6830fi
6831{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6832$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6833    case $host_os in
6834    rhapsody* | darwin1.[012])
6835      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6836    darwin1.*)
6837      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6838    darwin*) # darwin 5.x on
6839      # if running on 10.5 or later, the deployment target defaults
6840      # to the OS version, if on x86, and 10.4, the deployment
6841      # target defaults to 10.4. Don't you love it?
6842      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6843	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6844	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6845	10.[012]*)
6846	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6847	10.*)
6848	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6849      esac
6850    ;;
6851  esac
6852    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6853      _lt_dar_single_mod='$single_module'
6854    fi
6855    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6856      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6857    else
6858      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6859    fi
6860    if test "$DSYMUTIL" != ":"; then
6861      _lt_dsymutil='~$DSYMUTIL $lib || :'
6862    else
6863      _lt_dsymutil=
6864    fi
6865    ;;
6866  esac
6867
6868ac_ext=c
6869ac_cpp='$CPP $CPPFLAGS'
6870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6872ac_compiler_gnu=$ac_cv_c_compiler_gnu
6873{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6874$as_echo_n "checking how to run the C preprocessor... " >&6; }
6875# On Suns, sometimes $CPP names a directory.
6876if test -n "$CPP" && test -d "$CPP"; then
6877  CPP=
6878fi
6879if test -z "$CPP"; then
6880  if test "${ac_cv_prog_CPP+set}" = set; then
6881  $as_echo_n "(cached) " >&6
6882else
6883      # Double quotes because CPP needs to be expanded
6884    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6885    do
6886      ac_preproc_ok=false
6887for ac_c_preproc_warn_flag in '' yes
6888do
6889  # Use a header file that comes with gcc, so configuring glibc
6890  # with a fresh cross-compiler works.
6891  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892  # <limits.h> exists even on freestanding compilers.
6893  # On the NeXT, cc -E runs the code through the compiler's parser,
6894  # not just through cpp. "Syntax error" is here to catch this case.
6895  cat >conftest.$ac_ext <<_ACEOF
6896/* confdefs.h.  */
6897_ACEOF
6898cat confdefs.h >>conftest.$ac_ext
6899cat >>conftest.$ac_ext <<_ACEOF
6900/* end confdefs.h.  */
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906		     Syntax error
6907_ACEOF
6908if { (ac_try="$ac_cpp conftest.$ac_ext"
6909case "(($ac_try" in
6910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911  *) ac_try_echo=$ac_try;;
6912esac
6913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914$as_echo "$ac_try_echo") >&5
6915  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916  ac_status=$?
6917  grep -v '^ *+' conftest.er1 >conftest.err
6918  rm -f conftest.er1
6919  cat conftest.err >&5
6920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); } >/dev/null && {
6922	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6923	 test ! -s conftest.err
6924       }; then
6925  :
6926else
6927  $as_echo "$as_me: failed program was:" >&5
6928sed 's/^/| /' conftest.$ac_ext >&5
6929
6930  # Broken: fails on valid input.
6931continue
6932fi
6933
6934rm -f conftest.err conftest.$ac_ext
6935
6936  # OK, works on sane cases.  Now check whether nonexistent headers
6937  # can be detected and how.
6938  cat >conftest.$ac_ext <<_ACEOF
6939/* confdefs.h.  */
6940_ACEOF
6941cat confdefs.h >>conftest.$ac_ext
6942cat >>conftest.$ac_ext <<_ACEOF
6943/* end confdefs.h.  */
6944#include <ac_nonexistent.h>
6945_ACEOF
6946if { (ac_try="$ac_cpp conftest.$ac_ext"
6947case "(($ac_try" in
6948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949  *) ac_try_echo=$ac_try;;
6950esac
6951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6952$as_echo "$ac_try_echo") >&5
6953  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6954  ac_status=$?
6955  grep -v '^ *+' conftest.er1 >conftest.err
6956  rm -f conftest.er1
6957  cat conftest.err >&5
6958  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } >/dev/null && {
6960	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6961	 test ! -s conftest.err
6962       }; then
6963  # Broken: success on invalid input.
6964continue
6965else
6966  $as_echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969  # Passes both tests.
6970ac_preproc_ok=:
6971break
6972fi
6973
6974rm -f conftest.err conftest.$ac_ext
6975
6976done
6977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6978rm -f conftest.err conftest.$ac_ext
6979if $ac_preproc_ok; then
6980  break
6981fi
6982
6983    done
6984    ac_cv_prog_CPP=$CPP
6985
6986fi
6987  CPP=$ac_cv_prog_CPP
6988else
6989  ac_cv_prog_CPP=$CPP
6990fi
6991{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6992$as_echo "$CPP" >&6; }
6993ac_preproc_ok=false
6994for ac_c_preproc_warn_flag in '' yes
6995do
6996  # Use a header file that comes with gcc, so configuring glibc
6997  # with a fresh cross-compiler works.
6998  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999  # <limits.h> exists even on freestanding compilers.
7000  # On the NeXT, cc -E runs the code through the compiler's parser,
7001  # not just through cpp. "Syntax error" is here to catch this case.
7002  cat >conftest.$ac_ext <<_ACEOF
7003/* confdefs.h.  */
7004_ACEOF
7005cat confdefs.h >>conftest.$ac_ext
7006cat >>conftest.$ac_ext <<_ACEOF
7007/* end confdefs.h.  */
7008#ifdef __STDC__
7009# include <limits.h>
7010#else
7011# include <assert.h>
7012#endif
7013		     Syntax error
7014_ACEOF
7015if { (ac_try="$ac_cpp conftest.$ac_ext"
7016case "(($ac_try" in
7017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018  *) ac_try_echo=$ac_try;;
7019esac
7020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7021$as_echo "$ac_try_echo") >&5
7022  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7023  ac_status=$?
7024  grep -v '^ *+' conftest.er1 >conftest.err
7025  rm -f conftest.er1
7026  cat conftest.err >&5
7027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } >/dev/null && {
7029	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7030	 test ! -s conftest.err
7031       }; then
7032  :
7033else
7034  $as_echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
7037  # Broken: fails on valid input.
7038continue
7039fi
7040
7041rm -f conftest.err conftest.$ac_ext
7042
7043  # OK, works on sane cases.  Now check whether nonexistent headers
7044  # can be detected and how.
7045  cat >conftest.$ac_ext <<_ACEOF
7046/* confdefs.h.  */
7047_ACEOF
7048cat confdefs.h >>conftest.$ac_ext
7049cat >>conftest.$ac_ext <<_ACEOF
7050/* end confdefs.h.  */
7051#include <ac_nonexistent.h>
7052_ACEOF
7053if { (ac_try="$ac_cpp conftest.$ac_ext"
7054case "(($ac_try" in
7055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056  *) ac_try_echo=$ac_try;;
7057esac
7058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059$as_echo "$ac_try_echo") >&5
7060  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7061  ac_status=$?
7062  grep -v '^ *+' conftest.er1 >conftest.err
7063  rm -f conftest.er1
7064  cat conftest.err >&5
7065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); } >/dev/null && {
7067	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7068	 test ! -s conftest.err
7069       }; then
7070  # Broken: success on invalid input.
7071continue
7072else
7073  $as_echo "$as_me: failed program was:" >&5
7074sed 's/^/| /' conftest.$ac_ext >&5
7075
7076  # Passes both tests.
7077ac_preproc_ok=:
7078break
7079fi
7080
7081rm -f conftest.err conftest.$ac_ext
7082
7083done
7084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7085rm -f conftest.err conftest.$ac_ext
7086if $ac_preproc_ok; then
7087  :
7088else
7089  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7092See \`config.log' for more details." >&5
7093$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7094See \`config.log' for more details." >&2;}
7095   { (exit 1); exit 1; }; }; }
7096fi
7097
7098ac_ext=c
7099ac_cpp='$CPP $CPPFLAGS'
7100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103
7104
7105{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7106$as_echo_n "checking for ANSI C header files... " >&6; }
7107if test "${ac_cv_header_stdc+set}" = set; then
7108  $as_echo_n "(cached) " >&6
7109else
7110  cat >conftest.$ac_ext <<_ACEOF
7111/* confdefs.h.  */
7112_ACEOF
7113cat confdefs.h >>conftest.$ac_ext
7114cat >>conftest.$ac_ext <<_ACEOF
7115/* end confdefs.h.  */
7116#include <stdlib.h>
7117#include <stdarg.h>
7118#include <string.h>
7119#include <float.h>
7120
7121int
7122main ()
7123{
7124
7125  ;
7126  return 0;
7127}
7128_ACEOF
7129rm -f conftest.$ac_objext
7130if { (ac_try="$ac_compile"
7131case "(($ac_try" in
7132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133  *) ac_try_echo=$ac_try;;
7134esac
7135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7136$as_echo "$ac_try_echo") >&5
7137  (eval "$ac_compile") 2>conftest.er1
7138  ac_status=$?
7139  grep -v '^ *+' conftest.er1 >conftest.err
7140  rm -f conftest.er1
7141  cat conftest.err >&5
7142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); } && {
7144	 test -z "$ac_c_werror_flag" ||
7145	 test ! -s conftest.err
7146       } && test -s conftest.$ac_objext; then
7147  ac_cv_header_stdc=yes
7148else
7149  $as_echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152	ac_cv_header_stdc=no
7153fi
7154
7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156
7157if test $ac_cv_header_stdc = yes; then
7158  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7159  cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h.  */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h.  */
7165#include <string.h>
7166
7167_ACEOF
7168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169  $EGREP "memchr" >/dev/null 2>&1; then
7170  :
7171else
7172  ac_cv_header_stdc=no
7173fi
7174rm -f conftest*
7175
7176fi
7177
7178if test $ac_cv_header_stdc = yes; then
7179  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7180  cat >conftest.$ac_ext <<_ACEOF
7181/* confdefs.h.  */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h.  */
7186#include <stdlib.h>
7187
7188_ACEOF
7189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190  $EGREP "free" >/dev/null 2>&1; then
7191  :
7192else
7193  ac_cv_header_stdc=no
7194fi
7195rm -f conftest*
7196
7197fi
7198
7199if test $ac_cv_header_stdc = yes; then
7200  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7201  if test "$cross_compiling" = yes; then
7202  :
7203else
7204  cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h.  */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h.  */
7210#include <ctype.h>
7211#include <stdlib.h>
7212#if ((' ' & 0x0FF) == 0x020)
7213# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7214# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7215#else
7216# define ISLOWER(c) \
7217		   (('a' <= (c) && (c) <= 'i') \
7218		     || ('j' <= (c) && (c) <= 'r') \
7219		     || ('s' <= (c) && (c) <= 'z'))
7220# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7221#endif
7222
7223#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7224int
7225main ()
7226{
7227  int i;
7228  for (i = 0; i < 256; i++)
7229    if (XOR (islower (i), ISLOWER (i))
7230	|| toupper (i) != TOUPPER (i))
7231      return 2;
7232  return 0;
7233}
7234_ACEOF
7235rm -f conftest$ac_exeext
7236if { (ac_try="$ac_link"
7237case "(($ac_try" in
7238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239  *) ac_try_echo=$ac_try;;
7240esac
7241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7242$as_echo "$ac_try_echo") >&5
7243  (eval "$ac_link") 2>&5
7244  ac_status=$?
7245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7247  { (case "(($ac_try" in
7248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249  *) ac_try_echo=$ac_try;;
7250esac
7251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7252$as_echo "$ac_try_echo") >&5
7253  (eval "$ac_try") 2>&5
7254  ac_status=$?
7255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); }; }; then
7257  :
7258else
7259  $as_echo "$as_me: program exited with status $ac_status" >&5
7260$as_echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263( exit $ac_status )
7264ac_cv_header_stdc=no
7265fi
7266rm -rf conftest.dSYM
7267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7268fi
7269
7270
7271fi
7272fi
7273{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7274$as_echo "$ac_cv_header_stdc" >&6; }
7275if test $ac_cv_header_stdc = yes; then
7276
7277cat >>confdefs.h <<\_ACEOF
7278#define STDC_HEADERS 1
7279_ACEOF
7280
7281fi
7282
7283# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7294		  inttypes.h stdint.h unistd.h
7295do
7296as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7298$as_echo_n "checking for $ac_header... " >&6; }
7299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300  $as_echo_n "(cached) " >&6
7301else
7302  cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h.  */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h.  */
7308$ac_includes_default
7309
7310#include <$ac_header>
7311_ACEOF
7312rm -f conftest.$ac_objext
7313if { (ac_try="$ac_compile"
7314case "(($ac_try" in
7315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316  *) ac_try_echo=$ac_try;;
7317esac
7318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7319$as_echo "$ac_try_echo") >&5
7320  (eval "$ac_compile") 2>conftest.er1
7321  ac_status=$?
7322  grep -v '^ *+' conftest.er1 >conftest.err
7323  rm -f conftest.er1
7324  cat conftest.err >&5
7325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326  (exit $ac_status); } && {
7327	 test -z "$ac_c_werror_flag" ||
7328	 test ! -s conftest.err
7329       } && test -s conftest.$ac_objext; then
7330  eval "$as_ac_Header=yes"
7331else
7332  $as_echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335	eval "$as_ac_Header=no"
7336fi
7337
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339fi
7340ac_res=`eval 'as_val=${'$as_ac_Header'}
7341		 $as_echo "$as_val"'`
7342	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7343$as_echo "$ac_res" >&6; }
7344as_val=`eval 'as_val=${'$as_ac_Header'}
7345		 $as_echo "$as_val"'`
7346   if test "x$as_val" = x""yes; then
7347  cat >>confdefs.h <<_ACEOF
7348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349_ACEOF
7350
7351fi
7352
7353done
7354
7355
7356
7357for ac_header in dlfcn.h
7358do
7359as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7361$as_echo_n "checking for $ac_header... " >&6; }
7362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat >conftest.$ac_ext <<_ACEOF
7366/* confdefs.h.  */
7367_ACEOF
7368cat confdefs.h >>conftest.$ac_ext
7369cat >>conftest.$ac_ext <<_ACEOF
7370/* end confdefs.h.  */
7371$ac_includes_default
7372
7373#include <$ac_header>
7374_ACEOF
7375rm -f conftest.$ac_objext
7376if { (ac_try="$ac_compile"
7377case "(($ac_try" in
7378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379  *) ac_try_echo=$ac_try;;
7380esac
7381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382$as_echo "$ac_try_echo") >&5
7383  (eval "$ac_compile") 2>conftest.er1
7384  ac_status=$?
7385  grep -v '^ *+' conftest.er1 >conftest.err
7386  rm -f conftest.er1
7387  cat conftest.err >&5
7388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); } && {
7390	 test -z "$ac_c_werror_flag" ||
7391	 test ! -s conftest.err
7392       } && test -s conftest.$ac_objext; then
7393  eval "$as_ac_Header=yes"
7394else
7395  $as_echo "$as_me: failed program was:" >&5
7396sed 's/^/| /' conftest.$ac_ext >&5
7397
7398	eval "$as_ac_Header=no"
7399fi
7400
7401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402fi
7403ac_res=`eval 'as_val=${'$as_ac_Header'}
7404		 $as_echo "$as_val"'`
7405	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7406$as_echo "$ac_res" >&6; }
7407as_val=`eval 'as_val=${'$as_ac_Header'}
7408		 $as_echo "$as_val"'`
7409   if test "x$as_val" = x""yes; then
7410  cat >>confdefs.h <<_ACEOF
7411#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412_ACEOF
7413
7414fi
7415
7416done
7417
7418
7419
7420# Set options
7421
7422
7423
7424        enable_dlopen=no
7425
7426
7427
7428            # Check whether --enable-shared was given.
7429if test "${enable_shared+set}" = set; then
7430  enableval=$enable_shared; p=${PACKAGE-default}
7431    case $enableval in
7432    yes) enable_shared=yes ;;
7433    no) enable_shared=no ;;
7434    *)
7435      enable_shared=no
7436      # Look at the argument we got.  We use all the common list separators.
7437      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7438      for pkg in $enableval; do
7439	IFS="$lt_save_ifs"
7440	if test "X$pkg" = "X$p"; then
7441	  enable_shared=yes
7442	fi
7443      done
7444      IFS="$lt_save_ifs"
7445      ;;
7446    esac
7447else
7448  enable_shared=yes
7449fi
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459  # Check whether --enable-static was given.
7460if test "${enable_static+set}" = set; then
7461  enableval=$enable_static; p=${PACKAGE-default}
7462    case $enableval in
7463    yes) enable_static=yes ;;
7464    no) enable_static=no ;;
7465    *)
7466     enable_static=no
7467      # Look at the argument we got.  We use all the common list separators.
7468      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7469      for pkg in $enableval; do
7470	IFS="$lt_save_ifs"
7471	if test "X$pkg" = "X$p"; then
7472	  enable_static=yes
7473	fi
7474      done
7475      IFS="$lt_save_ifs"
7476      ;;
7477    esac
7478else
7479  enable_static=yes
7480fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491# Check whether --with-pic was given.
7492if test "${with_pic+set}" = set; then
7493  withval=$with_pic; pic_mode="$withval"
7494else
7495  pic_mode=default
7496fi
7497
7498
7499test -z "$pic_mode" && pic_mode=default
7500
7501
7502
7503
7504
7505
7506
7507  # Check whether --enable-fast-install was given.
7508if test "${enable_fast_install+set}" = set; then
7509  enableval=$enable_fast_install; p=${PACKAGE-default}
7510    case $enableval in
7511    yes) enable_fast_install=yes ;;
7512    no) enable_fast_install=no ;;
7513    *)
7514      enable_fast_install=no
7515      # Look at the argument we got.  We use all the common list separators.
7516      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517      for pkg in $enableval; do
7518	IFS="$lt_save_ifs"
7519	if test "X$pkg" = "X$p"; then
7520	  enable_fast_install=yes
7521	fi
7522      done
7523      IFS="$lt_save_ifs"
7524      ;;
7525    esac
7526else
7527  enable_fast_install=yes
7528fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540# This can be used to rebuild libtool when needed
7541LIBTOOL_DEPS="$ltmain"
7542
7543# Always use our own libtool.
7544LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570test -z "$LN_S" && LN_S="ln -s"
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585if test -n "${ZSH_VERSION+set}" ; then
7586   setopt NO_GLOB_SUBST
7587fi
7588
7589{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7590$as_echo_n "checking for objdir... " >&6; }
7591if test "${lt_cv_objdir+set}" = set; then
7592  $as_echo_n "(cached) " >&6
7593else
7594  rm -f .libs 2>/dev/null
7595mkdir .libs 2>/dev/null
7596if test -d .libs; then
7597  lt_cv_objdir=.libs
7598else
7599  # MS-DOS does not allow filenames that begin with a dot.
7600  lt_cv_objdir=_libs
7601fi
7602rmdir .libs 2>/dev/null
7603fi
7604{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7605$as_echo "$lt_cv_objdir" >&6; }
7606objdir=$lt_cv_objdir
7607
7608
7609
7610
7611
7612cat >>confdefs.h <<_ACEOF
7613#define LT_OBJDIR "$lt_cv_objdir/"
7614_ACEOF
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632case $host_os in
7633aix3*)
7634  # AIX sometimes has problems with the GCC collect2 program.  For some
7635  # reason, if we set the COLLECT_NAMES environment variable, the problems
7636  # vanish in a puff of smoke.
7637  if test "X${COLLECT_NAMES+set}" != Xset; then
7638    COLLECT_NAMES=
7639    export COLLECT_NAMES
7640  fi
7641  ;;
7642esac
7643
7644# Sed substitution that helps us do robust quoting.  It backslashifies
7645# metacharacters that are still active within double-quoted strings.
7646sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7647
7648# Same as above, but do not quote variable references.
7649double_quote_subst='s/\(["`\\]\)/\\\1/g'
7650
7651# Sed substitution to delay expansion of an escaped shell variable in a
7652# double_quote_subst'ed string.
7653delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7654
7655# Sed substitution to delay expansion of an escaped single quote.
7656delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7657
7658# Sed substitution to avoid accidental globbing in evaled expressions
7659no_glob_subst='s/\*/\\\*/g'
7660
7661# Global variables:
7662ofile=libtool
7663can_build_shared=yes
7664
7665# All known linkers require a `.a' archive for static linking (except MSVC,
7666# which needs '.lib').
7667libext=a
7668
7669with_gnu_ld="$lt_cv_prog_gnu_ld"
7670
7671old_CC="$CC"
7672old_CFLAGS="$CFLAGS"
7673
7674# Set sane defaults for various variables
7675test -z "$CC" && CC=cc
7676test -z "$LTCC" && LTCC=$CC
7677test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7678test -z "$LD" && LD=ld
7679test -z "$ac_objext" && ac_objext=o
7680
7681for cc_temp in $compiler""; do
7682  case $cc_temp in
7683    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7684    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7685    \-*) ;;
7686    *) break;;
7687  esac
7688done
7689cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7690
7691
7692# Only perform the check for file, if the check method requires it
7693test -z "$MAGIC_CMD" && MAGIC_CMD=file
7694case $deplibs_check_method in
7695file_magic*)
7696  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7697    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7698$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7700  $as_echo_n "(cached) " >&6
7701else
7702  case $MAGIC_CMD in
7703[\\/*] |  ?:[\\/]*)
7704  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7705  ;;
7706*)
7707  lt_save_MAGIC_CMD="$MAGIC_CMD"
7708  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7709  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7710  for ac_dir in $ac_dummy; do
7711    IFS="$lt_save_ifs"
7712    test -z "$ac_dir" && ac_dir=.
7713    if test -f $ac_dir/${ac_tool_prefix}file; then
7714      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7715      if test -n "$file_magic_test_file"; then
7716	case $deplibs_check_method in
7717	"file_magic "*)
7718	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7719	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7721	    $EGREP "$file_magic_regex" > /dev/null; then
7722	    :
7723	  else
7724	    cat <<_LT_EOF 1>&2
7725
7726*** Warning: the command libtool uses to detect shared libraries,
7727*** $file_magic_cmd, produces output that libtool cannot recognize.
7728*** The result is that libtool may fail to recognize shared libraries
7729*** as such.  This will affect the creation of libtool libraries that
7730*** depend on shared libraries, but programs linked with such libtool
7731*** libraries will work regardless of this problem.  Nevertheless, you
7732*** may want to report the problem to your system manager and/or to
7733*** bug-libtool@gnu.org
7734
7735_LT_EOF
7736	  fi ;;
7737	esac
7738      fi
7739      break
7740    fi
7741  done
7742  IFS="$lt_save_ifs"
7743  MAGIC_CMD="$lt_save_MAGIC_CMD"
7744  ;;
7745esac
7746fi
7747
7748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749if test -n "$MAGIC_CMD"; then
7750  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7751$as_echo "$MAGIC_CMD" >&6; }
7752else
7753  { $as_echo "$as_me:$LINENO: result: no" >&5
7754$as_echo "no" >&6; }
7755fi
7756
7757
7758
7759
7760
7761if test -z "$lt_cv_path_MAGIC_CMD"; then
7762  if test -n "$ac_tool_prefix"; then
7763    { $as_echo "$as_me:$LINENO: checking for file" >&5
7764$as_echo_n "checking for file... " >&6; }
7765if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7766  $as_echo_n "(cached) " >&6
7767else
7768  case $MAGIC_CMD in
7769[\\/*] |  ?:[\\/]*)
7770  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7771  ;;
7772*)
7773  lt_save_MAGIC_CMD="$MAGIC_CMD"
7774  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7775  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7776  for ac_dir in $ac_dummy; do
7777    IFS="$lt_save_ifs"
7778    test -z "$ac_dir" && ac_dir=.
7779    if test -f $ac_dir/file; then
7780      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7781      if test -n "$file_magic_test_file"; then
7782	case $deplibs_check_method in
7783	"file_magic "*)
7784	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7785	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7787	    $EGREP "$file_magic_regex" > /dev/null; then
7788	    :
7789	  else
7790	    cat <<_LT_EOF 1>&2
7791
7792*** Warning: the command libtool uses to detect shared libraries,
7793*** $file_magic_cmd, produces output that libtool cannot recognize.
7794*** The result is that libtool may fail to recognize shared libraries
7795*** as such.  This will affect the creation of libtool libraries that
7796*** depend on shared libraries, but programs linked with such libtool
7797*** libraries will work regardless of this problem.  Nevertheless, you
7798*** may want to report the problem to your system manager and/or to
7799*** bug-libtool@gnu.org
7800
7801_LT_EOF
7802	  fi ;;
7803	esac
7804      fi
7805      break
7806    fi
7807  done
7808  IFS="$lt_save_ifs"
7809  MAGIC_CMD="$lt_save_MAGIC_CMD"
7810  ;;
7811esac
7812fi
7813
7814MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7815if test -n "$MAGIC_CMD"; then
7816  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7817$as_echo "$MAGIC_CMD" >&6; }
7818else
7819  { $as_echo "$as_me:$LINENO: result: no" >&5
7820$as_echo "no" >&6; }
7821fi
7822
7823
7824  else
7825    MAGIC_CMD=:
7826  fi
7827fi
7828
7829  fi
7830  ;;
7831esac
7832
7833# Use C for the default configuration in the libtool script
7834
7835lt_save_CC="$CC"
7836ac_ext=c
7837ac_cpp='$CPP $CPPFLAGS'
7838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843# Source file extension for C test sources.
7844ac_ext=c
7845
7846# Object file extension for compiled C test sources.
7847objext=o
7848objext=$objext
7849
7850# Code to be used in simple compile tests
7851lt_simple_compile_test_code="int some_variable = 0;"
7852
7853# Code to be used in simple link tests
7854lt_simple_link_test_code='int main(){return(0);}'
7855
7856
7857
7858
7859
7860
7861
7862# If no C compiler was specified, use CC.
7863LTCC=${LTCC-"$CC"}
7864
7865# If no C compiler flags were specified, use CFLAGS.
7866LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867
7868# Allow CC to be a program name with arguments.
7869compiler=$CC
7870
7871# Save the default compiler, since it gets overwritten when the other
7872# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7873compiler_DEFAULT=$CC
7874
7875# save warnings/boilerplate of simple test code
7876ac_outfile=conftest.$ac_objext
7877echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7878eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879_lt_compiler_boilerplate=`cat conftest.err`
7880$RM conftest*
7881
7882ac_outfile=conftest.$ac_objext
7883echo "$lt_simple_link_test_code" >conftest.$ac_ext
7884eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7885_lt_linker_boilerplate=`cat conftest.err`
7886$RM -r conftest*
7887
7888
7889if test -n "$compiler"; then
7890
7891lt_prog_compiler_no_builtin_flag=
7892
7893if test "$GCC" = yes; then
7894  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7895
7896  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7897$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7898if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7899  $as_echo_n "(cached) " >&6
7900else
7901  lt_cv_prog_compiler_rtti_exceptions=no
7902   ac_outfile=conftest.$ac_objext
7903   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904   lt_compiler_flag="-fno-rtti -fno-exceptions"
7905   # Insert the option either (1) after the last *FLAGS variable, or
7906   # (2) before a word containing "conftest.", or (3) at the end.
7907   # Note that $ac_compile itself does not contain backslashes and begins
7908   # with a dollar sign (not a hyphen), so the echo should work correctly.
7909   # The option is referenced via a variable to avoid confusing sed.
7910   lt_compile=`echo "$ac_compile" | $SED \
7911   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913   -e 's:$: $lt_compiler_flag:'`
7914   (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7915   (eval "$lt_compile" 2>conftest.err)
7916   ac_status=$?
7917   cat conftest.err >&5
7918   echo "$as_me:7918: \$? = $ac_status" >&5
7919   if (exit $ac_status) && test -s "$ac_outfile"; then
7920     # The compiler can only warn and ignore the option if not recognized
7921     # So say no if there are warnings other than the usual output.
7922     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7923     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925       lt_cv_prog_compiler_rtti_exceptions=yes
7926     fi
7927   fi
7928   $RM conftest*
7929
7930fi
7931{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7932$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7933
7934if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7935    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7936else
7937    :
7938fi
7939
7940fi
7941
7942
7943
7944
7945
7946
7947  lt_prog_compiler_wl=
7948lt_prog_compiler_pic=
7949lt_prog_compiler_static=
7950
7951{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7952$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7953
7954  if test "$GCC" = yes; then
7955    lt_prog_compiler_wl='-Wl,'
7956    lt_prog_compiler_static='-static'
7957
7958    case $host_os in
7959      aix*)
7960      # All AIX code is PIC.
7961      if test "$host_cpu" = ia64; then
7962	# AIX 5 now supports IA64 processor
7963	lt_prog_compiler_static='-Bstatic'
7964      fi
7965      ;;
7966
7967    amigaos*)
7968      case $host_cpu in
7969      powerpc)
7970            # see comment about AmigaOS4 .so support
7971            lt_prog_compiler_pic='-fPIC'
7972        ;;
7973      m68k)
7974            # FIXME: we need at least 68020 code to build shared libraries, but
7975            # adding the `-m68020' flag to GCC prevents building anything better,
7976            # like `-m68040'.
7977            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7978        ;;
7979      esac
7980      ;;
7981
7982    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7983      # PIC is the default for these OSes.
7984      ;;
7985
7986    mingw* | cygwin* | pw32* | os2* | cegcc*)
7987      # This hack is so that the source file can tell whether it is being
7988      # built for inclusion in a dll (and should export symbols for example).
7989      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7990      # (--disable-auto-import) libraries
7991      lt_prog_compiler_pic='-DDLL_EXPORT'
7992      ;;
7993
7994    darwin* | rhapsody*)
7995      # PIC is the default on this platform
7996      # Common symbols not allowed in MH_DYLIB files
7997      lt_prog_compiler_pic='-fno-common'
7998      ;;
7999
8000    hpux*)
8001      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8002      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8003      # sets the default TLS model and affects inlining.
8004      case $host_cpu in
8005      hppa*64*)
8006	# +Z the default
8007	;;
8008      *)
8009	lt_prog_compiler_pic='-fPIC'
8010	;;
8011      esac
8012      ;;
8013
8014    interix[3-9]*)
8015      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8016      # Instead, we relocate shared libraries at runtime.
8017      ;;
8018
8019    msdosdjgpp*)
8020      # Just because we use GCC doesn't mean we suddenly get shared libraries
8021      # on systems that don't support them.
8022      lt_prog_compiler_can_build_shared=no
8023      enable_shared=no
8024      ;;
8025
8026    *nto* | *qnx*)
8027      # QNX uses GNU C++, but need to define -shared option too, otherwise
8028      # it will coredump.
8029      lt_prog_compiler_pic='-fPIC -shared'
8030      ;;
8031
8032    sysv4*MP*)
8033      if test -d /usr/nec; then
8034	lt_prog_compiler_pic=-Kconform_pic
8035      fi
8036      ;;
8037
8038    *)
8039      lt_prog_compiler_pic='-fPIC'
8040      ;;
8041    esac
8042  else
8043    # PORTME Check for flag to pass linker flags through the system compiler.
8044    case $host_os in
8045    aix*)
8046      lt_prog_compiler_wl='-Wl,'
8047      if test "$host_cpu" = ia64; then
8048	# AIX 5 now supports IA64 processor
8049	lt_prog_compiler_static='-Bstatic'
8050      else
8051	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8052      fi
8053      ;;
8054
8055    mingw* | cygwin* | pw32* | os2* | cegcc*)
8056      # This hack is so that the source file can tell whether it is being
8057      # built for inclusion in a dll (and should export symbols for example).
8058      lt_prog_compiler_pic='-DDLL_EXPORT'
8059      ;;
8060
8061    hpux9* | hpux10* | hpux11*)
8062      lt_prog_compiler_wl='-Wl,'
8063      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064      # not for PA HP-UX.
8065      case $host_cpu in
8066      hppa*64*|ia64*)
8067	# +Z the default
8068	;;
8069      *)
8070	lt_prog_compiler_pic='+Z'
8071	;;
8072      esac
8073      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074      lt_prog_compiler_static='${wl}-a ${wl}archive'
8075      ;;
8076
8077    irix5* | irix6* | nonstopux*)
8078      lt_prog_compiler_wl='-Wl,'
8079      # PIC (with -KPIC) is the default.
8080      lt_prog_compiler_static='-non_shared'
8081      ;;
8082
8083    linux* | k*bsd*-gnu)
8084      case $cc_basename in
8085      # old Intel for x86_64 which still supported -KPIC.
8086      ecc*)
8087	lt_prog_compiler_wl='-Wl,'
8088	lt_prog_compiler_pic='-KPIC'
8089	lt_prog_compiler_static='-static'
8090        ;;
8091      # icc used to be incompatible with GCC.
8092      # ICC 10 doesn't accept -KPIC any more.
8093      icc* | ifort*)
8094	lt_prog_compiler_wl='-Wl,'
8095	lt_prog_compiler_pic='-fPIC'
8096	lt_prog_compiler_static='-static'
8097        ;;
8098      # Lahey Fortran 8.1.
8099      lf95*)
8100	lt_prog_compiler_wl='-Wl,'
8101	lt_prog_compiler_pic='--shared'
8102	lt_prog_compiler_static='--static'
8103	;;
8104      pgcc* | pgf77* | pgf90* | pgf95*)
8105        # Portland Group compilers (*not* the Pentium gcc compiler,
8106	# which looks to be a dead project)
8107	lt_prog_compiler_wl='-Wl,'
8108	lt_prog_compiler_pic='-fpic'
8109	lt_prog_compiler_static='-Bstatic'
8110        ;;
8111      ccc*)
8112        lt_prog_compiler_wl='-Wl,'
8113        # All Alpha code is PIC.
8114        lt_prog_compiler_static='-non_shared'
8115        ;;
8116      xl*)
8117	# IBM XL C 8.0/Fortran 10.1 on PPC
8118	lt_prog_compiler_wl='-Wl,'
8119	lt_prog_compiler_pic='-qpic'
8120	lt_prog_compiler_static='-qstaticlink'
8121	;;
8122      *)
8123	case `$CC -V 2>&1 | sed 5q` in
8124	*Sun\ C*)
8125	  # Sun C 5.9
8126	  lt_prog_compiler_pic='-KPIC'
8127	  lt_prog_compiler_static='-Bstatic'
8128	  lt_prog_compiler_wl='-Wl,'
8129	  ;;
8130	*Sun\ F*)
8131	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8132	  lt_prog_compiler_pic='-KPIC'
8133	  lt_prog_compiler_static='-Bstatic'
8134	  lt_prog_compiler_wl=''
8135	  ;;
8136	esac
8137	;;
8138      esac
8139      ;;
8140
8141    newsos6)
8142      lt_prog_compiler_pic='-KPIC'
8143      lt_prog_compiler_static='-Bstatic'
8144      ;;
8145
8146    *nto* | *qnx*)
8147      # QNX uses GNU C++, but need to define -shared option too, otherwise
8148      # it will coredump.
8149      lt_prog_compiler_pic='-fPIC -shared'
8150      ;;
8151
8152    osf3* | osf4* | osf5*)
8153      lt_prog_compiler_wl='-Wl,'
8154      # All OSF/1 code is PIC.
8155      lt_prog_compiler_static='-non_shared'
8156      ;;
8157
8158    rdos*)
8159      lt_prog_compiler_static='-non_shared'
8160      ;;
8161
8162    solaris*)
8163      lt_prog_compiler_pic='-KPIC'
8164      lt_prog_compiler_static='-Bstatic'
8165      case $cc_basename in
8166      f77* | f90* | f95*)
8167	lt_prog_compiler_wl='-Qoption ld ';;
8168      *)
8169	lt_prog_compiler_wl='-Wl,';;
8170      esac
8171      ;;
8172
8173    sunos4*)
8174      lt_prog_compiler_wl='-Qoption ld '
8175      lt_prog_compiler_pic='-PIC'
8176      lt_prog_compiler_static='-Bstatic'
8177      ;;
8178
8179    sysv4 | sysv4.2uw2* | sysv4.3*)
8180      lt_prog_compiler_wl='-Wl,'
8181      lt_prog_compiler_pic='-KPIC'
8182      lt_prog_compiler_static='-Bstatic'
8183      ;;
8184
8185    sysv4*MP*)
8186      if test -d /usr/nec ;then
8187	lt_prog_compiler_pic='-Kconform_pic'
8188	lt_prog_compiler_static='-Bstatic'
8189      fi
8190      ;;
8191
8192    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8193      lt_prog_compiler_wl='-Wl,'
8194      lt_prog_compiler_pic='-KPIC'
8195      lt_prog_compiler_static='-Bstatic'
8196      ;;
8197
8198    unicos*)
8199      lt_prog_compiler_wl='-Wl,'
8200      lt_prog_compiler_can_build_shared=no
8201      ;;
8202
8203    uts4*)
8204      lt_prog_compiler_pic='-pic'
8205      lt_prog_compiler_static='-Bstatic'
8206      ;;
8207
8208    *)
8209      lt_prog_compiler_can_build_shared=no
8210      ;;
8211    esac
8212  fi
8213
8214case $host_os in
8215  # For platforms which do not support PIC, -DPIC is meaningless:
8216  *djgpp*)
8217    lt_prog_compiler_pic=
8218    ;;
8219  *)
8220    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8221    ;;
8222esac
8223{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8224$as_echo "$lt_prog_compiler_pic" >&6; }
8225
8226
8227
8228
8229
8230
8231#
8232# Check to make sure the PIC flag actually works.
8233#
8234if test -n "$lt_prog_compiler_pic"; then
8235  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8236$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8237if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8238  $as_echo_n "(cached) " >&6
8239else
8240  lt_cv_prog_compiler_pic_works=no
8241   ac_outfile=conftest.$ac_objext
8242   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8244   # Insert the option either (1) after the last *FLAGS variable, or
8245   # (2) before a word containing "conftest.", or (3) at the end.
8246   # Note that $ac_compile itself does not contain backslashes and begins
8247   # with a dollar sign (not a hyphen), so the echo should work correctly.
8248   # The option is referenced via a variable to avoid confusing sed.
8249   lt_compile=`echo "$ac_compile" | $SED \
8250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252   -e 's:$: $lt_compiler_flag:'`
8253   (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8254   (eval "$lt_compile" 2>conftest.err)
8255   ac_status=$?
8256   cat conftest.err >&5
8257   echo "$as_me:8257: \$? = $ac_status" >&5
8258   if (exit $ac_status) && test -s "$ac_outfile"; then
8259     # The compiler can only warn and ignore the option if not recognized
8260     # So say no if there are warnings other than the usual output.
8261     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8262     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264       lt_cv_prog_compiler_pic_works=yes
8265     fi
8266   fi
8267   $RM conftest*
8268
8269fi
8270{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8271$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8272
8273if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8274    case $lt_prog_compiler_pic in
8275     "" | " "*) ;;
8276     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8277     esac
8278else
8279    lt_prog_compiler_pic=
8280     lt_prog_compiler_can_build_shared=no
8281fi
8282
8283fi
8284
8285
8286
8287
8288
8289
8290#
8291# Check to make sure the static flag actually works.
8292#
8293wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8294{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8295$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8296if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8297  $as_echo_n "(cached) " >&6
8298else
8299  lt_cv_prog_compiler_static_works=no
8300   save_LDFLAGS="$LDFLAGS"
8301   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8302   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8303   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8304     # The linker can only warn and ignore the option if not recognized
8305     # So say no if there are warnings
8306     if test -s conftest.err; then
8307       # Append any errors to the config.log.
8308       cat conftest.err 1>&5
8309       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8310       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8311       if diff conftest.exp conftest.er2 >/dev/null; then
8312         lt_cv_prog_compiler_static_works=yes
8313       fi
8314     else
8315       lt_cv_prog_compiler_static_works=yes
8316     fi
8317   fi
8318   $RM -r conftest*
8319   LDFLAGS="$save_LDFLAGS"
8320
8321fi
8322{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8323$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8324
8325if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8326    :
8327else
8328    lt_prog_compiler_static=
8329fi
8330
8331
8332
8333
8334
8335
8336
8337  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8338$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8340  $as_echo_n "(cached) " >&6
8341else
8342  lt_cv_prog_compiler_c_o=no
8343   $RM -r conftest 2>/dev/null
8344   mkdir conftest
8345   cd conftest
8346   mkdir out
8347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348
8349   lt_compiler_flag="-o out/conftest2.$ac_objext"
8350   # Insert the option either (1) after the last *FLAGS variable, or
8351   # (2) before a word containing "conftest.", or (3) at the end.
8352   # Note that $ac_compile itself does not contain backslashes and begins
8353   # with a dollar sign (not a hyphen), so the echo should work correctly.
8354   lt_compile=`echo "$ac_compile" | $SED \
8355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357   -e 's:$: $lt_compiler_flag:'`
8358   (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
8359   (eval "$lt_compile" 2>out/conftest.err)
8360   ac_status=$?
8361   cat out/conftest.err >&5
8362   echo "$as_me:8362: \$? = $ac_status" >&5
8363   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364   then
8365     # The compiler can only warn and ignore the option if not recognized
8366     # So say no if there are warnings
8367     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8368     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370       lt_cv_prog_compiler_c_o=yes
8371     fi
8372   fi
8373   chmod u+w . 2>&5
8374   $RM conftest*
8375   # SGI C++ compiler will create directory out/ii_files/ for
8376   # template instantiation
8377   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378   $RM out/* && rmdir out
8379   cd ..
8380   $RM -r conftest
8381   $RM conftest*
8382
8383fi
8384{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8385$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8386
8387
8388
8389
8390
8391
8392  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8393$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8394if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8395  $as_echo_n "(cached) " >&6
8396else
8397  lt_cv_prog_compiler_c_o=no
8398   $RM -r conftest 2>/dev/null
8399   mkdir conftest
8400   cd conftest
8401   mkdir out
8402   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8403
8404   lt_compiler_flag="-o out/conftest2.$ac_objext"
8405   # Insert the option either (1) after the last *FLAGS variable, or
8406   # (2) before a word containing "conftest.", or (3) at the end.
8407   # Note that $ac_compile itself does not contain backslashes and begins
8408   # with a dollar sign (not a hyphen), so the echo should work correctly.
8409   lt_compile=`echo "$ac_compile" | $SED \
8410   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8412   -e 's:$: $lt_compiler_flag:'`
8413   (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
8414   (eval "$lt_compile" 2>out/conftest.err)
8415   ac_status=$?
8416   cat out/conftest.err >&5
8417   echo "$as_me:8417: \$? = $ac_status" >&5
8418   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8419   then
8420     # The compiler can only warn and ignore the option if not recognized
8421     # So say no if there are warnings
8422     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8423     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8424     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8425       lt_cv_prog_compiler_c_o=yes
8426     fi
8427   fi
8428   chmod u+w . 2>&5
8429   $RM conftest*
8430   # SGI C++ compiler will create directory out/ii_files/ for
8431   # template instantiation
8432   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8433   $RM out/* && rmdir out
8434   cd ..
8435   $RM -r conftest
8436   $RM conftest*
8437
8438fi
8439{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8440$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8441
8442
8443
8444
8445hard_links="nottested"
8446if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447  # do not overwrite the value of need_locks provided by the user
8448  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8449$as_echo_n "checking if we can lock with hard links... " >&6; }
8450  hard_links=yes
8451  $RM conftest*
8452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453  touch conftest.a
8454  ln conftest.a conftest.b 2>&5 || hard_links=no
8455  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8457$as_echo "$hard_links" >&6; }
8458  if test "$hard_links" = no; then
8459    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461    need_locks=warn
8462  fi
8463else
8464  need_locks=no
8465fi
8466
8467
8468
8469
8470
8471
8472  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8473$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8474
8475  runpath_var=
8476  allow_undefined_flag=
8477  always_export_symbols=no
8478  archive_cmds=
8479  archive_expsym_cmds=
8480  compiler_needs_object=no
8481  enable_shared_with_static_runtimes=no
8482  export_dynamic_flag_spec=
8483  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8484  hardcode_automatic=no
8485  hardcode_direct=no
8486  hardcode_direct_absolute=no
8487  hardcode_libdir_flag_spec=
8488  hardcode_libdir_flag_spec_ld=
8489  hardcode_libdir_separator=
8490  hardcode_minus_L=no
8491  hardcode_shlibpath_var=unsupported
8492  inherit_rpath=no
8493  link_all_deplibs=unknown
8494  module_cmds=
8495  module_expsym_cmds=
8496  old_archive_from_new_cmds=
8497  old_archive_from_expsyms_cmds=
8498  thread_safe_flag_spec=
8499  whole_archive_flag_spec=
8500  # include_expsyms should be a list of space-separated symbols to be *always*
8501  # included in the symbol list
8502  include_expsyms=
8503  # exclude_expsyms can be an extended regexp of symbols to exclude
8504  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8505  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8506  # as well as any symbol that contains `d'.
8507  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8508  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8509  # platforms (ab)use it in PIC code, but their linkers get confused if
8510  # the symbol is explicitly referenced.  Since portable code cannot
8511  # rely on this symbol name, it's probably fine to never include it in
8512  # preloaded symbol tables.
8513  # Exclude shared library initialization/finalization symbols.
8514  extract_expsyms_cmds=
8515
8516  case $host_os in
8517  cygwin* | mingw* | pw32* | cegcc*)
8518    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8519    # When not using gcc, we currently assume that we are using
8520    # Microsoft Visual C++.
8521    if test "$GCC" != yes; then
8522      with_gnu_ld=no
8523    fi
8524    ;;
8525  interix*)
8526    # we just hope/assume this is gcc and not c89 (= MSVC++)
8527    with_gnu_ld=yes
8528    ;;
8529  openbsd*)
8530    with_gnu_ld=no
8531    ;;
8532  esac
8533
8534  ld_shlibs=yes
8535  if test "$with_gnu_ld" = yes; then
8536    # If archive_cmds runs LD, not CC, wlarc should be empty
8537    wlarc='${wl}'
8538
8539    # Set some defaults for GNU ld with shared library support. These
8540    # are reset later if shared libraries are not supported. Putting them
8541    # here allows them to be overridden if necessary.
8542    runpath_var=LD_RUN_PATH
8543    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544    export_dynamic_flag_spec='${wl}--export-dynamic'
8545    # ancient GNU ld didn't support --whole-archive et. al.
8546    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8547      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8548    else
8549      whole_archive_flag_spec=
8550    fi
8551    supports_anon_versioning=no
8552    case `$LD -v 2>&1` in
8553      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8554      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8555      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8556      *\ 2.11.*) ;; # other 2.11 versions
8557      *) supports_anon_versioning=yes ;;
8558    esac
8559
8560    # See if GNU ld supports shared libraries.
8561    case $host_os in
8562    aix[3-9]*)
8563      # On AIX/PPC, the GNU linker is very broken
8564      if test "$host_cpu" != ia64; then
8565	ld_shlibs=no
8566	cat <<_LT_EOF 1>&2
8567
8568*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8569*** to be unable to reliably create shared libraries on AIX.
8570*** Therefore, libtool is disabling shared libraries support.  If you
8571*** really care for shared libraries, you may want to modify your PATH
8572*** so that a non-GNU linker is found, and then restart.
8573
8574_LT_EOF
8575      fi
8576      ;;
8577
8578    amigaos*)
8579      case $host_cpu in
8580      powerpc)
8581            # see comment about AmigaOS4 .so support
8582            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583            archive_expsym_cmds=''
8584        ;;
8585      m68k)
8586            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)'
8587            hardcode_libdir_flag_spec='-L$libdir'
8588            hardcode_minus_L=yes
8589        ;;
8590      esac
8591      ;;
8592
8593    beos*)
8594      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595	allow_undefined_flag=unsupported
8596	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8597	# support --undefined.  This deserves some investigation.  FIXME
8598	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599      else
8600	ld_shlibs=no
8601      fi
8602      ;;
8603
8604    cygwin* | mingw* | pw32* | cegcc*)
8605      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8606      # as there is no search path for DLLs.
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      allow_undefined_flag=unsupported
8609      always_export_symbols=no
8610      enable_shared_with_static_runtimes=yes
8611      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8612
8613      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8614        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615	# If the export-symbols file already is a .def file (1st line
8616	# is EXPORTS), use it as is; otherwise, prepend...
8617	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8618	  cp $export_symbols $output_objdir/$soname.def;
8619	else
8620	  echo EXPORTS > $output_objdir/$soname.def;
8621	  cat $export_symbols >> $output_objdir/$soname.def;
8622	fi~
8623	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624      else
8625	ld_shlibs=no
8626      fi
8627      ;;
8628
8629    interix[3-9]*)
8630      hardcode_direct=no
8631      hardcode_shlibpath_var=no
8632      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633      export_dynamic_flag_spec='${wl}-E'
8634      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635      # Instead, shared libraries are loaded at an image base (0x10000000 by
8636      # default) and relocated if they conflict, which is a slow very memory
8637      # consuming and fragmenting process.  To avoid this, we pick a random,
8638      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8640      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641      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'
8642      ;;
8643
8644    gnu* | linux* | tpf* | k*bsd*-gnu)
8645      tmp_diet=no
8646      if test "$host_os" = linux-dietlibc; then
8647	case $cc_basename in
8648	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8649	esac
8650      fi
8651      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8652	 && test "$tmp_diet" = no
8653      then
8654	tmp_addflag=
8655	tmp_sharedflag='-shared'
8656	case $cc_basename,$host_cpu in
8657        pgcc*)				# Portland Group C compiler
8658	  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'
8659	  tmp_addflag=' $pic_flag'
8660	  ;;
8661	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8662	  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'
8663	  tmp_addflag=' $pic_flag -Mnomain' ;;
8664	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8665	  tmp_addflag=' -i_dynamic' ;;
8666	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8667	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8668	ifc* | ifort*)			# Intel Fortran compiler
8669	  tmp_addflag=' -nofor_main' ;;
8670	lf95*)				# Lahey Fortran 8.1
8671	  whole_archive_flag_spec=
8672	  tmp_sharedflag='--shared' ;;
8673	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8674	  tmp_sharedflag='-qmkshrobj'
8675	  tmp_addflag= ;;
8676	esac
8677	case `$CC -V 2>&1 | sed 5q` in
8678	*Sun\ C*)			# Sun C 5.9
8679	  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'
8680	  compiler_needs_object=yes
8681	  tmp_sharedflag='-G' ;;
8682	*Sun\ F*)			# Sun Fortran 8.3
8683	  tmp_sharedflag='-G' ;;
8684	esac
8685	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686
8687        if test "x$supports_anon_versioning" = xyes; then
8688          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8689	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8690	    echo "local: *; };" >> $output_objdir/$libname.ver~
8691	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8692        fi
8693
8694	case $cc_basename in
8695	xlf*)
8696	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8697	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8698	  hardcode_libdir_flag_spec=
8699	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8700	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8701	  if test "x$supports_anon_versioning" = xyes; then
8702	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8703	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8704	      echo "local: *; };" >> $output_objdir/$libname.ver~
8705	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8706	  fi
8707	  ;;
8708	esac
8709      else
8710        ld_shlibs=no
8711      fi
8712      ;;
8713
8714    netbsd*)
8715      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8716	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8717	wlarc=
8718      else
8719	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721      fi
8722      ;;
8723
8724    solaris*)
8725      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8726	ld_shlibs=no
8727	cat <<_LT_EOF 1>&2
8728
8729*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8730*** create shared libraries on Solaris systems.  Therefore, libtool
8731*** is disabling shared libraries support.  We urge you to upgrade GNU
8732*** binutils to release 2.9.1 or newer.  Another option is to modify
8733*** your PATH or compiler configuration so that the native linker is
8734*** used, and then restart.
8735
8736_LT_EOF
8737      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740      else
8741	ld_shlibs=no
8742      fi
8743      ;;
8744
8745    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8746      case `$LD -v 2>&1` in
8747        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8748	ld_shlibs=no
8749	cat <<_LT_EOF 1>&2
8750
8751*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8752*** reliably create shared libraries on SCO systems.  Therefore, libtool
8753*** is disabling shared libraries support.  We urge you to upgrade GNU
8754*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8755*** your PATH or compiler configuration so that the native linker is
8756*** used, and then restart.
8757
8758_LT_EOF
8759	;;
8760	*)
8761	  # For security reasons, it is highly recommended that you always
8762	  # use absolute paths for naming shared libraries, and exclude the
8763	  # DT_RUNPATH tag from executables and libraries.  But doing so
8764	  # requires that you compile everything twice, which is a pain.
8765	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769	  else
8770	    ld_shlibs=no
8771	  fi
8772	;;
8773      esac
8774      ;;
8775
8776    sunos4*)
8777      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8778      wlarc=
8779      hardcode_direct=yes
8780      hardcode_shlibpath_var=no
8781      ;;
8782
8783    *)
8784      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8786	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8787      else
8788	ld_shlibs=no
8789      fi
8790      ;;
8791    esac
8792
8793    if test "$ld_shlibs" = no; then
8794      runpath_var=
8795      hardcode_libdir_flag_spec=
8796      export_dynamic_flag_spec=
8797      whole_archive_flag_spec=
8798    fi
8799  else
8800    # PORTME fill in a description of your system's linker (not GNU ld)
8801    case $host_os in
8802    aix3*)
8803      allow_undefined_flag=unsupported
8804      always_export_symbols=yes
8805      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'
8806      # Note: this linker hardcodes the directories in LIBPATH if there
8807      # are no directories specified by -L.
8808      hardcode_minus_L=yes
8809      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8810	# Neither direct hardcoding nor static linking is supported with a
8811	# broken collect2.
8812	hardcode_direct=unsupported
8813      fi
8814      ;;
8815
8816    aix[4-9]*)
8817      if test "$host_cpu" = ia64; then
8818	# On IA64, the linker does run time linking by default, so we don't
8819	# have to do anything special.
8820	aix_use_runtimelinking=no
8821	exp_sym_flag='-Bexport'
8822	no_entry_flag=""
8823      else
8824	# If we're using GNU nm, then we don't want the "-C" option.
8825	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8826	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8827	  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'
8828	else
8829	  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'
8830	fi
8831	aix_use_runtimelinking=no
8832
8833	# Test if we are trying to use run time linking or normal
8834	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8835	# need to do runtime linking.
8836	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8837	  for ld_flag in $LDFLAGS; do
8838	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8839	    aix_use_runtimelinking=yes
8840	    break
8841	  fi
8842	  done
8843	  ;;
8844	esac
8845
8846	exp_sym_flag='-bexport'
8847	no_entry_flag='-bnoentry'
8848      fi
8849
8850      # When large executables or shared objects are built, AIX ld can
8851      # have problems creating the table of contents.  If linking a library
8852      # or program results in "error TOC overflow" add -mminimal-toc to
8853      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8854      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8855
8856      archive_cmds=''
8857      hardcode_direct=yes
8858      hardcode_direct_absolute=yes
8859      hardcode_libdir_separator=':'
8860      link_all_deplibs=yes
8861      file_list_spec='${wl}-f,'
8862
8863      if test "$GCC" = yes; then
8864	case $host_os in aix4.[012]|aix4.[012].*)
8865	# We only want to do this on AIX 4.2 and lower, the check
8866	# below for broken collect2 doesn't work under 4.3+
8867	  collect2name=`${CC} -print-prog-name=collect2`
8868	  if test -f "$collect2name" &&
8869	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8870	  then
8871	  # We have reworked collect2
8872	  :
8873	  else
8874	  # We have old collect2
8875	  hardcode_direct=unsupported
8876	  # It fails to find uninstalled libraries when the uninstalled
8877	  # path is not listed in the libpath.  Setting hardcode_minus_L
8878	  # to unsupported forces relinking
8879	  hardcode_minus_L=yes
8880	  hardcode_libdir_flag_spec='-L$libdir'
8881	  hardcode_libdir_separator=
8882	  fi
8883	  ;;
8884	esac
8885	shared_flag='-shared'
8886	if test "$aix_use_runtimelinking" = yes; then
8887	  shared_flag="$shared_flag "'${wl}-G'
8888	fi
8889      else
8890	# not using gcc
8891	if test "$host_cpu" = ia64; then
8892	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8893	# chokes on -Wl,-G. The following line is correct:
8894	  shared_flag='-G'
8895	else
8896	  if test "$aix_use_runtimelinking" = yes; then
8897	    shared_flag='${wl}-G'
8898	  else
8899	    shared_flag='${wl}-bM:SRE'
8900	  fi
8901	fi
8902      fi
8903
8904      export_dynamic_flag_spec='${wl}-bexpall'
8905      # It seems that -bexpall does not export symbols beginning with
8906      # underscore (_), so it is better to generate a list of symbols to export.
8907      always_export_symbols=yes
8908      if test "$aix_use_runtimelinking" = yes; then
8909	# Warning - without using the other runtime loading flags (-brtl),
8910	# -berok will link without error, but may produce a broken library.
8911	allow_undefined_flag='-berok'
8912        # Determine the default libpath from the value encoded in an
8913        # empty executable.
8914        cat >conftest.$ac_ext <<_ACEOF
8915/* confdefs.h.  */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h.  */
8920
8921int
8922main ()
8923{
8924
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929rm -f conftest.$ac_objext conftest$ac_exeext
8930if { (ac_try="$ac_link"
8931case "(($ac_try" in
8932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933  *) ac_try_echo=$ac_try;;
8934esac
8935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8936$as_echo "$ac_try_echo") >&5
8937  (eval "$ac_link") 2>conftest.er1
8938  ac_status=$?
8939  grep -v '^ *+' conftest.er1 >conftest.err
8940  rm -f conftest.er1
8941  cat conftest.err >&5
8942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943  (exit $ac_status); } && {
8944	 test -z "$ac_c_werror_flag" ||
8945	 test ! -s conftest.err
8946       } && test -s conftest$ac_exeext && {
8947	 test "$cross_compiling" = yes ||
8948	 $as_test_x conftest$ac_exeext
8949       }; then
8950
8951lt_aix_libpath_sed='
8952    /Import File Strings/,/^$/ {
8953	/^0/ {
8954	    s/^0  *\(.*\)$/\1/
8955	    p
8956	}
8957    }'
8958aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959# Check for a 64-bit object if we didn't find anything.
8960if test -z "$aix_libpath"; then
8961  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962fi
8963else
8964  $as_echo "$as_me: failed program was:" >&5
8965sed 's/^/| /' conftest.$ac_ext >&5
8966
8967
8968fi
8969
8970rm -rf conftest.dSYM
8971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8972      conftest$ac_exeext conftest.$ac_ext
8973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8974
8975        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976        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"
8977      else
8978	if test "$host_cpu" = ia64; then
8979	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8980	  allow_undefined_flag="-z nodefs"
8981	  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"
8982	else
8983	 # Determine the default libpath from the value encoded in an
8984	 # empty executable.
8985	 cat >conftest.$ac_ext <<_ACEOF
8986/* confdefs.h.  */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h.  */
8991
8992int
8993main ()
8994{
8995
8996  ;
8997  return 0;
8998}
8999_ACEOF
9000rm -f conftest.$ac_objext conftest$ac_exeext
9001if { (ac_try="$ac_link"
9002case "(($ac_try" in
9003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004  *) ac_try_echo=$ac_try;;
9005esac
9006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007$as_echo "$ac_try_echo") >&5
9008  (eval "$ac_link") 2>conftest.er1
9009  ac_status=$?
9010  grep -v '^ *+' conftest.er1 >conftest.err
9011  rm -f conftest.er1
9012  cat conftest.err >&5
9013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014  (exit $ac_status); } && {
9015	 test -z "$ac_c_werror_flag" ||
9016	 test ! -s conftest.err
9017       } && test -s conftest$ac_exeext && {
9018	 test "$cross_compiling" = yes ||
9019	 $as_test_x conftest$ac_exeext
9020       }; then
9021
9022lt_aix_libpath_sed='
9023    /Import File Strings/,/^$/ {
9024	/^0/ {
9025	    s/^0  *\(.*\)$/\1/
9026	    p
9027	}
9028    }'
9029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9030# Check for a 64-bit object if we didn't find anything.
9031if test -z "$aix_libpath"; then
9032  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9033fi
9034else
9035  $as_echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038
9039fi
9040
9041rm -rf conftest.dSYM
9042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043      conftest$ac_exeext conftest.$ac_ext
9044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9045
9046	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9047	  # Warning - without using the other run time loading flags,
9048	  # -berok will link without error, but may produce a broken library.
9049	  no_undefined_flag=' ${wl}-bernotok'
9050	  allow_undefined_flag=' ${wl}-berok'
9051	  # Exported symbols can be pulled into shared objects from archives
9052	  whole_archive_flag_spec='$convenience'
9053	  archive_cmds_need_lc=yes
9054	  # This is similar to how AIX traditionally builds its shared libraries.
9055	  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'
9056	fi
9057      fi
9058      ;;
9059
9060    amigaos*)
9061      case $host_cpu in
9062      powerpc)
9063            # see comment about AmigaOS4 .so support
9064            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065            archive_expsym_cmds=''
9066        ;;
9067      m68k)
9068            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)'
9069            hardcode_libdir_flag_spec='-L$libdir'
9070            hardcode_minus_L=yes
9071        ;;
9072      esac
9073      ;;
9074
9075    bsdi[45]*)
9076      export_dynamic_flag_spec=-rdynamic
9077      ;;
9078
9079    cygwin* | mingw* | pw32* | cegcc*)
9080      # When not using gcc, we currently assume that we are using
9081      # Microsoft Visual C++.
9082      # hardcode_libdir_flag_spec is actually meaningless, as there is
9083      # no search path for DLLs.
9084      hardcode_libdir_flag_spec=' '
9085      allow_undefined_flag=unsupported
9086      # Tell ltmain to make .lib files, not .a files.
9087      libext=lib
9088      # Tell ltmain to make .dll files, not .so files.
9089      shrext_cmds=".dll"
9090      # FIXME: Setting linknames here is a bad hack.
9091      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9092      # The linker will automatically build a .lib file if we build a DLL.
9093      old_archive_from_new_cmds='true'
9094      # FIXME: Should let the user specify the lib program.
9095      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9096      fix_srcfile_path='`cygpath -w "$srcfile"`'
9097      enable_shared_with_static_runtimes=yes
9098      ;;
9099
9100    darwin* | rhapsody*)
9101
9102
9103  archive_cmds_need_lc=no
9104  hardcode_direct=no
9105  hardcode_automatic=yes
9106  hardcode_shlibpath_var=unsupported
9107  whole_archive_flag_spec=''
9108  link_all_deplibs=yes
9109  allow_undefined_flag="$_lt_dar_allow_undefined"
9110  case $cc_basename in
9111     ifort*) _lt_dar_can_shared=yes ;;
9112     *) _lt_dar_can_shared=$GCC ;;
9113  esac
9114  if test "$_lt_dar_can_shared" = "yes"; then
9115    output_verbose_link_cmd=echo
9116    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9117    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9118    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}"
9119    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}"
9120
9121  else
9122  ld_shlibs=no
9123  fi
9124
9125      ;;
9126
9127    dgux*)
9128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129      hardcode_libdir_flag_spec='-L$libdir'
9130      hardcode_shlibpath_var=no
9131      ;;
9132
9133    freebsd1*)
9134      ld_shlibs=no
9135      ;;
9136
9137    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9138    # support.  Future versions do this automatically, but an explicit c++rt0.o
9139    # does not break anything, and helps significantly (at the cost of a little
9140    # extra space).
9141    freebsd2.2*)
9142      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9143      hardcode_libdir_flag_spec='-R$libdir'
9144      hardcode_direct=yes
9145      hardcode_shlibpath_var=no
9146      ;;
9147
9148    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9149    freebsd2*)
9150      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9151      hardcode_direct=yes
9152      hardcode_minus_L=yes
9153      hardcode_shlibpath_var=no
9154      ;;
9155
9156    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9157    freebsd* | dragonfly*)
9158      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9159      hardcode_libdir_flag_spec='-R$libdir'
9160      hardcode_direct=yes
9161      hardcode_shlibpath_var=no
9162      ;;
9163
9164    hpux9*)
9165      if test "$GCC" = yes; then
9166	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'
9167      else
9168	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'
9169      fi
9170      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171      hardcode_libdir_separator=:
9172      hardcode_direct=yes
9173
9174      # hardcode_minus_L: Not really in the search PATH,
9175      # but as the default location of the library.
9176      hardcode_minus_L=yes
9177      export_dynamic_flag_spec='${wl}-E'
9178      ;;
9179
9180    hpux10*)
9181      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9182	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9183      else
9184	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9185      fi
9186      if test "$with_gnu_ld" = no; then
9187	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9188	hardcode_libdir_flag_spec_ld='+b $libdir'
9189	hardcode_libdir_separator=:
9190	hardcode_direct=yes
9191	hardcode_direct_absolute=yes
9192	export_dynamic_flag_spec='${wl}-E'
9193	# hardcode_minus_L: Not really in the search PATH,
9194	# but as the default location of the library.
9195	hardcode_minus_L=yes
9196      fi
9197      ;;
9198
9199    hpux11*)
9200      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9201	case $host_cpu in
9202	hppa*64*)
9203	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204	  ;;
9205	ia64*)
9206	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207	  ;;
9208	*)
9209	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210	  ;;
9211	esac
9212      else
9213	case $host_cpu in
9214	hppa*64*)
9215	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216	  ;;
9217	ia64*)
9218	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9219	  ;;
9220	*)
9221	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9222	  ;;
9223	esac
9224      fi
9225      if test "$with_gnu_ld" = no; then
9226	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9227	hardcode_libdir_separator=:
9228
9229	case $host_cpu in
9230	hppa*64*|ia64*)
9231	  hardcode_direct=no
9232	  hardcode_shlibpath_var=no
9233	  ;;
9234	*)
9235	  hardcode_direct=yes
9236	  hardcode_direct_absolute=yes
9237	  export_dynamic_flag_spec='${wl}-E'
9238
9239	  # hardcode_minus_L: Not really in the search PATH,
9240	  # but as the default location of the library.
9241	  hardcode_minus_L=yes
9242	  ;;
9243	esac
9244      fi
9245      ;;
9246
9247    irix5* | irix6* | nonstopux*)
9248      if test "$GCC" = yes; then
9249	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'
9250	# Try to use the -exported_symbol ld option, if it does not
9251	# work, assume that -exports_file does not work either and
9252	# implicitly export all symbols.
9253        save_LDFLAGS="$LDFLAGS"
9254        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9255        cat >conftest.$ac_ext <<_ACEOF
9256int foo(void) {}
9257_ACEOF
9258rm -f conftest.$ac_objext conftest$ac_exeext
9259if { (ac_try="$ac_link"
9260case "(($ac_try" in
9261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262  *) ac_try_echo=$ac_try;;
9263esac
9264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265$as_echo "$ac_try_echo") >&5
9266  (eval "$ac_link") 2>conftest.er1
9267  ac_status=$?
9268  grep -v '^ *+' conftest.er1 >conftest.err
9269  rm -f conftest.er1
9270  cat conftest.err >&5
9271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272  (exit $ac_status); } && {
9273	 test -z "$ac_c_werror_flag" ||
9274	 test ! -s conftest.err
9275       } && test -s conftest$ac_exeext && {
9276	 test "$cross_compiling" = yes ||
9277	 $as_test_x conftest$ac_exeext
9278       }; then
9279  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'
9280
9281else
9282  $as_echo "$as_me: failed program was:" >&5
9283sed 's/^/| /' conftest.$ac_ext >&5
9284
9285
9286fi
9287
9288rm -rf conftest.dSYM
9289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290      conftest$ac_exeext conftest.$ac_ext
9291        LDFLAGS="$save_LDFLAGS"
9292      else
9293	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'
9294	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'
9295      fi
9296      archive_cmds_need_lc='no'
9297      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298      hardcode_libdir_separator=:
9299      inherit_rpath=yes
9300      link_all_deplibs=yes
9301      ;;
9302
9303    netbsd*)
9304      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9305	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9306      else
9307	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9308      fi
9309      hardcode_libdir_flag_spec='-R$libdir'
9310      hardcode_direct=yes
9311      hardcode_shlibpath_var=no
9312      ;;
9313
9314    newsos6)
9315      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316      hardcode_direct=yes
9317      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318      hardcode_libdir_separator=:
9319      hardcode_shlibpath_var=no
9320      ;;
9321
9322    *nto* | *qnx*)
9323      ;;
9324
9325    openbsd*)
9326      if test -f /usr/libexec/ld.so; then
9327	hardcode_direct=yes
9328	hardcode_shlibpath_var=no
9329	hardcode_direct_absolute=yes
9330	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9331	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9332	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9333	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334	  export_dynamic_flag_spec='${wl}-E'
9335	else
9336	  case $host_os in
9337	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9338	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9339	     hardcode_libdir_flag_spec='-R$libdir'
9340	     ;;
9341	   *)
9342	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9344	     ;;
9345	  esac
9346	fi
9347      else
9348	ld_shlibs=no
9349      fi
9350      ;;
9351
9352    os2*)
9353      hardcode_libdir_flag_spec='-L$libdir'
9354      hardcode_minus_L=yes
9355      allow_undefined_flag=unsupported
9356      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'
9357      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9358      ;;
9359
9360    osf3*)
9361      if test "$GCC" = yes; then
9362	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9363	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'
9364      else
9365	allow_undefined_flag=' -expect_unresolved \*'
9366	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'
9367      fi
9368      archive_cmds_need_lc='no'
9369      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370      hardcode_libdir_separator=:
9371      ;;
9372
9373    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9374      if test "$GCC" = yes; then
9375	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9376	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'
9377	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378      else
9379	allow_undefined_flag=' -expect_unresolved \*'
9380	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'
9381	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~
9382	$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'
9383
9384	# Both c and cxx compiler support -rpath directly
9385	hardcode_libdir_flag_spec='-rpath $libdir'
9386      fi
9387      archive_cmds_need_lc='no'
9388      hardcode_libdir_separator=:
9389      ;;
9390
9391    solaris*)
9392      no_undefined_flag=' -z defs'
9393      if test "$GCC" = yes; then
9394	wlarc='${wl}'
9395	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9398      else
9399	case `$CC -V 2>&1` in
9400	*"Compilers 5.0"*)
9401	  wlarc=''
9402	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9404	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9405	  ;;
9406	*)
9407	  wlarc='${wl}'
9408	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9411	  ;;
9412	esac
9413      fi
9414      hardcode_libdir_flag_spec='-R$libdir'
9415      hardcode_shlibpath_var=no
9416      case $host_os in
9417      solaris2.[0-5] | solaris2.[0-5].*) ;;
9418      *)
9419	# The compiler driver will combine and reorder linker options,
9420	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9421	# but is careful enough not to reorder.
9422	# Supported since Solaris 2.6 (maybe 2.5.1?)
9423	if test "$GCC" = yes; then
9424	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9425	else
9426	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9427	fi
9428	;;
9429      esac
9430      link_all_deplibs=yes
9431      ;;
9432
9433    sunos4*)
9434      if test "x$host_vendor" = xsequent; then
9435	# Use $CC to link under sequent, because it throws in some extra .o
9436	# files that make .init and .fini sections work.
9437	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9438      else
9439	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9440      fi
9441      hardcode_libdir_flag_spec='-L$libdir'
9442      hardcode_direct=yes
9443      hardcode_minus_L=yes
9444      hardcode_shlibpath_var=no
9445      ;;
9446
9447    sysv4)
9448      case $host_vendor in
9449	sni)
9450	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451	  hardcode_direct=yes # is this really true???
9452	;;
9453	siemens)
9454	  ## LD is ld it makes a PLAMLIB
9455	  ## CC just makes a GrossModule.
9456	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9457	  reload_cmds='$CC -r -o $output$reload_objs'
9458	  hardcode_direct=no
9459        ;;
9460	motorola)
9461	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9463	;;
9464      esac
9465      runpath_var='LD_RUN_PATH'
9466      hardcode_shlibpath_var=no
9467      ;;
9468
9469    sysv4.3*)
9470      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471      hardcode_shlibpath_var=no
9472      export_dynamic_flag_spec='-Bexport'
9473      ;;
9474
9475    sysv4*MP*)
9476      if test -d /usr/nec; then
9477	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478	hardcode_shlibpath_var=no
9479	runpath_var=LD_RUN_PATH
9480	hardcode_runpath_var=yes
9481	ld_shlibs=yes
9482      fi
9483      ;;
9484
9485    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9486      no_undefined_flag='${wl}-z,text'
9487      archive_cmds_need_lc=no
9488      hardcode_shlibpath_var=no
9489      runpath_var='LD_RUN_PATH'
9490
9491      if test "$GCC" = yes; then
9492	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494      else
9495	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497      fi
9498      ;;
9499
9500    sysv5* | sco3.2v5* | sco5v6*)
9501      # Note: We can NOT use -z defs as we might desire, because we do not
9502      # link with -lc, and that would cause any symbols used from libc to
9503      # always be unresolved, which means just about no library would
9504      # ever link correctly.  If we're not using GNU ld we use -z text
9505      # though, which does catch some bad symbols but isn't as heavy-handed
9506      # as -z defs.
9507      no_undefined_flag='${wl}-z,text'
9508      allow_undefined_flag='${wl}-z,nodefs'
9509      archive_cmds_need_lc=no
9510      hardcode_shlibpath_var=no
9511      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9512      hardcode_libdir_separator=':'
9513      link_all_deplibs=yes
9514      export_dynamic_flag_spec='${wl}-Bexport'
9515      runpath_var='LD_RUN_PATH'
9516
9517      if test "$GCC" = yes; then
9518	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520      else
9521	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523      fi
9524      ;;
9525
9526    uts4*)
9527      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528      hardcode_libdir_flag_spec='-L$libdir'
9529      hardcode_shlibpath_var=no
9530      ;;
9531
9532    *)
9533      ld_shlibs=no
9534      ;;
9535    esac
9536
9537    if test x$host_vendor = xsni; then
9538      case $host in
9539      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9540	export_dynamic_flag_spec='${wl}-Blargedynsym'
9541	;;
9542      esac
9543    fi
9544  fi
9545
9546{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9547$as_echo "$ld_shlibs" >&6; }
9548test "$ld_shlibs" = no && can_build_shared=no
9549
9550with_gnu_ld=$with_gnu_ld
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566#
9567# Do we need to explicitly link libc?
9568#
9569case "x$archive_cmds_need_lc" in
9570x|xyes)
9571  # Assume -lc should be added
9572  archive_cmds_need_lc=yes
9573
9574  if test "$enable_shared" = yes && test "$GCC" = yes; then
9575    case $archive_cmds in
9576    *'~'*)
9577      # FIXME: we may have to deal with multi-command sequences.
9578      ;;
9579    '$CC '*)
9580      # Test whether the compiler implicitly links with -lc since on some
9581      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9582      # to ld, don't add -lc before -lgcc.
9583      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9584$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9585      $RM conftest*
9586      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587
9588      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9589  (eval $ac_compile) 2>&5
9590  ac_status=$?
9591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592  (exit $ac_status); } 2>conftest.err; then
9593        soname=conftest
9594        lib=conftest
9595        libobjs=conftest.$ac_objext
9596        deplibs=
9597        wl=$lt_prog_compiler_wl
9598	pic_flag=$lt_prog_compiler_pic
9599        compiler_flags=-v
9600        linker_flags=-v
9601        verstring=
9602        output_objdir=.
9603        libname=conftest
9604        lt_save_allow_undefined_flag=$allow_undefined_flag
9605        allow_undefined_flag=
9606        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9607  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9608  ac_status=$?
9609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610  (exit $ac_status); }
9611        then
9612	  archive_cmds_need_lc=no
9613        else
9614	  archive_cmds_need_lc=yes
9615        fi
9616        allow_undefined_flag=$lt_save_allow_undefined_flag
9617      else
9618        cat conftest.err 1>&5
9619      fi
9620      $RM conftest*
9621      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9622$as_echo "$archive_cmds_need_lc" >&6; }
9623      ;;
9624    esac
9625  fi
9626  ;;
9627esac
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9786$as_echo_n "checking dynamic linker characteristics... " >&6; }
9787
9788if test "$GCC" = yes; then
9789  case $host_os in
9790    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9791    *) lt_awk_arg="/^libraries:/" ;;
9792  esac
9793  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9794  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9795    # if the path contains ";" then we assume it to be the separator
9796    # otherwise default to the standard path separator (i.e. ":") - it is
9797    # assumed that no part of a normal pathname contains ";" but that should
9798    # okay in the real world where ";" in dirpaths is itself problematic.
9799    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9800  else
9801    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9802  fi
9803  # Ok, now we have the path, separated by spaces, we can step through it
9804  # and add multilib dir if necessary.
9805  lt_tmp_lt_search_path_spec=
9806  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9807  for lt_sys_path in $lt_search_path_spec; do
9808    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9809      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9810    else
9811      test -d "$lt_sys_path" && \
9812	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9813    fi
9814  done
9815  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9816BEGIN {RS=" "; FS="/|\n";} {
9817  lt_foo="";
9818  lt_count=0;
9819  for (lt_i = NF; lt_i > 0; lt_i--) {
9820    if ($lt_i != "" && $lt_i != ".") {
9821      if ($lt_i == "..") {
9822        lt_count++;
9823      } else {
9824        if (lt_count == 0) {
9825          lt_foo="/" $lt_i lt_foo;
9826        } else {
9827          lt_count--;
9828        }
9829      }
9830    }
9831  }
9832  if (lt_foo != "") { lt_freq[lt_foo]++; }
9833  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9834}'`
9835  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9836else
9837  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9838fi
9839library_names_spec=
9840libname_spec='lib$name'
9841soname_spec=
9842shrext_cmds=".so"
9843postinstall_cmds=
9844postuninstall_cmds=
9845finish_cmds=
9846finish_eval=
9847shlibpath_var=
9848shlibpath_overrides_runpath=unknown
9849version_type=none
9850dynamic_linker="$host_os ld.so"
9851sys_lib_dlsearch_path_spec="/lib /usr/lib"
9852need_lib_prefix=unknown
9853hardcode_into_libs=no
9854
9855# when you set need_version to no, make sure it does not cause -set_version
9856# flags to be left without arguments
9857need_version=unknown
9858
9859case $host_os in
9860aix3*)
9861  version_type=linux
9862  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9863  shlibpath_var=LIBPATH
9864
9865  # AIX 3 has no versioning support, so we append a major version to the name.
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  ;;
9868
9869aix[4-9]*)
9870  version_type=linux
9871  need_lib_prefix=no
9872  need_version=no
9873  hardcode_into_libs=yes
9874  if test "$host_cpu" = ia64; then
9875    # AIX 5 supports IA64
9876    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9877    shlibpath_var=LD_LIBRARY_PATH
9878  else
9879    # With GCC up to 2.95.x, collect2 would create an import file
9880    # for dependence libraries.  The import file would start with
9881    # the line `#! .'.  This would cause the generated library to
9882    # depend on `.', always an invalid library.  This was fixed in
9883    # development snapshots of GCC prior to 3.0.
9884    case $host_os in
9885      aix4 | aix4.[01] | aix4.[01].*)
9886      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9887	   echo ' yes '
9888	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9889	:
9890      else
9891	can_build_shared=no
9892      fi
9893      ;;
9894    esac
9895    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9896    # soname into executable. Probably we can add versioning support to
9897    # collect2, so additional links can be useful in future.
9898    if test "$aix_use_runtimelinking" = yes; then
9899      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9900      # instead of lib<name>.a to let people know that these are not
9901      # typical AIX shared libraries.
9902      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903    else
9904      # We preserve .a as extension for shared libraries through AIX4.2
9905      # and later when we are not doing run time linking.
9906      library_names_spec='${libname}${release}.a $libname.a'
9907      soname_spec='${libname}${release}${shared_ext}$major'
9908    fi
9909    shlibpath_var=LIBPATH
9910  fi
9911  ;;
9912
9913amigaos*)
9914  case $host_cpu in
9915  powerpc)
9916    # Since July 2007 AmigaOS4 officially supports .so libraries.
9917    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9918    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919    ;;
9920  m68k)
9921    library_names_spec='$libname.ixlibrary $libname.a'
9922    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9923    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'
9924    ;;
9925  esac
9926  ;;
9927
9928beos*)
9929  library_names_spec='${libname}${shared_ext}'
9930  dynamic_linker="$host_os ld.so"
9931  shlibpath_var=LIBRARY_PATH
9932  ;;
9933
9934bsdi[45]*)
9935  version_type=linux
9936  need_version=no
9937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938  soname_spec='${libname}${release}${shared_ext}$major'
9939  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9940  shlibpath_var=LD_LIBRARY_PATH
9941  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9942  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9943  # the default ld.so.conf also contains /usr/contrib/lib and
9944  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9945  # libtool to hard-code these into programs
9946  ;;
9947
9948cygwin* | mingw* | pw32* | cegcc*)
9949  version_type=windows
9950  shrext_cmds=".dll"
9951  need_version=no
9952  need_lib_prefix=no
9953
9954  case $GCC,$host_os in
9955  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9956    library_names_spec='$libname.dll.a'
9957    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9958    postinstall_cmds='base_file=`basename \${file}`~
9959      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9960      dldir=$destdir/`dirname \$dlpath`~
9961      test -d \$dldir || mkdir -p \$dldir~
9962      $install_prog $dir/$dlname \$dldir/$dlname~
9963      chmod a+x \$dldir/$dlname~
9964      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9965        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9966      fi'
9967    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9968      dlpath=$dir/\$dldll~
9969       $RM \$dlpath'
9970    shlibpath_overrides_runpath=yes
9971
9972    case $host_os in
9973    cygwin*)
9974      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9975      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9977      ;;
9978    mingw* | cegcc*)
9979      # MinGW DLLs use traditional 'lib' prefix
9980      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9982      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9983        # It is most probably a Windows format PATH printed by
9984        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9985        # path with ; separators, and with drive letters. We can handle the
9986        # drive letters (cygwin fileutils understands them), so leave them,
9987        # especially as we might pass files found there to a mingw objdump,
9988        # which wouldn't understand a cygwinified path. Ahh.
9989        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9990      else
9991        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9992      fi
9993      ;;
9994    pw32*)
9995      # pw32 DLLs use 'pw' prefix rather than 'lib'
9996      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997      ;;
9998    esac
9999    ;;
10000
10001  *)
10002    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10003    ;;
10004  esac
10005  dynamic_linker='Win32 ld.exe'
10006  # FIXME: first we should search . and the directory the executable is in
10007  shlibpath_var=PATH
10008  ;;
10009
10010darwin* | rhapsody*)
10011  dynamic_linker="$host_os dyld"
10012  version_type=darwin
10013  need_lib_prefix=no
10014  need_version=no
10015  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10016  soname_spec='${libname}${release}${major}$shared_ext'
10017  shlibpath_overrides_runpath=yes
10018  shlibpath_var=DYLD_LIBRARY_PATH
10019  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10020
10021  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10022  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10023  ;;
10024
10025dgux*)
10026  version_type=linux
10027  need_lib_prefix=no
10028  need_version=no
10029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10030  soname_spec='${libname}${release}${shared_ext}$major'
10031  shlibpath_var=LD_LIBRARY_PATH
10032  ;;
10033
10034freebsd1*)
10035  dynamic_linker=no
10036  ;;
10037
10038freebsd* | dragonfly*)
10039  # DragonFly does not have aout.  When/if they implement a new
10040  # versioning mechanism, adjust this.
10041  if test -x /usr/bin/objformat; then
10042    objformat=`/usr/bin/objformat`
10043  else
10044    case $host_os in
10045    freebsd[123]*) objformat=aout ;;
10046    *) objformat=elf ;;
10047    esac
10048  fi
10049  version_type=freebsd-$objformat
10050  case $version_type in
10051    freebsd-elf*)
10052      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10053      need_version=no
10054      need_lib_prefix=no
10055      ;;
10056    freebsd-*)
10057      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10058      need_version=yes
10059      ;;
10060  esac
10061  shlibpath_var=LD_LIBRARY_PATH
10062  case $host_os in
10063  freebsd2*)
10064    shlibpath_overrides_runpath=yes
10065    ;;
10066  freebsd3.[01]* | freebsdelf3.[01]*)
10067    shlibpath_overrides_runpath=yes
10068    hardcode_into_libs=yes
10069    ;;
10070  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10071  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10072    shlibpath_overrides_runpath=no
10073    hardcode_into_libs=yes
10074    ;;
10075  *) # from 4.6 on, and DragonFly
10076    shlibpath_overrides_runpath=yes
10077    hardcode_into_libs=yes
10078    ;;
10079  esac
10080  ;;
10081
10082gnu*)
10083  version_type=linux
10084  need_lib_prefix=no
10085  need_version=no
10086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10087  soname_spec='${libname}${release}${shared_ext}$major'
10088  shlibpath_var=LD_LIBRARY_PATH
10089  hardcode_into_libs=yes
10090  ;;
10091
10092hpux9* | hpux10* | hpux11*)
10093  # Give a soname corresponding to the major version so that dld.sl refuses to
10094  # link against other versions.
10095  version_type=sunos
10096  need_lib_prefix=no
10097  need_version=no
10098  case $host_cpu in
10099  ia64*)
10100    shrext_cmds='.so'
10101    hardcode_into_libs=yes
10102    dynamic_linker="$host_os dld.so"
10103    shlibpath_var=LD_LIBRARY_PATH
10104    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106    soname_spec='${libname}${release}${shared_ext}$major'
10107    if test "X$HPUX_IA64_MODE" = X32; then
10108      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10109    else
10110      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10111    fi
10112    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113    ;;
10114  hppa*64*)
10115    shrext_cmds='.sl'
10116    hardcode_into_libs=yes
10117    dynamic_linker="$host_os dld.sl"
10118    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10119    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121    soname_spec='${libname}${release}${shared_ext}$major'
10122    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10123    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10124    ;;
10125  *)
10126    shrext_cmds='.sl'
10127    dynamic_linker="$host_os dld.sl"
10128    shlibpath_var=SHLIB_PATH
10129    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131    soname_spec='${libname}${release}${shared_ext}$major'
10132    ;;
10133  esac
10134  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10135  postinstall_cmds='chmod 555 $lib'
10136  ;;
10137
10138interix[3-9]*)
10139  version_type=linux
10140  need_lib_prefix=no
10141  need_version=no
10142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10143  soname_spec='${libname}${release}${shared_ext}$major'
10144  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10145  shlibpath_var=LD_LIBRARY_PATH
10146  shlibpath_overrides_runpath=no
10147  hardcode_into_libs=yes
10148  ;;
10149
10150irix5* | irix6* | nonstopux*)
10151  case $host_os in
10152    nonstopux*) version_type=nonstopux ;;
10153    *)
10154	if test "$lt_cv_prog_gnu_ld" = yes; then
10155		version_type=linux
10156	else
10157		version_type=irix
10158	fi ;;
10159  esac
10160  need_lib_prefix=no
10161  need_version=no
10162  soname_spec='${libname}${release}${shared_ext}$major'
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10164  case $host_os in
10165  irix5* | nonstopux*)
10166    libsuff= shlibsuff=
10167    ;;
10168  *)
10169    case $LD in # libtool.m4 will add one of these switches to LD
10170    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10171      libsuff= shlibsuff= libmagic=32-bit;;
10172    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10173      libsuff=32 shlibsuff=N32 libmagic=N32;;
10174    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10175      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10176    *) libsuff= shlibsuff= libmagic=never-match;;
10177    esac
10178    ;;
10179  esac
10180  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10181  shlibpath_overrides_runpath=no
10182  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10183  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10184  hardcode_into_libs=yes
10185  ;;
10186
10187# No shared lib support for Linux oldld, aout, or coff.
10188linux*oldld* | linux*aout* | linux*coff*)
10189  dynamic_linker=no
10190  ;;
10191
10192# This must be Linux ELF.
10193linux* | k*bsd*-gnu)
10194  version_type=linux
10195  need_lib_prefix=no
10196  need_version=no
10197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198  soname_spec='${libname}${release}${shared_ext}$major'
10199  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10200  shlibpath_var=LD_LIBRARY_PATH
10201  shlibpath_overrides_runpath=no
10202  # Some binutils ld are patched to set DT_RUNPATH
10203  save_LDFLAGS=$LDFLAGS
10204  save_libdir=$libdir
10205  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10206       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10207  cat >conftest.$ac_ext <<_ACEOF
10208/* confdefs.h.  */
10209_ACEOF
10210cat confdefs.h >>conftest.$ac_ext
10211cat >>conftest.$ac_ext <<_ACEOF
10212/* end confdefs.h.  */
10213
10214int
10215main ()
10216{
10217
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (ac_try="$ac_link"
10224case "(($ac_try" in
10225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226  *) ac_try_echo=$ac_try;;
10227esac
10228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10229$as_echo "$ac_try_echo") >&5
10230  (eval "$ac_link") 2>conftest.er1
10231  ac_status=$?
10232  grep -v '^ *+' conftest.er1 >conftest.err
10233  rm -f conftest.er1
10234  cat conftest.err >&5
10235  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236  (exit $ac_status); } && {
10237	 test -z "$ac_c_werror_flag" ||
10238	 test ! -s conftest.err
10239       } && test -s conftest$ac_exeext && {
10240	 test "$cross_compiling" = yes ||
10241	 $as_test_x conftest$ac_exeext
10242       }; then
10243  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10244  shlibpath_overrides_runpath=yes
10245fi
10246
10247else
10248  $as_echo "$as_me: failed program was:" >&5
10249sed 's/^/| /' conftest.$ac_ext >&5
10250
10251
10252fi
10253
10254rm -rf conftest.dSYM
10255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256      conftest$ac_exeext conftest.$ac_ext
10257  LDFLAGS=$save_LDFLAGS
10258  libdir=$save_libdir
10259
10260  # This implies no fast_install, which is unacceptable.
10261  # Some rework will be needed to allow for fast_install
10262  # before this can be enabled.
10263  hardcode_into_libs=yes
10264
10265  # Add ABI-specific directories to the system library path.
10266  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10267
10268  # Append ld.so.conf contents to the search path
10269  if test -f /etc/ld.so.conf; then
10270    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' ' '`
10271    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10272  fi
10273
10274  # We used to test for /lib/ld.so.1 and disable shared libraries on
10275  # powerpc, because MkLinux only supported shared libraries with the
10276  # GNU dynamic linker.  Since this was broken with cross compilers,
10277  # most powerpc-linux boxes support dynamic linking these days and
10278  # people can always --disable-shared, the test was removed, and we
10279  # assume the GNU/Linux dynamic linker is in use.
10280  dynamic_linker='GNU/Linux ld.so'
10281  ;;
10282
10283netbsd*)
10284  version_type=sunos
10285  need_lib_prefix=no
10286  need_version=no
10287  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10288    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10289    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10290    dynamic_linker='NetBSD (a.out) ld.so'
10291  else
10292    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10293    soname_spec='${libname}${release}${shared_ext}$major'
10294    dynamic_linker='NetBSD ld.elf_so'
10295  fi
10296  shlibpath_var=LD_LIBRARY_PATH
10297  shlibpath_overrides_runpath=yes
10298  hardcode_into_libs=yes
10299  ;;
10300
10301newsos6)
10302  version_type=linux
10303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304  shlibpath_var=LD_LIBRARY_PATH
10305  shlibpath_overrides_runpath=yes
10306  ;;
10307
10308*nto* | *qnx*)
10309  version_type=qnx
10310  need_lib_prefix=no
10311  need_version=no
10312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313  soname_spec='${libname}${release}${shared_ext}$major'
10314  shlibpath_var=LD_LIBRARY_PATH
10315  shlibpath_overrides_runpath=no
10316  hardcode_into_libs=yes
10317  dynamic_linker='ldqnx.so'
10318  ;;
10319
10320openbsd*)
10321  version_type=sunos
10322  sys_lib_dlsearch_path_spec="/usr/lib"
10323  need_lib_prefix=no
10324  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10325  case $host_os in
10326    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10327    *)				need_version=no  ;;
10328  esac
10329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10333    case $host_os in
10334      openbsd2.[89] | openbsd2.[89].*)
10335	shlibpath_overrides_runpath=no
10336	;;
10337      *)
10338	shlibpath_overrides_runpath=yes
10339	;;
10340      esac
10341  else
10342    shlibpath_overrides_runpath=yes
10343  fi
10344  ;;
10345
10346os2*)
10347  libname_spec='$name'
10348  shrext_cmds=".dll"
10349  need_lib_prefix=no
10350  library_names_spec='$libname${shared_ext} $libname.a'
10351  dynamic_linker='OS/2 ld.exe'
10352  shlibpath_var=LIBPATH
10353  ;;
10354
10355osf3* | osf4* | osf5*)
10356  version_type=osf
10357  need_lib_prefix=no
10358  need_version=no
10359  soname_spec='${libname}${release}${shared_ext}$major'
10360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361  shlibpath_var=LD_LIBRARY_PATH
10362  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10363  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10364  ;;
10365
10366rdos*)
10367  dynamic_linker=no
10368  ;;
10369
10370solaris*)
10371  version_type=linux
10372  need_lib_prefix=no
10373  need_version=no
10374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375  soname_spec='${libname}${release}${shared_ext}$major'
10376  shlibpath_var=LD_LIBRARY_PATH
10377  shlibpath_overrides_runpath=yes
10378  hardcode_into_libs=yes
10379  # ldd complains unless libraries are executable
10380  postinstall_cmds='chmod +x $lib'
10381  ;;
10382
10383sunos4*)
10384  version_type=sunos
10385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10386  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10387  shlibpath_var=LD_LIBRARY_PATH
10388  shlibpath_overrides_runpath=yes
10389  if test "$with_gnu_ld" = yes; then
10390    need_lib_prefix=no
10391  fi
10392  need_version=yes
10393  ;;
10394
10395sysv4 | sysv4.3*)
10396  version_type=linux
10397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398  soname_spec='${libname}${release}${shared_ext}$major'
10399  shlibpath_var=LD_LIBRARY_PATH
10400  case $host_vendor in
10401    sni)
10402      shlibpath_overrides_runpath=no
10403      need_lib_prefix=no
10404      runpath_var=LD_RUN_PATH
10405      ;;
10406    siemens)
10407      need_lib_prefix=no
10408      ;;
10409    motorola)
10410      need_lib_prefix=no
10411      need_version=no
10412      shlibpath_overrides_runpath=no
10413      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10414      ;;
10415  esac
10416  ;;
10417
10418sysv4*MP*)
10419  if test -d /usr/nec ;then
10420    version_type=linux
10421    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10422    soname_spec='$libname${shared_ext}.$major'
10423    shlibpath_var=LD_LIBRARY_PATH
10424  fi
10425  ;;
10426
10427sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10428  version_type=freebsd-elf
10429  need_lib_prefix=no
10430  need_version=no
10431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10432  soname_spec='${libname}${release}${shared_ext}$major'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  shlibpath_overrides_runpath=yes
10435  hardcode_into_libs=yes
10436  if test "$with_gnu_ld" = yes; then
10437    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10438  else
10439    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10440    case $host_os in
10441      sco3.2v5*)
10442        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10443	;;
10444    esac
10445  fi
10446  sys_lib_dlsearch_path_spec='/usr/lib'
10447  ;;
10448
10449tpf*)
10450  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10451  version_type=linux
10452  need_lib_prefix=no
10453  need_version=no
10454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455  shlibpath_var=LD_LIBRARY_PATH
10456  shlibpath_overrides_runpath=no
10457  hardcode_into_libs=yes
10458  ;;
10459
10460uts4*)
10461  version_type=linux
10462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463  soname_spec='${libname}${release}${shared_ext}$major'
10464  shlibpath_var=LD_LIBRARY_PATH
10465  ;;
10466
10467*)
10468  dynamic_linker=no
10469  ;;
10470esac
10471{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10472$as_echo "$dynamic_linker" >&6; }
10473test "$dynamic_linker" = no && can_build_shared=no
10474
10475variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10476if test "$GCC" = yes; then
10477  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10478fi
10479
10480if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10481  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10482fi
10483if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10484  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10485fi
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10574$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10575hardcode_action=
10576if test -n "$hardcode_libdir_flag_spec" ||
10577   test -n "$runpath_var" ||
10578   test "X$hardcode_automatic" = "Xyes" ; then
10579
10580  # We can hardcode non-existent directories.
10581  if test "$hardcode_direct" != no &&
10582     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10583     # have to relink, otherwise we might link with an installed library
10584     # when we should be linking with a yet-to-be-installed one
10585     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10586     test "$hardcode_minus_L" != no; then
10587    # Linking always hardcodes the temporary library directory.
10588    hardcode_action=relink
10589  else
10590    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10591    hardcode_action=immediate
10592  fi
10593else
10594  # We cannot hardcode anything, or else we can only hardcode existing
10595  # directories.
10596  hardcode_action=unsupported
10597fi
10598{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10599$as_echo "$hardcode_action" >&6; }
10600
10601if test "$hardcode_action" = relink ||
10602   test "$inherit_rpath" = yes; then
10603  # Fast installation is not supported
10604  enable_fast_install=no
10605elif test "$shlibpath_overrides_runpath" = yes ||
10606     test "$enable_shared" = no; then
10607  # Fast installation is not necessary
10608  enable_fast_install=needless
10609fi
10610
10611
10612
10613
10614
10615
10616  if test "x$enable_dlopen" != xyes; then
10617  enable_dlopen=unknown
10618  enable_dlopen_self=unknown
10619  enable_dlopen_self_static=unknown
10620else
10621  lt_cv_dlopen=no
10622  lt_cv_dlopen_libs=
10623
10624  case $host_os in
10625  beos*)
10626    lt_cv_dlopen="load_add_on"
10627    lt_cv_dlopen_libs=
10628    lt_cv_dlopen_self=yes
10629    ;;
10630
10631  mingw* | pw32* | cegcc*)
10632    lt_cv_dlopen="LoadLibrary"
10633    lt_cv_dlopen_libs=
10634    ;;
10635
10636  cygwin*)
10637    lt_cv_dlopen="dlopen"
10638    lt_cv_dlopen_libs=
10639    ;;
10640
10641  darwin*)
10642  # if libdl is installed we need to link against it
10643    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10644$as_echo_n "checking for dlopen in -ldl... " >&6; }
10645if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10646  $as_echo_n "(cached) " >&6
10647else
10648  ac_check_lib_save_LIBS=$LIBS
10649LIBS="-ldl  $LIBS"
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h.  */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h.  */
10656
10657/* Override any GCC internal prototype to avoid an error.
10658   Use char because int might match the return type of a GCC
10659   builtin and then its argument prototype would still apply.  */
10660#ifdef __cplusplus
10661extern "C"
10662#endif
10663char dlopen ();
10664int
10665main ()
10666{
10667return dlopen ();
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext conftest$ac_exeext
10673if { (ac_try="$ac_link"
10674case "(($ac_try" in
10675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676  *) ac_try_echo=$ac_try;;
10677esac
10678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10679$as_echo "$ac_try_echo") >&5
10680  (eval "$ac_link") 2>conftest.er1
10681  ac_status=$?
10682  grep -v '^ *+' conftest.er1 >conftest.err
10683  rm -f conftest.er1
10684  cat conftest.err >&5
10685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); } && {
10687	 test -z "$ac_c_werror_flag" ||
10688	 test ! -s conftest.err
10689       } && test -s conftest$ac_exeext && {
10690	 test "$cross_compiling" = yes ||
10691	 $as_test_x conftest$ac_exeext
10692       }; then
10693  ac_cv_lib_dl_dlopen=yes
10694else
10695  $as_echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698	ac_cv_lib_dl_dlopen=no
10699fi
10700
10701rm -rf conftest.dSYM
10702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10703      conftest$ac_exeext conftest.$ac_ext
10704LIBS=$ac_check_lib_save_LIBS
10705fi
10706{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10707$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10708if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10709  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10710else
10711
10712    lt_cv_dlopen="dyld"
10713    lt_cv_dlopen_libs=
10714    lt_cv_dlopen_self=yes
10715
10716fi
10717
10718    ;;
10719
10720  *)
10721    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10722$as_echo_n "checking for shl_load... " >&6; }
10723if test "${ac_cv_func_shl_load+set}" = set; then
10724  $as_echo_n "(cached) " >&6
10725else
10726  cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h.  */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h.  */
10732/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10733   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10734#define shl_load innocuous_shl_load
10735
10736/* System header to define __stub macros and hopefully few prototypes,
10737    which can conflict with char shl_load (); below.
10738    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10739    <limits.h> exists even on freestanding compilers.  */
10740
10741#ifdef __STDC__
10742# include <limits.h>
10743#else
10744# include <assert.h>
10745#endif
10746
10747#undef shl_load
10748
10749/* Override any GCC internal prototype to avoid an error.
10750   Use char because int might match the return type of a GCC
10751   builtin and then its argument prototype would still apply.  */
10752#ifdef __cplusplus
10753extern "C"
10754#endif
10755char shl_load ();
10756/* The GNU C library defines this for functions which it implements
10757    to always fail with ENOSYS.  Some functions are actually named
10758    something starting with __ and the normal name is an alias.  */
10759#if defined __stub_shl_load || defined __stub___shl_load
10760choke me
10761#endif
10762
10763int
10764main ()
10765{
10766return shl_load ();
10767  ;
10768  return 0;
10769}
10770_ACEOF
10771rm -f conftest.$ac_objext conftest$ac_exeext
10772if { (ac_try="$ac_link"
10773case "(($ac_try" in
10774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775  *) ac_try_echo=$ac_try;;
10776esac
10777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10778$as_echo "$ac_try_echo") >&5
10779  (eval "$ac_link") 2>conftest.er1
10780  ac_status=$?
10781  grep -v '^ *+' conftest.er1 >conftest.err
10782  rm -f conftest.er1
10783  cat conftest.err >&5
10784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); } && {
10786	 test -z "$ac_c_werror_flag" ||
10787	 test ! -s conftest.err
10788       } && test -s conftest$ac_exeext && {
10789	 test "$cross_compiling" = yes ||
10790	 $as_test_x conftest$ac_exeext
10791       }; then
10792  ac_cv_func_shl_load=yes
10793else
10794  $as_echo "$as_me: failed program was:" >&5
10795sed 's/^/| /' conftest.$ac_ext >&5
10796
10797	ac_cv_func_shl_load=no
10798fi
10799
10800rm -rf conftest.dSYM
10801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10802      conftest$ac_exeext conftest.$ac_ext
10803fi
10804{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10805$as_echo "$ac_cv_func_shl_load" >&6; }
10806if test "x$ac_cv_func_shl_load" = x""yes; then
10807  lt_cv_dlopen="shl_load"
10808else
10809  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10810$as_echo_n "checking for shl_load in -ldld... " >&6; }
10811if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10812  $as_echo_n "(cached) " >&6
10813else
10814  ac_check_lib_save_LIBS=$LIBS
10815LIBS="-ldld  $LIBS"
10816cat >conftest.$ac_ext <<_ACEOF
10817/* confdefs.h.  */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
10821/* end confdefs.h.  */
10822
10823/* Override any GCC internal prototype to avoid an error.
10824   Use char because int might match the return type of a GCC
10825   builtin and then its argument prototype would still apply.  */
10826#ifdef __cplusplus
10827extern "C"
10828#endif
10829char shl_load ();
10830int
10831main ()
10832{
10833return shl_load ();
10834  ;
10835  return 0;
10836}
10837_ACEOF
10838rm -f conftest.$ac_objext conftest$ac_exeext
10839if { (ac_try="$ac_link"
10840case "(($ac_try" in
10841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842  *) ac_try_echo=$ac_try;;
10843esac
10844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10845$as_echo "$ac_try_echo") >&5
10846  (eval "$ac_link") 2>conftest.er1
10847  ac_status=$?
10848  grep -v '^ *+' conftest.er1 >conftest.err
10849  rm -f conftest.er1
10850  cat conftest.err >&5
10851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852  (exit $ac_status); } && {
10853	 test -z "$ac_c_werror_flag" ||
10854	 test ! -s conftest.err
10855       } && test -s conftest$ac_exeext && {
10856	 test "$cross_compiling" = yes ||
10857	 $as_test_x conftest$ac_exeext
10858       }; then
10859  ac_cv_lib_dld_shl_load=yes
10860else
10861  $as_echo "$as_me: failed program was:" >&5
10862sed 's/^/| /' conftest.$ac_ext >&5
10863
10864	ac_cv_lib_dld_shl_load=no
10865fi
10866
10867rm -rf conftest.dSYM
10868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869      conftest$ac_exeext conftest.$ac_ext
10870LIBS=$ac_check_lib_save_LIBS
10871fi
10872{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10873$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10874if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10875  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10876else
10877  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10878$as_echo_n "checking for dlopen... " >&6; }
10879if test "${ac_cv_func_dlopen+set}" = set; then
10880  $as_echo_n "(cached) " >&6
10881else
10882  cat >conftest.$ac_ext <<_ACEOF
10883/* confdefs.h.  */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
10887/* end confdefs.h.  */
10888/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10889   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10890#define dlopen innocuous_dlopen
10891
10892/* System header to define __stub macros and hopefully few prototypes,
10893    which can conflict with char dlopen (); below.
10894    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895    <limits.h> exists even on freestanding compilers.  */
10896
10897#ifdef __STDC__
10898# include <limits.h>
10899#else
10900# include <assert.h>
10901#endif
10902
10903#undef dlopen
10904
10905/* Override any GCC internal prototype to avoid an error.
10906   Use char because int might match the return type of a GCC
10907   builtin and then its argument prototype would still apply.  */
10908#ifdef __cplusplus
10909extern "C"
10910#endif
10911char dlopen ();
10912/* The GNU C library defines this for functions which it implements
10913    to always fail with ENOSYS.  Some functions are actually named
10914    something starting with __ and the normal name is an alias.  */
10915#if defined __stub_dlopen || defined __stub___dlopen
10916choke me
10917#endif
10918
10919int
10920main ()
10921{
10922return dlopen ();
10923  ;
10924  return 0;
10925}
10926_ACEOF
10927rm -f conftest.$ac_objext conftest$ac_exeext
10928if { (ac_try="$ac_link"
10929case "(($ac_try" in
10930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931  *) ac_try_echo=$ac_try;;
10932esac
10933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934$as_echo "$ac_try_echo") >&5
10935  (eval "$ac_link") 2>conftest.er1
10936  ac_status=$?
10937  grep -v '^ *+' conftest.er1 >conftest.err
10938  rm -f conftest.er1
10939  cat conftest.err >&5
10940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941  (exit $ac_status); } && {
10942	 test -z "$ac_c_werror_flag" ||
10943	 test ! -s conftest.err
10944       } && test -s conftest$ac_exeext && {
10945	 test "$cross_compiling" = yes ||
10946	 $as_test_x conftest$ac_exeext
10947       }; then
10948  ac_cv_func_dlopen=yes
10949else
10950  $as_echo "$as_me: failed program was:" >&5
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
10953	ac_cv_func_dlopen=no
10954fi
10955
10956rm -rf conftest.dSYM
10957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10958      conftest$ac_exeext conftest.$ac_ext
10959fi
10960{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10961$as_echo "$ac_cv_func_dlopen" >&6; }
10962if test "x$ac_cv_func_dlopen" = x""yes; then
10963  lt_cv_dlopen="dlopen"
10964else
10965  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10966$as_echo_n "checking for dlopen in -ldl... " >&6; }
10967if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10968  $as_echo_n "(cached) " >&6
10969else
10970  ac_check_lib_save_LIBS=$LIBS
10971LIBS="-ldl  $LIBS"
10972cat >conftest.$ac_ext <<_ACEOF
10973/* confdefs.h.  */
10974_ACEOF
10975cat confdefs.h >>conftest.$ac_ext
10976cat >>conftest.$ac_ext <<_ACEOF
10977/* end confdefs.h.  */
10978
10979/* Override any GCC internal prototype to avoid an error.
10980   Use char because int might match the return type of a GCC
10981   builtin and then its argument prototype would still apply.  */
10982#ifdef __cplusplus
10983extern "C"
10984#endif
10985char dlopen ();
10986int
10987main ()
10988{
10989return dlopen ();
10990  ;
10991  return 0;
10992}
10993_ACEOF
10994rm -f conftest.$ac_objext conftest$ac_exeext
10995if { (ac_try="$ac_link"
10996case "(($ac_try" in
10997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998  *) ac_try_echo=$ac_try;;
10999esac
11000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11001$as_echo "$ac_try_echo") >&5
11002  (eval "$ac_link") 2>conftest.er1
11003  ac_status=$?
11004  grep -v '^ *+' conftest.er1 >conftest.err
11005  rm -f conftest.er1
11006  cat conftest.err >&5
11007  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008  (exit $ac_status); } && {
11009	 test -z "$ac_c_werror_flag" ||
11010	 test ! -s conftest.err
11011       } && test -s conftest$ac_exeext && {
11012	 test "$cross_compiling" = yes ||
11013	 $as_test_x conftest$ac_exeext
11014       }; then
11015  ac_cv_lib_dl_dlopen=yes
11016else
11017  $as_echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020	ac_cv_lib_dl_dlopen=no
11021fi
11022
11023rm -rf conftest.dSYM
11024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11025      conftest$ac_exeext conftest.$ac_ext
11026LIBS=$ac_check_lib_save_LIBS
11027fi
11028{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11029$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11030if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11031  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11032else
11033  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11034$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11035if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11036  $as_echo_n "(cached) " >&6
11037else
11038  ac_check_lib_save_LIBS=$LIBS
11039LIBS="-lsvld  $LIBS"
11040cat >conftest.$ac_ext <<_ACEOF
11041/* confdefs.h.  */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h.  */
11046
11047/* Override any GCC internal prototype to avoid an error.
11048   Use char because int might match the return type of a GCC
11049   builtin and then its argument prototype would still apply.  */
11050#ifdef __cplusplus
11051extern "C"
11052#endif
11053char dlopen ();
11054int
11055main ()
11056{
11057return dlopen ();
11058  ;
11059  return 0;
11060}
11061_ACEOF
11062rm -f conftest.$ac_objext conftest$ac_exeext
11063if { (ac_try="$ac_link"
11064case "(($ac_try" in
11065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066  *) ac_try_echo=$ac_try;;
11067esac
11068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11069$as_echo "$ac_try_echo") >&5
11070  (eval "$ac_link") 2>conftest.er1
11071  ac_status=$?
11072  grep -v '^ *+' conftest.er1 >conftest.err
11073  rm -f conftest.er1
11074  cat conftest.err >&5
11075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076  (exit $ac_status); } && {
11077	 test -z "$ac_c_werror_flag" ||
11078	 test ! -s conftest.err
11079       } && test -s conftest$ac_exeext && {
11080	 test "$cross_compiling" = yes ||
11081	 $as_test_x conftest$ac_exeext
11082       }; then
11083  ac_cv_lib_svld_dlopen=yes
11084else
11085  $as_echo "$as_me: failed program was:" >&5
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
11088	ac_cv_lib_svld_dlopen=no
11089fi
11090
11091rm -rf conftest.dSYM
11092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11093      conftest$ac_exeext conftest.$ac_ext
11094LIBS=$ac_check_lib_save_LIBS
11095fi
11096{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11097$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11098if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11099  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11100else
11101  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11102$as_echo_n "checking for dld_link in -ldld... " >&6; }
11103if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11104  $as_echo_n "(cached) " >&6
11105else
11106  ac_check_lib_save_LIBS=$LIBS
11107LIBS="-ldld  $LIBS"
11108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h.  */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h.  */
11114
11115/* Override any GCC internal prototype to avoid an error.
11116   Use char because int might match the return type of a GCC
11117   builtin and then its argument prototype would still apply.  */
11118#ifdef __cplusplus
11119extern "C"
11120#endif
11121char dld_link ();
11122int
11123main ()
11124{
11125return dld_link ();
11126  ;
11127  return 0;
11128}
11129_ACEOF
11130rm -f conftest.$ac_objext conftest$ac_exeext
11131if { (ac_try="$ac_link"
11132case "(($ac_try" in
11133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134  *) ac_try_echo=$ac_try;;
11135esac
11136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11137$as_echo "$ac_try_echo") >&5
11138  (eval "$ac_link") 2>conftest.er1
11139  ac_status=$?
11140  grep -v '^ *+' conftest.er1 >conftest.err
11141  rm -f conftest.er1
11142  cat conftest.err >&5
11143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144  (exit $ac_status); } && {
11145	 test -z "$ac_c_werror_flag" ||
11146	 test ! -s conftest.err
11147       } && test -s conftest$ac_exeext && {
11148	 test "$cross_compiling" = yes ||
11149	 $as_test_x conftest$ac_exeext
11150       }; then
11151  ac_cv_lib_dld_dld_link=yes
11152else
11153  $as_echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156	ac_cv_lib_dld_dld_link=no
11157fi
11158
11159rm -rf conftest.dSYM
11160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11161      conftest$ac_exeext conftest.$ac_ext
11162LIBS=$ac_check_lib_save_LIBS
11163fi
11164{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11165$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11166if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11167  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11168fi
11169
11170
11171fi
11172
11173
11174fi
11175
11176
11177fi
11178
11179
11180fi
11181
11182
11183fi
11184
11185    ;;
11186  esac
11187
11188  if test "x$lt_cv_dlopen" != xno; then
11189    enable_dlopen=yes
11190  else
11191    enable_dlopen=no
11192  fi
11193
11194  case $lt_cv_dlopen in
11195  dlopen)
11196    save_CPPFLAGS="$CPPFLAGS"
11197    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11198
11199    save_LDFLAGS="$LDFLAGS"
11200    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11201
11202    save_LIBS="$LIBS"
11203    LIBS="$lt_cv_dlopen_libs $LIBS"
11204
11205    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11206$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11207if test "${lt_cv_dlopen_self+set}" = set; then
11208  $as_echo_n "(cached) " >&6
11209else
11210  	  if test "$cross_compiling" = yes; then :
11211  lt_cv_dlopen_self=cross
11212else
11213  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11214  lt_status=$lt_dlunknown
11215  cat > conftest.$ac_ext <<_LT_EOF
11216#line 11216 "configure"
11217#include "confdefs.h"
11218
11219#if HAVE_DLFCN_H
11220#include <dlfcn.h>
11221#endif
11222
11223#include <stdio.h>
11224
11225#ifdef RTLD_GLOBAL
11226#  define LT_DLGLOBAL		RTLD_GLOBAL
11227#else
11228#  ifdef DL_GLOBAL
11229#    define LT_DLGLOBAL		DL_GLOBAL
11230#  else
11231#    define LT_DLGLOBAL		0
11232#  endif
11233#endif
11234
11235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11236   find out it does not work in some platform. */
11237#ifndef LT_DLLAZY_OR_NOW
11238#  ifdef RTLD_LAZY
11239#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11240#  else
11241#    ifdef DL_LAZY
11242#      define LT_DLLAZY_OR_NOW		DL_LAZY
11243#    else
11244#      ifdef RTLD_NOW
11245#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11246#      else
11247#        ifdef DL_NOW
11248#          define LT_DLLAZY_OR_NOW	DL_NOW
11249#        else
11250#          define LT_DLLAZY_OR_NOW	0
11251#        endif
11252#      endif
11253#    endif
11254#  endif
11255#endif
11256
11257void fnord() { int i=42;}
11258int main ()
11259{
11260  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261  int status = $lt_dlunknown;
11262
11263  if (self)
11264    {
11265      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11266      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11267      /* dlclose (self); */
11268    }
11269  else
11270    puts (dlerror ());
11271
11272  return status;
11273}
11274_LT_EOF
11275  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276  (eval $ac_link) 2>&5
11277  ac_status=$?
11278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11280    (./conftest; exit; ) >&5 2>/dev/null
11281    lt_status=$?
11282    case x$lt_status in
11283      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11284      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11285      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11286    esac
11287  else :
11288    # compilation failed
11289    lt_cv_dlopen_self=no
11290  fi
11291fi
11292rm -fr conftest*
11293
11294
11295fi
11296{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11297$as_echo "$lt_cv_dlopen_self" >&6; }
11298
11299    if test "x$lt_cv_dlopen_self" = xyes; then
11300      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11301      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11302$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11303if test "${lt_cv_dlopen_self_static+set}" = set; then
11304  $as_echo_n "(cached) " >&6
11305else
11306  	  if test "$cross_compiling" = yes; then :
11307  lt_cv_dlopen_self_static=cross
11308else
11309  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11310  lt_status=$lt_dlunknown
11311  cat > conftest.$ac_ext <<_LT_EOF
11312#line 11312 "configure"
11313#include "confdefs.h"
11314
11315#if HAVE_DLFCN_H
11316#include <dlfcn.h>
11317#endif
11318
11319#include <stdio.h>
11320
11321#ifdef RTLD_GLOBAL
11322#  define LT_DLGLOBAL		RTLD_GLOBAL
11323#else
11324#  ifdef DL_GLOBAL
11325#    define LT_DLGLOBAL		DL_GLOBAL
11326#  else
11327#    define LT_DLGLOBAL		0
11328#  endif
11329#endif
11330
11331/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11332   find out it does not work in some platform. */
11333#ifndef LT_DLLAZY_OR_NOW
11334#  ifdef RTLD_LAZY
11335#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11336#  else
11337#    ifdef DL_LAZY
11338#      define LT_DLLAZY_OR_NOW		DL_LAZY
11339#    else
11340#      ifdef RTLD_NOW
11341#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11342#      else
11343#        ifdef DL_NOW
11344#          define LT_DLLAZY_OR_NOW	DL_NOW
11345#        else
11346#          define LT_DLLAZY_OR_NOW	0
11347#        endif
11348#      endif
11349#    endif
11350#  endif
11351#endif
11352
11353void fnord() { int i=42;}
11354int main ()
11355{
11356  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11357  int status = $lt_dlunknown;
11358
11359  if (self)
11360    {
11361      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11362      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11363      /* dlclose (self); */
11364    }
11365  else
11366    puts (dlerror ());
11367
11368  return status;
11369}
11370_LT_EOF
11371  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372  (eval $ac_link) 2>&5
11373  ac_status=$?
11374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11376    (./conftest; exit; ) >&5 2>/dev/null
11377    lt_status=$?
11378    case x$lt_status in
11379      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11380      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11381      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11382    esac
11383  else :
11384    # compilation failed
11385    lt_cv_dlopen_self_static=no
11386  fi
11387fi
11388rm -fr conftest*
11389
11390
11391fi
11392{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11393$as_echo "$lt_cv_dlopen_self_static" >&6; }
11394    fi
11395
11396    CPPFLAGS="$save_CPPFLAGS"
11397    LDFLAGS="$save_LDFLAGS"
11398    LIBS="$save_LIBS"
11399    ;;
11400  esac
11401
11402  case $lt_cv_dlopen_self in
11403  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11404  *) enable_dlopen_self=unknown ;;
11405  esac
11406
11407  case $lt_cv_dlopen_self_static in
11408  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11409  *) enable_dlopen_self_static=unknown ;;
11410  esac
11411fi
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429striplib=
11430old_striplib=
11431{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11432$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11433if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11434  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11435  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11436  { $as_echo "$as_me:$LINENO: result: yes" >&5
11437$as_echo "yes" >&6; }
11438else
11439# FIXME - insert some real tests, host_os isn't really good enough
11440  case $host_os in
11441  darwin*)
11442    if test -n "$STRIP" ; then
11443      striplib="$STRIP -x"
11444      old_striplib="$STRIP -S"
11445      { $as_echo "$as_me:$LINENO: result: yes" >&5
11446$as_echo "yes" >&6; }
11447    else
11448      { $as_echo "$as_me:$LINENO: result: no" >&5
11449$as_echo "no" >&6; }
11450    fi
11451    ;;
11452  *)
11453    { $as_echo "$as_me:$LINENO: result: no" >&5
11454$as_echo "no" >&6; }
11455    ;;
11456  esac
11457fi
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470  # Report which library types will actually be built
11471  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11472$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11473  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11474$as_echo "$can_build_shared" >&6; }
11475
11476  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11477$as_echo_n "checking whether to build shared libraries... " >&6; }
11478  test "$can_build_shared" = "no" && enable_shared=no
11479
11480  # On AIX, shared libraries and static libraries use the same namespace, and
11481  # are all built from PIC.
11482  case $host_os in
11483  aix3*)
11484    test "$enable_shared" = yes && enable_static=no
11485    if test -n "$RANLIB"; then
11486      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11487      postinstall_cmds='$RANLIB $lib'
11488    fi
11489    ;;
11490
11491  aix[4-9]*)
11492    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11493      test "$enable_shared" = yes && enable_static=no
11494    fi
11495    ;;
11496  esac
11497  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11498$as_echo "$enable_shared" >&6; }
11499
11500  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11501$as_echo_n "checking whether to build static libraries... " >&6; }
11502  # Make sure either enable_shared or enable_static is yes.
11503  test "$enable_shared" = yes || enable_static=yes
11504  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11505$as_echo "$enable_static" >&6; }
11506
11507
11508
11509
11510fi
11511ac_ext=c
11512ac_cpp='$CPP $CPPFLAGS'
11513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515ac_compiler_gnu=$ac_cv_c_compiler_gnu
11516
11517CC="$lt_save_CC"
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531        ac_config_commands="$ac_config_commands libtool"
11532
11533
11534
11535
11536# Only expand once:
11537
11538
11539{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11540$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11541set x ${MAKE-make}
11542ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11543if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11544  $as_echo_n "(cached) " >&6
11545else
11546  cat >conftest.make <<\_ACEOF
11547SHELL = /bin/sh
11548all:
11549	@echo '@@@%%%=$(MAKE)=@@@%%%'
11550_ACEOF
11551# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11552case `${MAKE-make} -f conftest.make 2>/dev/null` in
11553  *@@@%%%=?*=@@@%%%*)
11554    eval ac_cv_prog_make_${ac_make}_set=yes;;
11555  *)
11556    eval ac_cv_prog_make_${ac_make}_set=no;;
11557esac
11558rm -f conftest.make
11559fi
11560if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11561  { $as_echo "$as_me:$LINENO: result: yes" >&5
11562$as_echo "yes" >&6; }
11563  SET_MAKE=
11564else
11565  { $as_echo "$as_me:$LINENO: result: no" >&5
11566$as_echo "no" >&6; }
11567  SET_MAKE="MAKE=${MAKE-make}"
11568fi
11569
11570
11571
11572if  test "x$GCC" = xyes ; then
11573    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11574-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11575-Wbad-function-cast"
11576    case `$CC -dumpversion` in
11577    3.4.* | 4.*)
11578	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11579	;;
11580    esac
11581else
11582    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11583$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11584if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11585  $as_echo_n "(cached) " >&6
11586else
11587  cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h.  */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h.  */
11593$ac_includes_default
11594int
11595main ()
11596{
11597#ifndef __SUNPRO_C
11598  (void) __SUNPRO_C;
11599#endif
11600
11601  ;
11602  return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (ac_try="$ac_compile"
11607case "(($ac_try" in
11608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609  *) ac_try_echo=$ac_try;;
11610esac
11611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612$as_echo "$ac_try_echo") >&5
11613  (eval "$ac_compile") 2>conftest.er1
11614  ac_status=$?
11615  grep -v '^ *+' conftest.er1 >conftest.err
11616  rm -f conftest.er1
11617  cat conftest.err >&5
11618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619  (exit $ac_status); } && {
11620	 test -z "$ac_c_werror_flag" ||
11621	 test ! -s conftest.err
11622       } && test -s conftest.$ac_objext; then
11623  ac_cv_have_decl___SUNPRO_C=yes
11624else
11625  $as_echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628	ac_cv_have_decl___SUNPRO_C=no
11629fi
11630
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632fi
11633{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11634$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11635if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11636  SUNCC="yes"
11637else
11638  SUNCC="no"
11639fi
11640
11641    if test "x$SUNCC" = "xyes"; then
11642	CWARNFLAGS="-v"
11643    fi
11644fi
11645
11646# Check whether --enable-silent-rules was given.
11647if test "${enable_silent_rules+set}" = set; then
11648  enableval=$enable_silent_rules;
11649fi
11650
11651case $enable_silent_rules in
11652yes) AM_DEFAULT_VERBOSITY=0;;
11653no)  AM_DEFAULT_VERBOSITY=1;;
11654*)   AM_DEFAULT_VERBOSITY=0;;
11655esac
11656AM_BACKSLASH='\'
11657
11658
11659
11660
11661
11662if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11663	if test -n "$ac_tool_prefix"; then
11664  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11665set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
11668if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11669  $as_echo_n "(cached) " >&6
11670else
11671  case $PKG_CONFIG in
11672  [\\/]* | ?:[\\/]*)
11673  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11674  ;;
11675  *)
11676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677for as_dir in $PATH
11678do
11679  IFS=$as_save_IFS
11680  test -z "$as_dir" && as_dir=.
11681  for ac_exec_ext in '' $ac_executable_extensions; do
11682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11683    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11684    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11685    break 2
11686  fi
11687done
11688done
11689IFS=$as_save_IFS
11690
11691  ;;
11692esac
11693fi
11694PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11695if test -n "$PKG_CONFIG"; then
11696  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11697$as_echo "$PKG_CONFIG" >&6; }
11698else
11699  { $as_echo "$as_me:$LINENO: result: no" >&5
11700$as_echo "no" >&6; }
11701fi
11702
11703
11704fi
11705if test -z "$ac_cv_path_PKG_CONFIG"; then
11706  ac_pt_PKG_CONFIG=$PKG_CONFIG
11707  # Extract the first word of "pkg-config", so it can be a program name with args.
11708set dummy pkg-config; ac_word=$2
11709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
11711if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11712  $as_echo_n "(cached) " >&6
11713else
11714  case $ac_pt_PKG_CONFIG in
11715  [\\/]* | ?:[\\/]*)
11716  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11717  ;;
11718  *)
11719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722  IFS=$as_save_IFS
11723  test -z "$as_dir" && as_dir=.
11724  for ac_exec_ext in '' $ac_executable_extensions; do
11725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11727    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728    break 2
11729  fi
11730done
11731done
11732IFS=$as_save_IFS
11733
11734  ;;
11735esac
11736fi
11737ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11738if test -n "$ac_pt_PKG_CONFIG"; then
11739  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11740$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11741else
11742  { $as_echo "$as_me:$LINENO: result: no" >&5
11743$as_echo "no" >&6; }
11744fi
11745
11746  if test "x$ac_pt_PKG_CONFIG" = x; then
11747    PKG_CONFIG=""
11748  else
11749    case $cross_compiling:$ac_tool_warned in
11750yes:)
11751{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11753ac_tool_warned=yes ;;
11754esac
11755    PKG_CONFIG=$ac_pt_PKG_CONFIG
11756  fi
11757else
11758  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11759fi
11760
11761fi
11762if test -n "$PKG_CONFIG"; then
11763	_pkg_min_version=0.9.0
11764	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11765$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11766	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11767		{ $as_echo "$as_me:$LINENO: result: yes" >&5
11768$as_echo "yes" >&6; }
11769	else
11770		{ $as_echo "$as_me:$LINENO: result: no" >&5
11771$as_echo "no" >&6; }
11772		PKG_CONFIG=""
11773	fi
11774
11775fi
11776
11777pkg_failed=no
11778{ $as_echo "$as_me:$LINENO: checking for XAU" >&5
11779$as_echo_n "checking for XAU... " >&6; }
11780
11781if test -n "$XAU_CFLAGS"; then
11782    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
11783 elif test -n "$PKG_CONFIG"; then
11784    if test -n "$PKG_CONFIG" && \
11785    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
11786  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11787  ac_status=$?
11788  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789  (exit $ac_status); }; then
11790  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
11791else
11792  pkg_failed=yes
11793fi
11794 else
11795    pkg_failed=untried
11796fi
11797if test -n "$XAU_LIBS"; then
11798    pkg_cv_XAU_LIBS="$XAU_LIBS"
11799 elif test -n "$PKG_CONFIG"; then
11800    if test -n "$PKG_CONFIG" && \
11801    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
11802  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11803  ac_status=$?
11804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805  (exit $ac_status); }; then
11806  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
11807else
11808  pkg_failed=yes
11809fi
11810 else
11811    pkg_failed=untried
11812fi
11813
11814
11815
11816if test $pkg_failed = yes; then
11817
11818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11819        _pkg_short_errors_supported=yes
11820else
11821        _pkg_short_errors_supported=no
11822fi
11823        if test $_pkg_short_errors_supported = yes; then
11824	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
11825        else
11826	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
11827        fi
11828	# Put the nasty error message in config.log where it belongs
11829	echo "$XAU_PKG_ERRORS" >&5
11830
11831	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xproto) were not met:
11832
11833$XAU_PKG_ERRORS
11834
11835Consider adjusting the PKG_CONFIG_PATH environment variable if you
11836installed software in a non-standard prefix.
11837
11838Alternatively, you may set the environment variables XAU_CFLAGS
11839and XAU_LIBS to avoid the need to call pkg-config.
11840See the pkg-config man page for more details.
11841" >&5
11842$as_echo "$as_me: error: Package requirements (xproto) were not met:
11843
11844$XAU_PKG_ERRORS
11845
11846Consider adjusting the PKG_CONFIG_PATH environment variable if you
11847installed software in a non-standard prefix.
11848
11849Alternatively, you may set the environment variables XAU_CFLAGS
11850and XAU_LIBS to avoid the need to call pkg-config.
11851See the pkg-config man page for more details.
11852" >&2;}
11853   { (exit 1); exit 1; }; }
11854elif test $pkg_failed = untried; then
11855	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11857{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11858is in your PATH or set the PKG_CONFIG environment variable to the full
11859path to pkg-config.
11860
11861Alternatively, you may set the environment variables XAU_CFLAGS
11862and XAU_LIBS to avoid the need to call pkg-config.
11863See the pkg-config man page for more details.
11864
11865To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11866See \`config.log' for more details." >&5
11867$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11868is in your PATH or set the PKG_CONFIG environment variable to the full
11869path to pkg-config.
11870
11871Alternatively, you may set the environment variables XAU_CFLAGS
11872and XAU_LIBS to avoid the need to call pkg-config.
11873See the pkg-config man page for more details.
11874
11875To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11876See \`config.log' for more details." >&2;}
11877   { (exit 1); exit 1; }; }; }
11878else
11879	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
11880	XAU_LIBS=$pkg_cv_XAU_LIBS
11881        { $as_echo "$as_me:$LINENO: result: yes" >&5
11882$as_echo "yes" >&6; }
11883	:
11884fi
11885XAU_CFLAGS="$CWARNFLAGS $XAU_CFLAGS"
11886
11887
11888
11889# Check whether --enable-xthreads was given.
11890if test "${enable_xthreads+set}" = set; then
11891  enableval=$enable_xthreads; xthreads=$enableval
11892else
11893  xthreads=yes
11894fi
11895
11896
11897if test "x$xthreads" = "xyes" ; then
11898
11899cat >>confdefs.h <<\_ACEOF
11900#define XTHREADS 1
11901_ACEOF
11902
11903    { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lc" >&5
11904$as_echo_n "checking for gethostbyname_r in -lc... " >&6; }
11905if test "${ac_cv_lib_c_gethostbyname_r+set}" = set; then
11906  $as_echo_n "(cached) " >&6
11907else
11908  ac_check_lib_save_LIBS=$LIBS
11909LIBS="-lc  $LIBS"
11910cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h.  */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h.  */
11916
11917/* Override any GCC internal prototype to avoid an error.
11918   Use char because int might match the return type of a GCC
11919   builtin and then its argument prototype would still apply.  */
11920#ifdef __cplusplus
11921extern "C"
11922#endif
11923char gethostbyname_r ();
11924int
11925main ()
11926{
11927return gethostbyname_r ();
11928  ;
11929  return 0;
11930}
11931_ACEOF
11932rm -f conftest.$ac_objext conftest$ac_exeext
11933if { (ac_try="$ac_link"
11934case "(($ac_try" in
11935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936  *) ac_try_echo=$ac_try;;
11937esac
11938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11939$as_echo "$ac_try_echo") >&5
11940  (eval "$ac_link") 2>conftest.er1
11941  ac_status=$?
11942  grep -v '^ *+' conftest.er1 >conftest.err
11943  rm -f conftest.er1
11944  cat conftest.err >&5
11945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946  (exit $ac_status); } && {
11947	 test -z "$ac_c_werror_flag" ||
11948	 test ! -s conftest.err
11949       } && test -s conftest$ac_exeext && {
11950	 test "$cross_compiling" = yes ||
11951	 $as_test_x conftest$ac_exeext
11952       }; then
11953  ac_cv_lib_c_gethostbyname_r=yes
11954else
11955  $as_echo "$as_me: failed program was:" >&5
11956sed 's/^/| /' conftest.$ac_ext >&5
11957
11958	ac_cv_lib_c_gethostbyname_r=no
11959fi
11960
11961rm -rf conftest.dSYM
11962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11963      conftest$ac_exeext conftest.$ac_ext
11964LIBS=$ac_check_lib_save_LIBS
11965fi
11966{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gethostbyname_r" >&5
11967$as_echo "$ac_cv_lib_c_gethostbyname_r" >&6; }
11968if test "x$ac_cv_lib_c_gethostbyname_r" = x""yes; then
11969  mtsafe=yes
11970fi
11971
11972    if test "x$mtsafe" = "x" ; then
11973	{ $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
11974$as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
11975if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
11976  $as_echo_n "(cached) " >&6
11977else
11978  ac_check_lib_save_LIBS=$LIBS
11979LIBS="-lnsl  $LIBS"
11980cat >conftest.$ac_ext <<_ACEOF
11981/* confdefs.h.  */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h.  */
11986
11987/* Override any GCC internal prototype to avoid an error.
11988   Use char because int might match the return type of a GCC
11989   builtin and then its argument prototype would still apply.  */
11990#ifdef __cplusplus
11991extern "C"
11992#endif
11993char gethostbyname_r ();
11994int
11995main ()
11996{
11997return gethostbyname_r ();
11998  ;
11999  return 0;
12000}
12001_ACEOF
12002rm -f conftest.$ac_objext conftest$ac_exeext
12003if { (ac_try="$ac_link"
12004case "(($ac_try" in
12005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006  *) ac_try_echo=$ac_try;;
12007esac
12008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009$as_echo "$ac_try_echo") >&5
12010  (eval "$ac_link") 2>conftest.er1
12011  ac_status=$?
12012  grep -v '^ *+' conftest.er1 >conftest.err
12013  rm -f conftest.er1
12014  cat conftest.err >&5
12015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016  (exit $ac_status); } && {
12017	 test -z "$ac_c_werror_flag" ||
12018	 test ! -s conftest.err
12019       } && test -s conftest$ac_exeext && {
12020	 test "$cross_compiling" = yes ||
12021	 $as_test_x conftest$ac_exeext
12022       }; then
12023  ac_cv_lib_nsl_gethostbyname_r=yes
12024else
12025  $as_echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028	ac_cv_lib_nsl_gethostbyname_r=no
12029fi
12030
12031rm -rf conftest.dSYM
12032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12033      conftest$ac_exeext conftest.$ac_ext
12034LIBS=$ac_check_lib_save_LIBS
12035fi
12036{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
12037$as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
12038if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
12039  mtsafe=yes
12040fi
12041
12042    fi
12043    if test "x$mtsafe" = "xyes" ; then
12044
12045cat >>confdefs.h <<\_ACEOF
12046#define XUSE_MTSAFE_API 1
12047_ACEOF
12048
12049    fi
12050
12051    case $host_os in
12052    solaris*)
12053	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
12054    esac
12055    XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
12056fi
12057
12058
12059
12060# Allow checking code with lint, sparse, etc.
12061
12062# Check whether --with-lint was given.
12063if test "${with_lint+set}" = set; then
12064  withval=$with_lint; use_lint=$withval
12065else
12066  use_lint=no
12067fi
12068
12069if test "x$use_lint" = "xyes" ; then
12070	LINT="lint"
12071else
12072	LINT="$use_lint"
12073fi
12074if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
12075    case $LINT in
12076	lint|*/lint)
12077	    case $host_os in
12078		solaris*)
12079			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12080			;;
12081	    esac
12082	    ;;
12083    esac
12084fi
12085
12086
12087
12088 if test x$LINT != xno; then
12089  LINT_TRUE=
12090  LINT_FALSE='#'
12091else
12092  LINT_TRUE='#'
12093  LINT_FALSE=
12094fi
12095
12096
12097
12098
12099
12100# Build lint "library" for more indepth checks of programs calling this library
12101# Check whether --enable-lint-library was given.
12102if test "${enable_lint_library+set}" = set; then
12103  enableval=$enable_lint_library; make_lint_lib=$enableval
12104else
12105  make_lint_lib=no
12106fi
12107
12108if test "x$make_lint_lib" != "xno" ; then
12109	if test "x$LINT" = "xno" ; then
12110		{ { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
12111$as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
12112   { (exit 1); exit 1; }; }
12113	fi
12114	if test "x$make_lint_lib" = "xyes" ; then
12115		LINTLIB=llib-lXau.ln
12116	else
12117		LINTLIB=$make_lint_lib
12118	fi
12119fi
12120
12121 if test x$make_lint_lib != xno; then
12122  MAKE_LINT_LIB_TRUE=
12123  MAKE_LINT_LIB_FALSE='#'
12124else
12125  MAKE_LINT_LIB_TRUE='#'
12126  MAKE_LINT_LIB_FALSE=
12127fi
12128
12129
12130
12131LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
12132
12133
12134
12135
12136if test x$APP_MAN_SUFFIX = x    ; then
12137    APP_MAN_SUFFIX=1
12138fi
12139if test x$APP_MAN_DIR = x    ; then
12140    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12141fi
12142
12143if test x$LIB_MAN_SUFFIX = x    ; then
12144    LIB_MAN_SUFFIX=3
12145fi
12146if test x$LIB_MAN_DIR = x    ; then
12147    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12148fi
12149
12150if test x$FILE_MAN_SUFFIX = x    ; then
12151    case $host_os in
12152	solaris*)	FILE_MAN_SUFFIX=4  ;;
12153	*)		FILE_MAN_SUFFIX=5  ;;
12154    esac
12155fi
12156if test x$FILE_MAN_DIR = x    ; then
12157    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12158fi
12159
12160if test x$MISC_MAN_SUFFIX = x    ; then
12161    case $host_os in
12162	solaris*)	MISC_MAN_SUFFIX=5  ;;
12163	*)		MISC_MAN_SUFFIX=7  ;;
12164    esac
12165fi
12166if test x$MISC_MAN_DIR = x    ; then
12167    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12168fi
12169
12170if test x$DRIVER_MAN_SUFFIX = x    ; then
12171    case $host_os in
12172	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
12173	*)		DRIVER_MAN_SUFFIX=4  ;;
12174    esac
12175fi
12176if test x$DRIVER_MAN_DIR = x    ; then
12177    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12178fi
12179
12180if test x$ADMIN_MAN_SUFFIX = x    ; then
12181    case $host_os in
12182	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
12183	*)		ADMIN_MAN_SUFFIX=8  ;;
12184    esac
12185fi
12186if test x$ADMIN_MAN_DIR = x    ; then
12187    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12188fi
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206# Check whether --with-release-version was given.
12207if test "${with_release_version+set}" = set; then
12208  withval=$with_release_version; RELEASE_VERSION="$withval"
12209else
12210  RELEASE_VERSION=""
12211fi
12212
12213	if test "x$RELEASE_VERSION" != "x"; then
12214		PACKAGE="$PACKAGE-$RELEASE_VERSION"
12215		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
12216		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
12217$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
12218	fi
12219
12220cat >>confdefs.h <<_ACEOF
12221#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12222_ACEOF
12223
12224	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12225	if test "x$PVM" = "x"; then
12226		PVM="0"
12227	fi
12228
12229cat >>confdefs.h <<_ACEOF
12230#define PACKAGE_VERSION_MINOR $PVM
12231_ACEOF
12232
12233	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12234	if test "x$PVP" = "x"; then
12235		PVP="0"
12236	fi
12237
12238cat >>confdefs.h <<_ACEOF
12239#define PACKAGE_VERSION_PATCHLEVEL $PVP
12240_ACEOF
12241
12242
12243
12244CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
12245mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
12246echo 'git directory not found: installing possibly empty changelog.' >&2)"
12247
12248distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
12249
12250
12251
12252ac_config_files="$ac_config_files Makefile xau.pc"
12253
12254cat >confcache <<\_ACEOF
12255# This file is a shell script that caches the results of configure
12256# tests run on this system so they can be shared between configure
12257# scripts and configure runs, see configure's option --config-cache.
12258# It is not useful on other systems.  If it contains results you don't
12259# want to keep, you may remove or edit it.
12260#
12261# config.status only pays attention to the cache file if you give it
12262# the --recheck option to rerun configure.
12263#
12264# `ac_cv_env_foo' variables (set or unset) will be overridden when
12265# loading this file, other *unset* `ac_cv_foo' will be assigned the
12266# following values.
12267
12268_ACEOF
12269
12270# The following way of writing the cache mishandles newlines in values,
12271# but we know of no workaround that is simple, portable, and efficient.
12272# So, we kill variables containing newlines.
12273# Ultrix sh set writes to stderr and can't be redirected directly,
12274# and sets the high bit in the cache file unless we assign to the vars.
12275(
12276  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12277    eval ac_val=\$$ac_var
12278    case $ac_val in #(
12279    *${as_nl}*)
12280      case $ac_var in #(
12281      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12282$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12283      esac
12284      case $ac_var in #(
12285      _ | IFS | as_nl) ;; #(
12286      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12287      *) $as_unset $ac_var ;;
12288      esac ;;
12289    esac
12290  done
12291
12292  (set) 2>&1 |
12293    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12294    *${as_nl}ac_space=\ *)
12295      # `set' does not quote correctly, so add quotes (double-quote
12296      # substitution turns \\\\ into \\, and sed turns \\ into \).
12297      sed -n \
12298	"s/'/'\\\\''/g;
12299	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12300      ;; #(
12301    *)
12302      # `set' quotes correctly as required by POSIX, so do not add quotes.
12303      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12304      ;;
12305    esac |
12306    sort
12307) |
12308  sed '
12309     /^ac_cv_env_/b end
12310     t clear
12311     :clear
12312     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12313     t end
12314     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12315     :end' >>confcache
12316if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12317  if test -w "$cache_file"; then
12318    test "x$cache_file" != "x/dev/null" &&
12319      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12320$as_echo "$as_me: updating cache $cache_file" >&6;}
12321    cat confcache >$cache_file
12322  else
12323    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12324$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12325  fi
12326fi
12327rm -f confcache
12328
12329test "x$prefix" = xNONE && prefix=$ac_default_prefix
12330# Let make expand exec_prefix.
12331test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12332
12333DEFS=-DHAVE_CONFIG_H
12334
12335ac_libobjs=
12336ac_ltlibobjs=
12337for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12338  # 1. Remove the extension, and $U if already installed.
12339  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12340  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12341  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12342  #    will be set to the directory where LIBOBJS objects are built.
12343  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12344  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12345done
12346LIBOBJS=$ac_libobjs
12347
12348LTLIBOBJS=$ac_ltlibobjs
12349
12350
12351 if test -n "$EXEEXT"; then
12352  am__EXEEXT_TRUE=
12353  am__EXEEXT_FALSE='#'
12354else
12355  am__EXEEXT_TRUE='#'
12356  am__EXEEXT_FALSE=
12357fi
12358
12359if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12360  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12361Usually this means the macro was only invoked conditionally." >&5
12362$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12363Usually this means the macro was only invoked conditionally." >&2;}
12364   { (exit 1); exit 1; }; }
12365fi
12366if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12367  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12368Usually this means the macro was only invoked conditionally." >&5
12369$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12370Usually this means the macro was only invoked conditionally." >&2;}
12371   { (exit 1); exit 1; }; }
12372fi
12373if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12374  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12375Usually this means the macro was only invoked conditionally." >&5
12376$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12377Usually this means the macro was only invoked conditionally." >&2;}
12378   { (exit 1); exit 1; }; }
12379fi
12380if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12381  { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
12382Usually this means the macro was only invoked conditionally." >&5
12383$as_echo "$as_me: error: conditional \"LINT\" was never defined.
12384Usually this means the macro was only invoked conditionally." >&2;}
12385   { (exit 1); exit 1; }; }
12386fi
12387if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
12388  { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
12389Usually this means the macro was only invoked conditionally." >&5
12390$as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
12391Usually this means the macro was only invoked conditionally." >&2;}
12392   { (exit 1); exit 1; }; }
12393fi
12394
12395: ${CONFIG_STATUS=./config.status}
12396ac_write_fail=0
12397ac_clean_files_save=$ac_clean_files
12398ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12399{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12400$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12401cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12402#! $SHELL
12403# Generated by $as_me.
12404# Run this file to recreate the current configuration.
12405# Compiler output produced by configure, useful for debugging
12406# configure, is in config.log if it exists.
12407
12408debug=false
12409ac_cs_recheck=false
12410ac_cs_silent=false
12411SHELL=\${CONFIG_SHELL-$SHELL}
12412_ACEOF
12413
12414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12415## --------------------- ##
12416## M4sh Initialization.  ##
12417## --------------------- ##
12418
12419# Be more Bourne compatible
12420DUALCASE=1; export DUALCASE # for MKS sh
12421if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12422  emulate sh
12423  NULLCMD=:
12424  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12425  # is contrary to our usage.  Disable this feature.
12426  alias -g '${1+"$@"}'='"$@"'
12427  setopt NO_GLOB_SUBST
12428else
12429  case `(set -o) 2>/dev/null` in
12430  *posix*) set -o posix ;;
12431esac
12432
12433fi
12434
12435
12436
12437
12438# PATH needs CR
12439# Avoid depending upon Character Ranges.
12440as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12442as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12443as_cr_digits='0123456789'
12444as_cr_alnum=$as_cr_Letters$as_cr_digits
12445
12446as_nl='
12447'
12448export as_nl
12449# Printing a long string crashes Solaris 7 /usr/bin/printf.
12450as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12451as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12453if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12454  as_echo='printf %s\n'
12455  as_echo_n='printf %s'
12456else
12457  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12458    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12459    as_echo_n='/usr/ucb/echo -n'
12460  else
12461    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12462    as_echo_n_body='eval
12463      arg=$1;
12464      case $arg in
12465      *"$as_nl"*)
12466	expr "X$arg" : "X\\(.*\\)$as_nl";
12467	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12468      esac;
12469      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12470    '
12471    export as_echo_n_body
12472    as_echo_n='sh -c $as_echo_n_body as_echo'
12473  fi
12474  export as_echo_body
12475  as_echo='sh -c $as_echo_body as_echo'
12476fi
12477
12478# The user is always right.
12479if test "${PATH_SEPARATOR+set}" != set; then
12480  PATH_SEPARATOR=:
12481  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12482    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12483      PATH_SEPARATOR=';'
12484  }
12485fi
12486
12487# Support unset when possible.
12488if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12489  as_unset=unset
12490else
12491  as_unset=false
12492fi
12493
12494
12495# IFS
12496# We need space, tab and new line, in precisely that order.  Quoting is
12497# there to prevent editors from complaining about space-tab.
12498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12499# splitting by setting IFS to empty value.)
12500IFS=" ""	$as_nl"
12501
12502# Find who we are.  Look in the path if we contain no directory separator.
12503case $0 in
12504  *[\\/]* ) as_myself=$0 ;;
12505  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508  IFS=$as_save_IFS
12509  test -z "$as_dir" && as_dir=.
12510  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12511done
12512IFS=$as_save_IFS
12513
12514     ;;
12515esac
12516# We did not find ourselves, most probably we were run as `sh COMMAND'
12517# in which case we are not to be found in the path.
12518if test "x$as_myself" = x; then
12519  as_myself=$0
12520fi
12521if test ! -f "$as_myself"; then
12522  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12523  { (exit 1); exit 1; }
12524fi
12525
12526# Work around bugs in pre-3.0 UWIN ksh.
12527for as_var in ENV MAIL MAILPATH
12528do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12529done
12530PS1='$ '
12531PS2='> '
12532PS4='+ '
12533
12534# NLS nuisances.
12535LC_ALL=C
12536export LC_ALL
12537LANGUAGE=C
12538export LANGUAGE
12539
12540# Required to use basename.
12541if expr a : '\(a\)' >/dev/null 2>&1 &&
12542   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12543  as_expr=expr
12544else
12545  as_expr=false
12546fi
12547
12548if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12549  as_basename=basename
12550else
12551  as_basename=false
12552fi
12553
12554
12555# Name of the executable.
12556as_me=`$as_basename -- "$0" ||
12557$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12558	 X"$0" : 'X\(//\)$' \| \
12559	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12560$as_echo X/"$0" |
12561    sed '/^.*\/\([^/][^/]*\)\/*$/{
12562	    s//\1/
12563	    q
12564	  }
12565	  /^X\/\(\/\/\)$/{
12566	    s//\1/
12567	    q
12568	  }
12569	  /^X\/\(\/\).*/{
12570	    s//\1/
12571	    q
12572	  }
12573	  s/.*/./; q'`
12574
12575# CDPATH.
12576$as_unset CDPATH
12577
12578
12579
12580  as_lineno_1=$LINENO
12581  as_lineno_2=$LINENO
12582  test "x$as_lineno_1" != "x$as_lineno_2" &&
12583  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12584
12585  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12586  # uniformly replaced by the line number.  The first 'sed' inserts a
12587  # line-number line after each line using $LINENO; the second 'sed'
12588  # does the real work.  The second script uses 'N' to pair each
12589  # line-number line with the line containing $LINENO, and appends
12590  # trailing '-' during substitution so that $LINENO is not a special
12591  # case at line end.
12592  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12593  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12594  # E. McMahon (1931-1989) for sed's syntax.  :-)
12595  sed -n '
12596    p
12597    /[$]LINENO/=
12598  ' <$as_myself |
12599    sed '
12600      s/[$]LINENO.*/&-/
12601      t lineno
12602      b
12603      :lineno
12604      N
12605      :loop
12606      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12607      t loop
12608      s/-\n.*//
12609    ' >$as_me.lineno &&
12610  chmod +x "$as_me.lineno" ||
12611    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12612   { (exit 1); exit 1; }; }
12613
12614  # Don't try to exec as it changes $[0], causing all sort of problems
12615  # (the dirname of $[0] is not the place where we might find the
12616  # original and so on.  Autoconf is especially sensitive to this).
12617  . "./$as_me.lineno"
12618  # Exit status is that of the last command.
12619  exit
12620}
12621
12622
12623if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12624  as_dirname=dirname
12625else
12626  as_dirname=false
12627fi
12628
12629ECHO_C= ECHO_N= ECHO_T=
12630case `echo -n x` in
12631-n*)
12632  case `echo 'x\c'` in
12633  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12634  *)   ECHO_C='\c';;
12635  esac;;
12636*)
12637  ECHO_N='-n';;
12638esac
12639if expr a : '\(a\)' >/dev/null 2>&1 &&
12640   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12641  as_expr=expr
12642else
12643  as_expr=false
12644fi
12645
12646rm -f conf$$ conf$$.exe conf$$.file
12647if test -d conf$$.dir; then
12648  rm -f conf$$.dir/conf$$.file
12649else
12650  rm -f conf$$.dir
12651  mkdir conf$$.dir 2>/dev/null
12652fi
12653if (echo >conf$$.file) 2>/dev/null; then
12654  if ln -s conf$$.file conf$$ 2>/dev/null; then
12655    as_ln_s='ln -s'
12656    # ... but there are two gotchas:
12657    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12658    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12659    # In both cases, we have to default to `cp -p'.
12660    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12661      as_ln_s='cp -p'
12662  elif ln conf$$.file conf$$ 2>/dev/null; then
12663    as_ln_s=ln
12664  else
12665    as_ln_s='cp -p'
12666  fi
12667else
12668  as_ln_s='cp -p'
12669fi
12670rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12671rmdir conf$$.dir 2>/dev/null
12672
12673if mkdir -p . 2>/dev/null; then
12674  as_mkdir_p=:
12675else
12676  test -d ./-p && rmdir ./-p
12677  as_mkdir_p=false
12678fi
12679
12680if test -x / >/dev/null 2>&1; then
12681  as_test_x='test -x'
12682else
12683  if ls -dL / >/dev/null 2>&1; then
12684    as_ls_L_option=L
12685  else
12686    as_ls_L_option=
12687  fi
12688  as_test_x='
12689    eval sh -c '\''
12690      if test -d "$1"; then
12691	test -d "$1/.";
12692      else
12693	case $1 in
12694	-*)set "./$1";;
12695	esac;
12696	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12697	???[sx]*):;;*)false;;esac;fi
12698    '\'' sh
12699  '
12700fi
12701as_executable_p=$as_test_x
12702
12703# Sed expression to map a string onto a valid CPP name.
12704as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12705
12706# Sed expression to map a string onto a valid variable name.
12707as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12708
12709
12710exec 6>&1
12711
12712# Save the log message, to keep $[0] and so on meaningful, and to
12713# report actual input values of CONFIG_FILES etc. instead of their
12714# values after options handling.
12715ac_log="
12716This file was extended by libXau $as_me 1.0.5, which was
12717generated by GNU Autoconf 2.63.  Invocation command line was
12718
12719  CONFIG_FILES    = $CONFIG_FILES
12720  CONFIG_HEADERS  = $CONFIG_HEADERS
12721  CONFIG_LINKS    = $CONFIG_LINKS
12722  CONFIG_COMMANDS = $CONFIG_COMMANDS
12723  $ $0 $@
12724
12725on `(hostname || uname -n) 2>/dev/null | sed 1q`
12726"
12727
12728_ACEOF
12729
12730case $ac_config_files in *"
12731"*) set x $ac_config_files; shift; ac_config_files=$*;;
12732esac
12733
12734case $ac_config_headers in *"
12735"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12736esac
12737
12738
12739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12740# Files that config.status was made for.
12741config_files="$ac_config_files"
12742config_headers="$ac_config_headers"
12743config_commands="$ac_config_commands"
12744
12745_ACEOF
12746
12747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12748ac_cs_usage="\
12749\`$as_me' instantiates files from templates according to the
12750current configuration.
12751
12752Usage: $0 [OPTION]... [FILE]...
12753
12754  -h, --help       print this help, then exit
12755  -V, --version    print version number and configuration settings, then exit
12756  -q, --quiet, --silent
12757                   do not print progress messages
12758  -d, --debug      don't remove temporary files
12759      --recheck    update $as_me by reconfiguring in the same conditions
12760      --file=FILE[:TEMPLATE]
12761                   instantiate the configuration file FILE
12762      --header=FILE[:TEMPLATE]
12763                   instantiate the configuration header FILE
12764
12765Configuration files:
12766$config_files
12767
12768Configuration headers:
12769$config_headers
12770
12771Configuration commands:
12772$config_commands
12773
12774Report bugs to <bug-autoconf@gnu.org>."
12775
12776_ACEOF
12777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12778ac_cs_version="\\
12779libXau config.status 1.0.5
12780configured by $0, generated by GNU Autoconf 2.63,
12781  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12782
12783Copyright (C) 2008 Free Software Foundation, Inc.
12784This config.status script is free software; the Free Software Foundation
12785gives unlimited permission to copy, distribute and modify it."
12786
12787ac_pwd='$ac_pwd'
12788srcdir='$srcdir'
12789INSTALL='$INSTALL'
12790MKDIR_P='$MKDIR_P'
12791AWK='$AWK'
12792test -n "\$AWK" || AWK=awk
12793_ACEOF
12794
12795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12796# The default lists apply if the user does not specify any file.
12797ac_need_defaults=:
12798while test $# != 0
12799do
12800  case $1 in
12801  --*=*)
12802    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12803    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12804    ac_shift=:
12805    ;;
12806  *)
12807    ac_option=$1
12808    ac_optarg=$2
12809    ac_shift=shift
12810    ;;
12811  esac
12812
12813  case $ac_option in
12814  # Handling of the options.
12815  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12816    ac_cs_recheck=: ;;
12817  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12818    $as_echo "$ac_cs_version"; exit ;;
12819  --debug | --debu | --deb | --de | --d | -d )
12820    debug=: ;;
12821  --file | --fil | --fi | --f )
12822    $ac_shift
12823    case $ac_optarg in
12824    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12825    esac
12826    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12827    ac_need_defaults=false;;
12828  --header | --heade | --head | --hea )
12829    $ac_shift
12830    case $ac_optarg in
12831    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12832    esac
12833    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12834    ac_need_defaults=false;;
12835  --he | --h)
12836    # Conflict between --help and --header
12837    { $as_echo "$as_me: error: ambiguous option: $1
12838Try \`$0 --help' for more information." >&2
12839   { (exit 1); exit 1; }; };;
12840  --help | --hel | -h )
12841    $as_echo "$ac_cs_usage"; exit ;;
12842  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12843  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12844    ac_cs_silent=: ;;
12845
12846  # This is an error.
12847  -*) { $as_echo "$as_me: error: unrecognized option: $1
12848Try \`$0 --help' for more information." >&2
12849   { (exit 1); exit 1; }; } ;;
12850
12851  *) ac_config_targets="$ac_config_targets $1"
12852     ac_need_defaults=false ;;
12853
12854  esac
12855  shift
12856done
12857
12858ac_configure_extra_args=
12859
12860if $ac_cs_silent; then
12861  exec 6>/dev/null
12862  ac_configure_extra_args="$ac_configure_extra_args --silent"
12863fi
12864
12865_ACEOF
12866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12867if \$ac_cs_recheck; then
12868  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12869  shift
12870  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12871  CONFIG_SHELL='$SHELL'
12872  export CONFIG_SHELL
12873  exec "\$@"
12874fi
12875
12876_ACEOF
12877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12878exec 5>>config.log
12879{
12880  echo
12881  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12882## Running $as_me. ##
12883_ASBOX
12884  $as_echo "$ac_log"
12885} >&5
12886
12887_ACEOF
12888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12889#
12890# INIT-COMMANDS
12891#
12892AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12893
12894
12895# The HP-UX ksh and POSIX shell print the target directory to stdout
12896# if CDPATH is set.
12897(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12898
12899sed_quote_subst='$sed_quote_subst'
12900double_quote_subst='$double_quote_subst'
12901delay_variable_subst='$delay_variable_subst'
12902AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12903DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12904OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12905macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12906macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12907enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12908enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12909pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12910enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12911host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12912host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12913host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12914build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12915build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12916build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12917SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12918Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12919GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12920EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12921FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12922LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12923NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12924LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12925max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12926ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12927exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12928lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12929lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12930lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12931reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12932reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12933deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12934file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12935AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12936AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12937STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12938RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12939old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12940old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12941old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12942CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12943CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12944compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12945GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12946lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12947lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12948lt_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"`'
12949lt_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"`'
12950objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12951SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12952ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12953MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12954lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12955lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12956lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12957lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12958lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12959need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12960DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12961NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12962LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12963OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12964OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12965libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12966shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12967extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12969enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12970export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12971whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12972compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12973old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12974old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12975archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12976archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12977module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12978module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12979with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12980allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12981no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12982hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12983hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12984hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12985hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12986hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12987hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12988hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12989hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12990inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12991link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12992fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12993always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12994export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12995exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12996include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12997prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12998file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12999variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13000need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13001need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13002version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13003runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13004shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13005shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13006libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13007library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13008soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13009postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13010postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13011finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13012finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13013hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13014sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13015sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13016hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13017enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13018enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13019enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13020old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13021striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13022
13023LTCC='$LTCC'
13024LTCFLAGS='$LTCFLAGS'
13025compiler='$compiler_DEFAULT'
13026
13027# Quote evaled strings.
13028for var in SED \
13029GREP \
13030EGREP \
13031FGREP \
13032LD \
13033NM \
13034LN_S \
13035lt_SP2NL \
13036lt_NL2SP \
13037reload_flag \
13038deplibs_check_method \
13039file_magic_cmd \
13040AR \
13041AR_FLAGS \
13042STRIP \
13043RANLIB \
13044CC \
13045CFLAGS \
13046compiler \
13047lt_cv_sys_global_symbol_pipe \
13048lt_cv_sys_global_symbol_to_cdecl \
13049lt_cv_sys_global_symbol_to_c_name_address \
13050lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13051SHELL \
13052ECHO \
13053lt_prog_compiler_no_builtin_flag \
13054lt_prog_compiler_wl \
13055lt_prog_compiler_pic \
13056lt_prog_compiler_static \
13057lt_cv_prog_compiler_c_o \
13058need_locks \
13059DSYMUTIL \
13060NMEDIT \
13061LIPO \
13062OTOOL \
13063OTOOL64 \
13064shrext_cmds \
13065export_dynamic_flag_spec \
13066whole_archive_flag_spec \
13067compiler_needs_object \
13068with_gnu_ld \
13069allow_undefined_flag \
13070no_undefined_flag \
13071hardcode_libdir_flag_spec \
13072hardcode_libdir_flag_spec_ld \
13073hardcode_libdir_separator \
13074fix_srcfile_path \
13075exclude_expsyms \
13076include_expsyms \
13077file_list_spec \
13078variables_saved_for_relink \
13079libname_spec \
13080library_names_spec \
13081soname_spec \
13082finish_eval \
13083old_striplib \
13084striplib; do
13085    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13086    *[\\\\\\\`\\"\\\$]*)
13087      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13088      ;;
13089    *)
13090      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13091      ;;
13092    esac
13093done
13094
13095# Double-quote double-evaled strings.
13096for var in reload_cmds \
13097old_postinstall_cmds \
13098old_postuninstall_cmds \
13099old_archive_cmds \
13100extract_expsyms_cmds \
13101old_archive_from_new_cmds \
13102old_archive_from_expsyms_cmds \
13103archive_cmds \
13104archive_expsym_cmds \
13105module_cmds \
13106module_expsym_cmds \
13107export_symbols_cmds \
13108prelink_cmds \
13109postinstall_cmds \
13110postuninstall_cmds \
13111finish_cmds \
13112sys_lib_search_path_spec \
13113sys_lib_dlsearch_path_spec; do
13114    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13115    *[\\\\\\\`\\"\\\$]*)
13116      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13117      ;;
13118    *)
13119      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13120      ;;
13121    esac
13122done
13123
13124# Fix-up fallback echo if it was mangled by the above quoting rules.
13125case \$lt_ECHO in
13126*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13127  ;;
13128esac
13129
13130ac_aux_dir='$ac_aux_dir'
13131xsi_shell='$xsi_shell'
13132lt_shell_append='$lt_shell_append'
13133
13134# See if we are running on zsh, and set the options which allow our
13135# commands through without removal of \ escapes INIT.
13136if test -n "\${ZSH_VERSION+set}" ; then
13137   setopt NO_GLOB_SUBST
13138fi
13139
13140
13141    PACKAGE='$PACKAGE'
13142    VERSION='$VERSION'
13143    TIMESTAMP='$TIMESTAMP'
13144    RM='$RM'
13145    ofile='$ofile'
13146
13147
13148
13149
13150_ACEOF
13151
13152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153
13154# Handling of arguments.
13155for ac_config_target in $ac_config_targets
13156do
13157  case $ac_config_target in
13158    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13159    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13160    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13161    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13162    "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
13163
13164  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13165$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13166   { (exit 1); exit 1; }; };;
13167  esac
13168done
13169
13170
13171# If the user did not use the arguments to specify the items to instantiate,
13172# then the envvar interface is used.  Set only those that are not.
13173# We use the long form for the default assignment because of an extremely
13174# bizarre bug on SunOS 4.1.3.
13175if $ac_need_defaults; then
13176  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13177  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13178  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13179fi
13180
13181# Have a temporary directory for convenience.  Make it in the build tree
13182# simply because there is no reason against having it here, and in addition,
13183# creating and moving files from /tmp can sometimes cause problems.
13184# Hook for its removal unless debugging.
13185# Note that there is a small window in which the directory will not be cleaned:
13186# after its creation but before its name has been assigned to `$tmp'.
13187$debug ||
13188{
13189  tmp=
13190  trap 'exit_status=$?
13191  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13192' 0
13193  trap '{ (exit 1); exit 1; }' 1 2 13 15
13194}
13195# Create a (secure) tmp directory for tmp files.
13196
13197{
13198  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13199  test -n "$tmp" && test -d "$tmp"
13200}  ||
13201{
13202  tmp=./conf$$-$RANDOM
13203  (umask 077 && mkdir "$tmp")
13204} ||
13205{
13206   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13207   { (exit 1); exit 1; }
13208}
13209
13210# Set up the scripts for CONFIG_FILES section.
13211# No need to generate them if there are no CONFIG_FILES.
13212# This happens for instance with `./config.status config.h'.
13213if test -n "$CONFIG_FILES"; then
13214
13215
13216ac_cr='
13217'
13218ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13219if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13220  ac_cs_awk_cr='\\r'
13221else
13222  ac_cs_awk_cr=$ac_cr
13223fi
13224
13225echo 'BEGIN {' >"$tmp/subs1.awk" &&
13226_ACEOF
13227
13228
13229{
13230  echo "cat >conf$$subs.awk <<_ACEOF" &&
13231  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13232  echo "_ACEOF"
13233} >conf$$subs.sh ||
13234  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13235$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13236   { (exit 1); exit 1; }; }
13237ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13238ac_delim='%!_!# '
13239for ac_last_try in false false false false false :; do
13240  . ./conf$$subs.sh ||
13241    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13242$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13243   { (exit 1); exit 1; }; }
13244
13245  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13246  if test $ac_delim_n = $ac_delim_num; then
13247    break
13248  elif $ac_last_try; then
13249    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13250$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13251   { (exit 1); exit 1; }; }
13252  else
13253    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13254  fi
13255done
13256rm -f conf$$subs.sh
13257
13258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13259cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13260_ACEOF
13261sed -n '
13262h
13263s/^/S["/; s/!.*/"]=/
13264p
13265g
13266s/^[^!]*!//
13267:repl
13268t repl
13269s/'"$ac_delim"'$//
13270t delim
13271:nl
13272h
13273s/\(.\{148\}\).*/\1/
13274t more1
13275s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13276p
13277n
13278b repl
13279:more1
13280s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13281p
13282g
13283s/.\{148\}//
13284t nl
13285:delim
13286h
13287s/\(.\{148\}\).*/\1/
13288t more2
13289s/["\\]/\\&/g; s/^/"/; s/$/"/
13290p
13291b
13292:more2
13293s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13294p
13295g
13296s/.\{148\}//
13297t delim
13298' <conf$$subs.awk | sed '
13299/^[^""]/{
13300  N
13301  s/\n//
13302}
13303' >>$CONFIG_STATUS || ac_write_fail=1
13304rm -f conf$$subs.awk
13305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13306_ACAWK
13307cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13308  for (key in S) S_is_set[key] = 1
13309  FS = ""
13310
13311}
13312{
13313  line = $ 0
13314  nfields = split(line, field, "@")
13315  substed = 0
13316  len = length(field[1])
13317  for (i = 2; i < nfields; i++) {
13318    key = field[i]
13319    keylen = length(key)
13320    if (S_is_set[key]) {
13321      value = S[key]
13322      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13323      len += length(value) + length(field[++i])
13324      substed = 1
13325    } else
13326      len += 1 + keylen
13327  }
13328
13329  print line
13330}
13331
13332_ACAWK
13333_ACEOF
13334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13335if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13336  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13337else
13338  cat
13339fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13340  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13341$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13342   { (exit 1); exit 1; }; }
13343_ACEOF
13344
13345# VPATH may cause trouble with some makes, so we remove $(srcdir),
13346# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13347# trailing colons and then remove the whole line if VPATH becomes empty
13348# (actually we leave an empty line to preserve line numbers).
13349if test "x$srcdir" = x.; then
13350  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13351s/:*\$(srcdir):*/:/
13352s/:*\${srcdir}:*/:/
13353s/:*@srcdir@:*/:/
13354s/^\([^=]*=[	 ]*\):*/\1/
13355s/:*$//
13356s/^[^=]*=[	 ]*$//
13357}'
13358fi
13359
13360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13361fi # test -n "$CONFIG_FILES"
13362
13363# Set up the scripts for CONFIG_HEADERS section.
13364# No need to generate them if there are no CONFIG_HEADERS.
13365# This happens for instance with `./config.status Makefile'.
13366if test -n "$CONFIG_HEADERS"; then
13367cat >"$tmp/defines.awk" <<\_ACAWK ||
13368BEGIN {
13369_ACEOF
13370
13371# Transform confdefs.h into an awk script `defines.awk', embedded as
13372# here-document in config.status, that substitutes the proper values into
13373# config.h.in to produce config.h.
13374
13375# Create a delimiter string that does not exist in confdefs.h, to ease
13376# handling of long lines.
13377ac_delim='%!_!# '
13378for ac_last_try in false false :; do
13379  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13380  if test -z "$ac_t"; then
13381    break
13382  elif $ac_last_try; then
13383    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13384$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13385   { (exit 1); exit 1; }; }
13386  else
13387    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13388  fi
13389done
13390
13391# For the awk script, D is an array of macro values keyed by name,
13392# likewise P contains macro parameters if any.  Preserve backslash
13393# newline sequences.
13394
13395ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13396sed -n '
13397s/.\{148\}/&'"$ac_delim"'/g
13398t rset
13399:rset
13400s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13401t def
13402d
13403:def
13404s/\\$//
13405t bsnl
13406s/["\\]/\\&/g
13407s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13408D["\1"]=" \3"/p
13409s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13410d
13411:bsnl
13412s/["\\]/\\&/g
13413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13414D["\1"]=" \3\\\\\\n"\\/p
13415t cont
13416s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13417t cont
13418d
13419:cont
13420n
13421s/.\{148\}/&'"$ac_delim"'/g
13422t clear
13423:clear
13424s/\\$//
13425t bsnlc
13426s/["\\]/\\&/g; s/^/"/; s/$/"/p
13427d
13428:bsnlc
13429s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13430b cont
13431' <confdefs.h | sed '
13432s/'"$ac_delim"'/"\\\
13433"/g' >>$CONFIG_STATUS || ac_write_fail=1
13434
13435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13436  for (key in D) D_is_set[key] = 1
13437  FS = ""
13438}
13439/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13440  line = \$ 0
13441  split(line, arg, " ")
13442  if (arg[1] == "#") {
13443    defundef = arg[2]
13444    mac1 = arg[3]
13445  } else {
13446    defundef = substr(arg[1], 2)
13447    mac1 = arg[2]
13448  }
13449  split(mac1, mac2, "(") #)
13450  macro = mac2[1]
13451  prefix = substr(line, 1, index(line, defundef) - 1)
13452  if (D_is_set[macro]) {
13453    # Preserve the white space surrounding the "#".
13454    print prefix "define", macro P[macro] D[macro]
13455    next
13456  } else {
13457    # Replace #undef with comments.  This is necessary, for example,
13458    # in the case of _POSIX_SOURCE, which is predefined and required
13459    # on some systems where configure will not decide to define it.
13460    if (defundef == "undef") {
13461      print "/*", prefix defundef, macro, "*/"
13462      next
13463    }
13464  }
13465}
13466{ print }
13467_ACAWK
13468_ACEOF
13469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13470  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13471$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13472   { (exit 1); exit 1; }; }
13473fi # test -n "$CONFIG_HEADERS"
13474
13475
13476eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13477shift
13478for ac_tag
13479do
13480  case $ac_tag in
13481  :[FHLC]) ac_mode=$ac_tag; continue;;
13482  esac
13483  case $ac_mode$ac_tag in
13484  :[FHL]*:*);;
13485  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13486$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13487   { (exit 1); exit 1; }; };;
13488  :[FH]-) ac_tag=-:-;;
13489  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13490  esac
13491  ac_save_IFS=$IFS
13492  IFS=:
13493  set x $ac_tag
13494  IFS=$ac_save_IFS
13495  shift
13496  ac_file=$1
13497  shift
13498
13499  case $ac_mode in
13500  :L) ac_source=$1;;
13501  :[FH])
13502    ac_file_inputs=
13503    for ac_f
13504    do
13505      case $ac_f in
13506      -) ac_f="$tmp/stdin";;
13507      *) # Look for the file first in the build tree, then in the source tree
13508	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13509	 # because $ac_f cannot contain `:'.
13510	 test -f "$ac_f" ||
13511	   case $ac_f in
13512	   [\\/$]*) false;;
13513	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13514	   esac ||
13515	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13516$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13517   { (exit 1); exit 1; }; };;
13518      esac
13519      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13520      ac_file_inputs="$ac_file_inputs '$ac_f'"
13521    done
13522
13523    # Let's still pretend it is `configure' which instantiates (i.e., don't
13524    # use $as_me), people would be surprised to read:
13525    #    /* config.h.  Generated by config.status.  */
13526    configure_input='Generated from '`
13527	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13528	`' by configure.'
13529    if test x"$ac_file" != x-; then
13530      configure_input="$ac_file.  $configure_input"
13531      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13532$as_echo "$as_me: creating $ac_file" >&6;}
13533    fi
13534    # Neutralize special characters interpreted by sed in replacement strings.
13535    case $configure_input in #(
13536    *\&* | *\|* | *\\* )
13537       ac_sed_conf_input=`$as_echo "$configure_input" |
13538       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13539    *) ac_sed_conf_input=$configure_input;;
13540    esac
13541
13542    case $ac_tag in
13543    *:-:* | *:-) cat >"$tmp/stdin" \
13544      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13545$as_echo "$as_me: error: could not create $ac_file" >&2;}
13546   { (exit 1); exit 1; }; } ;;
13547    esac
13548    ;;
13549  esac
13550
13551  ac_dir=`$as_dirname -- "$ac_file" ||
13552$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13553	 X"$ac_file" : 'X\(//\)[^/]' \| \
13554	 X"$ac_file" : 'X\(//\)$' \| \
13555	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13556$as_echo X"$ac_file" |
13557    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13558	    s//\1/
13559	    q
13560	  }
13561	  /^X\(\/\/\)[^/].*/{
13562	    s//\1/
13563	    q
13564	  }
13565	  /^X\(\/\/\)$/{
13566	    s//\1/
13567	    q
13568	  }
13569	  /^X\(\/\).*/{
13570	    s//\1/
13571	    q
13572	  }
13573	  s/.*/./; q'`
13574  { as_dir="$ac_dir"
13575  case $as_dir in #(
13576  -*) as_dir=./$as_dir;;
13577  esac
13578  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13579    as_dirs=
13580    while :; do
13581      case $as_dir in #(
13582      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13583      *) as_qdir=$as_dir;;
13584      esac
13585      as_dirs="'$as_qdir' $as_dirs"
13586      as_dir=`$as_dirname -- "$as_dir" ||
13587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13588	 X"$as_dir" : 'X\(//\)[^/]' \| \
13589	 X"$as_dir" : 'X\(//\)$' \| \
13590	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13591$as_echo X"$as_dir" |
13592    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13593	    s//\1/
13594	    q
13595	  }
13596	  /^X\(\/\/\)[^/].*/{
13597	    s//\1/
13598	    q
13599	  }
13600	  /^X\(\/\/\)$/{
13601	    s//\1/
13602	    q
13603	  }
13604	  /^X\(\/\).*/{
13605	    s//\1/
13606	    q
13607	  }
13608	  s/.*/./; q'`
13609      test -d "$as_dir" && break
13610    done
13611    test -z "$as_dirs" || eval "mkdir $as_dirs"
13612  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13613$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13614   { (exit 1); exit 1; }; }; }
13615  ac_builddir=.
13616
13617case "$ac_dir" in
13618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13619*)
13620  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13621  # A ".." for each directory in $ac_dir_suffix.
13622  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13623  case $ac_top_builddir_sub in
13624  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13625  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13626  esac ;;
13627esac
13628ac_abs_top_builddir=$ac_pwd
13629ac_abs_builddir=$ac_pwd$ac_dir_suffix
13630# for backward compatibility:
13631ac_top_builddir=$ac_top_build_prefix
13632
13633case $srcdir in
13634  .)  # We are building in place.
13635    ac_srcdir=.
13636    ac_top_srcdir=$ac_top_builddir_sub
13637    ac_abs_top_srcdir=$ac_pwd ;;
13638  [\\/]* | ?:[\\/]* )  # Absolute name.
13639    ac_srcdir=$srcdir$ac_dir_suffix;
13640    ac_top_srcdir=$srcdir
13641    ac_abs_top_srcdir=$srcdir ;;
13642  *) # Relative name.
13643    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13644    ac_top_srcdir=$ac_top_build_prefix$srcdir
13645    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13646esac
13647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13648
13649
13650  case $ac_mode in
13651  :F)
13652  #
13653  # CONFIG_FILE
13654  #
13655
13656  case $INSTALL in
13657  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13658  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13659  esac
13660  ac_MKDIR_P=$MKDIR_P
13661  case $MKDIR_P in
13662  [\\/$]* | ?:[\\/]* ) ;;
13663  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13664  esac
13665_ACEOF
13666
13667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668# If the template does not know about datarootdir, expand it.
13669# FIXME: This hack should be removed a few years after 2.60.
13670ac_datarootdir_hack=; ac_datarootdir_seen=
13671
13672ac_sed_dataroot='
13673/datarootdir/ {
13674  p
13675  q
13676}
13677/@datadir@/p
13678/@docdir@/p
13679/@infodir@/p
13680/@localedir@/p
13681/@mandir@/p
13682'
13683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13684*datarootdir*) ac_datarootdir_seen=yes;;
13685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13686  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13688_ACEOF
13689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13690  ac_datarootdir_hack='
13691  s&@datadir@&$datadir&g
13692  s&@docdir@&$docdir&g
13693  s&@infodir@&$infodir&g
13694  s&@localedir@&$localedir&g
13695  s&@mandir@&$mandir&g
13696    s&\\\${datarootdir}&$datarootdir&g' ;;
13697esac
13698_ACEOF
13699
13700# Neutralize VPATH when `$srcdir' = `.'.
13701# Shell code in configure.ac might set extrasub.
13702# FIXME: do we really want to maintain this feature?
13703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704ac_sed_extra="$ac_vpsub
13705$extrasub
13706_ACEOF
13707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708:t
13709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13710s|@configure_input@|$ac_sed_conf_input|;t t
13711s&@top_builddir@&$ac_top_builddir_sub&;t t
13712s&@top_build_prefix@&$ac_top_build_prefix&;t t
13713s&@srcdir@&$ac_srcdir&;t t
13714s&@abs_srcdir@&$ac_abs_srcdir&;t t
13715s&@top_srcdir@&$ac_top_srcdir&;t t
13716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13717s&@builddir@&$ac_builddir&;t t
13718s&@abs_builddir@&$ac_abs_builddir&;t t
13719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13720s&@INSTALL@&$ac_INSTALL&;t t
13721s&@MKDIR_P@&$ac_MKDIR_P&;t t
13722$ac_datarootdir_hack
13723"
13724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13725  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13726$as_echo "$as_me: error: could not create $ac_file" >&2;}
13727   { (exit 1); exit 1; }; }
13728
13729test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13730  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13731  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13732  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13733which seems to be undefined.  Please make sure it is defined." >&5
13734$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13735which seems to be undefined.  Please make sure it is defined." >&2;}
13736
13737  rm -f "$tmp/stdin"
13738  case $ac_file in
13739  -) cat "$tmp/out" && rm -f "$tmp/out";;
13740  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13741  esac \
13742  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13743$as_echo "$as_me: error: could not create $ac_file" >&2;}
13744   { (exit 1); exit 1; }; }
13745 ;;
13746  :H)
13747  #
13748  # CONFIG_HEADER
13749  #
13750  if test x"$ac_file" != x-; then
13751    {
13752      $as_echo "/* $configure_input  */" \
13753      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13754    } >"$tmp/config.h" \
13755      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13756$as_echo "$as_me: error: could not create $ac_file" >&2;}
13757   { (exit 1); exit 1; }; }
13758    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13759      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13760$as_echo "$as_me: $ac_file is unchanged" >&6;}
13761    else
13762      rm -f "$ac_file"
13763      mv "$tmp/config.h" "$ac_file" \
13764	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13765$as_echo "$as_me: error: could not create $ac_file" >&2;}
13766   { (exit 1); exit 1; }; }
13767    fi
13768  else
13769    $as_echo "/* $configure_input  */" \
13770      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13771      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13772$as_echo "$as_me: error: could not create -" >&2;}
13773   { (exit 1); exit 1; }; }
13774  fi
13775# Compute "$ac_file"'s index in $config_headers.
13776_am_arg="$ac_file"
13777_am_stamp_count=1
13778for _am_header in $config_headers :; do
13779  case $_am_header in
13780    $_am_arg | $_am_arg:* )
13781      break ;;
13782    * )
13783      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13784  esac
13785done
13786echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13787$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13788	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13789	 X"$_am_arg" : 'X\(//\)$' \| \
13790	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13791$as_echo X"$_am_arg" |
13792    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13793	    s//\1/
13794	    q
13795	  }
13796	  /^X\(\/\/\)[^/].*/{
13797	    s//\1/
13798	    q
13799	  }
13800	  /^X\(\/\/\)$/{
13801	    s//\1/
13802	    q
13803	  }
13804	  /^X\(\/\).*/{
13805	    s//\1/
13806	    q
13807	  }
13808	  s/.*/./; q'`/stamp-h$_am_stamp_count
13809 ;;
13810
13811  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13812$as_echo "$as_me: executing $ac_file commands" >&6;}
13813 ;;
13814  esac
13815
13816
13817  case $ac_file$ac_mode in
13818    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13819  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13820  # are listed without --file.  Let's play safe and only enable the eval
13821  # if we detect the quoting.
13822  case $CONFIG_FILES in
13823  *\'*) eval set x "$CONFIG_FILES" ;;
13824  *)   set x $CONFIG_FILES ;;
13825  esac
13826  shift
13827  for mf
13828  do
13829    # Strip MF so we end up with the name of the file.
13830    mf=`echo "$mf" | sed -e 's/:.*$//'`
13831    # Check whether this is an Automake generated Makefile or not.
13832    # We used to match only the files named `Makefile.in', but
13833    # some people rename them; so instead we look at the file content.
13834    # Grep'ing the first line is not enough: some people post-process
13835    # each Makefile.in and add a new line on top of each file to say so.
13836    # Grep'ing the whole file is not good either: AIX grep has a line
13837    # limit of 2048, but all sed's we know have understand at least 4000.
13838    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13839      dirpart=`$as_dirname -- "$mf" ||
13840$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13841	 X"$mf" : 'X\(//\)[^/]' \| \
13842	 X"$mf" : 'X\(//\)$' \| \
13843	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13844$as_echo X"$mf" |
13845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13846	    s//\1/
13847	    q
13848	  }
13849	  /^X\(\/\/\)[^/].*/{
13850	    s//\1/
13851	    q
13852	  }
13853	  /^X\(\/\/\)$/{
13854	    s//\1/
13855	    q
13856	  }
13857	  /^X\(\/\).*/{
13858	    s//\1/
13859	    q
13860	  }
13861	  s/.*/./; q'`
13862    else
13863      continue
13864    fi
13865    # Extract the definition of DEPDIR, am__include, and am__quote
13866    # from the Makefile without running `make'.
13867    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13868    test -z "$DEPDIR" && continue
13869    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13870    test -z "am__include" && continue
13871    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13872    # When using ansi2knr, U may be empty or an underscore; expand it
13873    U=`sed -n 's/^U = //p' < "$mf"`
13874    # Find all dependency output files, they are included files with
13875    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13876    # simplest approach to changing $(DEPDIR) to its actual value in the
13877    # expansion.
13878    for file in `sed -n "
13879      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13880	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13881      # Make sure the directory exists.
13882      test -f "$dirpart/$file" && continue
13883      fdir=`$as_dirname -- "$file" ||
13884$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13885	 X"$file" : 'X\(//\)[^/]' \| \
13886	 X"$file" : 'X\(//\)$' \| \
13887	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13888$as_echo X"$file" |
13889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13890	    s//\1/
13891	    q
13892	  }
13893	  /^X\(\/\/\)[^/].*/{
13894	    s//\1/
13895	    q
13896	  }
13897	  /^X\(\/\/\)$/{
13898	    s//\1/
13899	    q
13900	  }
13901	  /^X\(\/\).*/{
13902	    s//\1/
13903	    q
13904	  }
13905	  s/.*/./; q'`
13906      { as_dir=$dirpart/$fdir
13907  case $as_dir in #(
13908  -*) as_dir=./$as_dir;;
13909  esac
13910  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13911    as_dirs=
13912    while :; do
13913      case $as_dir in #(
13914      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13915      *) as_qdir=$as_dir;;
13916      esac
13917      as_dirs="'$as_qdir' $as_dirs"
13918      as_dir=`$as_dirname -- "$as_dir" ||
13919$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13920	 X"$as_dir" : 'X\(//\)[^/]' \| \
13921	 X"$as_dir" : 'X\(//\)$' \| \
13922	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13923$as_echo X"$as_dir" |
13924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13925	    s//\1/
13926	    q
13927	  }
13928	  /^X\(\/\/\)[^/].*/{
13929	    s//\1/
13930	    q
13931	  }
13932	  /^X\(\/\/\)$/{
13933	    s//\1/
13934	    q
13935	  }
13936	  /^X\(\/\).*/{
13937	    s//\1/
13938	    q
13939	  }
13940	  s/.*/./; q'`
13941      test -d "$as_dir" && break
13942    done
13943    test -z "$as_dirs" || eval "mkdir $as_dirs"
13944  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13945$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13946   { (exit 1); exit 1; }; }; }
13947      # echo "creating $dirpart/$file"
13948      echo '# dummy' > "$dirpart/$file"
13949    done
13950  done
13951}
13952 ;;
13953    "libtool":C)
13954
13955    # See if we are running on zsh, and set the options which allow our
13956    # commands through without removal of \ escapes.
13957    if test -n "${ZSH_VERSION+set}" ; then
13958      setopt NO_GLOB_SUBST
13959    fi
13960
13961    cfgfile="${ofile}T"
13962    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13963    $RM "$cfgfile"
13964
13965    cat <<_LT_EOF >> "$cfgfile"
13966#! $SHELL
13967
13968# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13969# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13971# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13972#
13973#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13974#                 2006, 2007, 2008 Free Software Foundation, Inc.
13975#   Written by Gordon Matzigkeit, 1996
13976#
13977#   This file is part of GNU Libtool.
13978#
13979# GNU Libtool is free software; you can redistribute it and/or
13980# modify it under the terms of the GNU General Public License as
13981# published by the Free Software Foundation; either version 2 of
13982# the License, or (at your option) any later version.
13983#
13984# As a special exception to the GNU General Public License,
13985# if you distribute this file as part of a program or library that
13986# is built using GNU Libtool, you may include this file under the
13987# same distribution terms that you use for the rest of that program.
13988#
13989# GNU Libtool is distributed in the hope that it will be useful,
13990# but WITHOUT ANY WARRANTY; without even the implied warranty of
13991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13992# GNU General Public License for more details.
13993#
13994# You should have received a copy of the GNU General Public License
13995# along with GNU Libtool; see the file COPYING.  If not, a copy
13996# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13997# obtained by writing to the Free Software Foundation, Inc.,
13998# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13999
14000
14001# The names of the tagged configurations supported by this script.
14002available_tags=""
14003
14004# ### BEGIN LIBTOOL CONFIG
14005
14006# Assembler program.
14007AS=$AS
14008
14009# DLL creation program.
14010DLLTOOL=$DLLTOOL
14011
14012# Object dumper program.
14013OBJDUMP=$OBJDUMP
14014
14015# Which release of libtool.m4 was used?
14016macro_version=$macro_version
14017macro_revision=$macro_revision
14018
14019# Whether or not to build shared libraries.
14020build_libtool_libs=$enable_shared
14021
14022# Whether or not to build static libraries.
14023build_old_libs=$enable_static
14024
14025# What type of objects to build.
14026pic_mode=$pic_mode
14027
14028# Whether or not to optimize for fast installation.
14029fast_install=$enable_fast_install
14030
14031# The host system.
14032host_alias=$host_alias
14033host=$host
14034host_os=$host_os
14035
14036# The build system.
14037build_alias=$build_alias
14038build=$build
14039build_os=$build_os
14040
14041# A sed program that does not truncate output.
14042SED=$lt_SED
14043
14044# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14045Xsed="\$SED -e 1s/^X//"
14046
14047# A grep program that handles long lines.
14048GREP=$lt_GREP
14049
14050# An ERE matcher.
14051EGREP=$lt_EGREP
14052
14053# A literal string matcher.
14054FGREP=$lt_FGREP
14055
14056# A BSD- or MS-compatible name lister.
14057NM=$lt_NM
14058
14059# Whether we need soft or hard links.
14060LN_S=$lt_LN_S
14061
14062# What is the maximum length of a command?
14063max_cmd_len=$max_cmd_len
14064
14065# Object file suffix (normally "o").
14066objext=$ac_objext
14067
14068# Executable file suffix (normally "").
14069exeext=$exeext
14070
14071# whether the shell understands "unset".
14072lt_unset=$lt_unset
14073
14074# turn spaces into newlines.
14075SP2NL=$lt_lt_SP2NL
14076
14077# turn newlines into spaces.
14078NL2SP=$lt_lt_NL2SP
14079
14080# How to create reloadable object files.
14081reload_flag=$lt_reload_flag
14082reload_cmds=$lt_reload_cmds
14083
14084# Method to check whether dependent libraries are shared objects.
14085deplibs_check_method=$lt_deplibs_check_method
14086
14087# Command to use when deplibs_check_method == "file_magic".
14088file_magic_cmd=$lt_file_magic_cmd
14089
14090# The archiver.
14091AR=$lt_AR
14092AR_FLAGS=$lt_AR_FLAGS
14093
14094# A symbol stripping program.
14095STRIP=$lt_STRIP
14096
14097# Commands used to install an old-style archive.
14098RANLIB=$lt_RANLIB
14099old_postinstall_cmds=$lt_old_postinstall_cmds
14100old_postuninstall_cmds=$lt_old_postuninstall_cmds
14101
14102# A C compiler.
14103LTCC=$lt_CC
14104
14105# LTCC compiler flags.
14106LTCFLAGS=$lt_CFLAGS
14107
14108# Take the output of nm and produce a listing of raw symbols and C names.
14109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14110
14111# Transform the output of nm in a proper C declaration.
14112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14113
14114# Transform the output of nm in a C name address pair.
14115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14116
14117# Transform the output of nm in a C name address pair when lib prefix is needed.
14118global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14119
14120# The name of the directory that contains temporary libtool files.
14121objdir=$objdir
14122
14123# Shell to use when invoking shell scripts.
14124SHELL=$lt_SHELL
14125
14126# An echo program that does not interpret backslashes.
14127ECHO=$lt_ECHO
14128
14129# Used to examine libraries when file_magic_cmd begins with "file".
14130MAGIC_CMD=$MAGIC_CMD
14131
14132# Must we lock files when doing compilation?
14133need_locks=$lt_need_locks
14134
14135# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14136DSYMUTIL=$lt_DSYMUTIL
14137
14138# Tool to change global to local symbols on Mac OS X.
14139NMEDIT=$lt_NMEDIT
14140
14141# Tool to manipulate fat objects and archives on Mac OS X.
14142LIPO=$lt_LIPO
14143
14144# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14145OTOOL=$lt_OTOOL
14146
14147# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14148OTOOL64=$lt_OTOOL64
14149
14150# Old archive suffix (normally "a").
14151libext=$libext
14152
14153# Shared library suffix (normally ".so").
14154shrext_cmds=$lt_shrext_cmds
14155
14156# The commands to extract the exported symbol list from a shared archive.
14157extract_expsyms_cmds=$lt_extract_expsyms_cmds
14158
14159# Variables whose values should be saved in libtool wrapper scripts and
14160# restored at link time.
14161variables_saved_for_relink=$lt_variables_saved_for_relink
14162
14163# Do we need the "lib" prefix for modules?
14164need_lib_prefix=$need_lib_prefix
14165
14166# Do we need a version for libraries?
14167need_version=$need_version
14168
14169# Library versioning type.
14170version_type=$version_type
14171
14172# Shared library runtime path variable.
14173runpath_var=$runpath_var
14174
14175# Shared library path variable.
14176shlibpath_var=$shlibpath_var
14177
14178# Is shlibpath searched before the hard-coded library search path?
14179shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14180
14181# Format of library name prefix.
14182libname_spec=$lt_libname_spec
14183
14184# List of archive names.  First name is the real one, the rest are links.
14185# The last name is the one that the linker finds with -lNAME
14186library_names_spec=$lt_library_names_spec
14187
14188# The coded name of the library, if different from the real name.
14189soname_spec=$lt_soname_spec
14190
14191# Command to use after installation of a shared archive.
14192postinstall_cmds=$lt_postinstall_cmds
14193
14194# Command to use after uninstallation of a shared archive.
14195postuninstall_cmds=$lt_postuninstall_cmds
14196
14197# Commands used to finish a libtool library installation in a directory.
14198finish_cmds=$lt_finish_cmds
14199
14200# As "finish_cmds", except a single script fragment to be evaled but
14201# not shown.
14202finish_eval=$lt_finish_eval
14203
14204# Whether we should hardcode library paths into libraries.
14205hardcode_into_libs=$hardcode_into_libs
14206
14207# Compile-time system search path for libraries.
14208sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14209
14210# Run-time system search path for libraries.
14211sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14212
14213# Whether dlopen is supported.
14214dlopen_support=$enable_dlopen
14215
14216# Whether dlopen of programs is supported.
14217dlopen_self=$enable_dlopen_self
14218
14219# Whether dlopen of statically linked programs is supported.
14220dlopen_self_static=$enable_dlopen_self_static
14221
14222# Commands to strip libraries.
14223old_striplib=$lt_old_striplib
14224striplib=$lt_striplib
14225
14226
14227# The linker used to build libraries.
14228LD=$lt_LD
14229
14230# Commands used to build an old-style archive.
14231old_archive_cmds=$lt_old_archive_cmds
14232
14233# A language specific compiler.
14234CC=$lt_compiler
14235
14236# Is the compiler the GNU compiler?
14237with_gcc=$GCC
14238
14239# Compiler flag to turn off builtin functions.
14240no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14241
14242# How to pass a linker flag through the compiler.
14243wl=$lt_lt_prog_compiler_wl
14244
14245# Additional compiler flags for building library objects.
14246pic_flag=$lt_lt_prog_compiler_pic
14247
14248# Compiler flag to prevent dynamic linking.
14249link_static_flag=$lt_lt_prog_compiler_static
14250
14251# Does compiler simultaneously support -c and -o options?
14252compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14253
14254# Whether or not to add -lc for building shared libraries.
14255build_libtool_need_lc=$archive_cmds_need_lc
14256
14257# Whether or not to disallow shared libs when runtime libs are static.
14258allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14259
14260# Compiler flag to allow reflexive dlopens.
14261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14262
14263# Compiler flag to generate shared objects directly from archives.
14264whole_archive_flag_spec=$lt_whole_archive_flag_spec
14265
14266# Whether the compiler copes with passing no objects directly.
14267compiler_needs_object=$lt_compiler_needs_object
14268
14269# Create an old-style archive from a shared archive.
14270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14271
14272# Create a temporary old-style archive to link instead of a shared archive.
14273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14274
14275# Commands used to build a shared archive.
14276archive_cmds=$lt_archive_cmds
14277archive_expsym_cmds=$lt_archive_expsym_cmds
14278
14279# Commands used to build a loadable module if different from building
14280# a shared archive.
14281module_cmds=$lt_module_cmds
14282module_expsym_cmds=$lt_module_expsym_cmds
14283
14284# Whether we are building with GNU ld or not.
14285with_gnu_ld=$lt_with_gnu_ld
14286
14287# Flag that allows shared libraries with undefined symbols to be built.
14288allow_undefined_flag=$lt_allow_undefined_flag
14289
14290# Flag that enforces no undefined symbols.
14291no_undefined_flag=$lt_no_undefined_flag
14292
14293# Flag to hardcode \$libdir into a binary during linking.
14294# This must work even if \$libdir does not exist
14295hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14296
14297# If ld is used when linking, flag to hardcode \$libdir into a binary
14298# during linking.  This must work even if \$libdir does not exist.
14299hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14300
14301# Whether we need a single "-rpath" flag with a separated argument.
14302hardcode_libdir_separator=$lt_hardcode_libdir_separator
14303
14304# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14305# DIR into the resulting binary.
14306hardcode_direct=$hardcode_direct
14307
14308# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14309# DIR into the resulting binary and the resulting library dependency is
14310# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14311# library is relocated.
14312hardcode_direct_absolute=$hardcode_direct_absolute
14313
14314# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14315# into the resulting binary.
14316hardcode_minus_L=$hardcode_minus_L
14317
14318# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14319# into the resulting binary.
14320hardcode_shlibpath_var=$hardcode_shlibpath_var
14321
14322# Set to "yes" if building a shared library automatically hardcodes DIR
14323# into the library and all subsequent libraries and executables linked
14324# against it.
14325hardcode_automatic=$hardcode_automatic
14326
14327# Set to yes if linker adds runtime paths of dependent libraries
14328# to runtime path list.
14329inherit_rpath=$inherit_rpath
14330
14331# Whether libtool must link a program against all its dependency libraries.
14332link_all_deplibs=$link_all_deplibs
14333
14334# Fix the shell variable \$srcfile for the compiler.
14335fix_srcfile_path=$lt_fix_srcfile_path
14336
14337# Set to "yes" if exported symbols are required.
14338always_export_symbols=$always_export_symbols
14339
14340# The commands to list exported symbols.
14341export_symbols_cmds=$lt_export_symbols_cmds
14342
14343# Symbols that should not be listed in the preloaded symbols.
14344exclude_expsyms=$lt_exclude_expsyms
14345
14346# Symbols that must always be exported.
14347include_expsyms=$lt_include_expsyms
14348
14349# Commands necessary for linking programs (against libraries) with templates.
14350prelink_cmds=$lt_prelink_cmds
14351
14352# Specify filename containing input files.
14353file_list_spec=$lt_file_list_spec
14354
14355# How to hardcode a shared library path into an executable.
14356hardcode_action=$hardcode_action
14357
14358# ### END LIBTOOL CONFIG
14359
14360_LT_EOF
14361
14362  case $host_os in
14363  aix3*)
14364    cat <<\_LT_EOF >> "$cfgfile"
14365# AIX sometimes has problems with the GCC collect2 program.  For some
14366# reason, if we set the COLLECT_NAMES environment variable, the problems
14367# vanish in a puff of smoke.
14368if test "X${COLLECT_NAMES+set}" != Xset; then
14369  COLLECT_NAMES=
14370  export COLLECT_NAMES
14371fi
14372_LT_EOF
14373    ;;
14374  esac
14375
14376
14377ltmain="$ac_aux_dir/ltmain.sh"
14378
14379
14380  # We use sed instead of cat because bash on DJGPP gets confused if
14381  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14382  # text mode, it properly converts lines to CR/LF.  This bash problem
14383  # is reportedly fixed, but why not run on old versions too?
14384  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14385    || (rm -f "$cfgfile"; exit 1)
14386
14387  case $xsi_shell in
14388  yes)
14389    cat << \_LT_EOF >> "$cfgfile"
14390
14391# func_dirname file append nondir_replacement
14392# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14393# otherwise set result to NONDIR_REPLACEMENT.
14394func_dirname ()
14395{
14396  case ${1} in
14397    */*) func_dirname_result="${1%/*}${2}" ;;
14398    *  ) func_dirname_result="${3}" ;;
14399  esac
14400}
14401
14402# func_basename file
14403func_basename ()
14404{
14405  func_basename_result="${1##*/}"
14406}
14407
14408# func_dirname_and_basename file append nondir_replacement
14409# perform func_basename and func_dirname in a single function
14410# call:
14411#   dirname:  Compute the dirname of FILE.  If nonempty,
14412#             add APPEND to the result, otherwise set result
14413#             to NONDIR_REPLACEMENT.
14414#             value returned in "$func_dirname_result"
14415#   basename: Compute filename of FILE.
14416#             value retuned in "$func_basename_result"
14417# Implementation must be kept synchronized with func_dirname
14418# and func_basename. For efficiency, we do not delegate to
14419# those functions but instead duplicate the functionality here.
14420func_dirname_and_basename ()
14421{
14422  case ${1} in
14423    */*) func_dirname_result="${1%/*}${2}" ;;
14424    *  ) func_dirname_result="${3}" ;;
14425  esac
14426  func_basename_result="${1##*/}"
14427}
14428
14429# func_stripname prefix suffix name
14430# strip PREFIX and SUFFIX off of NAME.
14431# PREFIX and SUFFIX must not contain globbing or regex special
14432# characters, hashes, percent signs, but SUFFIX may contain a leading
14433# dot (in which case that matches only a dot).
14434func_stripname ()
14435{
14436  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14437  # positional parameters, so assign one to ordinary parameter first.
14438  func_stripname_result=${3}
14439  func_stripname_result=${func_stripname_result#"${1}"}
14440  func_stripname_result=${func_stripname_result%"${2}"}
14441}
14442
14443# func_opt_split
14444func_opt_split ()
14445{
14446  func_opt_split_opt=${1%%=*}
14447  func_opt_split_arg=${1#*=}
14448}
14449
14450# func_lo2o object
14451func_lo2o ()
14452{
14453  case ${1} in
14454    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14455    *)    func_lo2o_result=${1} ;;
14456  esac
14457}
14458
14459# func_xform libobj-or-source
14460func_xform ()
14461{
14462  func_xform_result=${1%.*}.lo
14463}
14464
14465# func_arith arithmetic-term...
14466func_arith ()
14467{
14468  func_arith_result=$(( $* ))
14469}
14470
14471# func_len string
14472# STRING may not start with a hyphen.
14473func_len ()
14474{
14475  func_len_result=${#1}
14476}
14477
14478_LT_EOF
14479    ;;
14480  *) # Bourne compatible functions.
14481    cat << \_LT_EOF >> "$cfgfile"
14482
14483# func_dirname file append nondir_replacement
14484# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14485# otherwise set result to NONDIR_REPLACEMENT.
14486func_dirname ()
14487{
14488  # Extract subdirectory from the argument.
14489  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14490  if test "X$func_dirname_result" = "X${1}"; then
14491    func_dirname_result="${3}"
14492  else
14493    func_dirname_result="$func_dirname_result${2}"
14494  fi
14495}
14496
14497# func_basename file
14498func_basename ()
14499{
14500  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14501}
14502
14503
14504# func_stripname prefix suffix name
14505# strip PREFIX and SUFFIX off of NAME.
14506# PREFIX and SUFFIX must not contain globbing or regex special
14507# characters, hashes, percent signs, but SUFFIX may contain a leading
14508# dot (in which case that matches only a dot).
14509# func_strip_suffix prefix name
14510func_stripname ()
14511{
14512  case ${2} in
14513    .*) func_stripname_result=`$ECHO "X${3}" \
14514           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14515    *)  func_stripname_result=`$ECHO "X${3}" \
14516           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14517  esac
14518}
14519
14520# sed scripts:
14521my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14522my_sed_long_arg='1s/^-[^=]*=//'
14523
14524# func_opt_split
14525func_opt_split ()
14526{
14527  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14528  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14529}
14530
14531# func_lo2o object
14532func_lo2o ()
14533{
14534  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14535}
14536
14537# func_xform libobj-or-source
14538func_xform ()
14539{
14540  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14541}
14542
14543# func_arith arithmetic-term...
14544func_arith ()
14545{
14546  func_arith_result=`expr "$@"`
14547}
14548
14549# func_len string
14550# STRING may not start with a hyphen.
14551func_len ()
14552{
14553  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14554}
14555
14556_LT_EOF
14557esac
14558
14559case $lt_shell_append in
14560  yes)
14561    cat << \_LT_EOF >> "$cfgfile"
14562
14563# func_append var value
14564# Append VALUE to the end of shell variable VAR.
14565func_append ()
14566{
14567  eval "$1+=\$2"
14568}
14569_LT_EOF
14570    ;;
14571  *)
14572    cat << \_LT_EOF >> "$cfgfile"
14573
14574# func_append var value
14575# Append VALUE to the end of shell variable VAR.
14576func_append ()
14577{
14578  eval "$1=\$$1\$2"
14579}
14580
14581_LT_EOF
14582    ;;
14583  esac
14584
14585
14586  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14587    || (rm -f "$cfgfile"; exit 1)
14588
14589  mv -f "$cfgfile" "$ofile" ||
14590    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14591  chmod +x "$ofile"
14592
14593 ;;
14594
14595  esac
14596done # for ac_tag
14597
14598
14599{ (exit 0); exit 0; }
14600_ACEOF
14601chmod +x $CONFIG_STATUS
14602ac_clean_files=$ac_clean_files_save
14603
14604test $ac_write_fail = 0 ||
14605  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14606$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14607   { (exit 1); exit 1; }; }
14608
14609
14610# configure is writing to config.log, and then calls config.status.
14611# config.status does its own redirection, appending to config.log.
14612# Unfortunately, on DOS this fails, as config.log is still kept open
14613# by configure, so config.status won't be able to write to it; its
14614# output is simply discarded.  So we exec the FD to /dev/null,
14615# effectively closing config.log, so it can be properly (re)opened and
14616# appended to by config.status.  When coming back to configure, we
14617# need to make the FD available again.
14618if test "$no_create" != yes; then
14619  ac_cs_success=:
14620  ac_config_status_args=
14621  test "$silent" = yes &&
14622    ac_config_status_args="$ac_config_status_args --quiet"
14623  exec 5>/dev/null
14624  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14625  exec 5>>config.log
14626  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14627  # would make configure fail if this is the last instruction.
14628  $ac_cs_success || { (exit 1); exit 1; }
14629fi
14630if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14631  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14632$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14633fi
14634
14635