configure revision 1477040f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for libXt 1.0.8.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='libXt'
704PACKAGE_TARNAME='libXt'
705PACKAGE_VERSION='1.0.8'
706PACKAGE_STRING='libXt 1.0.8'
707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708PACKAGE_URL=''
709
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750XTMALLOC_ZERO_CFLAGS
751XMALLOC_ZERO_CFLAGS
752MALLOC_ZERO_CFLAGS
753RAWCPPFLAGS
754RAWCPP
755STRINGSABIOPTIONS
756appdefaultdir
757XFILESEARCHPATHDEFAULT
758XT_LIBS
759XT_CFLAGS
760LDFLAGS_FOR_BUILD
761CFLAGS_FOR_BUILD
762CC_FOR_BUILD
763OTOOL64
764OTOOL
765LIPO
766NMEDIT
767DSYMUTIL
768lt_ECHO
769RANLIB
770AR
771OBJDUMP
772LN_S
773NM
774ac_ct_DUMPBIN
775DUMPBIN
776LD
777FGREP
778SED
779LIBTOOL
780ADMIN_MAN_DIR
781DRIVER_MAN_DIR
782MISC_MAN_DIR
783FILE_MAN_DIR
784LIB_MAN_DIR
785APP_MAN_DIR
786ADMIN_MAN_SUFFIX
787DRIVER_MAN_SUFFIX
788MISC_MAN_SUFFIX
789FILE_MAN_SUFFIX
790LIB_MAN_SUFFIX
791APP_MAN_SUFFIX
792host_os
793host_vendor
794host_cpu
795host
796build_os
797build_vendor
798build_cpu
799build
800INSTALL_CMD
801PKG_CONFIG
802CHANGELOG_CMD
803AM_BACKSLASH
804AM_DEFAULT_VERBOSITY
805CWARNFLAGS
806EGREP
807GREP
808CPP
809am__fastdepCC_FALSE
810am__fastdepCC_TRUE
811CCDEPMODE
812AMDEPBACKSLASH
813AMDEP_FALSE
814AMDEP_TRUE
815am__quote
816am__include
817DEPDIR
818OBJEXT
819EXEEXT
820ac_ct_CC
821CPPFLAGS
822LDFLAGS
823CFLAGS
824CC
825MAINT
826MAINTAINER_MODE_FALSE
827MAINTAINER_MODE_TRUE
828am__untar
829am__tar
830AMTAR
831am__leading_dot
832SET_MAKE
833AWK
834mkdir_p
835MKDIR_P
836INSTALL_STRIP_PROGRAM
837STRIP
838install_sh
839MAKEINFO
840AUTOHEADER
841AUTOMAKE
842AUTOCONF
843ACLOCAL
844VERSION
845PACKAGE
846CYGPATH_W
847am__isrc
848INSTALL_DATA
849INSTALL_SCRIPT
850INSTALL_PROGRAM
851target_alias
852host_alias
853build_alias
854LIBS
855ECHO_T
856ECHO_N
857ECHO_C
858DEFS
859mandir
860localedir
861libdir
862psdir
863pdfdir
864dvidir
865htmldir
866infodir
867docdir
868oldincludedir
869includedir
870localstatedir
871sharedstatedir
872sysconfdir
873datadir
874datarootdir
875libexecdir
876sbindir
877bindir
878program_transform_name
879prefix
880exec_prefix
881PACKAGE_URL
882PACKAGE_BUGREPORT
883PACKAGE_STRING
884PACKAGE_VERSION
885PACKAGE_TARNAME
886PACKAGE_NAME
887PATH_SEPARATOR
888SHELL'
889ac_subst_files=''
890ac_user_opts='
891enable_option_checking
892enable_maintainer_mode
893enable_dependency_tracking
894enable_silent_rules
895enable_strict_compilation
896with_release_version
897enable_shared
898enable_static
899with_pic
900enable_fast_install
901with_gnu_ld
902enable_libtool_lock
903enable_xkb
904with_xfile_search_path
905with_appdefaultdir
906enable_malloc0returnsnull
907'
908      ac_precious_vars='build_alias
909host_alias
910target_alias
911CC
912CFLAGS
913LDFLAGS
914LIBS
915CPPFLAGS
916CPP
917PKG_CONFIG
918XT_CFLAGS
919XT_LIBS'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925ac_unrecognized_opts=
926ac_unrecognized_sep=
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974  # If the previous option needs an argument, assign it.
975  if test -n "$ac_prev"; then
976    eval $ac_prev=\$ac_option
977    ac_prev=
978    continue
979  fi
980
981  case $ac_option in
982  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983  *)	ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=no ;;
1039
1040  -docdir | --docdir | --docdi | --doc | --do)
1041    ac_prev=docdir ;;
1042  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043    docdir=$ac_optarg ;;
1044
1045  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046    ac_prev=dvidir ;;
1047  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048    dvidir=$ac_optarg ;;
1049
1050  -enable-* | --enable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210    ac_prev=sbindir ;;
1211  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212  | --sbi=* | --sb=*)
1213    sbindir=$ac_optarg ;;
1214
1215  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217  | --sharedst | --shareds | --shared | --share | --shar \
1218  | --sha | --sh)
1219    ac_prev=sharedstatedir ;;
1220  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223  | --sha=* | --sh=*)
1224    sharedstatedir=$ac_optarg ;;
1225
1226  -site | --site | --sit)
1227    ac_prev=site ;;
1228  -site=* | --site=* | --sit=*)
1229    site=$ac_optarg ;;
1230
1231  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232    ac_prev=srcdir ;;
1233  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234    srcdir=$ac_optarg ;;
1235
1236  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237  | --syscon | --sysco | --sysc | --sys | --sy)
1238    ac_prev=sysconfdir ;;
1239  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241    sysconfdir=$ac_optarg ;;
1242
1243  -target | --target | --targe | --targ | --tar | --ta | --t)
1244    ac_prev=target_alias ;;
1245  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246    target_alias=$ac_optarg ;;
1247
1248  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249    verbose=yes ;;
1250
1251  -version | --version | --versio | --versi | --vers | -V)
1252    ac_init_version=: ;;
1253
1254  -with-* | --with-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=\$ac_optarg ;;
1269
1270  -without-* | --without-*)
1271    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274      as_fn_error "invalid package name: $ac_useropt"
1275    ac_useropt_orig=$ac_useropt
1276    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277    case $ac_user_opts in
1278      *"
1279"with_$ac_useropt"
1280"*) ;;
1281      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282	 ac_unrecognized_sep=', ';;
1283    esac
1284    eval with_$ac_useropt=no ;;
1285
1286  --x)
1287    # Obsolete; use --with-x.
1288    with_x=yes ;;
1289
1290  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291  | --x-incl | --x-inc | --x-in | --x-i)
1292    ac_prev=x_includes ;;
1293  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295    x_includes=$ac_optarg ;;
1296
1297  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299    ac_prev=x_libraries ;;
1300  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302    x_libraries=$ac_optarg ;;
1303
1304  -*) as_fn_error "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information."
1306    ;;
1307
1308  *=*)
1309    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310    # Reject names that are not valid shell variable names.
1311    case $ac_envvar in #(
1312      '' | [0-9]* | *[!_$as_cr_alnum]* )
1313      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1314    esac
1315    eval $ac_envvar=\$ac_optarg
1316    export $ac_envvar ;;
1317
1318  *)
1319    # FIXME: should be removed in autoconf 3.0.
1320    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324    ;;
1325
1326  esac
1327done
1328
1329if test -n "$ac_prev"; then
1330  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331  as_fn_error "missing argument to $ac_option"
1332fi
1333
1334if test -n "$ac_unrecognized_opts"; then
1335  case $enable_option_checking in
1336    no) ;;
1337    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1338    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339  esac
1340fi
1341
1342# Check all directory arguments for consistency.
1343for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344		datadir sysconfdir sharedstatedir localstatedir includedir \
1345		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346		libdir localedir mandir
1347do
1348  eval ac_val=\$$ac_var
1349  # Remove trailing slashes.
1350  case $ac_val in
1351    */ )
1352      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353      eval $ac_var=\$ac_val;;
1354  esac
1355  # Be sure to have absolute directory names.
1356  case $ac_val in
1357    [\\/$]* | ?:[\\/]* )  continue;;
1358    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359  esac
1360  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375    If a cross compiler is detected then cross compile mode will be used." >&2
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  as_fn_error "working directory cannot be determined"
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392  as_fn_error "pwd does not report name of working directory"
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$as_myself" : 'X\(//\)[^/]' \| \
1402	 X"$as_myself" : 'X\(//\)$' \| \
1403	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436	pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439  srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_env_${ac_var}_value=\$${ac_var}
1450  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458  # Omit some internal or obsolete options to make the list less imposing.
1459  # This message is too long to be a string in the A/UX 3.1 sh.
1460  cat <<_ACEOF
1461\`configure' configures libXt 1.0.8 to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471  -h, --help              display this help and exit
1472      --help=short        display options specific to this package
1473      --help=recursive    display the short help of all the included packages
1474  -V, --version           display version information and exit
1475  -q, --quiet, --silent   do not print \`checking...' messages
1476      --cache-file=FILE   cache test results in FILE [disabled]
1477  -C, --config-cache      alias for \`--cache-file=config.cache'
1478  -n, --no-create         do not create output files
1479      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482  --prefix=PREFIX         install architecture-independent files in PREFIX
1483                          [$ac_default_prefix]
1484  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                          [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495  --bindir=DIR            user executables [EPREFIX/bin]
1496  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497  --libexecdir=DIR        program executables [EPREFIX/libexec]
1498  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501  --libdir=DIR            object code libraries [EPREFIX/lib]
1502  --includedir=DIR        C header files [PREFIX/include]
1503  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXt]
1510  --htmldir=DIR           html documentation [DOCDIR]
1511  --dvidir=DIR            dvi documentation [DOCDIR]
1512  --pdfdir=DIR            pdf documentation [DOCDIR]
1513  --psdir=DIR             ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518Program names:
1519  --program-prefix=PREFIX            prepend PREFIX to installed program names
1520  --program-suffix=SUFFIX            append SUFFIX to installed program names
1521  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1522
1523System types:
1524  --build=BUILD     configure for building on BUILD [guessed]
1525  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530  case $ac_init_help in
1531     short | recursive ) echo "Configuration of libXt 1.0.8:";;
1532   esac
1533  cat <<\_ACEOF
1534
1535Optional Features:
1536  --disable-option-checking  ignore unrecognized --enable/--with options
1537  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539  --enable-maintainer-mode  enable make rules and dependencies not useful
1540			  (and sometimes confusing) to the casual installer
1541  --disable-dependency-tracking  speeds up one-time build
1542  --enable-dependency-tracking   do not reject slow dependency extractors
1543  --enable-silent-rules          less verbose build output (undo: `make V=1')
1544  --disable-silent-rules         verbose build output (undo: `make V=0')
1545  --enable-strict-compilation
1546                          Enable all warnings from compiler and make them
1547                          errors (default: disabled)
1548  --enable-shared[=PKGS]  build shared libraries [default=yes]
1549  --enable-static[=PKGS]  build static libraries [default=yes]
1550  --enable-fast-install[=PKGS]
1551                          optimize for fast installation [default=yes]
1552  --disable-libtool-lock  avoid locking (might break parallel builds)
1553  --disable-xkb           Disable XKB support
1554  --enable-malloc0returnsnull
1555                          malloc(0) returns NULL (default: auto)
1556
1557Optional Packages:
1558  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1559  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1560  --with-release-version=STRING
1561                          Use release version string in package name
1562  --with-pic              try to use only PIC/non-PIC objects [default=use
1563                          both]
1564  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565  --with-xfile-search-path=<path>
1566                          Set path to search for app-defaults and other files
1567  --with-appdefaultdir=<path>
1568                          Set app-default directory (default:
1569                          ${datadir}/X11/app-defaults)
1570
1571Some influential environment variables:
1572  CC          C compiler command
1573  CFLAGS      C compiler flags
1574  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575              nonstandard directory <lib dir>
1576  LIBS        libraries to pass to the linker, e.g. -l<library>
1577  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578              you have headers in a nonstandard directory <include dir>
1579  CPP         C preprocessor
1580  PKG_CONFIG  path to pkg-config utility
1581  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1582  XT_LIBS     linker flags for XT, overriding pkg-config
1583
1584Use these variables to override the choices made by `configure' or to help
1585it to find libraries and programs with nonstandard names/locations.
1586
1587Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1588_ACEOF
1589ac_status=$?
1590fi
1591
1592if test "$ac_init_help" = "recursive"; then
1593  # If there are subdirs, report their specific --help.
1594  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595    test -d "$ac_dir" ||
1596      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597      continue
1598    ac_builddir=.
1599
1600case "$ac_dir" in
1601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602*)
1603  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604  # A ".." for each directory in $ac_dir_suffix.
1605  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606  case $ac_top_builddir_sub in
1607  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609  esac ;;
1610esac
1611ac_abs_top_builddir=$ac_pwd
1612ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613# for backward compatibility:
1614ac_top_builddir=$ac_top_build_prefix
1615
1616case $srcdir in
1617  .)  # We are building in place.
1618    ac_srcdir=.
1619    ac_top_srcdir=$ac_top_builddir_sub
1620    ac_abs_top_srcdir=$ac_pwd ;;
1621  [\\/]* | ?:[\\/]* )  # Absolute name.
1622    ac_srcdir=$srcdir$ac_dir_suffix;
1623    ac_top_srcdir=$srcdir
1624    ac_abs_top_srcdir=$srcdir ;;
1625  *) # Relative name.
1626    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627    ac_top_srcdir=$ac_top_build_prefix$srcdir
1628    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629esac
1630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632    cd "$ac_dir" || { ac_status=$?; continue; }
1633    # Check for guested configure.
1634    if test -f "$ac_srcdir/configure.gnu"; then
1635      echo &&
1636      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637    elif test -f "$ac_srcdir/configure"; then
1638      echo &&
1639      $SHELL "$ac_srcdir/configure" --help=recursive
1640    else
1641      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642    fi || ac_status=$?
1643    cd "$ac_pwd" || { ac_status=$?; break; }
1644  done
1645fi
1646
1647test -n "$ac_init_help" && exit $ac_status
1648if $ac_init_version; then
1649  cat <<\_ACEOF
1650libXt configure 1.0.8
1651generated by GNU Autoconf 2.65
1652
1653Copyright (C) 2009 Free Software Foundation, Inc.
1654This configure script is free software; the Free Software Foundation
1655gives unlimited permission to copy, distribute and modify it.
1656_ACEOF
1657  exit
1658fi
1659
1660## ------------------------ ##
1661## Autoconf initialization. ##
1662## ------------------------ ##
1663
1664# ac_fn_c_try_compile LINENO
1665# --------------------------
1666# Try to compile conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_compile ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  rm -f conftest.$ac_objext
1671  if { { ac_try="$ac_compile"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_compile") 2>conftest.err
1679  ac_status=$?
1680  if test -s conftest.err; then
1681    grep -v '^ *+' conftest.err >conftest.er1
1682    cat conftest.er1 >&5
1683    mv -f conftest.er1 conftest.err
1684  fi
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } && {
1687	 test -z "$ac_c_werror_flag" ||
1688	 test ! -s conftest.err
1689       } && test -s conftest.$ac_objext; then :
1690  ac_retval=0
1691else
1692  $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695	ac_retval=1
1696fi
1697  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_compile
1701
1702# ac_fn_c_check_decl LINENO SYMBOL VAR
1703# ------------------------------------
1704# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1705ac_fn_c_check_decl ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1709$as_echo_n "checking whether $2 is declared... " >&6; }
1710if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711  $as_echo_n "(cached) " >&6
1712else
1713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h.  */
1715$4
1716int
1717main ()
1718{
1719#ifndef $2
1720  (void) $2;
1721#endif
1722
1723  ;
1724  return 0;
1725}
1726_ACEOF
1727if ac_fn_c_try_compile "$LINENO"; then :
1728  eval "$3=yes"
1729else
1730  eval "$3=no"
1731fi
1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733fi
1734eval ac_res=\$$3
1735	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
1739} # ac_fn_c_check_decl
1740
1741# ac_fn_c_try_cpp LINENO
1742# ----------------------
1743# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_cpp ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  if { { ac_try="$ac_cpp conftest.$ac_ext"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755  ac_status=$?
1756  if test -s conftest.err; then
1757    grep -v '^ *+' conftest.err >conftest.er1
1758    cat conftest.er1 >&5
1759    mv -f conftest.er1 conftest.err
1760  fi
1761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; } >/dev/null && {
1763	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       }; then :
1766  ac_retval=0
1767else
1768  $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771    ac_retval=1
1772fi
1773  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_cpp
1777
1778# ac_fn_c_try_run LINENO
1779# ----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781# that executables *can* be run.
1782ac_fn_c_try_run ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_link") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796  { { case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802  (eval "$ac_try") 2>&5
1803  ac_status=$?
1804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; }; }; then :
1806  ac_retval=0
1807else
1808  $as_echo "$as_me: program exited with status $ac_status" >&5
1809       $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812       ac_retval=$ac_status
1813fi
1814  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_run
1819
1820# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1821# -------------------------------------------------------
1822# Tests whether HEADER exists and can be compiled using the include files in
1823# INCLUDES, setting the cache variable VAR accordingly.
1824ac_fn_c_check_header_compile ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830  $as_echo_n "(cached) " >&6
1831else
1832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838  eval "$3=yes"
1839else
1840  eval "$3=no"
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843fi
1844eval ac_res=\$$3
1845	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849} # ac_fn_c_check_header_compile
1850
1851# ac_fn_c_try_link LINENO
1852# -----------------------
1853# Try to link conftest.$ac_ext, and return whether this succeeded.
1854ac_fn_c_try_link ()
1855{
1856  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857  rm -f conftest.$ac_objext conftest$ac_exeext
1858  if { { ac_try="$ac_link"
1859case "(($ac_try" in
1860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861  *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865  (eval "$ac_link") 2>conftest.err
1866  ac_status=$?
1867  if test -s conftest.err; then
1868    grep -v '^ *+' conftest.err >conftest.er1
1869    cat conftest.er1 >&5
1870    mv -f conftest.er1 conftest.err
1871  fi
1872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873  test $ac_status = 0; } && {
1874	 test -z "$ac_c_werror_flag" ||
1875	 test ! -s conftest.err
1876       } && test -s conftest$ac_exeext && {
1877	 test "$cross_compiling" = yes ||
1878	 $as_test_x conftest$ac_exeext
1879       }; then :
1880  ac_retval=0
1881else
1882  $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885	ac_retval=1
1886fi
1887  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1888  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1889  # interfere with the next link command; also delete a directory that is
1890  # left behind by Apple's compiler.  We do this before executing the actions.
1891  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893  as_fn_set_status $ac_retval
1894
1895} # ac_fn_c_try_link
1896
1897# ac_fn_c_check_func LINENO FUNC VAR
1898# ----------------------------------
1899# Tests whether FUNC exists, setting the cache variable VAR accordingly
1900ac_fn_c_check_func ()
1901{
1902  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906  $as_echo_n "(cached) " >&6
1907else
1908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h.  */
1910/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1912#define $2 innocuous_$2
1913
1914/* System header to define __stub macros and hopefully few prototypes,
1915    which can conflict with char $2 (); below.
1916    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917    <limits.h> exists even on freestanding compilers.  */
1918
1919#ifdef __STDC__
1920# include <limits.h>
1921#else
1922# include <assert.h>
1923#endif
1924
1925#undef $2
1926
1927/* Override any GCC internal prototype to avoid an error.
1928   Use char because int might match the return type of a GCC
1929   builtin and then its argument prototype would still apply.  */
1930#ifdef __cplusplus
1931extern "C"
1932#endif
1933char $2 ();
1934/* The GNU C library defines this for functions which it implements
1935    to always fail with ENOSYS.  Some functions are actually named
1936    something starting with __ and the normal name is an alias.  */
1937#if defined __stub_$2 || defined __stub___$2
1938choke me
1939#endif
1940
1941int
1942main ()
1943{
1944return $2 ();
1945  ;
1946  return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_link "$LINENO"; then :
1950  eval "$3=yes"
1951else
1952  eval "$3=no"
1953fi
1954rm -f core conftest.err conftest.$ac_objext \
1955    conftest$ac_exeext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962} # ac_fn_c_check_func
1963
1964# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1965# -------------------------------------------------------
1966# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1967# the include files in INCLUDES and setting the cache variable VAR
1968# accordingly.
1969ac_fn_c_check_header_mongrel ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974$as_echo_n "checking for $2... " >&6; }
1975if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976  $as_echo_n "(cached) " >&6
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981else
1982  # Is the header compilable?
1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1984$as_echo_n "checking $2 usability... " >&6; }
1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988#include <$2>
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991  ac_header_compiler=yes
1992else
1993  ac_header_compiler=no
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1997$as_echo "$ac_header_compiler" >&6; }
1998
1999# Is the header present?
2000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2001$as_echo_n "checking $2 presence... " >&6; }
2002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004#include <$2>
2005_ACEOF
2006if ac_fn_c_try_cpp "$LINENO"; then :
2007  ac_header_preproc=yes
2008else
2009  ac_header_preproc=no
2010fi
2011rm -f conftest.err conftest.$ac_ext
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2013$as_echo "$ac_header_preproc" >&6; }
2014
2015# So?  What about this header?
2016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017  yes:no: )
2018    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2019$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2020    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022    ;;
2023  no:yes:* )
2024    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2025$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2027$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2029$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2031$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034( cat <<\_ASBOX
2035## ---------------------------------------------------------------------- ##
2036## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2037## ---------------------------------------------------------------------- ##
2038_ASBOX
2039     ) | sed "s/^/$as_me: WARNING:     /" >&2
2040    ;;
2041esac
2042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043$as_echo_n "checking for $2... " >&6; }
2044if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045  $as_echo_n "(cached) " >&6
2046else
2047  eval "$3=\$ac_header_compiler"
2048fi
2049eval ac_res=\$$3
2050	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052fi
2053  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054
2055} # ac_fn_c_check_header_mongrel
2056cat >config.log <<_ACEOF
2057This file contains any messages produced by compilers while
2058running configure, to aid debugging if configure makes a mistake.
2059
2060It was created by libXt $as_me 1.0.8, which was
2061generated by GNU Autoconf 2.65.  Invocation command line was
2062
2063  $ $0 $@
2064
2065_ACEOF
2066exec 5>>config.log
2067{
2068cat <<_ASUNAME
2069## --------- ##
2070## Platform. ##
2071## --------- ##
2072
2073hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2074uname -m = `(uname -m) 2>/dev/null || echo unknown`
2075uname -r = `(uname -r) 2>/dev/null || echo unknown`
2076uname -s = `(uname -s) 2>/dev/null || echo unknown`
2077uname -v = `(uname -v) 2>/dev/null || echo unknown`
2078
2079/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2080/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2081
2082/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2083/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2084/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2085/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2086/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2087/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2088/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2089
2090_ASUNAME
2091
2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093for as_dir in $PATH
2094do
2095  IFS=$as_save_IFS
2096  test -z "$as_dir" && as_dir=.
2097    $as_echo "PATH: $as_dir"
2098  done
2099IFS=$as_save_IFS
2100
2101} >&5
2102
2103cat >&5 <<_ACEOF
2104
2105
2106## ----------- ##
2107## Core tests. ##
2108## ----------- ##
2109
2110_ACEOF
2111
2112
2113# Keep a trace of the command line.
2114# Strip out --no-create and --no-recursion so they do not pile up.
2115# Strip out --silent because we don't want to record it for future runs.
2116# Also quote any args containing shell meta-characters.
2117# Make two passes to allow for proper duplicate-argument suppression.
2118ac_configure_args=
2119ac_configure_args0=
2120ac_configure_args1=
2121ac_must_keep_next=false
2122for ac_pass in 1 2
2123do
2124  for ac_arg
2125  do
2126    case $ac_arg in
2127    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2128    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2129    | -silent | --silent | --silen | --sile | --sil)
2130      continue ;;
2131    *\'*)
2132      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2133    esac
2134    case $ac_pass in
2135    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2136    2)
2137      as_fn_append ac_configure_args1 " '$ac_arg'"
2138      if test $ac_must_keep_next = true; then
2139	ac_must_keep_next=false # Got value, back to normal.
2140      else
2141	case $ac_arg in
2142	  *=* | --config-cache | -C | -disable-* | --disable-* \
2143	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2144	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2145	  | -with-* | --with-* | -without-* | --without-* | --x)
2146	    case "$ac_configure_args0 " in
2147	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2148	    esac
2149	    ;;
2150	  -* ) ac_must_keep_next=true ;;
2151	esac
2152      fi
2153      as_fn_append ac_configure_args " '$ac_arg'"
2154      ;;
2155    esac
2156  done
2157done
2158{ ac_configure_args0=; unset ac_configure_args0;}
2159{ ac_configure_args1=; unset ac_configure_args1;}
2160
2161# When interrupted or exit'd, cleanup temporary files, and complete
2162# config.log.  We remove comments because anyway the quotes in there
2163# would cause problems or look ugly.
2164# WARNING: Use '\'' to represent an apostrophe within the trap.
2165# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2166trap 'exit_status=$?
2167  # Save into config.log some information that might help in debugging.
2168  {
2169    echo
2170
2171    cat <<\_ASBOX
2172## ---------------- ##
2173## Cache variables. ##
2174## ---------------- ##
2175_ASBOX
2176    echo
2177    # The following way of writing the cache mishandles newlines in values,
2178(
2179  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180    eval ac_val=\$$ac_var
2181    case $ac_val in #(
2182    *${as_nl}*)
2183      case $ac_var in #(
2184      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2186      esac
2187      case $ac_var in #(
2188      _ | IFS | as_nl) ;; #(
2189      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190      *) { eval $ac_var=; unset $ac_var;} ;;
2191      esac ;;
2192    esac
2193  done
2194  (set) 2>&1 |
2195    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196    *${as_nl}ac_space=\ *)
2197      sed -n \
2198	"s/'\''/'\''\\\\'\'''\''/g;
2199	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2200      ;; #(
2201    *)
2202      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203      ;;
2204    esac |
2205    sort
2206)
2207    echo
2208
2209    cat <<\_ASBOX
2210## ----------------- ##
2211## Output variables. ##
2212## ----------------- ##
2213_ASBOX
2214    echo
2215    for ac_var in $ac_subst_vars
2216    do
2217      eval ac_val=\$$ac_var
2218      case $ac_val in
2219      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220      esac
2221      $as_echo "$ac_var='\''$ac_val'\''"
2222    done | sort
2223    echo
2224
2225    if test -n "$ac_subst_files"; then
2226      cat <<\_ASBOX
2227## ------------------- ##
2228## File substitutions. ##
2229## ------------------- ##
2230_ASBOX
2231      echo
2232      for ac_var in $ac_subst_files
2233      do
2234	eval ac_val=\$$ac_var
2235	case $ac_val in
2236	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237	esac
2238	$as_echo "$ac_var='\''$ac_val'\''"
2239      done | sort
2240      echo
2241    fi
2242
2243    if test -s confdefs.h; then
2244      cat <<\_ASBOX
2245## ----------- ##
2246## confdefs.h. ##
2247## ----------- ##
2248_ASBOX
2249      echo
2250      cat confdefs.h
2251      echo
2252    fi
2253    test "$ac_signal" != 0 &&
2254      $as_echo "$as_me: caught signal $ac_signal"
2255    $as_echo "$as_me: exit $exit_status"
2256  } >&5
2257  rm -f core *.core core.conftest.* &&
2258    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2259    exit $exit_status
2260' 0
2261for ac_signal in 1 2 13 15; do
2262  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2263done
2264ac_signal=0
2265
2266# confdefs.h avoids OS command line length limits that DEFS can exceed.
2267rm -f -r conftest* confdefs.h
2268
2269$as_echo "/* confdefs.h */" > confdefs.h
2270
2271# Predefined preprocessor variables.
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_NAME "$PACKAGE_NAME"
2275_ACEOF
2276
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279_ACEOF
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_VERSION "$PACKAGE_VERSION"
2283_ACEOF
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_STRING "$PACKAGE_STRING"
2287_ACEOF
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2291_ACEOF
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_URL "$PACKAGE_URL"
2295_ACEOF
2296
2297
2298# Let the site file select an alternate cache file if it wants to.
2299# Prefer an explicitly selected file to automatically selected ones.
2300ac_site_file1=NONE
2301ac_site_file2=NONE
2302if test -n "$CONFIG_SITE"; then
2303  ac_site_file1=$CONFIG_SITE
2304elif test "x$prefix" != xNONE; then
2305  ac_site_file1=$prefix/share/config.site
2306  ac_site_file2=$prefix/etc/config.site
2307else
2308  ac_site_file1=$ac_default_prefix/share/config.site
2309  ac_site_file2=$ac_default_prefix/etc/config.site
2310fi
2311for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2312do
2313  test "x$ac_site_file" = xNONE && continue
2314  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317    sed 's/^/| /' "$ac_site_file" >&5
2318    . "$ac_site_file"
2319  fi
2320done
2321
2322if test -r "$cache_file"; then
2323  # Some versions of bash will fail to source /dev/null (special files
2324  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2325  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327$as_echo "$as_me: loading cache $cache_file" >&6;}
2328    case $cache_file in
2329      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330      *)                      . "./$cache_file";;
2331    esac
2332  fi
2333else
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335$as_echo "$as_me: creating cache $cache_file" >&6;}
2336  >$cache_file
2337fi
2338
2339# Check that the precious variables saved in the cache have kept the same
2340# value.
2341ac_cache_corrupted=false
2342for ac_var in $ac_precious_vars; do
2343  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344  eval ac_new_set=\$ac_env_${ac_var}_set
2345  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346  eval ac_new_val=\$ac_env_${ac_var}_value
2347  case $ac_old_set,$ac_new_set in
2348    set,)
2349      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2350$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2351      ac_cache_corrupted=: ;;
2352    ,set)
2353      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2354$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2355      ac_cache_corrupted=: ;;
2356    ,);;
2357    *)
2358      if test "x$ac_old_val" != "x$ac_new_val"; then
2359	# differences in whitespace do not lead to failure.
2360	ac_old_val_w=`echo x $ac_old_val`
2361	ac_new_val_w=`echo x $ac_new_val`
2362	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2363	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2364$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365	  ac_cache_corrupted=:
2366	else
2367	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2368$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369	  eval $ac_var=\$ac_old_val
2370	fi
2371	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2372$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2373	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2374$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2375      fi;;
2376  esac
2377  # Pass precious variables to config.status.
2378  if test "$ac_new_set" = set; then
2379    case $ac_new_val in
2380    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2381    *) ac_arg=$ac_var=$ac_new_val ;;
2382    esac
2383    case " $ac_configure_args " in
2384      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2385      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2386    esac
2387  fi
2388done
2389if $ac_cache_corrupted; then
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2393$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2394  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2395fi
2396## -------------------- ##
2397## Main body of script. ##
2398## -------------------- ##
2399
2400ac_ext=c
2401ac_cpp='$CPP $CPPFLAGS'
2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406
2407am__api_version='1.11'
2408
2409ac_aux_dir=
2410for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2411  for ac_t in install-sh install.sh shtool; do
2412    if test -f "$ac_dir/$ac_t"; then
2413      ac_aux_dir=$ac_dir
2414      ac_install_sh="$ac_aux_dir/$ac_t -c"
2415      break 2
2416    fi
2417  done
2418done
2419if test -z "$ac_aux_dir"; then
2420  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2421fi
2422
2423# These three variables are undocumented and unsupported,
2424# and are intended to be withdrawn in a future Autoconf release.
2425# They can cause serious problems if a builder's source tree is in a directory
2426# whose full name contains unusual characters.
2427ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2428ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2429ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2430
2431
2432# Find a good install program.  We prefer a C program (faster),
2433# so one script is as good as another.  But avoid the broken or
2434# incompatible versions:
2435# SysV /etc/install, /usr/sbin/install
2436# SunOS /usr/etc/install
2437# IRIX /sbin/install
2438# AIX /bin/install
2439# AmigaOS /C/install, which installs bootblocks on floppy discs
2440# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2441# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2442# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2443# OS/2's system install, which has a completely different semantic
2444# ./install, which can be erroneously created by make from ./install.sh.
2445# Reject install programs that cannot install multiple files.
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2447$as_echo_n "checking for a BSD-compatible install... " >&6; }
2448if test -z "$INSTALL"; then
2449if test "${ac_cv_path_install+set}" = set; then :
2450  $as_echo_n "(cached) " >&6
2451else
2452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455  IFS=$as_save_IFS
2456  test -z "$as_dir" && as_dir=.
2457    # Account for people who put trailing slashes in PATH elements.
2458case $as_dir/ in #((
2459  ./ | .// | /[cC]/* | \
2460  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2461  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2462  /usr/ucb/* ) ;;
2463  *)
2464    # OSF1 and SCO ODT 3.0 have their own names for install.
2465    # Don't use installbsd from OSF since it installs stuff as root
2466    # by default.
2467    for ac_prog in ginstall scoinst install; do
2468      for ac_exec_ext in '' $ac_executable_extensions; do
2469	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2470	  if test $ac_prog = install &&
2471	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2472	    # AIX install.  It has an incompatible calling convention.
2473	    :
2474	  elif test $ac_prog = install &&
2475	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2476	    # program-specific install script used by HP pwplus--don't use.
2477	    :
2478	  else
2479	    rm -rf conftest.one conftest.two conftest.dir
2480	    echo one > conftest.one
2481	    echo two > conftest.two
2482	    mkdir conftest.dir
2483	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2484	      test -s conftest.one && test -s conftest.two &&
2485	      test -s conftest.dir/conftest.one &&
2486	      test -s conftest.dir/conftest.two
2487	    then
2488	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489	      break 3
2490	    fi
2491	  fi
2492	fi
2493      done
2494    done
2495    ;;
2496esac
2497
2498  done
2499IFS=$as_save_IFS
2500
2501rm -rf conftest.one conftest.two conftest.dir
2502
2503fi
2504  if test "${ac_cv_path_install+set}" = set; then
2505    INSTALL=$ac_cv_path_install
2506  else
2507    # As a last resort, use the slow shell script.  Don't cache a
2508    # value for INSTALL within a source directory, because that will
2509    # break other packages using the cache if that directory is
2510    # removed, or if the value is a relative name.
2511    INSTALL=$ac_install_sh
2512  fi
2513fi
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2515$as_echo "$INSTALL" >&6; }
2516
2517# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2518# It thinks the first close brace ends the variable substitution.
2519test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520
2521test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2522
2523test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2526$as_echo_n "checking whether build environment is sane... " >&6; }
2527# Just in case
2528sleep 1
2529echo timestamp > conftest.file
2530# Reject unsafe characters in $srcdir or the absolute working directory
2531# name.  Accept space and tab only in the latter.
2532am_lf='
2533'
2534case `pwd` in
2535  *[\\\"\#\$\&\'\`$am_lf]*)
2536    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2537esac
2538case $srcdir in
2539  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2540    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2541esac
2542
2543# Do `set' in a subshell so we don't clobber the current shell's
2544# arguments.  Must try -L first in case configure is actually a
2545# symlink; some systems play weird games with the mod time of symlinks
2546# (eg FreeBSD returns the mod time of the symlink's containing
2547# directory).
2548if (
2549   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2550   if test "$*" = "X"; then
2551      # -L didn't work.
2552      set X `ls -t "$srcdir/configure" conftest.file`
2553   fi
2554   rm -f conftest.file
2555   if test "$*" != "X $srcdir/configure conftest.file" \
2556      && test "$*" != "X conftest.file $srcdir/configure"; then
2557
2558      # If neither matched, then we have a broken ls.  This can happen
2559      # if, for instance, CONFIG_SHELL is bash and it inherits a
2560      # broken ls alias from the environment.  This has actually
2561      # happened.  Such a system could not be considered "sane".
2562      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2563alias in your environment" "$LINENO" 5
2564   fi
2565
2566   test "$2" = conftest.file
2567   )
2568then
2569   # Ok.
2570   :
2571else
2572   as_fn_error "newly created file is older than distributed files!
2573Check your system clock" "$LINENO" 5
2574fi
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576$as_echo "yes" >&6; }
2577test "$program_prefix" != NONE &&
2578  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579# Use a double $ so make ignores it.
2580test "$program_suffix" != NONE &&
2581  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582# Double any \ or $.
2583# By default was `s,x,x', remove it if useless.
2584ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2586
2587# expand $ac_aux_dir to an absolute path
2588am_aux_dir=`cd $ac_aux_dir && pwd`
2589
2590if test x"${MISSING+set}" != xset; then
2591  case $am_aux_dir in
2592  *\ * | *\	*)
2593    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2594  *)
2595    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2596  esac
2597fi
2598# Use eval to expand $SHELL
2599if eval "$MISSING --run true"; then
2600  am_missing_run="$MISSING --run "
2601else
2602  am_missing_run=
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2604$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2605fi
2606
2607if test x"${install_sh}" != xset; then
2608  case $am_aux_dir in
2609  *\ * | *\	*)
2610    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2611  *)
2612    install_sh="\${SHELL} $am_aux_dir/install-sh"
2613  esac
2614fi
2615
2616# Installed binaries are usually stripped using `strip' when the user
2617# run `make install-strip'.  However `strip' might not be the right
2618# tool to use in cross-compilation environments, therefore Automake
2619# will honor the `STRIP' environment variable to overrule this program.
2620if test "$cross_compiling" != no; then
2621  if test -n "$ac_tool_prefix"; then
2622  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623set dummy ${ac_tool_prefix}strip; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if test "${ac_cv_prog_STRIP+set}" = set; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  if test -n "$STRIP"; then
2630  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635  IFS=$as_save_IFS
2636  test -z "$as_dir" && as_dir=.
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649STRIP=$ac_cv_prog_STRIP
2650if test -n "$STRIP"; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652$as_echo "$STRIP" >&6; }
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659fi
2660if test -z "$ac_cv_prog_STRIP"; then
2661  ac_ct_STRIP=$STRIP
2662  # Extract the first word of "strip", so it can be a program name with args.
2663set dummy strip; ac_word=$2
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665$as_echo_n "checking for $ac_word... " >&6; }
2666if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669  if test -n "$ac_ct_STRIP"; then
2670  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675  IFS=$as_save_IFS
2676  test -z "$as_dir" && as_dir=.
2677    for ac_exec_ext in '' $ac_executable_extensions; do
2678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679    ac_cv_prog_ac_ct_STRIP="strip"
2680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681    break 2
2682  fi
2683done
2684  done
2685IFS=$as_save_IFS
2686
2687fi
2688fi
2689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690if test -n "$ac_ct_STRIP"; then
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692$as_echo "$ac_ct_STRIP" >&6; }
2693else
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
2696fi
2697
2698  if test "x$ac_ct_STRIP" = x; then
2699    STRIP=":"
2700  else
2701    case $cross_compiling:$ac_tool_warned in
2702yes:)
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705ac_tool_warned=yes ;;
2706esac
2707    STRIP=$ac_ct_STRIP
2708  fi
2709else
2710  STRIP="$ac_cv_prog_STRIP"
2711fi
2712
2713fi
2714INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2715
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2717$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2718if test -z "$MKDIR_P"; then
2719  if test "${ac_cv_path_mkdir+set}" = set; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727    for ac_prog in mkdir gmkdir; do
2728	 for ac_exec_ext in '' $ac_executable_extensions; do
2729	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2730	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731	     'mkdir (GNU coreutils) '* | \
2732	     'mkdir (coreutils) '* | \
2733	     'mkdir (fileutils) '4.1*)
2734	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735	       break 3;;
2736	   esac
2737	 done
2738       done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743
2744  test -d ./--version && rmdir ./--version
2745  if test "${ac_cv_path_mkdir+set}" = set; then
2746    MKDIR_P="$ac_cv_path_mkdir -p"
2747  else
2748    # As a last resort, use the slow shell script.  Don't cache a
2749    # value for MKDIR_P within a source directory, because that will
2750    # break other packages using the cache if that directory is
2751    # removed, or if the value is a relative name.
2752    MKDIR_P="$ac_install_sh -d"
2753  fi
2754fi
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756$as_echo "$MKDIR_P" >&6; }
2757
2758mkdir_p="$MKDIR_P"
2759case $mkdir_p in
2760  [\\/$]* | ?:[\\/]*) ;;
2761  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2762esac
2763
2764for ac_prog in gawk mawk nawk awk
2765do
2766  # Extract the first word of "$ac_prog", so it can be a program name with args.
2767set dummy $ac_prog; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if test "${ac_cv_prog_AWK+set}" = set; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  if test -n "$AWK"; then
2774  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779  IFS=$as_save_IFS
2780  test -z "$as_dir" && as_dir=.
2781    for ac_exec_ext in '' $ac_executable_extensions; do
2782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783    ac_cv_prog_AWK="$ac_prog"
2784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785    break 2
2786  fi
2787done
2788  done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793AWK=$ac_cv_prog_AWK
2794if test -n "$AWK"; then
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2796$as_echo "$AWK" >&6; }
2797else
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
2801
2802
2803  test -n "$AWK" && break
2804done
2805
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2807$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2808set x ${MAKE-make}
2809ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2810if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2811  $as_echo_n "(cached) " >&6
2812else
2813  cat >conftest.make <<\_ACEOF
2814SHELL = /bin/sh
2815all:
2816	@echo '@@@%%%=$(MAKE)=@@@%%%'
2817_ACEOF
2818# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2819case `${MAKE-make} -f conftest.make 2>/dev/null` in
2820  *@@@%%%=?*=@@@%%%*)
2821    eval ac_cv_prog_make_${ac_make}_set=yes;;
2822  *)
2823    eval ac_cv_prog_make_${ac_make}_set=no;;
2824esac
2825rm -f conftest.make
2826fi
2827if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829$as_echo "yes" >&6; }
2830  SET_MAKE=
2831else
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834  SET_MAKE="MAKE=${MAKE-make}"
2835fi
2836
2837rm -rf .tst 2>/dev/null
2838mkdir .tst 2>/dev/null
2839if test -d .tst; then
2840  am__leading_dot=.
2841else
2842  am__leading_dot=_
2843fi
2844rmdir .tst 2>/dev/null
2845
2846if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848  # is not polluted with repeated "-I."
2849  am__isrc=' -I$(srcdir)'
2850  # test to see if srcdir already configured
2851  if test -f $srcdir/config.status; then
2852    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2853  fi
2854fi
2855
2856# test whether we have cygpath
2857if test -z "$CYGPATH_W"; then
2858  if (cygpath --version) >/dev/null 2>/dev/null; then
2859    CYGPATH_W='cygpath -w'
2860  else
2861    CYGPATH_W=echo
2862  fi
2863fi
2864
2865
2866# Define the identity of the package.
2867 PACKAGE='libXt'
2868 VERSION='1.0.8'
2869
2870
2871cat >>confdefs.h <<_ACEOF
2872#define PACKAGE "$PACKAGE"
2873_ACEOF
2874
2875
2876cat >>confdefs.h <<_ACEOF
2877#define VERSION "$VERSION"
2878_ACEOF
2879
2880# Some tools Automake needs.
2881
2882ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2883
2884
2885AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2886
2887
2888AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2889
2890
2891AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2892
2893
2894MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2895
2896# We need awk for the "check" target.  The system "awk" is bad on
2897# some platforms.
2898# Always define AMTAR for backward compatibility.
2899
2900AMTAR=${AMTAR-"${am_missing_run}tar"}
2901
2902am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2903
2904
2905
2906
2907
2908
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2910$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2911    # Check whether --enable-maintainer-mode was given.
2912if test "${enable_maintainer_mode+set}" = set; then :
2913  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2914else
2915  USE_MAINTAINER_MODE=no
2916fi
2917
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2919$as_echo "$USE_MAINTAINER_MODE" >&6; }
2920   if test $USE_MAINTAINER_MODE = yes; then
2921  MAINTAINER_MODE_TRUE=
2922  MAINTAINER_MODE_FALSE='#'
2923else
2924  MAINTAINER_MODE_TRUE='#'
2925  MAINTAINER_MODE_FALSE=
2926fi
2927
2928  MAINT=$MAINTAINER_MODE_TRUE
2929
2930
2931
2932# Require xorg-macros: XORG_DEFAULT_OPTIONS
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944DEPDIR="${am__leading_dot}deps"
2945
2946ac_config_commands="$ac_config_commands depfiles"
2947
2948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951am__doit:
2952	@echo this is the am__doit target
2953.PHONY: am__doit
2954END
2955# If we don't find an include directive, just comment out the code.
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2957$as_echo_n "checking for style of include used by $am_make... " >&6; }
2958am__include="#"
2959am__quote=
2960_am_result=none
2961# First try GNU make style include.
2962echo "include confinc" > confmf
2963# Ignore all kinds of additional output from `make'.
2964case `$am_make -s -f confmf 2> /dev/null` in #(
2965*the\ am__doit\ target*)
2966  am__include=include
2967  am__quote=
2968  _am_result=GNU
2969  ;;
2970esac
2971# Now try BSD make style include.
2972if test "$am__include" = "#"; then
2973   echo '.include "confinc"' > confmf
2974   case `$am_make -s -f confmf 2> /dev/null` in #(
2975   *the\ am__doit\ target*)
2976     am__include=.include
2977     am__quote="\""
2978     _am_result=BSD
2979     ;;
2980   esac
2981fi
2982
2983
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2985$as_echo "$_am_result" >&6; }
2986rm -f confinc confmf
2987
2988# Check whether --enable-dependency-tracking was given.
2989if test "${enable_dependency_tracking+set}" = set; then :
2990  enableval=$enable_dependency_tracking;
2991fi
2992
2993if test "x$enable_dependency_tracking" != xno; then
2994  am_depcomp="$ac_aux_dir/depcomp"
2995  AMDEPBACKSLASH='\'
2996fi
2997 if test "x$enable_dependency_tracking" != xno; then
2998  AMDEP_TRUE=
2999  AMDEP_FALSE='#'
3000else
3001  AMDEP_TRUE='#'
3002  AMDEP_FALSE=
3003fi
3004
3005
3006ac_ext=c
3007ac_cpp='$CPP $CPPFLAGS'
3008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011if test -n "$ac_tool_prefix"; then
3012  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3013set dummy ${ac_tool_prefix}gcc; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if test "${ac_cv_prog_CC+set}" = set; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$CC"; then
3020  ac_cv_prog_CC="$CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042$as_echo "$CC" >&6; }
3043else
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049fi
3050if test -z "$ac_cv_prog_CC"; then
3051  ac_ct_CC=$CC
3052  # Extract the first word of "gcc", so it can be a program name with args.
3053set dummy gcc; ac_word=$2
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055$as_echo_n "checking for $ac_word... " >&6; }
3056if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3057  $as_echo_n "(cached) " >&6
3058else
3059  if test -n "$ac_ct_CC"; then
3060  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067    for ac_exec_ext in '' $ac_executable_extensions; do
3068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069    ac_cv_prog_ac_ct_CC="gcc"
3070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074  done
3075IFS=$as_save_IFS
3076
3077fi
3078fi
3079ac_ct_CC=$ac_cv_prog_ac_ct_CC
3080if test -n "$ac_ct_CC"; then
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3082$as_echo "$ac_ct_CC" >&6; }
3083else
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086fi
3087
3088  if test "x$ac_ct_CC" = x; then
3089    CC=""
3090  else
3091    case $cross_compiling:$ac_tool_warned in
3092yes:)
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3095ac_tool_warned=yes ;;
3096esac
3097    CC=$ac_ct_CC
3098  fi
3099else
3100  CC="$ac_cv_prog_CC"
3101fi
3102
3103if test -z "$CC"; then
3104          if test -n "$ac_tool_prefix"; then
3105    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3106set dummy ${ac_tool_prefix}cc; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if test "${ac_cv_prog_CC+set}" = set; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$CC"; then
3113  ac_cv_prog_CC="$CC" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122    ac_cv_prog_CC="${ac_tool_prefix}cc"
3123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132CC=$ac_cv_prog_CC
3133if test -n "$CC"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135$as_echo "$CC" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142  fi
3143fi
3144if test -z "$CC"; then
3145  # Extract the first word of "cc", so it can be a program name with args.
3146set dummy cc; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
3149if test "${ac_cv_prog_CC+set}" = set; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152  if test -n "$CC"; then
3153  ac_cv_prog_CC="$CC" # Let the user override the test.
3154else
3155  ac_prog_rejected=no
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159  IFS=$as_save_IFS
3160  test -z "$as_dir" && as_dir=.
3161    for ac_exec_ext in '' $ac_executable_extensions; do
3162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3164       ac_prog_rejected=yes
3165       continue
3166     fi
3167    ac_cv_prog_CC="cc"
3168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172  done
3173IFS=$as_save_IFS
3174
3175if test $ac_prog_rejected = yes; then
3176  # We found a bogon in the path, so make sure we never use it.
3177  set dummy $ac_cv_prog_CC
3178  shift
3179  if test $# != 0; then
3180    # We chose a different compiler from the bogus one.
3181    # However, it has the same basename, so the bogon will be chosen
3182    # first if we set CC to just the basename; use the full file name.
3183    shift
3184    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3185  fi
3186fi
3187fi
3188fi
3189CC=$ac_cv_prog_CC
3190if test -n "$CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192$as_echo "$CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199fi
3200if test -z "$CC"; then
3201  if test -n "$ac_tool_prefix"; then
3202  for ac_prog in cl.exe
3203  do
3204    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if test "${ac_cv_prog_CC+set}" = set; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$CC"; then
3212  ac_cv_prog_CC="$CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226  done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234$as_echo "$CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241    test -n "$CC" && break
3242  done
3243fi
3244if test -z "$CC"; then
3245  ac_ct_CC=$CC
3246  for ac_prog in cl.exe
3247do
3248  # Extract the first word of "$ac_prog", so it can be a program name with args.
3249set dummy $ac_prog; ac_word=$2
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251$as_echo_n "checking for $ac_word... " >&6; }
3252if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3253  $as_echo_n "(cached) " >&6
3254else
3255  if test -n "$ac_ct_CC"; then
3256  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3257else
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259for as_dir in $PATH
3260do
3261  IFS=$as_save_IFS
3262  test -z "$as_dir" && as_dir=.
3263    for ac_exec_ext in '' $ac_executable_extensions; do
3264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265    ac_cv_prog_ac_ct_CC="$ac_prog"
3266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267    break 2
3268  fi
3269done
3270  done
3271IFS=$as_save_IFS
3272
3273fi
3274fi
3275ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276if test -n "$ac_ct_CC"; then
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3278$as_echo "$ac_ct_CC" >&6; }
3279else
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282fi
3283
3284
3285  test -n "$ac_ct_CC" && break
3286done
3287
3288  if test "x$ac_ct_CC" = x; then
3289    CC=""
3290  else
3291    case $cross_compiling:$ac_tool_warned in
3292yes:)
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3295ac_tool_warned=yes ;;
3296esac
3297    CC=$ac_ct_CC
3298  fi
3299fi
3300
3301fi
3302
3303
3304test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error "no acceptable C compiler found in \$PATH
3307See \`config.log' for more details." "$LINENO" 5; }
3308
3309# Provide some information about the compiler.
3310$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3311set X $ac_compile
3312ac_compiler=$2
3313for ac_option in --version -v -V -qversion; do
3314  { { ac_try="$ac_compiler $ac_option >&5"
3315case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3322  ac_status=$?
3323  if test -s conftest.err; then
3324    sed '10a\
3325... rest of stderr output deleted ...
3326         10q' conftest.err >conftest.er1
3327    cat conftest.er1 >&5
3328  fi
3329  rm -f conftest.er1 conftest.err
3330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331  test $ac_status = 0; }
3332done
3333
3334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h.  */
3336
3337int
3338main ()
3339{
3340
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345ac_clean_files_save=$ac_clean_files
3346ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3347# Try to create an executable without -o first, disregard a.out.
3348# It will help us diagnose broken compilers, and finding out an intuition
3349# of exeext.
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3351$as_echo_n "checking whether the C compiler works... " >&6; }
3352ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3353
3354# The possible output files:
3355ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3356
3357ac_rmfiles=
3358for ac_file in $ac_files
3359do
3360  case $ac_file in
3361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3362    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3363  esac
3364done
3365rm -f $ac_rmfiles
3366
3367if { { ac_try="$ac_link_default"
3368case "(($ac_try" in
3369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370  *) ac_try_echo=$ac_try;;
3371esac
3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373$as_echo "$ac_try_echo"; } >&5
3374  (eval "$ac_link_default") 2>&5
3375  ac_status=$?
3376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377  test $ac_status = 0; }; then :
3378  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3379# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3380# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3381# so that the user can short-circuit this test for compilers unknown to
3382# Autoconf.
3383for ac_file in $ac_files ''
3384do
3385  test -f "$ac_file" || continue
3386  case $ac_file in
3387    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3388	;;
3389    [ab].out )
3390	# We found the default executable, but exeext='' is most
3391	# certainly right.
3392	break;;
3393    *.* )
3394	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3395	then :; else
3396	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3397	fi
3398	# We set ac_cv_exeext here because the later test for it is not
3399	# safe: cross compilers may not add the suffix if given an `-o'
3400	# argument, so we may need to know it at that point already.
3401	# Even if this section looks crufty: it has the advantage of
3402	# actually working.
3403	break;;
3404    * )
3405	break;;
3406  esac
3407done
3408test "$ac_cv_exeext" = no && ac_cv_exeext=
3409
3410else
3411  ac_file=''
3412fi
3413if test -z "$ac_file"; then :
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416$as_echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421{ as_fn_set_status 77
3422as_fn_error "C compiler cannot create executables
3423See \`config.log' for more details." "$LINENO" 5; }; }
3424else
3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426$as_echo "yes" >&6; }
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3429$as_echo_n "checking for C compiler default output file name... " >&6; }
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431$as_echo "$ac_file" >&6; }
3432ac_exeext=$ac_cv_exeext
3433
3434rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3435ac_clean_files=$ac_clean_files_save
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3437$as_echo_n "checking for suffix of executables... " >&6; }
3438if { { ac_try="$ac_link"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445  (eval "$ac_link") 2>&5
3446  ac_status=$?
3447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448  test $ac_status = 0; }; then :
3449  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3450# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3451# work properly (i.e., refer to `conftest.exe'), while it won't with
3452# `rm'.
3453for ac_file in conftest.exe conftest conftest.*; do
3454  test -f "$ac_file" || continue
3455  case $ac_file in
3456    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458	  break;;
3459    * ) break;;
3460  esac
3461done
3462else
3463  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465as_fn_error "cannot compute suffix of executables: cannot compile and link
3466See \`config.log' for more details." "$LINENO" 5; }
3467fi
3468rm -f conftest conftest$ac_cv_exeext
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3470$as_echo "$ac_cv_exeext" >&6; }
3471
3472rm -f conftest.$ac_ext
3473EXEEXT=$ac_cv_exeext
3474ac_exeext=$EXEEXT
3475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h.  */
3477#include <stdio.h>
3478int
3479main ()
3480{
3481FILE *f = fopen ("conftest.out", "w");
3482 return ferror (f) || fclose (f) != 0;
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488ac_clean_files="$ac_clean_files conftest.out"
3489# Check that the compiler produces executables we can run.  If not, either
3490# the compiler is broken, or we cross compile.
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492$as_echo_n "checking whether we are cross compiling... " >&6; }
3493if test "$cross_compiling" != yes; then
3494  { { ac_try="$ac_link"
3495case "(($ac_try" in
3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497  *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500$as_echo "$ac_try_echo"; } >&5
3501  (eval "$ac_link") 2>&5
3502  ac_status=$?
3503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504  test $ac_status = 0; }
3505  if { ac_try='./conftest$ac_cv_exeext'
3506  { { case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_try") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; }; then
3516    cross_compiling=no
3517  else
3518    if test "$cross_compiling" = maybe; then
3519	cross_compiling=yes
3520    else
3521	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error "cannot run C compiled programs.
3524If you meant to cross compile, use \`--host'.
3525See \`config.log' for more details." "$LINENO" 5; }
3526    fi
3527  fi
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3530$as_echo "$cross_compiling" >&6; }
3531
3532rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3533ac_clean_files=$ac_clean_files_save
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3535$as_echo_n "checking for suffix of object files... " >&6; }
3536if test "${ac_cv_objext+set}" = set; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550rm -f conftest.o conftest.obj
3551if { { ac_try="$ac_compile"
3552case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558  (eval "$ac_compile") 2>&5
3559  ac_status=$?
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }; then :
3562  for ac_file in conftest.o conftest.obj conftest.*; do
3563  test -f "$ac_file" || continue;
3564  case $ac_file in
3565    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3566    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3567       break;;
3568  esac
3569done
3570else
3571  $as_echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576as_fn_error "cannot compute suffix of object files: cannot compile
3577See \`config.log' for more details." "$LINENO" 5; }
3578fi
3579rm -f conftest.$ac_cv_objext conftest.$ac_ext
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3582$as_echo "$ac_cv_objext" >&6; }
3583OBJEXT=$ac_cv_objext
3584ac_objext=$OBJEXT
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3587if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596#ifndef __GNUC__
3597       choke me
3598#endif
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604if ac_fn_c_try_compile "$LINENO"; then :
3605  ac_compiler_gnu=yes
3606else
3607  ac_compiler_gnu=no
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610ac_cv_c_compiler_gnu=$ac_compiler_gnu
3611
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3615if test $ac_compiler_gnu = yes; then
3616  GCC=yes
3617else
3618  GCC=
3619fi
3620ac_test_CFLAGS=${CFLAGS+set}
3621ac_save_CFLAGS=$CFLAGS
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3623$as_echo_n "checking whether $CC accepts -g... " >&6; }
3624if test "${ac_cv_prog_cc_g+set}" = set; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  ac_save_c_werror_flag=$ac_c_werror_flag
3628   ac_c_werror_flag=yes
3629   ac_cv_prog_cc_g=no
3630   CFLAGS="-g"
3631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642if ac_fn_c_try_compile "$LINENO"; then :
3643  ac_cv_prog_cc_g=yes
3644else
3645  CFLAGS=""
3646      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657if ac_fn_c_try_compile "$LINENO"; then :
3658
3659else
3660  ac_c_werror_flag=$ac_save_c_werror_flag
3661	 CFLAGS="-g"
3662	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_compile "$LINENO"; then :
3674  ac_cv_prog_cc_g=yes
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677fi
3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679fi
3680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681   ac_c_werror_flag=$ac_save_c_werror_flag
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3684$as_echo "$ac_cv_prog_cc_g" >&6; }
3685if test "$ac_test_CFLAGS" = set; then
3686  CFLAGS=$ac_save_CFLAGS
3687elif test $ac_cv_prog_cc_g = yes; then
3688  if test "$GCC" = yes; then
3689    CFLAGS="-g -O2"
3690  else
3691    CFLAGS="-g"
3692  fi
3693else
3694  if test "$GCC" = yes; then
3695    CFLAGS="-O2"
3696  else
3697    CFLAGS=
3698  fi
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3702if test "${ac_cv_prog_cc_c89+set}" = set; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  ac_cv_prog_cc_c89=no
3706ac_save_CC=$CC
3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709#include <stdarg.h>
3710#include <stdio.h>
3711#include <sys/types.h>
3712#include <sys/stat.h>
3713/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3714struct buf { int x; };
3715FILE * (*rcsopen) (struct buf *, struct stat *, int);
3716static char *e (p, i)
3717     char **p;
3718     int i;
3719{
3720  return p[i];
3721}
3722static char *f (char * (*g) (char **, int), char **p, ...)
3723{
3724  char *s;
3725  va_list v;
3726  va_start (v,p);
3727  s = g (p, va_arg (v,int));
3728  va_end (v);
3729  return s;
3730}
3731
3732/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3733   function prototypes and stuff, but not '\xHH' hex character constants.
3734   These don't provoke an error unfortunately, instead are silently treated
3735   as 'x'.  The following induces an error, until -std is added to get
3736   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3737   array size at least.  It's necessary to write '\x00'==0 to get something
3738   that's true only with -std.  */
3739int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740
3741/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3742   inside strings and character constants.  */
3743#define FOO(x) 'x'
3744int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3745
3746int test (int i, double x);
3747struct s1 {int (*f) (int a);};
3748struct s2 {int (*f) (double a);};
3749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3750int argc;
3751char **argv;
3752int
3753main ()
3754{
3755return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3761	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3762do
3763  CC="$ac_save_CC $ac_arg"
3764  if ac_fn_c_try_compile "$LINENO"; then :
3765  ac_cv_prog_cc_c89=$ac_arg
3766fi
3767rm -f core conftest.err conftest.$ac_objext
3768  test "x$ac_cv_prog_cc_c89" != "xno" && break
3769done
3770rm -f conftest.$ac_ext
3771CC=$ac_save_CC
3772
3773fi
3774# AC_CACHE_VAL
3775case "x$ac_cv_prog_cc_c89" in
3776  x)
3777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3778$as_echo "none needed" >&6; } ;;
3779  xno)
3780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3781$as_echo "unsupported" >&6; } ;;
3782  *)
3783    CC="$CC $ac_cv_prog_cc_c89"
3784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3785$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3786esac
3787if test "x$ac_cv_prog_cc_c89" != xno; then :
3788
3789fi
3790
3791ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797depcc="$CC"   am_compiler_list=
3798
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3800$as_echo_n "checking dependency style of $depcc... " >&6; }
3801if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3805  # We make a subdir and do the tests there.  Otherwise we can end up
3806  # making bogus files that we don't know about and never remove.  For
3807  # instance it was reported that on HP-UX the gcc test will end up
3808  # making a dummy file named `D' -- because `-MD' means `put the output
3809  # in D'.
3810  mkdir conftest.dir
3811  # Copy depcomp to subdir because otherwise we won't find it if we're
3812  # using a relative directory.
3813  cp "$am_depcomp" conftest.dir
3814  cd conftest.dir
3815  # We will build objects and dependencies in a subdirectory because
3816  # it helps to detect inapplicable dependency modes.  For instance
3817  # both Tru64's cc and ICC support -MD to output dependencies as a
3818  # side effect of compilation, but ICC will put the dependencies in
3819  # the current directory while Tru64 will put them in the object
3820  # directory.
3821  mkdir sub
3822
3823  am_cv_CC_dependencies_compiler_type=none
3824  if test "$am_compiler_list" = ""; then
3825     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3826  fi
3827  am__universal=false
3828  case " $depcc " in #(
3829     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3830     esac
3831
3832  for depmode in $am_compiler_list; do
3833    # Setup a source with many dependencies, because some compilers
3834    # like to wrap large dependency lists on column 80 (with \), and
3835    # we should not choose a depcomp mode which is confused by this.
3836    #
3837    # We need to recreate these files for each test, as the compiler may
3838    # overwrite some of them when testing with obscure command lines.
3839    # This happens at least with the AIX C compiler.
3840    : > sub/conftest.c
3841    for i in 1 2 3 4 5 6; do
3842      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3843      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3844      # Solaris 8's {/usr,}/bin/sh.
3845      touch sub/conftst$i.h
3846    done
3847    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3848
3849    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3850    # mode.  It turns out that the SunPro C++ compiler does not properly
3851    # handle `-M -o', and we need to detect this.  Also, some Intel
3852    # versions had trouble with output in subdirs
3853    am__obj=sub/conftest.${OBJEXT-o}
3854    am__minus_obj="-o $am__obj"
3855    case $depmode in
3856    gcc)
3857      # This depmode causes a compiler race in universal mode.
3858      test "$am__universal" = false || continue
3859      ;;
3860    nosideeffect)
3861      # after this tag, mechanisms are not by side-effect, so they'll
3862      # only be used when explicitly requested
3863      if test "x$enable_dependency_tracking" = xyes; then
3864	continue
3865      else
3866	break
3867      fi
3868      ;;
3869    msvisualcpp | msvcmsys)
3870      # This compiler won't grok `-c -o', but also, the minuso test has
3871      # not run yet.  These depmodes are late enough in the game, and
3872      # so weak that their functioning should not be impacted.
3873      am__obj=conftest.${OBJEXT-o}
3874      am__minus_obj=
3875      ;;
3876    none) break ;;
3877    esac
3878    if depmode=$depmode \
3879       source=sub/conftest.c object=$am__obj \
3880       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3881       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3882         >/dev/null 2>conftest.err &&
3883       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3884       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3885       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3886       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3887      # icc doesn't choke on unknown options, it will just issue warnings
3888      # or remarks (even with -Werror).  So we grep stderr for any message
3889      # that says an option was ignored or not supported.
3890      # When given -MP, icc 7.0 and 7.1 complain thusly:
3891      #   icc: Command line warning: ignoring option '-M'; no argument required
3892      # The diagnosis changed in icc 8.0:
3893      #   icc: Command line remark: option '-MP' not supported
3894      if (grep 'ignoring option' conftest.err ||
3895          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3896        am_cv_CC_dependencies_compiler_type=$depmode
3897        break
3898      fi
3899    fi
3900  done
3901
3902  cd ..
3903  rm -rf conftest.dir
3904else
3905  am_cv_CC_dependencies_compiler_type=none
3906fi
3907
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3910$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3911CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3912
3913 if
3914  test "x$enable_dependency_tracking" != xno \
3915  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3916  am__fastdepCC_TRUE=
3917  am__fastdepCC_FALSE='#'
3918else
3919  am__fastdepCC_TRUE='#'
3920  am__fastdepCC_FALSE=
3921fi
3922
3923
3924
3925ac_ext=c
3926ac_cpp='$CPP $CPPFLAGS'
3927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3931$as_echo_n "checking how to run the C preprocessor... " >&6; }
3932# On Suns, sometimes $CPP names a directory.
3933if test -n "$CPP" && test -d "$CPP"; then
3934  CPP=
3935fi
3936if test -z "$CPP"; then
3937  if test "${ac_cv_prog_CPP+set}" = set; then :
3938  $as_echo_n "(cached) " >&6
3939else
3940      # Double quotes because CPP needs to be expanded
3941    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3942    do
3943      ac_preproc_ok=false
3944for ac_c_preproc_warn_flag in '' yes
3945do
3946  # Use a header file that comes with gcc, so configuring glibc
3947  # with a fresh cross-compiler works.
3948  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3949  # <limits.h> exists even on freestanding compilers.
3950  # On the NeXT, cc -E runs the code through the compiler's parser,
3951  # not just through cpp. "Syntax error" is here to catch this case.
3952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954#ifdef __STDC__
3955# include <limits.h>
3956#else
3957# include <assert.h>
3958#endif
3959		     Syntax error
3960_ACEOF
3961if ac_fn_c_try_cpp "$LINENO"; then :
3962
3963else
3964  # Broken: fails on valid input.
3965continue
3966fi
3967rm -f conftest.err conftest.$ac_ext
3968
3969  # OK, works on sane cases.  Now check whether nonexistent headers
3970  # can be detected and how.
3971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h.  */
3973#include <ac_nonexistent.h>
3974_ACEOF
3975if ac_fn_c_try_cpp "$LINENO"; then :
3976  # Broken: success on invalid input.
3977continue
3978else
3979  # Passes both tests.
3980ac_preproc_ok=:
3981break
3982fi
3983rm -f conftest.err conftest.$ac_ext
3984
3985done
3986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987rm -f conftest.err conftest.$ac_ext
3988if $ac_preproc_ok; then :
3989  break
3990fi
3991
3992    done
3993    ac_cv_prog_CPP=$CPP
3994
3995fi
3996  CPP=$ac_cv_prog_CPP
3997else
3998  ac_cv_prog_CPP=$CPP
3999fi
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4001$as_echo "$CPP" >&6; }
4002ac_preproc_ok=false
4003for ac_c_preproc_warn_flag in '' yes
4004do
4005  # Use a header file that comes with gcc, so configuring glibc
4006  # with a fresh cross-compiler works.
4007  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008  # <limits.h> exists even on freestanding compilers.
4009  # On the NeXT, cc -E runs the code through the compiler's parser,
4010  # not just through cpp. "Syntax error" is here to catch this case.
4011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013#ifdef __STDC__
4014# include <limits.h>
4015#else
4016# include <assert.h>
4017#endif
4018		     Syntax error
4019_ACEOF
4020if ac_fn_c_try_cpp "$LINENO"; then :
4021
4022else
4023  # Broken: fails on valid input.
4024continue
4025fi
4026rm -f conftest.err conftest.$ac_ext
4027
4028  # OK, works on sane cases.  Now check whether nonexistent headers
4029  # can be detected and how.
4030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#include <ac_nonexistent.h>
4033_ACEOF
4034if ac_fn_c_try_cpp "$LINENO"; then :
4035  # Broken: success on invalid input.
4036continue
4037else
4038  # Passes both tests.
4039ac_preproc_ok=:
4040break
4041fi
4042rm -f conftest.err conftest.$ac_ext
4043
4044done
4045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046rm -f conftest.err conftest.$ac_ext
4047if $ac_preproc_ok; then :
4048
4049else
4050  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052as_fn_error "C preprocessor \"$CPP\" fails sanity check
4053See \`config.log' for more details." "$LINENO" 5; }
4054fi
4055
4056ac_ext=c
4057ac_cpp='$CPP $CPPFLAGS'
4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4064$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4065if test "${ac_cv_path_GREP+set}" = set; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  if test -z "$GREP"; then
4069  ac_path_GREP_found=false
4070  # Loop through the user's path and test for each of PROGNAME-LIST
4071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073do
4074  IFS=$as_save_IFS
4075  test -z "$as_dir" && as_dir=.
4076    for ac_prog in grep ggrep; do
4077    for ac_exec_ext in '' $ac_executable_extensions; do
4078      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4079      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4080# Check for GNU ac_path_GREP and select it if it is found.
4081  # Check for GNU $ac_path_GREP
4082case `"$ac_path_GREP" --version 2>&1` in
4083*GNU*)
4084  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4085*)
4086  ac_count=0
4087  $as_echo_n 0123456789 >"conftest.in"
4088  while :
4089  do
4090    cat "conftest.in" "conftest.in" >"conftest.tmp"
4091    mv "conftest.tmp" "conftest.in"
4092    cp "conftest.in" "conftest.nl"
4093    $as_echo 'GREP' >> "conftest.nl"
4094    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096    as_fn_arith $ac_count + 1 && ac_count=$as_val
4097    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4098      # Best one so far, save it but keep looking for a better one
4099      ac_cv_path_GREP="$ac_path_GREP"
4100      ac_path_GREP_max=$ac_count
4101    fi
4102    # 10*(2^10) chars as input seems more than enough
4103    test $ac_count -gt 10 && break
4104  done
4105  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106esac
4107
4108      $ac_path_GREP_found && break 3
4109    done
4110  done
4111  done
4112IFS=$as_save_IFS
4113  if test -z "$ac_cv_path_GREP"; then
4114    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4115  fi
4116else
4117  ac_cv_path_GREP=$GREP
4118fi
4119
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4122$as_echo "$ac_cv_path_GREP" >&6; }
4123 GREP="$ac_cv_path_GREP"
4124
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4127$as_echo_n "checking for egrep... " >&6; }
4128if test "${ac_cv_path_EGREP+set}" = set; then :
4129  $as_echo_n "(cached) " >&6
4130else
4131  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4132   then ac_cv_path_EGREP="$GREP -E"
4133   else
4134     if test -z "$EGREP"; then
4135  ac_path_EGREP_found=false
4136  # Loop through the user's path and test for each of PROGNAME-LIST
4137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139do
4140  IFS=$as_save_IFS
4141  test -z "$as_dir" && as_dir=.
4142    for ac_prog in egrep; do
4143    for ac_exec_ext in '' $ac_executable_extensions; do
4144      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4145      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4146# Check for GNU ac_path_EGREP and select it if it is found.
4147  # Check for GNU $ac_path_EGREP
4148case `"$ac_path_EGREP" --version 2>&1` in
4149*GNU*)
4150  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4151*)
4152  ac_count=0
4153  $as_echo_n 0123456789 >"conftest.in"
4154  while :
4155  do
4156    cat "conftest.in" "conftest.in" >"conftest.tmp"
4157    mv "conftest.tmp" "conftest.in"
4158    cp "conftest.in" "conftest.nl"
4159    $as_echo 'EGREP' >> "conftest.nl"
4160    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162    as_fn_arith $ac_count + 1 && ac_count=$as_val
4163    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4164      # Best one so far, save it but keep looking for a better one
4165      ac_cv_path_EGREP="$ac_path_EGREP"
4166      ac_path_EGREP_max=$ac_count
4167    fi
4168    # 10*(2^10) chars as input seems more than enough
4169    test $ac_count -gt 10 && break
4170  done
4171  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172esac
4173
4174      $ac_path_EGREP_found && break 3
4175    done
4176  done
4177  done
4178IFS=$as_save_IFS
4179  if test -z "$ac_cv_path_EGREP"; then
4180    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4181  fi
4182else
4183  ac_cv_path_EGREP=$EGREP
4184fi
4185
4186   fi
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4189$as_echo "$ac_cv_path_EGREP" >&6; }
4190 EGREP="$ac_cv_path_EGREP"
4191
4192
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4194$as_echo_n "checking for ANSI C header files... " >&6; }
4195if test "${ac_cv_header_stdc+set}" = set; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200#include <stdlib.h>
4201#include <stdarg.h>
4202#include <string.h>
4203#include <float.h>
4204
4205int
4206main ()
4207{
4208
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_compile "$LINENO"; then :
4214  ac_cv_header_stdc=yes
4215else
4216  ac_cv_header_stdc=no
4217fi
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219
4220if test $ac_cv_header_stdc = yes; then
4221  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223/* end confdefs.h.  */
4224#include <string.h>
4225
4226_ACEOF
4227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4228  $EGREP "memchr" >/dev/null 2>&1; then :
4229
4230else
4231  ac_cv_header_stdc=no
4232fi
4233rm -f conftest*
4234
4235fi
4236
4237if test $ac_cv_header_stdc = yes; then
4238  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h.  */
4241#include <stdlib.h>
4242
4243_ACEOF
4244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245  $EGREP "free" >/dev/null 2>&1; then :
4246
4247else
4248  ac_cv_header_stdc=no
4249fi
4250rm -f conftest*
4251
4252fi
4253
4254if test $ac_cv_header_stdc = yes; then
4255  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4256  if test "$cross_compiling" = yes; then :
4257  :
4258else
4259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261#include <ctype.h>
4262#include <stdlib.h>
4263#if ((' ' & 0x0FF) == 0x020)
4264# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4265# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4266#else
4267# define ISLOWER(c) \
4268		   (('a' <= (c) && (c) <= 'i') \
4269		     || ('j' <= (c) && (c) <= 'r') \
4270		     || ('s' <= (c) && (c) <= 'z'))
4271# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4272#endif
4273
4274#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4275int
4276main ()
4277{
4278  int i;
4279  for (i = 0; i < 256; i++)
4280    if (XOR (islower (i), ISLOWER (i))
4281	|| toupper (i) != TOUPPER (i))
4282      return 2;
4283  return 0;
4284}
4285_ACEOF
4286if ac_fn_c_try_run "$LINENO"; then :
4287
4288else
4289  ac_cv_header_stdc=no
4290fi
4291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4292  conftest.$ac_objext conftest.beam conftest.$ac_ext
4293fi
4294
4295fi
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4298$as_echo "$ac_cv_header_stdc" >&6; }
4299if test $ac_cv_header_stdc = yes; then
4300
4301$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4302
4303fi
4304
4305# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4306for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4307		  inttypes.h stdint.h unistd.h
4308do :
4309  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4310ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4311"
4312eval as_val=\$$as_ac_Header
4313   if test "x$as_val" = x""yes; then :
4314  cat >>confdefs.h <<_ACEOF
4315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316_ACEOF
4317
4318fi
4319
4320done
4321
4322
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4324$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4325if test "${ac_cv_prog_cc_c99+set}" = set; then :
4326  $as_echo_n "(cached) " >&6
4327else
4328  ac_cv_prog_cc_c99=no
4329ac_save_CC=$CC
4330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332#include <stdarg.h>
4333#include <stdbool.h>
4334#include <stdlib.h>
4335#include <wchar.h>
4336#include <stdio.h>
4337
4338// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4339#define debug(...) fprintf (stderr, __VA_ARGS__)
4340#define showlist(...) puts (#__VA_ARGS__)
4341#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4342static void
4343test_varargs_macros (void)
4344{
4345  int x = 1234;
4346  int y = 5678;
4347  debug ("Flag");
4348  debug ("X = %d\n", x);
4349  showlist (The first, second, and third items.);
4350  report (x>y, "x is %d but y is %d", x, y);
4351}
4352
4353// Check long long types.
4354#define BIG64 18446744073709551615ull
4355#define BIG32 4294967295ul
4356#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4357#if !BIG_OK
4358  your preprocessor is broken;
4359#endif
4360#if BIG_OK
4361#else
4362  your preprocessor is broken;
4363#endif
4364static long long int bignum = -9223372036854775807LL;
4365static unsigned long long int ubignum = BIG64;
4366
4367struct incomplete_array
4368{
4369  int datasize;
4370  double data[];
4371};
4372
4373struct named_init {
4374  int number;
4375  const wchar_t *name;
4376  double average;
4377};
4378
4379typedef const char *ccp;
4380
4381static inline int
4382test_restrict (ccp restrict text)
4383{
4384  // See if C++-style comments work.
4385  // Iterate through items via the restricted pointer.
4386  // Also check for declarations in for loops.
4387  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4388    continue;
4389  return 0;
4390}
4391
4392// Check varargs and va_copy.
4393static void
4394test_varargs (const char *format, ...)
4395{
4396  va_list args;
4397  va_start (args, format);
4398  va_list args_copy;
4399  va_copy (args_copy, args);
4400
4401  const char *str;
4402  int number;
4403  float fnumber;
4404
4405  while (*format)
4406    {
4407      switch (*format++)
4408	{
4409	case 's': // string
4410	  str = va_arg (args_copy, const char *);
4411	  break;
4412	case 'd': // int
4413	  number = va_arg (args_copy, int);
4414	  break;
4415	case 'f': // float
4416	  fnumber = va_arg (args_copy, double);
4417	  break;
4418	default:
4419	  break;
4420	}
4421    }
4422  va_end (args_copy);
4423  va_end (args);
4424}
4425
4426int
4427main ()
4428{
4429
4430  // Check bool.
4431  _Bool success = false;
4432
4433  // Check restrict.
4434  if (test_restrict ("String literal") == 0)
4435    success = true;
4436  char *restrict newvar = "Another string";
4437
4438  // Check varargs.
4439  test_varargs ("s, d' f .", "string", 65, 34.234);
4440  test_varargs_macros ();
4441
4442  // Check flexible array members.
4443  struct incomplete_array *ia =
4444    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4445  ia->datasize = 10;
4446  for (int i = 0; i < ia->datasize; ++i)
4447    ia->data[i] = i * 1.234;
4448
4449  // Check named initializers.
4450  struct named_init ni = {
4451    .number = 34,
4452    .name = L"Test wide string",
4453    .average = 543.34343,
4454  };
4455
4456  ni.number = 58;
4457
4458  int dynamic_array[ni.number];
4459  dynamic_array[ni.number - 1] = 543;
4460
4461  // work around unused variable warnings
4462  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4463	  || dynamic_array[ni.number - 1] != 543);
4464
4465  ;
4466  return 0;
4467}
4468_ACEOF
4469for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4470do
4471  CC="$ac_save_CC $ac_arg"
4472  if ac_fn_c_try_compile "$LINENO"; then :
4473  ac_cv_prog_cc_c99=$ac_arg
4474fi
4475rm -f core conftest.err conftest.$ac_objext
4476  test "x$ac_cv_prog_cc_c99" != "xno" && break
4477done
4478rm -f conftest.$ac_ext
4479CC=$ac_save_CC
4480
4481fi
4482# AC_CACHE_VAL
4483case "x$ac_cv_prog_cc_c99" in
4484  x)
4485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4486$as_echo "none needed" >&6; } ;;
4487  xno)
4488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4489$as_echo "unsupported" >&6; } ;;
4490  *)
4491    CC="$CC $ac_cv_prog_cc_c99"
4492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4493$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4494esac
4495if test "x$ac_cv_prog_cc_c99" != xno; then :
4496
4497fi
4498
4499
4500
4501
4502if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4503	if test -n "$ac_tool_prefix"; then
4504  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4505set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507$as_echo_n "checking for $ac_word... " >&6; }
4508if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  case $PKG_CONFIG in
4512  [\\/]* | ?:[\\/]*)
4513  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4514  ;;
4515  *)
4516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519  IFS=$as_save_IFS
4520  test -z "$as_dir" && as_dir=.
4521    for ac_exec_ext in '' $ac_executable_extensions; do
4522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525    break 2
4526  fi
4527done
4528  done
4529IFS=$as_save_IFS
4530
4531  ;;
4532esac
4533fi
4534PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4535if test -n "$PKG_CONFIG"; then
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4537$as_echo "$PKG_CONFIG" >&6; }
4538else
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543
4544fi
4545if test -z "$ac_cv_path_PKG_CONFIG"; then
4546  ac_pt_PKG_CONFIG=$PKG_CONFIG
4547  # Extract the first word of "pkg-config", so it can be a program name with args.
4548set dummy pkg-config; ac_word=$2
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550$as_echo_n "checking for $ac_word... " >&6; }
4551if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4552  $as_echo_n "(cached) " >&6
4553else
4554  case $ac_pt_PKG_CONFIG in
4555  [\\/]* | ?:[\\/]*)
4556  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4557  ;;
4558  *)
4559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562  IFS=$as_save_IFS
4563  test -z "$as_dir" && as_dir=.
4564    for ac_exec_ext in '' $ac_executable_extensions; do
4565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568    break 2
4569  fi
4570done
4571  done
4572IFS=$as_save_IFS
4573
4574  ;;
4575esac
4576fi
4577ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4578if test -n "$ac_pt_PKG_CONFIG"; then
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4580$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4581else
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586  if test "x$ac_pt_PKG_CONFIG" = x; then
4587    PKG_CONFIG=""
4588  else
4589    case $cross_compiling:$ac_tool_warned in
4590yes:)
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593ac_tool_warned=yes ;;
4594esac
4595    PKG_CONFIG=$ac_pt_PKG_CONFIG
4596  fi
4597else
4598  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4599fi
4600
4601fi
4602if test -n "$PKG_CONFIG"; then
4603	_pkg_min_version=0.9.0
4604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4605$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4606	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4608$as_echo "yes" >&6; }
4609	else
4610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612		PKG_CONFIG=""
4613	fi
4614
4615fi
4616# Make sure we can run config.sub.
4617$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4618  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4621$as_echo_n "checking build system type... " >&6; }
4622if test "${ac_cv_build+set}" = set; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  ac_build_alias=$build_alias
4626test "x$ac_build_alias" = x &&
4627  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4628test "x$ac_build_alias" = x &&
4629  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4630ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4631  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4632
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4635$as_echo "$ac_cv_build" >&6; }
4636case $ac_cv_build in
4637*-*-*) ;;
4638*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4639esac
4640build=$ac_cv_build
4641ac_save_IFS=$IFS; IFS='-'
4642set x $ac_cv_build
4643shift
4644build_cpu=$1
4645build_vendor=$2
4646shift; shift
4647# Remember, the first character of IFS is used to create $*,
4648# except with old shells:
4649build_os=$*
4650IFS=$ac_save_IFS
4651case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4652
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4655$as_echo_n "checking host system type... " >&6; }
4656if test "${ac_cv_host+set}" = set; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  if test "x$host_alias" = x; then
4660  ac_cv_host=$ac_cv_build
4661else
4662  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4663    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4664fi
4665
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4668$as_echo "$ac_cv_host" >&6; }
4669case $ac_cv_host in
4670*-*-*) ;;
4671*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4672esac
4673host=$ac_cv_host
4674ac_save_IFS=$IFS; IFS='-'
4675set x $ac_cv_host
4676shift
4677host_cpu=$1
4678host_vendor=$2
4679shift; shift
4680# Remember, the first character of IFS is used to create $*,
4681# except with old shells:
4682host_os=$*
4683IFS=$ac_save_IFS
4684case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4685
4686
4687
4688
4689
4690if  test "x$GCC" = xyes ; then
4691    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4692-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4693-Wbad-function-cast -Wformat=2"
4694    case `$CC -dumpversion` in
4695    3.4.* | 4.*)
4696	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4697	;;
4698    esac
4699else
4700    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4701if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4702  SUNCC="yes"
4703else
4704  SUNCC="no"
4705fi
4706
4707    if test "x$SUNCC" = "xyes"; then
4708	CWARNFLAGS="-v"
4709    fi
4710fi
4711
4712# Check whether --enable-silent-rules was given.
4713if test "${enable_silent_rules+set}" = set; then :
4714  enableval=$enable_silent_rules;
4715fi
4716
4717case $enable_silent_rules in
4718yes) AM_DEFAULT_VERBOSITY=0;;
4719no)  AM_DEFAULT_VERBOSITY=1;;
4720*)   AM_DEFAULT_VERBOSITY=0;;
4721esac
4722AM_BACKSLASH='\'
4723
4724
4725
4726
4727
4728
4729
4730# Check whether --enable-strict-compilation was given.
4731if test "${enable_strict_compilation+set}" = set; then :
4732  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4733else
4734  STRICT_COMPILE=no
4735fi
4736
4737if test "x$STRICT_COMPILE" = "xyes"; then
4738	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4739if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4740  SUNCC="yes"
4741else
4742  SUNCC="no"
4743fi
4744
4745	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4746if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4747  INTELCC="yes"
4748else
4749  INTELCC="no"
4750fi
4751
4752	if test "x$GCC" = xyes ; then
4753		STRICT_CFLAGS="-pedantic -Werror"
4754	elif test "x$SUNCC" = "xyes"; then
4755		STRICT_CFLAGS="-errwarn"
4756    elif test "x$INTELCC" = "xyes"; then
4757		STRICT_CFLAGS="-Werror"
4758	fi
4759fi
4760CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4761
4762
4763
4764
4765# Check whether --with-release-version was given.
4766if test "${with_release_version+set}" = set; then :
4767  withval=$with_release_version; RELEASE_VERSION="$withval"
4768else
4769  RELEASE_VERSION=""
4770fi
4771
4772	if test "x$RELEASE_VERSION" != "x"; then
4773		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4774		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4775		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
4776$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4777	fi
4778
4779cat >>confdefs.h <<_ACEOF
4780#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4781_ACEOF
4782
4783	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4784	if test "x$PVM" = "x"; then
4785		PVM="0"
4786	fi
4787
4788cat >>confdefs.h <<_ACEOF
4789#define PACKAGE_VERSION_MINOR $PVM
4790_ACEOF
4791
4792	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4793	if test "x$PVP" = "x"; then
4794		PVP="0"
4795	fi
4796
4797cat >>confdefs.h <<_ACEOF
4798#define PACKAGE_VERSION_PATCHLEVEL $PVP
4799_ACEOF
4800
4801
4802
4803CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4804mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4805|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4806echo 'git directory not found: installing possibly empty changelog.' >&2)"
4807
4808
4809
4810
4811macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4812INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4813mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4814|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4815echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4816
4817
4818
4819
4820
4821if test x$APP_MAN_SUFFIX = x    ; then
4822    APP_MAN_SUFFIX=1
4823fi
4824if test x$APP_MAN_DIR = x    ; then
4825    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4826fi
4827
4828if test x$LIB_MAN_SUFFIX = x    ; then
4829    LIB_MAN_SUFFIX=3
4830fi
4831if test x$LIB_MAN_DIR = x    ; then
4832    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4833fi
4834
4835if test x$FILE_MAN_SUFFIX = x    ; then
4836    case $host_os in
4837	solaris*)	FILE_MAN_SUFFIX=4  ;;
4838	*)		FILE_MAN_SUFFIX=5  ;;
4839    esac
4840fi
4841if test x$FILE_MAN_DIR = x    ; then
4842    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4843fi
4844
4845if test x$MISC_MAN_SUFFIX = x    ; then
4846    case $host_os in
4847	solaris*)	MISC_MAN_SUFFIX=5  ;;
4848	*)		MISC_MAN_SUFFIX=7  ;;
4849    esac
4850fi
4851if test x$MISC_MAN_DIR = x    ; then
4852    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4853fi
4854
4855if test x$DRIVER_MAN_SUFFIX = x    ; then
4856    case $host_os in
4857	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4858	*)		DRIVER_MAN_SUFFIX=4  ;;
4859    esac
4860fi
4861if test x$DRIVER_MAN_DIR = x    ; then
4862    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4863fi
4864
4865if test x$ADMIN_MAN_SUFFIX = x    ; then
4866    case $host_os in
4867	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4868	*)		ADMIN_MAN_SUFFIX=8  ;;
4869    esac
4870fi
4871if test x$ADMIN_MAN_DIR = x    ; then
4872    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4873fi
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890ac_config_headers="$ac_config_headers config.h"
4891
4892
4893# Check for progs
4894ac_ext=c
4895ac_cpp='$CPP $CPPFLAGS'
4896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899if test -n "$ac_tool_prefix"; then
4900  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4901set dummy ${ac_tool_prefix}gcc; ac_word=$2
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
4904if test "${ac_cv_prog_CC+set}" = set; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  if test -n "$CC"; then
4908  ac_cv_prog_CC="$CC" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913  IFS=$as_save_IFS
4914  test -z "$as_dir" && as_dir=.
4915    for ac_exec_ext in '' $ac_executable_extensions; do
4916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919    break 2
4920  fi
4921done
4922  done
4923IFS=$as_save_IFS
4924
4925fi
4926fi
4927CC=$ac_cv_prog_CC
4928if test -n "$CC"; then
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4930$as_echo "$CC" >&6; }
4931else
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933$as_echo "no" >&6; }
4934fi
4935
4936
4937fi
4938if test -z "$ac_cv_prog_CC"; then
4939  ac_ct_CC=$CC
4940  # Extract the first word of "gcc", so it can be a program name with args.
4941set dummy gcc; ac_word=$2
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943$as_echo_n "checking for $ac_word... " >&6; }
4944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4945  $as_echo_n "(cached) " >&6
4946else
4947  if test -n "$ac_ct_CC"; then
4948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955    for ac_exec_ext in '' $ac_executable_extensions; do
4956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957    ac_cv_prog_ac_ct_CC="gcc"
4958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959    break 2
4960  fi
4961done
4962  done
4963IFS=$as_save_IFS
4964
4965fi
4966fi
4967ac_ct_CC=$ac_cv_prog_ac_ct_CC
4968if test -n "$ac_ct_CC"; then
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4970$as_echo "$ac_ct_CC" >&6; }
4971else
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
4974fi
4975
4976  if test "x$ac_ct_CC" = x; then
4977    CC=""
4978  else
4979    case $cross_compiling:$ac_tool_warned in
4980yes:)
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4983ac_tool_warned=yes ;;
4984esac
4985    CC=$ac_ct_CC
4986  fi
4987else
4988  CC="$ac_cv_prog_CC"
4989fi
4990
4991if test -z "$CC"; then
4992          if test -n "$ac_tool_prefix"; then
4993    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4994set dummy ${ac_tool_prefix}cc; ac_word=$2
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996$as_echo_n "checking for $ac_word... " >&6; }
4997if test "${ac_cv_prog_CC+set}" = set; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  if test -n "$CC"; then
5001  ac_cv_prog_CC="$CC" # Let the user override the test.
5002else
5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008    for ac_exec_ext in '' $ac_executable_extensions; do
5009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010    ac_cv_prog_CC="${ac_tool_prefix}cc"
5011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012    break 2
5013  fi
5014done
5015  done
5016IFS=$as_save_IFS
5017
5018fi
5019fi
5020CC=$ac_cv_prog_CC
5021if test -n "$CC"; then
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5023$as_echo "$CC" >&6; }
5024else
5025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026$as_echo "no" >&6; }
5027fi
5028
5029
5030  fi
5031fi
5032if test -z "$CC"; then
5033  # Extract the first word of "cc", so it can be a program name with args.
5034set dummy cc; ac_word=$2
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036$as_echo_n "checking for $ac_word... " >&6; }
5037if test "${ac_cv_prog_CC+set}" = set; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  if test -n "$CC"; then
5041  ac_cv_prog_CC="$CC" # Let the user override the test.
5042else
5043  ac_prog_rejected=no
5044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045for as_dir in $PATH
5046do
5047  IFS=$as_save_IFS
5048  test -z "$as_dir" && as_dir=.
5049    for ac_exec_ext in '' $ac_executable_extensions; do
5050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5052       ac_prog_rejected=yes
5053       continue
5054     fi
5055    ac_cv_prog_CC="cc"
5056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057    break 2
5058  fi
5059done
5060  done
5061IFS=$as_save_IFS
5062
5063if test $ac_prog_rejected = yes; then
5064  # We found a bogon in the path, so make sure we never use it.
5065  set dummy $ac_cv_prog_CC
5066  shift
5067  if test $# != 0; then
5068    # We chose a different compiler from the bogus one.
5069    # However, it has the same basename, so the bogon will be chosen
5070    # first if we set CC to just the basename; use the full file name.
5071    shift
5072    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5073  fi
5074fi
5075fi
5076fi
5077CC=$ac_cv_prog_CC
5078if test -n "$CC"; then
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5080$as_echo "$CC" >&6; }
5081else
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084fi
5085
5086
5087fi
5088if test -z "$CC"; then
5089  if test -n "$ac_tool_prefix"; then
5090  for ac_prog in cl.exe
5091  do
5092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095$as_echo_n "checking for $ac_word... " >&6; }
5096if test "${ac_cv_prog_CC+set}" = set; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  if test -n "$CC"; then
5100  ac_cv_prog_CC="$CC" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105  IFS=$as_save_IFS
5106  test -z "$as_dir" && as_dir=.
5107    for ac_exec_ext in '' $ac_executable_extensions; do
5108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111    break 2
5112  fi
5113done
5114  done
5115IFS=$as_save_IFS
5116
5117fi
5118fi
5119CC=$ac_cv_prog_CC
5120if test -n "$CC"; then
5121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5122$as_echo "$CC" >&6; }
5123else
5124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125$as_echo "no" >&6; }
5126fi
5127
5128
5129    test -n "$CC" && break
5130  done
5131fi
5132if test -z "$CC"; then
5133  ac_ct_CC=$CC
5134  for ac_prog in cl.exe
5135do
5136  # Extract the first word of "$ac_prog", so it can be a program name with args.
5137set dummy $ac_prog; ac_word=$2
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139$as_echo_n "checking for $ac_word... " >&6; }
5140if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  if test -n "$ac_ct_CC"; then
5144  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149  IFS=$as_save_IFS
5150  test -z "$as_dir" && as_dir=.
5151    for ac_exec_ext in '' $ac_executable_extensions; do
5152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153    ac_cv_prog_ac_ct_CC="$ac_prog"
5154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155    break 2
5156  fi
5157done
5158  done
5159IFS=$as_save_IFS
5160
5161fi
5162fi
5163ac_ct_CC=$ac_cv_prog_ac_ct_CC
5164if test -n "$ac_ct_CC"; then
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5166$as_echo "$ac_ct_CC" >&6; }
5167else
5168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169$as_echo "no" >&6; }
5170fi
5171
5172
5173  test -n "$ac_ct_CC" && break
5174done
5175
5176  if test "x$ac_ct_CC" = x; then
5177    CC=""
5178  else
5179    case $cross_compiling:$ac_tool_warned in
5180yes:)
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5183ac_tool_warned=yes ;;
5184esac
5185    CC=$ac_ct_CC
5186  fi
5187fi
5188
5189fi
5190
5191
5192test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5194as_fn_error "no acceptable C compiler found in \$PATH
5195See \`config.log' for more details." "$LINENO" 5; }
5196
5197# Provide some information about the compiler.
5198$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5199set X $ac_compile
5200ac_compiler=$2
5201for ac_option in --version -v -V -qversion; do
5202  { { ac_try="$ac_compiler $ac_option >&5"
5203case "(($ac_try" in
5204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205  *) ac_try_echo=$ac_try;;
5206esac
5207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5208$as_echo "$ac_try_echo"; } >&5
5209  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5210  ac_status=$?
5211  if test -s conftest.err; then
5212    sed '10a\
5213... rest of stderr output deleted ...
5214         10q' conftest.err >conftest.er1
5215    cat conftest.er1 >&5
5216  fi
5217  rm -f conftest.er1 conftest.err
5218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219  test $ac_status = 0; }
5220done
5221
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5223$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5224if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229
5230int
5231main ()
5232{
5233#ifndef __GNUC__
5234       choke me
5235#endif
5236
5237  ;
5238  return 0;
5239}
5240_ACEOF
5241if ac_fn_c_try_compile "$LINENO"; then :
5242  ac_compiler_gnu=yes
5243else
5244  ac_compiler_gnu=no
5245fi
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247ac_cv_c_compiler_gnu=$ac_compiler_gnu
5248
5249fi
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5251$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5252if test $ac_compiler_gnu = yes; then
5253  GCC=yes
5254else
5255  GCC=
5256fi
5257ac_test_CFLAGS=${CFLAGS+set}
5258ac_save_CFLAGS=$CFLAGS
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5260$as_echo_n "checking whether $CC accepts -g... " >&6; }
5261if test "${ac_cv_prog_cc_g+set}" = set; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  ac_save_c_werror_flag=$ac_c_werror_flag
5265   ac_c_werror_flag=yes
5266   ac_cv_prog_cc_g=no
5267   CFLAGS="-g"
5268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270
5271int
5272main ()
5273{
5274
5275  ;
5276  return 0;
5277}
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"; then :
5280  ac_cv_prog_cc_g=yes
5281else
5282  CFLAGS=""
5283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h.  */
5285
5286int
5287main ()
5288{
5289
5290  ;
5291  return 0;
5292}
5293_ACEOF
5294if ac_fn_c_try_compile "$LINENO"; then :
5295
5296else
5297  ac_c_werror_flag=$ac_save_c_werror_flag
5298	 CFLAGS="-g"
5299	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301
5302int
5303main ()
5304{
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then :
5311  ac_cv_prog_cc_g=yes
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314fi
5315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318   ac_c_werror_flag=$ac_save_c_werror_flag
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5321$as_echo "$ac_cv_prog_cc_g" >&6; }
5322if test "$ac_test_CFLAGS" = set; then
5323  CFLAGS=$ac_save_CFLAGS
5324elif test $ac_cv_prog_cc_g = yes; then
5325  if test "$GCC" = yes; then
5326    CFLAGS="-g -O2"
5327  else
5328    CFLAGS="-g"
5329  fi
5330else
5331  if test "$GCC" = yes; then
5332    CFLAGS="-O2"
5333  else
5334    CFLAGS=
5335  fi
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5338$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5339if test "${ac_cv_prog_cc_c89+set}" = set; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  ac_cv_prog_cc_c89=no
5343ac_save_CC=$CC
5344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h.  */
5346#include <stdarg.h>
5347#include <stdio.h>
5348#include <sys/types.h>
5349#include <sys/stat.h>
5350/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5351struct buf { int x; };
5352FILE * (*rcsopen) (struct buf *, struct stat *, int);
5353static char *e (p, i)
5354     char **p;
5355     int i;
5356{
5357  return p[i];
5358}
5359static char *f (char * (*g) (char **, int), char **p, ...)
5360{
5361  char *s;
5362  va_list v;
5363  va_start (v,p);
5364  s = g (p, va_arg (v,int));
5365  va_end (v);
5366  return s;
5367}
5368
5369/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5370   function prototypes and stuff, but not '\xHH' hex character constants.
5371   These don't provoke an error unfortunately, instead are silently treated
5372   as 'x'.  The following induces an error, until -std is added to get
5373   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5374   array size at least.  It's necessary to write '\x00'==0 to get something
5375   that's true only with -std.  */
5376int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5377
5378/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5379   inside strings and character constants.  */
5380#define FOO(x) 'x'
5381int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5382
5383int test (int i, double x);
5384struct s1 {int (*f) (int a);};
5385struct s2 {int (*f) (double a);};
5386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5387int argc;
5388char **argv;
5389int
5390main ()
5391{
5392return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5393  ;
5394  return 0;
5395}
5396_ACEOF
5397for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5398	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5399do
5400  CC="$ac_save_CC $ac_arg"
5401  if ac_fn_c_try_compile "$LINENO"; then :
5402  ac_cv_prog_cc_c89=$ac_arg
5403fi
5404rm -f core conftest.err conftest.$ac_objext
5405  test "x$ac_cv_prog_cc_c89" != "xno" && break
5406done
5407rm -f conftest.$ac_ext
5408CC=$ac_save_CC
5409
5410fi
5411# AC_CACHE_VAL
5412case "x$ac_cv_prog_cc_c89" in
5413  x)
5414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5415$as_echo "none needed" >&6; } ;;
5416  xno)
5417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5418$as_echo "unsupported" >&6; } ;;
5419  *)
5420    CC="$CC $ac_cv_prog_cc_c89"
5421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5422$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5423esac
5424if test "x$ac_cv_prog_cc_c89" != xno; then :
5425
5426fi
5427
5428ac_ext=c
5429ac_cpp='$CPP $CPPFLAGS'
5430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433
5434depcc="$CC"   am_compiler_list=
5435
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5437$as_echo_n "checking dependency style of $depcc... " >&6; }
5438if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5442  # We make a subdir and do the tests there.  Otherwise we can end up
5443  # making bogus files that we don't know about and never remove.  For
5444  # instance it was reported that on HP-UX the gcc test will end up
5445  # making a dummy file named `D' -- because `-MD' means `put the output
5446  # in D'.
5447  mkdir conftest.dir
5448  # Copy depcomp to subdir because otherwise we won't find it if we're
5449  # using a relative directory.
5450  cp "$am_depcomp" conftest.dir
5451  cd conftest.dir
5452  # We will build objects and dependencies in a subdirectory because
5453  # it helps to detect inapplicable dependency modes.  For instance
5454  # both Tru64's cc and ICC support -MD to output dependencies as a
5455  # side effect of compilation, but ICC will put the dependencies in
5456  # the current directory while Tru64 will put them in the object
5457  # directory.
5458  mkdir sub
5459
5460  am_cv_CC_dependencies_compiler_type=none
5461  if test "$am_compiler_list" = ""; then
5462     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5463  fi
5464  am__universal=false
5465  case " $depcc " in #(
5466     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5467     esac
5468
5469  for depmode in $am_compiler_list; do
5470    # Setup a source with many dependencies, because some compilers
5471    # like to wrap large dependency lists on column 80 (with \), and
5472    # we should not choose a depcomp mode which is confused by this.
5473    #
5474    # We need to recreate these files for each test, as the compiler may
5475    # overwrite some of them when testing with obscure command lines.
5476    # This happens at least with the AIX C compiler.
5477    : > sub/conftest.c
5478    for i in 1 2 3 4 5 6; do
5479      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5480      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5481      # Solaris 8's {/usr,}/bin/sh.
5482      touch sub/conftst$i.h
5483    done
5484    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5485
5486    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5487    # mode.  It turns out that the SunPro C++ compiler does not properly
5488    # handle `-M -o', and we need to detect this.  Also, some Intel
5489    # versions had trouble with output in subdirs
5490    am__obj=sub/conftest.${OBJEXT-o}
5491    am__minus_obj="-o $am__obj"
5492    case $depmode in
5493    gcc)
5494      # This depmode causes a compiler race in universal mode.
5495      test "$am__universal" = false || continue
5496      ;;
5497    nosideeffect)
5498      # after this tag, mechanisms are not by side-effect, so they'll
5499      # only be used when explicitly requested
5500      if test "x$enable_dependency_tracking" = xyes; then
5501	continue
5502      else
5503	break
5504      fi
5505      ;;
5506    msvisualcpp | msvcmsys)
5507      # This compiler won't grok `-c -o', but also, the minuso test has
5508      # not run yet.  These depmodes are late enough in the game, and
5509      # so weak that their functioning should not be impacted.
5510      am__obj=conftest.${OBJEXT-o}
5511      am__minus_obj=
5512      ;;
5513    none) break ;;
5514    esac
5515    if depmode=$depmode \
5516       source=sub/conftest.c object=$am__obj \
5517       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5518       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5519         >/dev/null 2>conftest.err &&
5520       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5521       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5522       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5523       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5524      # icc doesn't choke on unknown options, it will just issue warnings
5525      # or remarks (even with -Werror).  So we grep stderr for any message
5526      # that says an option was ignored or not supported.
5527      # When given -MP, icc 7.0 and 7.1 complain thusly:
5528      #   icc: Command line warning: ignoring option '-M'; no argument required
5529      # The diagnosis changed in icc 8.0:
5530      #   icc: Command line remark: option '-MP' not supported
5531      if (grep 'ignoring option' conftest.err ||
5532          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5533        am_cv_CC_dependencies_compiler_type=$depmode
5534        break
5535      fi
5536    fi
5537  done
5538
5539  cd ..
5540  rm -rf conftest.dir
5541else
5542  am_cv_CC_dependencies_compiler_type=none
5543fi
5544
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5547$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5548CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5549
5550 if
5551  test "x$enable_dependency_tracking" != xno \
5552  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5553  am__fastdepCC_TRUE=
5554  am__fastdepCC_FALSE='#'
5555else
5556  am__fastdepCC_TRUE='#'
5557  am__fastdepCC_FALSE=
5558fi
5559
5560
5561case `pwd` in
5562  *\ * | *\	*)
5563    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5564$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5565esac
5566
5567
5568
5569macro_version='2.2.6b'
5570macro_revision='1.3017'
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584ltmain="$ac_aux_dir/ltmain.sh"
5585
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5587$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5588if test "${ac_cv_path_SED+set}" = set; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5592     for ac_i in 1 2 3 4 5 6 7; do
5593       ac_script="$ac_script$as_nl$ac_script"
5594     done
5595     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5596     { ac_script=; unset ac_script;}
5597     if test -z "$SED"; then
5598  ac_path_SED_found=false
5599  # Loop through the user's path and test for each of PROGNAME-LIST
5600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603  IFS=$as_save_IFS
5604  test -z "$as_dir" && as_dir=.
5605    for ac_prog in sed gsed; do
5606    for ac_exec_ext in '' $ac_executable_extensions; do
5607      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5608      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5609# Check for GNU ac_path_SED and select it if it is found.
5610  # Check for GNU $ac_path_SED
5611case `"$ac_path_SED" --version 2>&1` in
5612*GNU*)
5613  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5614*)
5615  ac_count=0
5616  $as_echo_n 0123456789 >"conftest.in"
5617  while :
5618  do
5619    cat "conftest.in" "conftest.in" >"conftest.tmp"
5620    mv "conftest.tmp" "conftest.in"
5621    cp "conftest.in" "conftest.nl"
5622    $as_echo '' >> "conftest.nl"
5623    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625    as_fn_arith $ac_count + 1 && ac_count=$as_val
5626    if test $ac_count -gt ${ac_path_SED_max-0}; then
5627      # Best one so far, save it but keep looking for a better one
5628      ac_cv_path_SED="$ac_path_SED"
5629      ac_path_SED_max=$ac_count
5630    fi
5631    # 10*(2^10) chars as input seems more than enough
5632    test $ac_count -gt 10 && break
5633  done
5634  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635esac
5636
5637      $ac_path_SED_found && break 3
5638    done
5639  done
5640  done
5641IFS=$as_save_IFS
5642  if test -z "$ac_cv_path_SED"; then
5643    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5644  fi
5645else
5646  ac_cv_path_SED=$SED
5647fi
5648
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5651$as_echo "$ac_cv_path_SED" >&6; }
5652 SED="$ac_cv_path_SED"
5653  rm -f conftest.sed
5654
5655test -z "$SED" && SED=sed
5656Xsed="$SED -e 1s/^X//"
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5669$as_echo_n "checking for fgrep... " >&6; }
5670if test "${ac_cv_path_FGREP+set}" = set; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5674   then ac_cv_path_FGREP="$GREP -F"
5675   else
5676     if test -z "$FGREP"; then
5677  ac_path_FGREP_found=false
5678  # Loop through the user's path and test for each of PROGNAME-LIST
5679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5681do
5682  IFS=$as_save_IFS
5683  test -z "$as_dir" && as_dir=.
5684    for ac_prog in fgrep; do
5685    for ac_exec_ext in '' $ac_executable_extensions; do
5686      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5687      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5688# Check for GNU ac_path_FGREP and select it if it is found.
5689  # Check for GNU $ac_path_FGREP
5690case `"$ac_path_FGREP" --version 2>&1` in
5691*GNU*)
5692  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5693*)
5694  ac_count=0
5695  $as_echo_n 0123456789 >"conftest.in"
5696  while :
5697  do
5698    cat "conftest.in" "conftest.in" >"conftest.tmp"
5699    mv "conftest.tmp" "conftest.in"
5700    cp "conftest.in" "conftest.nl"
5701    $as_echo 'FGREP' >> "conftest.nl"
5702    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5703    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5704    as_fn_arith $ac_count + 1 && ac_count=$as_val
5705    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5706      # Best one so far, save it but keep looking for a better one
5707      ac_cv_path_FGREP="$ac_path_FGREP"
5708      ac_path_FGREP_max=$ac_count
5709    fi
5710    # 10*(2^10) chars as input seems more than enough
5711    test $ac_count -gt 10 && break
5712  done
5713  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5714esac
5715
5716      $ac_path_FGREP_found && break 3
5717    done
5718  done
5719  done
5720IFS=$as_save_IFS
5721  if test -z "$ac_cv_path_FGREP"; then
5722    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5723  fi
5724else
5725  ac_cv_path_FGREP=$FGREP
5726fi
5727
5728   fi
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5731$as_echo "$ac_cv_path_FGREP" >&6; }
5732 FGREP="$ac_cv_path_FGREP"
5733
5734
5735test -z "$GREP" && GREP=grep
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755# Check whether --with-gnu-ld was given.
5756if test "${with_gnu_ld+set}" = set; then :
5757  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5758else
5759  with_gnu_ld=no
5760fi
5761
5762ac_prog=ld
5763if test "$GCC" = yes; then
5764  # Check if gcc -print-prog-name=ld gives a path.
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5766$as_echo_n "checking for ld used by $CC... " >&6; }
5767  case $host in
5768  *-*-mingw*)
5769    # gcc leaves a trailing carriage return which upsets mingw
5770    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5771  *)
5772    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5773  esac
5774  case $ac_prog in
5775    # Accept absolute paths.
5776    [\\/]* | ?:[\\/]*)
5777      re_direlt='/[^/][^/]*/\.\./'
5778      # Canonicalize the pathname of ld
5779      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5780      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5781	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5782      done
5783      test -z "$LD" && LD="$ac_prog"
5784      ;;
5785  "")
5786    # If it fails, then pretend we aren't using GCC.
5787    ac_prog=ld
5788    ;;
5789  *)
5790    # If it is relative, then search for the first ld in PATH.
5791    with_gnu_ld=unknown
5792    ;;
5793  esac
5794elif test "$with_gnu_ld" = yes; then
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5796$as_echo_n "checking for GNU ld... " >&6; }
5797else
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5799$as_echo_n "checking for non-GNU ld... " >&6; }
5800fi
5801if test "${lt_cv_path_LD+set}" = set; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  if test -z "$LD"; then
5805  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5806  for ac_dir in $PATH; do
5807    IFS="$lt_save_ifs"
5808    test -z "$ac_dir" && ac_dir=.
5809    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5810      lt_cv_path_LD="$ac_dir/$ac_prog"
5811      # Check to see if the program is GNU ld.  I'd rather use --version,
5812      # but apparently some variants of GNU ld only accept -v.
5813      # Break only if it was the GNU/non-GNU ld that we prefer.
5814      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5815      *GNU* | *'with BFD'*)
5816	test "$with_gnu_ld" != no && break
5817	;;
5818      *)
5819	test "$with_gnu_ld" != yes && break
5820	;;
5821      esac
5822    fi
5823  done
5824  IFS="$lt_save_ifs"
5825else
5826  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5827fi
5828fi
5829
5830LD="$lt_cv_path_LD"
5831if test -n "$LD"; then
5832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5833$as_echo "$LD" >&6; }
5834else
5835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836$as_echo "no" >&6; }
5837fi
5838test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5840$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5841if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5845case `$LD -v 2>&1 </dev/null` in
5846*GNU* | *'with BFD'*)
5847  lt_cv_prog_gnu_ld=yes
5848  ;;
5849*)
5850  lt_cv_prog_gnu_ld=no
5851  ;;
5852esac
5853fi
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5855$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5856with_gnu_ld=$lt_cv_prog_gnu_ld
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5867$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5868if test "${lt_cv_path_NM+set}" = set; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871  if test -n "$NM"; then
5872  # Let the user override the test.
5873  lt_cv_path_NM="$NM"
5874else
5875  lt_nm_to_check="${ac_tool_prefix}nm"
5876  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5877    lt_nm_to_check="$lt_nm_to_check nm"
5878  fi
5879  for lt_tmp_nm in $lt_nm_to_check; do
5880    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5881    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5882      IFS="$lt_save_ifs"
5883      test -z "$ac_dir" && ac_dir=.
5884      tmp_nm="$ac_dir/$lt_tmp_nm"
5885      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5886	# Check to see if the nm accepts a BSD-compat flag.
5887	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5888	#   nm: unknown option "B" ignored
5889	# Tru64's nm complains that /dev/null is an invalid object file
5890	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5891	*/dev/null* | *'Invalid file or object type'*)
5892	  lt_cv_path_NM="$tmp_nm -B"
5893	  break
5894	  ;;
5895	*)
5896	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5897	  */dev/null*)
5898	    lt_cv_path_NM="$tmp_nm -p"
5899	    break
5900	    ;;
5901	  *)
5902	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5903	    continue # so that we can try to find one that supports BSD flags
5904	    ;;
5905	  esac
5906	  ;;
5907	esac
5908      fi
5909    done
5910    IFS="$lt_save_ifs"
5911  done
5912  : ${lt_cv_path_NM=no}
5913fi
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5916$as_echo "$lt_cv_path_NM" >&6; }
5917if test "$lt_cv_path_NM" != "no"; then
5918  NM="$lt_cv_path_NM"
5919else
5920  # Didn't find any BSD compatible name lister, look for dumpbin.
5921  if test -n "$ac_tool_prefix"; then
5922  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5923  do
5924    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$DUMPBIN"; then
5932  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951DUMPBIN=$ac_cv_prog_DUMPBIN
5952if test -n "$DUMPBIN"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5954$as_echo "$DUMPBIN" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960
5961    test -n "$DUMPBIN" && break
5962  done
5963fi
5964if test -z "$DUMPBIN"; then
5965  ac_ct_DUMPBIN=$DUMPBIN
5966  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5967do
5968  # Extract the first word of "$ac_prog", so it can be a program name with args.
5969set dummy $ac_prog; ac_word=$2
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971$as_echo_n "checking for $ac_word... " >&6; }
5972if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  if test -n "$ac_ct_DUMPBIN"; then
5976  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981  IFS=$as_save_IFS
5982  test -z "$as_dir" && as_dir=.
5983    for ac_exec_ext in '' $ac_executable_extensions; do
5984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987    break 2
5988  fi
5989done
5990  done
5991IFS=$as_save_IFS
5992
5993fi
5994fi
5995ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5996if test -n "$ac_ct_DUMPBIN"; then
5997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5998$as_echo "$ac_ct_DUMPBIN" >&6; }
5999else
6000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }
6002fi
6003
6004
6005  test -n "$ac_ct_DUMPBIN" && break
6006done
6007
6008  if test "x$ac_ct_DUMPBIN" = x; then
6009    DUMPBIN=":"
6010  else
6011    case $cross_compiling:$ac_tool_warned in
6012yes:)
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015ac_tool_warned=yes ;;
6016esac
6017    DUMPBIN=$ac_ct_DUMPBIN
6018  fi
6019fi
6020
6021
6022  if test "$DUMPBIN" != ":"; then
6023    NM="$DUMPBIN"
6024  fi
6025fi
6026test -z "$NM" && NM=nm
6027
6028
6029
6030
6031
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6034$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6035if test "${lt_cv_nm_interface+set}" = set; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  lt_cv_nm_interface="BSD nm"
6039  echo "int some_variable = 0;" > conftest.$ac_ext
6040  (eval echo "\"\$as_me:6040: $ac_compile\"" >&5)
6041  (eval "$ac_compile" 2>conftest.err)
6042  cat conftest.err >&5
6043  (eval echo "\"\$as_me:6043: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6044  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6045  cat conftest.err >&5
6046  (eval echo "\"\$as_me:6046: output\"" >&5)
6047  cat conftest.out >&5
6048  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6049    lt_cv_nm_interface="MS dumpbin"
6050  fi
6051  rm -f conftest*
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6054$as_echo "$lt_cv_nm_interface" >&6; }
6055
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6057$as_echo_n "checking whether ln -s works... " >&6; }
6058LN_S=$as_ln_s
6059if test "$LN_S" = "ln -s"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6061$as_echo "yes" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6064$as_echo "no, using $LN_S" >&6; }
6065fi
6066
6067# find the maximum length of command line arguments
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6069$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6070if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6071  $as_echo_n "(cached) " >&6
6072else
6073    i=0
6074  teststring="ABCD"
6075
6076  case $build_os in
6077  msdosdjgpp*)
6078    # On DJGPP, this test can blow up pretty badly due to problems in libc
6079    # (any single argument exceeding 2000 bytes causes a buffer overrun
6080    # during glob expansion).  Even if it were fixed, the result of this
6081    # check would be larger than it should be.
6082    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6083    ;;
6084
6085  gnu*)
6086    # Under GNU Hurd, this test is not required because there is
6087    # no limit to the length of command line arguments.
6088    # Libtool will interpret -1 as no limit whatsoever
6089    lt_cv_sys_max_cmd_len=-1;
6090    ;;
6091
6092  cygwin* | mingw* | cegcc*)
6093    # On Win9x/ME, this test blows up -- it succeeds, but takes
6094    # about 5 minutes as the teststring grows exponentially.
6095    # Worse, since 9x/ME are not pre-emptively multitasking,
6096    # you end up with a "frozen" computer, even though with patience
6097    # the test eventually succeeds (with a max line length of 256k).
6098    # Instead, let's just punt: use the minimum linelength reported by
6099    # all of the supported platforms: 8192 (on NT/2K/XP).
6100    lt_cv_sys_max_cmd_len=8192;
6101    ;;
6102
6103  amigaos*)
6104    # On AmigaOS with pdksh, this test takes hours, literally.
6105    # So we just punt and use a minimum line length of 8192.
6106    lt_cv_sys_max_cmd_len=8192;
6107    ;;
6108
6109  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6110    # This has been around since 386BSD, at least.  Likely further.
6111    if test -x /sbin/sysctl; then
6112      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6113    elif test -x /usr/sbin/sysctl; then
6114      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6115    else
6116      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6117    fi
6118    # And add a safety zone
6119    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6120    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6121    ;;
6122
6123  interix*)
6124    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6125    lt_cv_sys_max_cmd_len=196608
6126    ;;
6127
6128  osf*)
6129    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6130    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6131    # nice to cause kernel panics so lets avoid the loop below.
6132    # First set a reasonable default.
6133    lt_cv_sys_max_cmd_len=16384
6134    #
6135    if test -x /sbin/sysconfig; then
6136      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6137        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6138      esac
6139    fi
6140    ;;
6141  sco3.2v5*)
6142    lt_cv_sys_max_cmd_len=102400
6143    ;;
6144  sysv5* | sco5v6* | sysv4.2uw2*)
6145    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6146    if test -n "$kargmax"; then
6147      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6148    else
6149      lt_cv_sys_max_cmd_len=32768
6150    fi
6151    ;;
6152  *)
6153    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6154    if test -n "$lt_cv_sys_max_cmd_len"; then
6155      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6156      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6157    else
6158      # Make teststring a little bigger before we do anything with it.
6159      # a 1K string should be a reasonable start.
6160      for i in 1 2 3 4 5 6 7 8 ; do
6161        teststring=$teststring$teststring
6162      done
6163      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6164      # If test is not a shell built-in, we'll probably end up computing a
6165      # maximum length that is only half of the actual maximum length, but
6166      # we can't tell.
6167      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6168	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6169	      test $i != 17 # 1/2 MB should be enough
6170      do
6171        i=`expr $i + 1`
6172        teststring=$teststring$teststring
6173      done
6174      # Only check the string length outside the loop.
6175      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6176      teststring=
6177      # Add a significant safety factor because C++ compilers can tack on
6178      # massive amounts of additional arguments before passing them to the
6179      # linker.  It appears as though 1/2 is a usable value.
6180      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6181    fi
6182    ;;
6183  esac
6184
6185fi
6186
6187if test -n $lt_cv_sys_max_cmd_len ; then
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6189$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6190else
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6192$as_echo "none" >&6; }
6193fi
6194max_cmd_len=$lt_cv_sys_max_cmd_len
6195
6196
6197
6198
6199
6200
6201: ${CP="cp -f"}
6202: ${MV="mv -f"}
6203: ${RM="rm -f"}
6204
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6206$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6207# Try some XSI features
6208xsi_shell=no
6209( _lt_dummy="a/b/c"
6210  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6211      = c,a/b,, \
6212    && eval 'test $(( 1 + 1 )) -eq 2 \
6213    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6214  && xsi_shell=yes
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6216$as_echo "$xsi_shell" >&6; }
6217
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6220$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6221lt_shell_append=no
6222( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6223    >/dev/null 2>&1 \
6224  && lt_shell_append=yes
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6226$as_echo "$lt_shell_append" >&6; }
6227
6228
6229if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6230  lt_unset=unset
6231else
6232  lt_unset=false
6233fi
6234
6235
6236
6237
6238
6239# test EBCDIC or ASCII
6240case `echo X|tr X '\101'` in
6241 A) # ASCII based system
6242    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6243  lt_SP2NL='tr \040 \012'
6244  lt_NL2SP='tr \015\012 \040\040'
6245  ;;
6246 *) # EBCDIC based system
6247  lt_SP2NL='tr \100 \n'
6248  lt_NL2SP='tr \r\n \100\100'
6249  ;;
6250esac
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6261$as_echo_n "checking for $LD option to reload object files... " >&6; }
6262if test "${lt_cv_ld_reload_flag+set}" = set; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  lt_cv_ld_reload_flag='-r'
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6268$as_echo "$lt_cv_ld_reload_flag" >&6; }
6269reload_flag=$lt_cv_ld_reload_flag
6270case $reload_flag in
6271"" | " "*) ;;
6272*) reload_flag=" $reload_flag" ;;
6273esac
6274reload_cmds='$LD$reload_flag -o $output$reload_objs'
6275case $host_os in
6276  darwin*)
6277    if test "$GCC" = yes; then
6278      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6279    else
6280      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6281    fi
6282    ;;
6283esac
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293if test -n "$ac_tool_prefix"; then
6294  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6295set dummy ${ac_tool_prefix}objdump; ac_word=$2
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297$as_echo_n "checking for $ac_word... " >&6; }
6298if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6299  $as_echo_n "(cached) " >&6
6300else
6301  if test -n "$OBJDUMP"; then
6302  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307  IFS=$as_save_IFS
6308  test -z "$as_dir" && as_dir=.
6309    for ac_exec_ext in '' $ac_executable_extensions; do
6310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313    break 2
6314  fi
6315done
6316  done
6317IFS=$as_save_IFS
6318
6319fi
6320fi
6321OBJDUMP=$ac_cv_prog_OBJDUMP
6322if test -n "$OBJDUMP"; then
6323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6324$as_echo "$OBJDUMP" >&6; }
6325else
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327$as_echo "no" >&6; }
6328fi
6329
6330
6331fi
6332if test -z "$ac_cv_prog_OBJDUMP"; then
6333  ac_ct_OBJDUMP=$OBJDUMP
6334  # Extract the first word of "objdump", so it can be a program name with args.
6335set dummy objdump; ac_word=$2
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337$as_echo_n "checking for $ac_word... " >&6; }
6338if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  if test -n "$ac_ct_OBJDUMP"; then
6342  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347  IFS=$as_save_IFS
6348  test -z "$as_dir" && as_dir=.
6349    for ac_exec_ext in '' $ac_executable_extensions; do
6350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353    break 2
6354  fi
6355done
6356  done
6357IFS=$as_save_IFS
6358
6359fi
6360fi
6361ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6362if test -n "$ac_ct_OBJDUMP"; then
6363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6364$as_echo "$ac_ct_OBJDUMP" >&6; }
6365else
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367$as_echo "no" >&6; }
6368fi
6369
6370  if test "x$ac_ct_OBJDUMP" = x; then
6371    OBJDUMP="false"
6372  else
6373    case $cross_compiling:$ac_tool_warned in
6374yes:)
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6377ac_tool_warned=yes ;;
6378esac
6379    OBJDUMP=$ac_ct_OBJDUMP
6380  fi
6381else
6382  OBJDUMP="$ac_cv_prog_OBJDUMP"
6383fi
6384
6385test -z "$OBJDUMP" && OBJDUMP=objdump
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6396$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6397if test "${lt_cv_deplibs_check_method+set}" = set; then :
6398  $as_echo_n "(cached) " >&6
6399else
6400  lt_cv_file_magic_cmd='$MAGIC_CMD'
6401lt_cv_file_magic_test_file=
6402lt_cv_deplibs_check_method='unknown'
6403# Need to set the preceding variable on all platforms that support
6404# interlibrary dependencies.
6405# 'none' -- dependencies not supported.
6406# `unknown' -- same as none, but documents that we really don't know.
6407# 'pass_all' -- all dependencies passed with no checks.
6408# 'test_compile' -- check by making test program.
6409# 'file_magic [[regex]]' -- check by looking for files in library path
6410# which responds to the $file_magic_cmd with a given extended regex.
6411# If you have `file' or equivalent on your system and you're not sure
6412# whether `pass_all' will *always* work, you probably want this one.
6413
6414case $host_os in
6415aix[4-9]*)
6416  lt_cv_deplibs_check_method=pass_all
6417  ;;
6418
6419beos*)
6420  lt_cv_deplibs_check_method=pass_all
6421  ;;
6422
6423bsdi[45]*)
6424  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6425  lt_cv_file_magic_cmd='/usr/bin/file -L'
6426  lt_cv_file_magic_test_file=/shlib/libc.so
6427  ;;
6428
6429cygwin*)
6430  # func_win32_libid is a shell function defined in ltmain.sh
6431  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6432  lt_cv_file_magic_cmd='func_win32_libid'
6433  ;;
6434
6435mingw* | pw32*)
6436  # Base MSYS/MinGW do not provide the 'file' command needed by
6437  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6438  # unless we find 'file', for example because we are cross-compiling.
6439  if ( file / ) >/dev/null 2>&1; then
6440    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6441    lt_cv_file_magic_cmd='func_win32_libid'
6442  else
6443    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6444    lt_cv_file_magic_cmd='$OBJDUMP -f'
6445  fi
6446  ;;
6447
6448cegcc)
6449  # use the weaker test based on 'objdump'. See mingw*.
6450  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6451  lt_cv_file_magic_cmd='$OBJDUMP -f'
6452  ;;
6453
6454darwin* | rhapsody*)
6455  lt_cv_deplibs_check_method=pass_all
6456  ;;
6457
6458freebsd* | dragonfly*)
6459  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6460    case $host_cpu in
6461    i*86 )
6462      # Not sure whether the presence of OpenBSD here was a mistake.
6463      # Let's accept both of them until this is cleared up.
6464      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6465      lt_cv_file_magic_cmd=/usr/bin/file
6466      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6467      ;;
6468    esac
6469  else
6470    lt_cv_deplibs_check_method=pass_all
6471  fi
6472  ;;
6473
6474gnu*)
6475  lt_cv_deplibs_check_method=pass_all
6476  ;;
6477
6478hpux10.20* | hpux11*)
6479  lt_cv_file_magic_cmd=/usr/bin/file
6480  case $host_cpu in
6481  ia64*)
6482    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6483    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6484    ;;
6485  hppa*64*)
6486    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]'
6487    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6488    ;;
6489  *)
6490    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6491    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6492    ;;
6493  esac
6494  ;;
6495
6496interix[3-9]*)
6497  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6498  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6499  ;;
6500
6501irix5* | irix6* | nonstopux*)
6502  case $LD in
6503  *-32|*"-32 ") libmagic=32-bit;;
6504  *-n32|*"-n32 ") libmagic=N32;;
6505  *-64|*"-64 ") libmagic=64-bit;;
6506  *) libmagic=never-match;;
6507  esac
6508  lt_cv_deplibs_check_method=pass_all
6509  ;;
6510
6511# This must be Linux ELF.
6512linux* | k*bsd*-gnu)
6513  lt_cv_deplibs_check_method=pass_all
6514  ;;
6515
6516netbsd*)
6517  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6518    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6519  else
6520    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6521  fi
6522  ;;
6523
6524newos6*)
6525  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6526  lt_cv_file_magic_cmd=/usr/bin/file
6527  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6528  ;;
6529
6530*nto* | *qnx*)
6531  lt_cv_deplibs_check_method=pass_all
6532  ;;
6533
6534openbsd*)
6535  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6536    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6537  else
6538    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6539  fi
6540  ;;
6541
6542osf3* | osf4* | osf5*)
6543  lt_cv_deplibs_check_method=pass_all
6544  ;;
6545
6546rdos*)
6547  lt_cv_deplibs_check_method=pass_all
6548  ;;
6549
6550solaris*)
6551  lt_cv_deplibs_check_method=pass_all
6552  ;;
6553
6554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6555  lt_cv_deplibs_check_method=pass_all
6556  ;;
6557
6558sysv4 | sysv4.3*)
6559  case $host_vendor in
6560  motorola)
6561    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]'
6562    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6563    ;;
6564  ncr)
6565    lt_cv_deplibs_check_method=pass_all
6566    ;;
6567  sequent)
6568    lt_cv_file_magic_cmd='/bin/file'
6569    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6570    ;;
6571  sni)
6572    lt_cv_file_magic_cmd='/bin/file'
6573    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6574    lt_cv_file_magic_test_file=/lib/libc.so
6575    ;;
6576  siemens)
6577    lt_cv_deplibs_check_method=pass_all
6578    ;;
6579  pc)
6580    lt_cv_deplibs_check_method=pass_all
6581    ;;
6582  esac
6583  ;;
6584
6585tpf*)
6586  lt_cv_deplibs_check_method=pass_all
6587  ;;
6588esac
6589
6590fi
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6592$as_echo "$lt_cv_deplibs_check_method" >&6; }
6593file_magic_cmd=$lt_cv_file_magic_cmd
6594deplibs_check_method=$lt_cv_deplibs_check_method
6595test -z "$deplibs_check_method" && deplibs_check_method=unknown
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608if test -n "$ac_tool_prefix"; then
6609  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6610set dummy ${ac_tool_prefix}ar; ac_word=$2
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612$as_echo_n "checking for $ac_word... " >&6; }
6613if test "${ac_cv_prog_AR+set}" = set; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  if test -n "$AR"; then
6617  ac_cv_prog_AR="$AR" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622  IFS=$as_save_IFS
6623  test -z "$as_dir" && as_dir=.
6624    for ac_exec_ext in '' $ac_executable_extensions; do
6625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626    ac_cv_prog_AR="${ac_tool_prefix}ar"
6627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631  done
6632IFS=$as_save_IFS
6633
6634fi
6635fi
6636AR=$ac_cv_prog_AR
6637if test -n "$AR"; then
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6639$as_echo "$AR" >&6; }
6640else
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643fi
6644
6645
6646fi
6647if test -z "$ac_cv_prog_AR"; then
6648  ac_ct_AR=$AR
6649  # Extract the first word of "ar", so it can be a program name with args.
6650set dummy ar; ac_word=$2
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652$as_echo_n "checking for $ac_word... " >&6; }
6653if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  if test -n "$ac_ct_AR"; then
6657  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666    ac_cv_prog_ac_ct_AR="ar"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674fi
6675fi
6676ac_ct_AR=$ac_cv_prog_ac_ct_AR
6677if test -n "$ac_ct_AR"; then
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6679$as_echo "$ac_ct_AR" >&6; }
6680else
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682$as_echo "no" >&6; }
6683fi
6684
6685  if test "x$ac_ct_AR" = x; then
6686    AR="false"
6687  else
6688    case $cross_compiling:$ac_tool_warned in
6689yes:)
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692ac_tool_warned=yes ;;
6693esac
6694    AR=$ac_ct_AR
6695  fi
6696else
6697  AR="$ac_cv_prog_AR"
6698fi
6699
6700test -z "$AR" && AR=ar
6701test -z "$AR_FLAGS" && AR_FLAGS=cru
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713if test -n "$ac_tool_prefix"; then
6714  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6715set dummy ${ac_tool_prefix}strip; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if test "${ac_cv_prog_STRIP+set}" = set; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  if test -n "$STRIP"; then
6722  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727  IFS=$as_save_IFS
6728  test -z "$as_dir" && as_dir=.
6729    for ac_exec_ext in '' $ac_executable_extensions; do
6730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733    break 2
6734  fi
6735done
6736  done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741STRIP=$ac_cv_prog_STRIP
6742if test -n "$STRIP"; then
6743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6744$as_echo "$STRIP" >&6; }
6745else
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750
6751fi
6752if test -z "$ac_cv_prog_STRIP"; then
6753  ac_ct_STRIP=$STRIP
6754  # Extract the first word of "strip", so it can be a program name with args.
6755set dummy strip; ac_word=$2
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
6758if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761  if test -n "$ac_ct_STRIP"; then
6762  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767  IFS=$as_save_IFS
6768  test -z "$as_dir" && as_dir=.
6769    for ac_exec_ext in '' $ac_executable_extensions; do
6770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771    ac_cv_prog_ac_ct_STRIP="strip"
6772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773    break 2
6774  fi
6775done
6776  done
6777IFS=$as_save_IFS
6778
6779fi
6780fi
6781ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6782if test -n "$ac_ct_STRIP"; then
6783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6784$as_echo "$ac_ct_STRIP" >&6; }
6785else
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
6788fi
6789
6790  if test "x$ac_ct_STRIP" = x; then
6791    STRIP=":"
6792  else
6793    case $cross_compiling:$ac_tool_warned in
6794yes:)
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797ac_tool_warned=yes ;;
6798esac
6799    STRIP=$ac_ct_STRIP
6800  fi
6801else
6802  STRIP="$ac_cv_prog_STRIP"
6803fi
6804
6805test -z "$STRIP" && STRIP=:
6806
6807
6808
6809
6810
6811
6812if test -n "$ac_tool_prefix"; then
6813  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6814set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816$as_echo_n "checking for $ac_word... " >&6; }
6817if test "${ac_cv_prog_RANLIB+set}" = set; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  if test -n "$RANLIB"; then
6821  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826  IFS=$as_save_IFS
6827  test -z "$as_dir" && as_dir=.
6828    for ac_exec_ext in '' $ac_executable_extensions; do
6829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832    break 2
6833  fi
6834done
6835  done
6836IFS=$as_save_IFS
6837
6838fi
6839fi
6840RANLIB=$ac_cv_prog_RANLIB
6841if test -n "$RANLIB"; then
6842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6843$as_echo "$RANLIB" >&6; }
6844else
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846$as_echo "no" >&6; }
6847fi
6848
6849
6850fi
6851if test -z "$ac_cv_prog_RANLIB"; then
6852  ac_ct_RANLIB=$RANLIB
6853  # Extract the first word of "ranlib", so it can be a program name with args.
6854set dummy ranlib; ac_word=$2
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856$as_echo_n "checking for $ac_word... " >&6; }
6857if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6858  $as_echo_n "(cached) " >&6
6859else
6860  if test -n "$ac_ct_RANLIB"; then
6861  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866  IFS=$as_save_IFS
6867  test -z "$as_dir" && as_dir=.
6868    for ac_exec_ext in '' $ac_executable_extensions; do
6869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870    ac_cv_prog_ac_ct_RANLIB="ranlib"
6871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872    break 2
6873  fi
6874done
6875  done
6876IFS=$as_save_IFS
6877
6878fi
6879fi
6880ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6881if test -n "$ac_ct_RANLIB"; then
6882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6883$as_echo "$ac_ct_RANLIB" >&6; }
6884else
6885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886$as_echo "no" >&6; }
6887fi
6888
6889  if test "x$ac_ct_RANLIB" = x; then
6890    RANLIB=":"
6891  else
6892    case $cross_compiling:$ac_tool_warned in
6893yes:)
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896ac_tool_warned=yes ;;
6897esac
6898    RANLIB=$ac_ct_RANLIB
6899  fi
6900else
6901  RANLIB="$ac_cv_prog_RANLIB"
6902fi
6903
6904test -z "$RANLIB" && RANLIB=:
6905
6906
6907
6908
6909
6910
6911# Determine commands to create old-style static archives.
6912old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6913old_postinstall_cmds='chmod 644 $oldlib'
6914old_postuninstall_cmds=
6915
6916if test -n "$RANLIB"; then
6917  case $host_os in
6918  openbsd*)
6919    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6920    ;;
6921  *)
6922    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6923    ;;
6924  esac
6925  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6926fi
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961# If no C compiler was specified, use CC.
6962LTCC=${LTCC-"$CC"}
6963
6964# If no C compiler flags were specified, use CFLAGS.
6965LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6966
6967# Allow CC to be a program name with arguments.
6968compiler=$CC
6969
6970
6971# Check for command to grab the raw symbol name followed by C symbol from nm.
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6973$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6974if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977
6978# These are sane defaults that work on at least a few old systems.
6979# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6980
6981# Character class describing NM global symbol codes.
6982symcode='[BCDEGRST]'
6983
6984# Regexp to match symbols that can be accessed directly from C.
6985sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6986
6987# Define system-specific variables.
6988case $host_os in
6989aix*)
6990  symcode='[BCDT]'
6991  ;;
6992cygwin* | mingw* | pw32* | cegcc*)
6993  symcode='[ABCDGISTW]'
6994  ;;
6995hpux*)
6996  if test "$host_cpu" = ia64; then
6997    symcode='[ABCDEGRST]'
6998  fi
6999  ;;
7000irix* | nonstopux*)
7001  symcode='[BCDEGRST]'
7002  ;;
7003osf*)
7004  symcode='[BCDEGQRST]'
7005  ;;
7006solaris*)
7007  symcode='[BDRT]'
7008  ;;
7009sco3.2v5*)
7010  symcode='[DT]'
7011  ;;
7012sysv4.2uw2*)
7013  symcode='[DT]'
7014  ;;
7015sysv5* | sco5v6* | unixware* | OpenUNIX*)
7016  symcode='[ABDT]'
7017  ;;
7018sysv4)
7019  symcode='[DFNSTU]'
7020  ;;
7021esac
7022
7023# If we're using GNU nm, then use its standard symbol codes.
7024case `$NM -V 2>&1` in
7025*GNU* | *'with BFD'*)
7026  symcode='[ABCDGIRSTW]' ;;
7027esac
7028
7029# Transform an extracted symbol line into a proper C declaration.
7030# Some systems (esp. on ia64) link data and code symbols differently,
7031# so use this general approach.
7032lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7033
7034# Transform an extracted symbol line into symbol name and symbol address
7035lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7036lt_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'"
7037
7038# Handle CRLF in mingw tool chain
7039opt_cr=
7040case $build_os in
7041mingw*)
7042  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7043  ;;
7044esac
7045
7046# Try without a prefix underscore, then with it.
7047for ac_symprfx in "" "_"; do
7048
7049  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7050  symxfrm="\\1 $ac_symprfx\\2 \\2"
7051
7052  # Write the raw and C identifiers.
7053  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7054    # Fake it for dumpbin and say T for any non-static function
7055    # and D for any global variable.
7056    # Also find C++ and __fastcall symbols from MSVC++,
7057    # which start with @ or ?.
7058    lt_cv_sys_global_symbol_pipe="$AWK '"\
7059"     {last_section=section; section=\$ 3};"\
7060"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7061"     \$ 0!~/External *\|/{next};"\
7062"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7063"     {if(hide[section]) next};"\
7064"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7065"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7066"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7067"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7068"     ' prfx=^$ac_symprfx"
7069  else
7070    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7071  fi
7072
7073  # Check to see that the pipe works correctly.
7074  pipe_works=no
7075
7076  rm -f conftest*
7077  cat > conftest.$ac_ext <<_LT_EOF
7078#ifdef __cplusplus
7079extern "C" {
7080#endif
7081char nm_test_var;
7082void nm_test_func(void);
7083void nm_test_func(void){}
7084#ifdef __cplusplus
7085}
7086#endif
7087int main(){nm_test_var='a';nm_test_func();return(0);}
7088_LT_EOF
7089
7090  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7091  (eval $ac_compile) 2>&5
7092  ac_status=$?
7093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094  test $ac_status = 0; }; then
7095    # Now try to grab the symbols.
7096    nlist=conftest.nm
7097    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7098  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7099  ac_status=$?
7100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101  test $ac_status = 0; } && test -s "$nlist"; then
7102      # Try sorting and uniquifying the output.
7103      if sort "$nlist" | uniq > "$nlist"T; then
7104	mv -f "$nlist"T "$nlist"
7105      else
7106	rm -f "$nlist"T
7107      fi
7108
7109      # Make sure that we snagged all the symbols we need.
7110      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7111	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7112	  cat <<_LT_EOF > conftest.$ac_ext
7113#ifdef __cplusplus
7114extern "C" {
7115#endif
7116
7117_LT_EOF
7118	  # Now generate the symbol file.
7119	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7120
7121	  cat <<_LT_EOF >> conftest.$ac_ext
7122
7123/* The mapping between symbol names and symbols.  */
7124const struct {
7125  const char *name;
7126  void       *address;
7127}
7128lt__PROGRAM__LTX_preloaded_symbols[] =
7129{
7130  { "@PROGRAM@", (void *) 0 },
7131_LT_EOF
7132	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7133	  cat <<\_LT_EOF >> conftest.$ac_ext
7134  {0, (void *) 0}
7135};
7136
7137/* This works around a problem in FreeBSD linker */
7138#ifdef FREEBSD_WORKAROUND
7139static const void *lt_preloaded_setup() {
7140  return lt__PROGRAM__LTX_preloaded_symbols;
7141}
7142#endif
7143
7144#ifdef __cplusplus
7145}
7146#endif
7147_LT_EOF
7148	  # Now try linking the two files.
7149	  mv conftest.$ac_objext conftstm.$ac_objext
7150	  lt_save_LIBS="$LIBS"
7151	  lt_save_CFLAGS="$CFLAGS"
7152	  LIBS="conftstm.$ac_objext"
7153	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7154	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7155  (eval $ac_link) 2>&5
7156  ac_status=$?
7157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7159	    pipe_works=yes
7160	  fi
7161	  LIBS="$lt_save_LIBS"
7162	  CFLAGS="$lt_save_CFLAGS"
7163	else
7164	  echo "cannot find nm_test_func in $nlist" >&5
7165	fi
7166      else
7167	echo "cannot find nm_test_var in $nlist" >&5
7168      fi
7169    else
7170      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7171    fi
7172  else
7173    echo "$progname: failed program was:" >&5
7174    cat conftest.$ac_ext >&5
7175  fi
7176  rm -rf conftest* conftst*
7177
7178  # Do not use the global_symbol_pipe unless it works.
7179  if test "$pipe_works" = yes; then
7180    break
7181  else
7182    lt_cv_sys_global_symbol_pipe=
7183  fi
7184done
7185
7186fi
7187
7188if test -z "$lt_cv_sys_global_symbol_pipe"; then
7189  lt_cv_sys_global_symbol_to_cdecl=
7190fi
7191if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7193$as_echo "failed" >&6; }
7194else
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7196$as_echo "ok" >&6; }
7197fi
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220# Check whether --enable-libtool-lock was given.
7221if test "${enable_libtool_lock+set}" = set; then :
7222  enableval=$enable_libtool_lock;
7223fi
7224
7225test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7226
7227# Some flags need to be propagated to the compiler or linker for good
7228# libtool support.
7229case $host in
7230ia64-*-hpux*)
7231  # Find out which ABI we are using.
7232  echo 'int i;' > conftest.$ac_ext
7233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234  (eval $ac_compile) 2>&5
7235  ac_status=$?
7236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237  test $ac_status = 0; }; then
7238    case `/usr/bin/file conftest.$ac_objext` in
7239      *ELF-32*)
7240	HPUX_IA64_MODE="32"
7241	;;
7242      *ELF-64*)
7243	HPUX_IA64_MODE="64"
7244	;;
7245    esac
7246  fi
7247  rm -rf conftest*
7248  ;;
7249*-*-irix6*)
7250  # Find out which ABI we are using.
7251  echo '#line 7251 "configure"' > conftest.$ac_ext
7252  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253  (eval $ac_compile) 2>&5
7254  ac_status=$?
7255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256  test $ac_status = 0; }; then
7257    if test "$lt_cv_prog_gnu_ld" = yes; then
7258      case `/usr/bin/file conftest.$ac_objext` in
7259	*32-bit*)
7260	  LD="${LD-ld} -melf32bsmip"
7261	  ;;
7262	*N32*)
7263	  LD="${LD-ld} -melf32bmipn32"
7264	  ;;
7265	*64-bit*)
7266	  LD="${LD-ld} -melf64bmip"
7267	;;
7268      esac
7269    else
7270      case `/usr/bin/file conftest.$ac_objext` in
7271	*32-bit*)
7272	  LD="${LD-ld} -32"
7273	  ;;
7274	*N32*)
7275	  LD="${LD-ld} -n32"
7276	  ;;
7277	*64-bit*)
7278	  LD="${LD-ld} -64"
7279	  ;;
7280      esac
7281    fi
7282  fi
7283  rm -rf conftest*
7284  ;;
7285
7286x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7287s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7288  # Find out which ABI we are using.
7289  echo 'int i;' > conftest.$ac_ext
7290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7291  (eval $ac_compile) 2>&5
7292  ac_status=$?
7293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294  test $ac_status = 0; }; then
7295    case `/usr/bin/file conftest.o` in
7296      *32-bit*)
7297	case $host in
7298	  x86_64-*kfreebsd*-gnu)
7299	    LD="${LD-ld} -m elf_i386_fbsd"
7300	    ;;
7301	  x86_64-*linux*)
7302	    LD="${LD-ld} -m elf_i386"
7303	    ;;
7304	  ppc64-*linux*|powerpc64-*linux*)
7305	    LD="${LD-ld} -m elf32ppclinux"
7306	    ;;
7307	  s390x-*linux*)
7308	    LD="${LD-ld} -m elf_s390"
7309	    ;;
7310	  sparc64-*linux*)
7311	    LD="${LD-ld} -m elf32_sparc"
7312	    ;;
7313	esac
7314	;;
7315      *64-bit*)
7316	case $host in
7317	  x86_64-*kfreebsd*-gnu)
7318	    LD="${LD-ld} -m elf_x86_64_fbsd"
7319	    ;;
7320	  x86_64-*linux*)
7321	    LD="${LD-ld} -m elf_x86_64"
7322	    ;;
7323	  ppc*-*linux*|powerpc*-*linux*)
7324	    LD="${LD-ld} -m elf64ppc"
7325	    ;;
7326	  s390*-*linux*|s390*-*tpf*)
7327	    LD="${LD-ld} -m elf64_s390"
7328	    ;;
7329	  sparc*-*linux*)
7330	    LD="${LD-ld} -m elf64_sparc"
7331	    ;;
7332	esac
7333	;;
7334    esac
7335  fi
7336  rm -rf conftest*
7337  ;;
7338
7339*-*-sco3.2v5*)
7340  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7341  SAVE_CFLAGS="$CFLAGS"
7342  CFLAGS="$CFLAGS -belf"
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7344$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7345if test "${lt_cv_cc_needs_belf+set}" = set; then :
7346  $as_echo_n "(cached) " >&6
7347else
7348  ac_ext=c
7349ac_cpp='$CPP $CPPFLAGS'
7350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353
7354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356
7357int
7358main ()
7359{
7360
7361  ;
7362  return 0;
7363}
7364_ACEOF
7365if ac_fn_c_try_link "$LINENO"; then :
7366  lt_cv_cc_needs_belf=yes
7367else
7368  lt_cv_cc_needs_belf=no
7369fi
7370rm -f core conftest.err conftest.$ac_objext \
7371    conftest$ac_exeext conftest.$ac_ext
7372     ac_ext=c
7373ac_cpp='$CPP $CPPFLAGS'
7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7380$as_echo "$lt_cv_cc_needs_belf" >&6; }
7381  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7382    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7383    CFLAGS="$SAVE_CFLAGS"
7384  fi
7385  ;;
7386sparc*-*solaris*)
7387  # Find out which ABI we are using.
7388  echo 'int i;' > conftest.$ac_ext
7389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390  (eval $ac_compile) 2>&5
7391  ac_status=$?
7392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393  test $ac_status = 0; }; then
7394    case `/usr/bin/file conftest.o` in
7395    *64-bit*)
7396      case $lt_cv_prog_gnu_ld in
7397      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7398      *)
7399	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7400	  LD="${LD-ld} -64"
7401	fi
7402	;;
7403      esac
7404      ;;
7405    esac
7406  fi
7407  rm -rf conftest*
7408  ;;
7409esac
7410
7411need_locks="$enable_libtool_lock"
7412
7413
7414  case $host_os in
7415    rhapsody* | darwin*)
7416    if test -n "$ac_tool_prefix"; then
7417  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7418set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$DSYMUTIL"; then
7425  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_exec_ext in '' $ac_executable_extensions; do
7433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439  done
7440IFS=$as_save_IFS
7441
7442fi
7443fi
7444DSYMUTIL=$ac_cv_prog_DSYMUTIL
7445if test -n "$DSYMUTIL"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7447$as_echo "$DSYMUTIL" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453
7454fi
7455if test -z "$ac_cv_prog_DSYMUTIL"; then
7456  ac_ct_DSYMUTIL=$DSYMUTIL
7457  # Extract the first word of "dsymutil", so it can be a program name with args.
7458set dummy dsymutil; ac_word=$2
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460$as_echo_n "checking for $ac_word... " >&6; }
7461if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7462  $as_echo_n "(cached) " >&6
7463else
7464  if test -n "$ac_ct_DSYMUTIL"; then
7465  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472    for ac_exec_ext in '' $ac_executable_extensions; do
7473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479  done
7480IFS=$as_save_IFS
7481
7482fi
7483fi
7484ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7485if test -n "$ac_ct_DSYMUTIL"; then
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7487$as_echo "$ac_ct_DSYMUTIL" >&6; }
7488else
7489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490$as_echo "no" >&6; }
7491fi
7492
7493  if test "x$ac_ct_DSYMUTIL" = x; then
7494    DSYMUTIL=":"
7495  else
7496    case $cross_compiling:$ac_tool_warned in
7497yes:)
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500ac_tool_warned=yes ;;
7501esac
7502    DSYMUTIL=$ac_ct_DSYMUTIL
7503  fi
7504else
7505  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7506fi
7507
7508    if test -n "$ac_tool_prefix"; then
7509  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512$as_echo_n "checking for $ac_word... " >&6; }
7513if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  if test -n "$NMEDIT"; then
7517  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522  IFS=$as_save_IFS
7523  test -z "$as_dir" && as_dir=.
7524    for ac_exec_ext in '' $ac_executable_extensions; do
7525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528    break 2
7529  fi
7530done
7531  done
7532IFS=$as_save_IFS
7533
7534fi
7535fi
7536NMEDIT=$ac_cv_prog_NMEDIT
7537if test -n "$NMEDIT"; then
7538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7539$as_echo "$NMEDIT" >&6; }
7540else
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
7543fi
7544
7545
7546fi
7547if test -z "$ac_cv_prog_NMEDIT"; then
7548  ac_ct_NMEDIT=$NMEDIT
7549  # Extract the first word of "nmedit", so it can be a program name with args.
7550set dummy nmedit; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  if test -n "$ac_ct_NMEDIT"; then
7557  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564    for ac_exec_ext in '' $ac_executable_extensions; do
7565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568    break 2
7569  fi
7570done
7571  done
7572IFS=$as_save_IFS
7573
7574fi
7575fi
7576ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577if test -n "$ac_ct_NMEDIT"; then
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7579$as_echo "$ac_ct_NMEDIT" >&6; }
7580else
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
7584
7585  if test "x$ac_ct_NMEDIT" = x; then
7586    NMEDIT=":"
7587  else
7588    case $cross_compiling:$ac_tool_warned in
7589yes:)
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592ac_tool_warned=yes ;;
7593esac
7594    NMEDIT=$ac_ct_NMEDIT
7595  fi
7596else
7597  NMEDIT="$ac_cv_prog_NMEDIT"
7598fi
7599
7600    if test -n "$ac_tool_prefix"; then
7601  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7602set dummy ${ac_tool_prefix}lipo; ac_word=$2
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604$as_echo_n "checking for $ac_word... " >&6; }
7605if test "${ac_cv_prog_LIPO+set}" = set; then :
7606  $as_echo_n "(cached) " >&6
7607else
7608  if test -n "$LIPO"; then
7609  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7610else
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614  IFS=$as_save_IFS
7615  test -z "$as_dir" && as_dir=.
7616    for ac_exec_ext in '' $ac_executable_extensions; do
7617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620    break 2
7621  fi
7622done
7623  done
7624IFS=$as_save_IFS
7625
7626fi
7627fi
7628LIPO=$ac_cv_prog_LIPO
7629if test -n "$LIPO"; then
7630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7631$as_echo "$LIPO" >&6; }
7632else
7633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
7635fi
7636
7637
7638fi
7639if test -z "$ac_cv_prog_LIPO"; then
7640  ac_ct_LIPO=$LIPO
7641  # Extract the first word of "lipo", so it can be a program name with args.
7642set dummy lipo; ac_word=$2
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644$as_echo_n "checking for $ac_word... " >&6; }
7645if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7646  $as_echo_n "(cached) " >&6
7647else
7648  if test -n "$ac_ct_LIPO"; then
7649  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7650else
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654  IFS=$as_save_IFS
7655  test -z "$as_dir" && as_dir=.
7656    for ac_exec_ext in '' $ac_executable_extensions; do
7657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658    ac_cv_prog_ac_ct_LIPO="lipo"
7659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660    break 2
7661  fi
7662done
7663  done
7664IFS=$as_save_IFS
7665
7666fi
7667fi
7668ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7669if test -n "$ac_ct_LIPO"; then
7670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7671$as_echo "$ac_ct_LIPO" >&6; }
7672else
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
7675fi
7676
7677  if test "x$ac_ct_LIPO" = x; then
7678    LIPO=":"
7679  else
7680    case $cross_compiling:$ac_tool_warned in
7681yes:)
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684ac_tool_warned=yes ;;
7685esac
7686    LIPO=$ac_ct_LIPO
7687  fi
7688else
7689  LIPO="$ac_cv_prog_LIPO"
7690fi
7691
7692    if test -n "$ac_tool_prefix"; then
7693  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7694set dummy ${ac_tool_prefix}otool; ac_word=$2
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696$as_echo_n "checking for $ac_word... " >&6; }
7697if test "${ac_cv_prog_OTOOL+set}" = set; then :
7698  $as_echo_n "(cached) " >&6
7699else
7700  if test -n "$OTOOL"; then
7701  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7702else
7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704for as_dir in $PATH
7705do
7706  IFS=$as_save_IFS
7707  test -z "$as_dir" && as_dir=.
7708    for ac_exec_ext in '' $ac_executable_extensions; do
7709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712    break 2
7713  fi
7714done
7715  done
7716IFS=$as_save_IFS
7717
7718fi
7719fi
7720OTOOL=$ac_cv_prog_OTOOL
7721if test -n "$OTOOL"; then
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7723$as_echo "$OTOOL" >&6; }
7724else
7725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726$as_echo "no" >&6; }
7727fi
7728
7729
7730fi
7731if test -z "$ac_cv_prog_OTOOL"; then
7732  ac_ct_OTOOL=$OTOOL
7733  # Extract the first word of "otool", so it can be a program name with args.
7734set dummy otool; ac_word=$2
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736$as_echo_n "checking for $ac_word... " >&6; }
7737if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  if test -n "$ac_ct_OTOOL"; then
7741  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746  IFS=$as_save_IFS
7747  test -z "$as_dir" && as_dir=.
7748    for ac_exec_ext in '' $ac_executable_extensions; do
7749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750    ac_cv_prog_ac_ct_OTOOL="otool"
7751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752    break 2
7753  fi
7754done
7755  done
7756IFS=$as_save_IFS
7757
7758fi
7759fi
7760ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7761if test -n "$ac_ct_OTOOL"; then
7762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7763$as_echo "$ac_ct_OTOOL" >&6; }
7764else
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767fi
7768
7769  if test "x$ac_ct_OTOOL" = x; then
7770    OTOOL=":"
7771  else
7772    case $cross_compiling:$ac_tool_warned in
7773yes:)
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776ac_tool_warned=yes ;;
7777esac
7778    OTOOL=$ac_ct_OTOOL
7779  fi
7780else
7781  OTOOL="$ac_cv_prog_OTOOL"
7782fi
7783
7784    if test -n "$ac_tool_prefix"; then
7785  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7786set dummy ${ac_tool_prefix}otool64; ac_word=$2
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788$as_echo_n "checking for $ac_word... " >&6; }
7789if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7790  $as_echo_n "(cached) " >&6
7791else
7792  if test -n "$OTOOL64"; then
7793  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798  IFS=$as_save_IFS
7799  test -z "$as_dir" && as_dir=.
7800    for ac_exec_ext in '' $ac_executable_extensions; do
7801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804    break 2
7805  fi
7806done
7807  done
7808IFS=$as_save_IFS
7809
7810fi
7811fi
7812OTOOL64=$ac_cv_prog_OTOOL64
7813if test -n "$OTOOL64"; then
7814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7815$as_echo "$OTOOL64" >&6; }
7816else
7817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
7819fi
7820
7821
7822fi
7823if test -z "$ac_cv_prog_OTOOL64"; then
7824  ac_ct_OTOOL64=$OTOOL64
7825  # Extract the first word of "otool64", so it can be a program name with args.
7826set dummy otool64; ac_word=$2
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828$as_echo_n "checking for $ac_word... " >&6; }
7829if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  if test -n "$ac_ct_OTOOL64"; then
7833  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7834else
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838  IFS=$as_save_IFS
7839  test -z "$as_dir" && as_dir=.
7840    for ac_exec_ext in '' $ac_executable_extensions; do
7841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842    ac_cv_prog_ac_ct_OTOOL64="otool64"
7843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844    break 2
7845  fi
7846done
7847  done
7848IFS=$as_save_IFS
7849
7850fi
7851fi
7852ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7853if test -n "$ac_ct_OTOOL64"; then
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7855$as_echo "$ac_ct_OTOOL64" >&6; }
7856else
7857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
7859fi
7860
7861  if test "x$ac_ct_OTOOL64" = x; then
7862    OTOOL64=":"
7863  else
7864    case $cross_compiling:$ac_tool_warned in
7865yes:)
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868ac_tool_warned=yes ;;
7869esac
7870    OTOOL64=$ac_ct_OTOOL64
7871  fi
7872else
7873  OTOOL64="$ac_cv_prog_OTOOL64"
7874fi
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7903$as_echo_n "checking for -single_module linker flag... " >&6; }
7904if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  lt_cv_apple_cc_single_mod=no
7908      if test -z "${LT_MULTI_MODULE}"; then
7909	# By default we will add the -single_module flag. You can override
7910	# by either setting the environment variable LT_MULTI_MODULE
7911	# non-empty at configure time, or by adding -multi_module to the
7912	# link flags.
7913	rm -rf libconftest.dylib*
7914	echo "int foo(void){return 1;}" > conftest.c
7915	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7916-dynamiclib -Wl,-single_module conftest.c" >&5
7917	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7918	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7919        _lt_result=$?
7920	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7921	  lt_cv_apple_cc_single_mod=yes
7922	else
7923	  cat conftest.err >&5
7924	fi
7925	rm -rf libconftest.dylib*
7926	rm -f conftest.*
7927      fi
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7930$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7932$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7933if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  lt_cv_ld_exported_symbols_list=no
7937      save_LDFLAGS=$LDFLAGS
7938      echo "_main" > conftest.sym
7939      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h.  */
7942
7943int
7944main ()
7945{
7946
7947  ;
7948  return 0;
7949}
7950_ACEOF
7951if ac_fn_c_try_link "$LINENO"; then :
7952  lt_cv_ld_exported_symbols_list=yes
7953else
7954  lt_cv_ld_exported_symbols_list=no
7955fi
7956rm -f core conftest.err conftest.$ac_objext \
7957    conftest$ac_exeext conftest.$ac_ext
7958	LDFLAGS="$save_LDFLAGS"
7959
7960fi
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7962$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7963    case $host_os in
7964    rhapsody* | darwin1.[012])
7965      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7966    darwin1.*)
7967      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7968    darwin*) # darwin 5.x on
7969      # if running on 10.5 or later, the deployment target defaults
7970      # to the OS version, if on x86, and 10.4, the deployment
7971      # target defaults to 10.4. Don't you love it?
7972      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7973	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7974	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7975	10.[012]*)
7976	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7977	10.*)
7978	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7979      esac
7980    ;;
7981  esac
7982    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7983      _lt_dar_single_mod='$single_module'
7984    fi
7985    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7986      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7987    else
7988      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7989    fi
7990    if test "$DSYMUTIL" != ":"; then
7991      _lt_dsymutil='~$DSYMUTIL $lib || :'
7992    else
7993      _lt_dsymutil=
7994    fi
7995    ;;
7996  esac
7997
7998for ac_header in dlfcn.h
7999do :
8000  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8001"
8002if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8003  cat >>confdefs.h <<_ACEOF
8004#define HAVE_DLFCN_H 1
8005_ACEOF
8006
8007fi
8008
8009done
8010
8011
8012
8013# Set options
8014
8015
8016
8017        enable_dlopen=no
8018
8019
8020  enable_win32_dll=no
8021
8022
8023            # Check whether --enable-shared was given.
8024if test "${enable_shared+set}" = set; then :
8025  enableval=$enable_shared; p=${PACKAGE-default}
8026    case $enableval in
8027    yes) enable_shared=yes ;;
8028    no) enable_shared=no ;;
8029    *)
8030      enable_shared=no
8031      # Look at the argument we got.  We use all the common list separators.
8032      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8033      for pkg in $enableval; do
8034	IFS="$lt_save_ifs"
8035	if test "X$pkg" = "X$p"; then
8036	  enable_shared=yes
8037	fi
8038      done
8039      IFS="$lt_save_ifs"
8040      ;;
8041    esac
8042else
8043  enable_shared=yes
8044fi
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054  # Check whether --enable-static was given.
8055if test "${enable_static+set}" = set; then :
8056  enableval=$enable_static; p=${PACKAGE-default}
8057    case $enableval in
8058    yes) enable_static=yes ;;
8059    no) enable_static=no ;;
8060    *)
8061     enable_static=no
8062      # Look at the argument we got.  We use all the common list separators.
8063      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8064      for pkg in $enableval; do
8065	IFS="$lt_save_ifs"
8066	if test "X$pkg" = "X$p"; then
8067	  enable_static=yes
8068	fi
8069      done
8070      IFS="$lt_save_ifs"
8071      ;;
8072    esac
8073else
8074  enable_static=yes
8075fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086# Check whether --with-pic was given.
8087if test "${with_pic+set}" = set; then :
8088  withval=$with_pic; pic_mode="$withval"
8089else
8090  pic_mode=default
8091fi
8092
8093
8094test -z "$pic_mode" && pic_mode=default
8095
8096
8097
8098
8099
8100
8101
8102  # Check whether --enable-fast-install was given.
8103if test "${enable_fast_install+set}" = set; then :
8104  enableval=$enable_fast_install; p=${PACKAGE-default}
8105    case $enableval in
8106    yes) enable_fast_install=yes ;;
8107    no) enable_fast_install=no ;;
8108    *)
8109      enable_fast_install=no
8110      # Look at the argument we got.  We use all the common list separators.
8111      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8112      for pkg in $enableval; do
8113	IFS="$lt_save_ifs"
8114	if test "X$pkg" = "X$p"; then
8115	  enable_fast_install=yes
8116	fi
8117      done
8118      IFS="$lt_save_ifs"
8119      ;;
8120    esac
8121else
8122  enable_fast_install=yes
8123fi
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135# This can be used to rebuild libtool when needed
8136LIBTOOL_DEPS="$ltmain"
8137
8138# Always use our own libtool.
8139LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165test -z "$LN_S" && LN_S="ln -s"
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180if test -n "${ZSH_VERSION+set}" ; then
8181   setopt NO_GLOB_SUBST
8182fi
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8185$as_echo_n "checking for objdir... " >&6; }
8186if test "${lt_cv_objdir+set}" = set; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  rm -f .libs 2>/dev/null
8190mkdir .libs 2>/dev/null
8191if test -d .libs; then
8192  lt_cv_objdir=.libs
8193else
8194  # MS-DOS does not allow filenames that begin with a dot.
8195  lt_cv_objdir=_libs
8196fi
8197rmdir .libs 2>/dev/null
8198fi
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8200$as_echo "$lt_cv_objdir" >&6; }
8201objdir=$lt_cv_objdir
8202
8203
8204
8205
8206
8207cat >>confdefs.h <<_ACEOF
8208#define LT_OBJDIR "$lt_cv_objdir/"
8209_ACEOF
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227case $host_os in
8228aix3*)
8229  # AIX sometimes has problems with the GCC collect2 program.  For some
8230  # reason, if we set the COLLECT_NAMES environment variable, the problems
8231  # vanish in a puff of smoke.
8232  if test "X${COLLECT_NAMES+set}" != Xset; then
8233    COLLECT_NAMES=
8234    export COLLECT_NAMES
8235  fi
8236  ;;
8237esac
8238
8239# Sed substitution that helps us do robust quoting.  It backslashifies
8240# metacharacters that are still active within double-quoted strings.
8241sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8242
8243# Same as above, but do not quote variable references.
8244double_quote_subst='s/\(["`\\]\)/\\\1/g'
8245
8246# Sed substitution to delay expansion of an escaped shell variable in a
8247# double_quote_subst'ed string.
8248delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8249
8250# Sed substitution to delay expansion of an escaped single quote.
8251delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8252
8253# Sed substitution to avoid accidental globbing in evaled expressions
8254no_glob_subst='s/\*/\\\*/g'
8255
8256# Global variables:
8257ofile=libtool
8258can_build_shared=yes
8259
8260# All known linkers require a `.a' archive for static linking (except MSVC,
8261# which needs '.lib').
8262libext=a
8263
8264with_gnu_ld="$lt_cv_prog_gnu_ld"
8265
8266old_CC="$CC"
8267old_CFLAGS="$CFLAGS"
8268
8269# Set sane defaults for various variables
8270test -z "$CC" && CC=cc
8271test -z "$LTCC" && LTCC=$CC
8272test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8273test -z "$LD" && LD=ld
8274test -z "$ac_objext" && ac_objext=o
8275
8276for cc_temp in $compiler""; do
8277  case $cc_temp in
8278    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8279    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8280    \-*) ;;
8281    *) break;;
8282  esac
8283done
8284cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8285
8286
8287# Only perform the check for file, if the check method requires it
8288test -z "$MAGIC_CMD" && MAGIC_CMD=file
8289case $deplibs_check_method in
8290file_magic*)
8291  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8293$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8294if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  case $MAGIC_CMD in
8298[\\/*] |  ?:[\\/]*)
8299  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8300  ;;
8301*)
8302  lt_save_MAGIC_CMD="$MAGIC_CMD"
8303  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8304  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8305  for ac_dir in $ac_dummy; do
8306    IFS="$lt_save_ifs"
8307    test -z "$ac_dir" && ac_dir=.
8308    if test -f $ac_dir/${ac_tool_prefix}file; then
8309      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8310      if test -n "$file_magic_test_file"; then
8311	case $deplibs_check_method in
8312	"file_magic "*)
8313	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8314	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8316	    $EGREP "$file_magic_regex" > /dev/null; then
8317	    :
8318	  else
8319	    cat <<_LT_EOF 1>&2
8320
8321*** Warning: the command libtool uses to detect shared libraries,
8322*** $file_magic_cmd, produces output that libtool cannot recognize.
8323*** The result is that libtool may fail to recognize shared libraries
8324*** as such.  This will affect the creation of libtool libraries that
8325*** depend on shared libraries, but programs linked with such libtool
8326*** libraries will work regardless of this problem.  Nevertheless, you
8327*** may want to report the problem to your system manager and/or to
8328*** bug-libtool@gnu.org
8329
8330_LT_EOF
8331	  fi ;;
8332	esac
8333      fi
8334      break
8335    fi
8336  done
8337  IFS="$lt_save_ifs"
8338  MAGIC_CMD="$lt_save_MAGIC_CMD"
8339  ;;
8340esac
8341fi
8342
8343MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8344if test -n "$MAGIC_CMD"; then
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8346$as_echo "$MAGIC_CMD" >&6; }
8347else
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350fi
8351
8352
8353
8354
8355
8356if test -z "$lt_cv_path_MAGIC_CMD"; then
8357  if test -n "$ac_tool_prefix"; then
8358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8359$as_echo_n "checking for file... " >&6; }
8360if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  case $MAGIC_CMD in
8364[\\/*] |  ?:[\\/]*)
8365  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8366  ;;
8367*)
8368  lt_save_MAGIC_CMD="$MAGIC_CMD"
8369  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8370  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8371  for ac_dir in $ac_dummy; do
8372    IFS="$lt_save_ifs"
8373    test -z "$ac_dir" && ac_dir=.
8374    if test -f $ac_dir/file; then
8375      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8376      if test -n "$file_magic_test_file"; then
8377	case $deplibs_check_method in
8378	"file_magic "*)
8379	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8380	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8382	    $EGREP "$file_magic_regex" > /dev/null; then
8383	    :
8384	  else
8385	    cat <<_LT_EOF 1>&2
8386
8387*** Warning: the command libtool uses to detect shared libraries,
8388*** $file_magic_cmd, produces output that libtool cannot recognize.
8389*** The result is that libtool may fail to recognize shared libraries
8390*** as such.  This will affect the creation of libtool libraries that
8391*** depend on shared libraries, but programs linked with such libtool
8392*** libraries will work regardless of this problem.  Nevertheless, you
8393*** may want to report the problem to your system manager and/or to
8394*** bug-libtool@gnu.org
8395
8396_LT_EOF
8397	  fi ;;
8398	esac
8399      fi
8400      break
8401    fi
8402  done
8403  IFS="$lt_save_ifs"
8404  MAGIC_CMD="$lt_save_MAGIC_CMD"
8405  ;;
8406esac
8407fi
8408
8409MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8410if test -n "$MAGIC_CMD"; then
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8412$as_echo "$MAGIC_CMD" >&6; }
8413else
8414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416fi
8417
8418
8419  else
8420    MAGIC_CMD=:
8421  fi
8422fi
8423
8424  fi
8425  ;;
8426esac
8427
8428# Use C for the default configuration in the libtool script
8429
8430lt_save_CC="$CC"
8431ac_ext=c
8432ac_cpp='$CPP $CPPFLAGS'
8433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435ac_compiler_gnu=$ac_cv_c_compiler_gnu
8436
8437
8438# Source file extension for C test sources.
8439ac_ext=c
8440
8441# Object file extension for compiled C test sources.
8442objext=o
8443objext=$objext
8444
8445# Code to be used in simple compile tests
8446lt_simple_compile_test_code="int some_variable = 0;"
8447
8448# Code to be used in simple link tests
8449lt_simple_link_test_code='int main(){return(0);}'
8450
8451
8452
8453
8454
8455
8456
8457# If no C compiler was specified, use CC.
8458LTCC=${LTCC-"$CC"}
8459
8460# If no C compiler flags were specified, use CFLAGS.
8461LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8462
8463# Allow CC to be a program name with arguments.
8464compiler=$CC
8465
8466# Save the default compiler, since it gets overwritten when the other
8467# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8468compiler_DEFAULT=$CC
8469
8470# save warnings/boilerplate of simple test code
8471ac_outfile=conftest.$ac_objext
8472echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8473eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8474_lt_compiler_boilerplate=`cat conftest.err`
8475$RM conftest*
8476
8477ac_outfile=conftest.$ac_objext
8478echo "$lt_simple_link_test_code" >conftest.$ac_ext
8479eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8480_lt_linker_boilerplate=`cat conftest.err`
8481$RM -r conftest*
8482
8483
8484if test -n "$compiler"; then
8485
8486lt_prog_compiler_no_builtin_flag=
8487
8488if test "$GCC" = yes; then
8489  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8490
8491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8492$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8493if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8494  $as_echo_n "(cached) " >&6
8495else
8496  lt_cv_prog_compiler_rtti_exceptions=no
8497   ac_outfile=conftest.$ac_objext
8498   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8499   lt_compiler_flag="-fno-rtti -fno-exceptions"
8500   # Insert the option either (1) after the last *FLAGS variable, or
8501   # (2) before a word containing "conftest.", or (3) at the end.
8502   # Note that $ac_compile itself does not contain backslashes and begins
8503   # with a dollar sign (not a hyphen), so the echo should work correctly.
8504   # The option is referenced via a variable to avoid confusing sed.
8505   lt_compile=`echo "$ac_compile" | $SED \
8506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508   -e 's:$: $lt_compiler_flag:'`
8509   (eval echo "\"\$as_me:8509: $lt_compile\"" >&5)
8510   (eval "$lt_compile" 2>conftest.err)
8511   ac_status=$?
8512   cat conftest.err >&5
8513   echo "$as_me:8513: \$? = $ac_status" >&5
8514   if (exit $ac_status) && test -s "$ac_outfile"; then
8515     # The compiler can only warn and ignore the option if not recognized
8516     # So say no if there are warnings other than the usual output.
8517     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8518     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8519     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8520       lt_cv_prog_compiler_rtti_exceptions=yes
8521     fi
8522   fi
8523   $RM conftest*
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8527$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8528
8529if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8530    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8531else
8532    :
8533fi
8534
8535fi
8536
8537
8538
8539
8540
8541
8542  lt_prog_compiler_wl=
8543lt_prog_compiler_pic=
8544lt_prog_compiler_static=
8545
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8547$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8548
8549  if test "$GCC" = yes; then
8550    lt_prog_compiler_wl='-Wl,'
8551    lt_prog_compiler_static='-static'
8552
8553    case $host_os in
8554      aix*)
8555      # All AIX code is PIC.
8556      if test "$host_cpu" = ia64; then
8557	# AIX 5 now supports IA64 processor
8558	lt_prog_compiler_static='-Bstatic'
8559      fi
8560      ;;
8561
8562    amigaos*)
8563      case $host_cpu in
8564      powerpc)
8565            # see comment about AmigaOS4 .so support
8566            lt_prog_compiler_pic='-fPIC'
8567        ;;
8568      m68k)
8569            # FIXME: we need at least 68020 code to build shared libraries, but
8570            # adding the `-m68020' flag to GCC prevents building anything better,
8571            # like `-m68040'.
8572            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8573        ;;
8574      esac
8575      ;;
8576
8577    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8578      # PIC is the default for these OSes.
8579      ;;
8580
8581    mingw* | cygwin* | pw32* | os2* | cegcc*)
8582      # This hack is so that the source file can tell whether it is being
8583      # built for inclusion in a dll (and should export symbols for example).
8584      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8585      # (--disable-auto-import) libraries
8586      lt_prog_compiler_pic='-DDLL_EXPORT'
8587      ;;
8588
8589    darwin* | rhapsody*)
8590      # PIC is the default on this platform
8591      # Common symbols not allowed in MH_DYLIB files
8592      lt_prog_compiler_pic='-fno-common'
8593      ;;
8594
8595    hpux*)
8596      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8597      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8598      # sets the default TLS model and affects inlining.
8599      case $host_cpu in
8600      hppa*64*)
8601	# +Z the default
8602	;;
8603      *)
8604	lt_prog_compiler_pic='-fPIC'
8605	;;
8606      esac
8607      ;;
8608
8609    interix[3-9]*)
8610      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8611      # Instead, we relocate shared libraries at runtime.
8612      ;;
8613
8614    msdosdjgpp*)
8615      # Just because we use GCC doesn't mean we suddenly get shared libraries
8616      # on systems that don't support them.
8617      lt_prog_compiler_can_build_shared=no
8618      enable_shared=no
8619      ;;
8620
8621    *nto* | *qnx*)
8622      # QNX uses GNU C++, but need to define -shared option too, otherwise
8623      # it will coredump.
8624      lt_prog_compiler_pic='-fPIC -shared'
8625      ;;
8626
8627    sysv4*MP*)
8628      if test -d /usr/nec; then
8629	lt_prog_compiler_pic=-Kconform_pic
8630      fi
8631      ;;
8632
8633    *)
8634      lt_prog_compiler_pic='-fPIC'
8635      ;;
8636    esac
8637  else
8638    # PORTME Check for flag to pass linker flags through the system compiler.
8639    case $host_os in
8640    aix*)
8641      lt_prog_compiler_wl='-Wl,'
8642      if test "$host_cpu" = ia64; then
8643	# AIX 5 now supports IA64 processor
8644	lt_prog_compiler_static='-Bstatic'
8645      else
8646	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8647      fi
8648      ;;
8649
8650    mingw* | cygwin* | pw32* | os2* | cegcc*)
8651      # This hack is so that the source file can tell whether it is being
8652      # built for inclusion in a dll (and should export symbols for example).
8653      lt_prog_compiler_pic='-DDLL_EXPORT'
8654      ;;
8655
8656    hpux9* | hpux10* | hpux11*)
8657      lt_prog_compiler_wl='-Wl,'
8658      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8659      # not for PA HP-UX.
8660      case $host_cpu in
8661      hppa*64*|ia64*)
8662	# +Z the default
8663	;;
8664      *)
8665	lt_prog_compiler_pic='+Z'
8666	;;
8667      esac
8668      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8669      lt_prog_compiler_static='${wl}-a ${wl}archive'
8670      ;;
8671
8672    irix5* | irix6* | nonstopux*)
8673      lt_prog_compiler_wl='-Wl,'
8674      # PIC (with -KPIC) is the default.
8675      lt_prog_compiler_static='-non_shared'
8676      ;;
8677
8678    linux* | k*bsd*-gnu)
8679      case $cc_basename in
8680      # old Intel for x86_64 which still supported -KPIC.
8681      ecc*)
8682	lt_prog_compiler_wl='-Wl,'
8683	lt_prog_compiler_pic='-KPIC'
8684	lt_prog_compiler_static='-static'
8685        ;;
8686      # icc used to be incompatible with GCC.
8687      # ICC 10 doesn't accept -KPIC any more.
8688      icc* | ifort*)
8689	lt_prog_compiler_wl='-Wl,'
8690	lt_prog_compiler_pic='-fPIC'
8691	lt_prog_compiler_static='-static'
8692        ;;
8693      # Lahey Fortran 8.1.
8694      lf95*)
8695	lt_prog_compiler_wl='-Wl,'
8696	lt_prog_compiler_pic='--shared'
8697	lt_prog_compiler_static='--static'
8698	;;
8699      pgcc* | pgf77* | pgf90* | pgf95*)
8700        # Portland Group compilers (*not* the Pentium gcc compiler,
8701	# which looks to be a dead project)
8702	lt_prog_compiler_wl='-Wl,'
8703	lt_prog_compiler_pic='-fpic'
8704	lt_prog_compiler_static='-Bstatic'
8705        ;;
8706      ccc*)
8707        lt_prog_compiler_wl='-Wl,'
8708        # All Alpha code is PIC.
8709        lt_prog_compiler_static='-non_shared'
8710        ;;
8711      xl*)
8712	# IBM XL C 8.0/Fortran 10.1 on PPC
8713	lt_prog_compiler_wl='-Wl,'
8714	lt_prog_compiler_pic='-qpic'
8715	lt_prog_compiler_static='-qstaticlink'
8716	;;
8717      *)
8718	case `$CC -V 2>&1 | sed 5q` in
8719	*Sun\ C*)
8720	  # Sun C 5.9
8721	  lt_prog_compiler_pic='-KPIC'
8722	  lt_prog_compiler_static='-Bstatic'
8723	  lt_prog_compiler_wl='-Wl,'
8724	  ;;
8725	*Sun\ F*)
8726	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8727	  lt_prog_compiler_pic='-KPIC'
8728	  lt_prog_compiler_static='-Bstatic'
8729	  lt_prog_compiler_wl=''
8730	  ;;
8731	esac
8732	;;
8733      esac
8734      ;;
8735
8736    newsos6)
8737      lt_prog_compiler_pic='-KPIC'
8738      lt_prog_compiler_static='-Bstatic'
8739      ;;
8740
8741    *nto* | *qnx*)
8742      # QNX uses GNU C++, but need to define -shared option too, otherwise
8743      # it will coredump.
8744      lt_prog_compiler_pic='-fPIC -shared'
8745      ;;
8746
8747    osf3* | osf4* | osf5*)
8748      lt_prog_compiler_wl='-Wl,'
8749      # All OSF/1 code is PIC.
8750      lt_prog_compiler_static='-non_shared'
8751      ;;
8752
8753    rdos*)
8754      lt_prog_compiler_static='-non_shared'
8755      ;;
8756
8757    solaris*)
8758      lt_prog_compiler_pic='-KPIC'
8759      lt_prog_compiler_static='-Bstatic'
8760      case $cc_basename in
8761      f77* | f90* | f95*)
8762	lt_prog_compiler_wl='-Qoption ld ';;
8763      *)
8764	lt_prog_compiler_wl='-Wl,';;
8765      esac
8766      ;;
8767
8768    sunos4*)
8769      lt_prog_compiler_wl='-Qoption ld '
8770      lt_prog_compiler_pic='-PIC'
8771      lt_prog_compiler_static='-Bstatic'
8772      ;;
8773
8774    sysv4 | sysv4.2uw2* | sysv4.3*)
8775      lt_prog_compiler_wl='-Wl,'
8776      lt_prog_compiler_pic='-KPIC'
8777      lt_prog_compiler_static='-Bstatic'
8778      ;;
8779
8780    sysv4*MP*)
8781      if test -d /usr/nec ;then
8782	lt_prog_compiler_pic='-Kconform_pic'
8783	lt_prog_compiler_static='-Bstatic'
8784      fi
8785      ;;
8786
8787    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8788      lt_prog_compiler_wl='-Wl,'
8789      lt_prog_compiler_pic='-KPIC'
8790      lt_prog_compiler_static='-Bstatic'
8791      ;;
8792
8793    unicos*)
8794      lt_prog_compiler_wl='-Wl,'
8795      lt_prog_compiler_can_build_shared=no
8796      ;;
8797
8798    uts4*)
8799      lt_prog_compiler_pic='-pic'
8800      lt_prog_compiler_static='-Bstatic'
8801      ;;
8802
8803    *)
8804      lt_prog_compiler_can_build_shared=no
8805      ;;
8806    esac
8807  fi
8808
8809case $host_os in
8810  # For platforms which do not support PIC, -DPIC is meaningless:
8811  *djgpp*)
8812    lt_prog_compiler_pic=
8813    ;;
8814  *)
8815    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8816    ;;
8817esac
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8819$as_echo "$lt_prog_compiler_pic" >&6; }
8820
8821
8822
8823
8824
8825
8826#
8827# Check to make sure the PIC flag actually works.
8828#
8829if test -n "$lt_prog_compiler_pic"; then
8830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8831$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8832if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  lt_cv_prog_compiler_pic_works=no
8836   ac_outfile=conftest.$ac_objext
8837   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8838   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8839   # Insert the option either (1) after the last *FLAGS variable, or
8840   # (2) before a word containing "conftest.", or (3) at the end.
8841   # Note that $ac_compile itself does not contain backslashes and begins
8842   # with a dollar sign (not a hyphen), so the echo should work correctly.
8843   # The option is referenced via a variable to avoid confusing sed.
8844   lt_compile=`echo "$ac_compile" | $SED \
8845   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847   -e 's:$: $lt_compiler_flag:'`
8848   (eval echo "\"\$as_me:8848: $lt_compile\"" >&5)
8849   (eval "$lt_compile" 2>conftest.err)
8850   ac_status=$?
8851   cat conftest.err >&5
8852   echo "$as_me:8852: \$? = $ac_status" >&5
8853   if (exit $ac_status) && test -s "$ac_outfile"; then
8854     # The compiler can only warn and ignore the option if not recognized
8855     # So say no if there are warnings other than the usual output.
8856     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8857     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8858     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8859       lt_cv_prog_compiler_pic_works=yes
8860     fi
8861   fi
8862   $RM conftest*
8863
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8866$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8867
8868if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8869    case $lt_prog_compiler_pic in
8870     "" | " "*) ;;
8871     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8872     esac
8873else
8874    lt_prog_compiler_pic=
8875     lt_prog_compiler_can_build_shared=no
8876fi
8877
8878fi
8879
8880
8881
8882
8883
8884
8885#
8886# Check to make sure the static flag actually works.
8887#
8888wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8890$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8891if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8892  $as_echo_n "(cached) " >&6
8893else
8894  lt_cv_prog_compiler_static_works=no
8895   save_LDFLAGS="$LDFLAGS"
8896   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8897   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8898   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8899     # The linker can only warn and ignore the option if not recognized
8900     # So say no if there are warnings
8901     if test -s conftest.err; then
8902       # Append any errors to the config.log.
8903       cat conftest.err 1>&5
8904       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8905       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8906       if diff conftest.exp conftest.er2 >/dev/null; then
8907         lt_cv_prog_compiler_static_works=yes
8908       fi
8909     else
8910       lt_cv_prog_compiler_static_works=yes
8911     fi
8912   fi
8913   $RM -r conftest*
8914   LDFLAGS="$save_LDFLAGS"
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8918$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8919
8920if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8921    :
8922else
8923    lt_prog_compiler_static=
8924fi
8925
8926
8927
8928
8929
8930
8931
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8933$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8934if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  lt_cv_prog_compiler_c_o=no
8938   $RM -r conftest 2>/dev/null
8939   mkdir conftest
8940   cd conftest
8941   mkdir out
8942   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943
8944   lt_compiler_flag="-o out/conftest2.$ac_objext"
8945   # Insert the option either (1) after the last *FLAGS variable, or
8946   # (2) before a word containing "conftest.", or (3) at the end.
8947   # Note that $ac_compile itself does not contain backslashes and begins
8948   # with a dollar sign (not a hyphen), so the echo should work correctly.
8949   lt_compile=`echo "$ac_compile" | $SED \
8950   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952   -e 's:$: $lt_compiler_flag:'`
8953   (eval echo "\"\$as_me:8953: $lt_compile\"" >&5)
8954   (eval "$lt_compile" 2>out/conftest.err)
8955   ac_status=$?
8956   cat out/conftest.err >&5
8957   echo "$as_me:8957: \$? = $ac_status" >&5
8958   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8959   then
8960     # The compiler can only warn and ignore the option if not recognized
8961     # So say no if there are warnings
8962     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8963     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8964     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8965       lt_cv_prog_compiler_c_o=yes
8966     fi
8967   fi
8968   chmod u+w . 2>&5
8969   $RM conftest*
8970   # SGI C++ compiler will create directory out/ii_files/ for
8971   # template instantiation
8972   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8973   $RM out/* && rmdir out
8974   cd ..
8975   $RM -r conftest
8976   $RM conftest*
8977
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8980$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8981
8982
8983
8984
8985
8986
8987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8988$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8989if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8990  $as_echo_n "(cached) " >&6
8991else
8992  lt_cv_prog_compiler_c_o=no
8993   $RM -r conftest 2>/dev/null
8994   mkdir conftest
8995   cd conftest
8996   mkdir out
8997   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8998
8999   lt_compiler_flag="-o out/conftest2.$ac_objext"
9000   # Insert the option either (1) after the last *FLAGS variable, or
9001   # (2) before a word containing "conftest.", or (3) at the end.
9002   # Note that $ac_compile itself does not contain backslashes and begins
9003   # with a dollar sign (not a hyphen), so the echo should work correctly.
9004   lt_compile=`echo "$ac_compile" | $SED \
9005   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9006   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9007   -e 's:$: $lt_compiler_flag:'`
9008   (eval echo "\"\$as_me:9008: $lt_compile\"" >&5)
9009   (eval "$lt_compile" 2>out/conftest.err)
9010   ac_status=$?
9011   cat out/conftest.err >&5
9012   echo "$as_me:9012: \$? = $ac_status" >&5
9013   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9014   then
9015     # The compiler can only warn and ignore the option if not recognized
9016     # So say no if there are warnings
9017     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9018     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9019     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9020       lt_cv_prog_compiler_c_o=yes
9021     fi
9022   fi
9023   chmod u+w . 2>&5
9024   $RM conftest*
9025   # SGI C++ compiler will create directory out/ii_files/ for
9026   # template instantiation
9027   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9028   $RM out/* && rmdir out
9029   cd ..
9030   $RM -r conftest
9031   $RM conftest*
9032
9033fi
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9035$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9036
9037
9038
9039
9040hard_links="nottested"
9041if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9042  # do not overwrite the value of need_locks provided by the user
9043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9044$as_echo_n "checking if we can lock with hard links... " >&6; }
9045  hard_links=yes
9046  $RM conftest*
9047  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9048  touch conftest.a
9049  ln conftest.a conftest.b 2>&5 || hard_links=no
9050  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9052$as_echo "$hard_links" >&6; }
9053  if test "$hard_links" = no; then
9054    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9055$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9056    need_locks=warn
9057  fi
9058else
9059  need_locks=no
9060fi
9061
9062
9063
9064
9065
9066
9067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9068$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9069
9070  runpath_var=
9071  allow_undefined_flag=
9072  always_export_symbols=no
9073  archive_cmds=
9074  archive_expsym_cmds=
9075  compiler_needs_object=no
9076  enable_shared_with_static_runtimes=no
9077  export_dynamic_flag_spec=
9078  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9079  hardcode_automatic=no
9080  hardcode_direct=no
9081  hardcode_direct_absolute=no
9082  hardcode_libdir_flag_spec=
9083  hardcode_libdir_flag_spec_ld=
9084  hardcode_libdir_separator=
9085  hardcode_minus_L=no
9086  hardcode_shlibpath_var=unsupported
9087  inherit_rpath=no
9088  link_all_deplibs=unknown
9089  module_cmds=
9090  module_expsym_cmds=
9091  old_archive_from_new_cmds=
9092  old_archive_from_expsyms_cmds=
9093  thread_safe_flag_spec=
9094  whole_archive_flag_spec=
9095  # include_expsyms should be a list of space-separated symbols to be *always*
9096  # included in the symbol list
9097  include_expsyms=
9098  # exclude_expsyms can be an extended regexp of symbols to exclude
9099  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9100  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9101  # as well as any symbol that contains `d'.
9102  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9103  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9104  # platforms (ab)use it in PIC code, but their linkers get confused if
9105  # the symbol is explicitly referenced.  Since portable code cannot
9106  # rely on this symbol name, it's probably fine to never include it in
9107  # preloaded symbol tables.
9108  # Exclude shared library initialization/finalization symbols.
9109  extract_expsyms_cmds=
9110
9111  case $host_os in
9112  cygwin* | mingw* | pw32* | cegcc*)
9113    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9114    # When not using gcc, we currently assume that we are using
9115    # Microsoft Visual C++.
9116    if test "$GCC" != yes; then
9117      with_gnu_ld=no
9118    fi
9119    ;;
9120  interix*)
9121    # we just hope/assume this is gcc and not c89 (= MSVC++)
9122    with_gnu_ld=yes
9123    ;;
9124  openbsd*)
9125    with_gnu_ld=no
9126    ;;
9127  esac
9128
9129  ld_shlibs=yes
9130  if test "$with_gnu_ld" = yes; then
9131    # If archive_cmds runs LD, not CC, wlarc should be empty
9132    wlarc='${wl}'
9133
9134    # Set some defaults for GNU ld with shared library support. These
9135    # are reset later if shared libraries are not supported. Putting them
9136    # here allows them to be overridden if necessary.
9137    runpath_var=LD_RUN_PATH
9138    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9139    export_dynamic_flag_spec='${wl}--export-dynamic'
9140    # ancient GNU ld didn't support --whole-archive et. al.
9141    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9142      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9143    else
9144      whole_archive_flag_spec=
9145    fi
9146    supports_anon_versioning=no
9147    case `$LD -v 2>&1` in
9148      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9149      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9150      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9151      *\ 2.11.*) ;; # other 2.11 versions
9152      *) supports_anon_versioning=yes ;;
9153    esac
9154
9155    # See if GNU ld supports shared libraries.
9156    case $host_os in
9157    aix[3-9]*)
9158      # On AIX/PPC, the GNU linker is very broken
9159      if test "$host_cpu" != ia64; then
9160	ld_shlibs=no
9161	cat <<_LT_EOF 1>&2
9162
9163*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9164*** to be unable to reliably create shared libraries on AIX.
9165*** Therefore, libtool is disabling shared libraries support.  If you
9166*** really care for shared libraries, you may want to modify your PATH
9167*** so that a non-GNU linker is found, and then restart.
9168
9169_LT_EOF
9170      fi
9171      ;;
9172
9173    amigaos*)
9174      case $host_cpu in
9175      powerpc)
9176            # see comment about AmigaOS4 .so support
9177            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178            archive_expsym_cmds=''
9179        ;;
9180      m68k)
9181            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)'
9182            hardcode_libdir_flag_spec='-L$libdir'
9183            hardcode_minus_L=yes
9184        ;;
9185      esac
9186      ;;
9187
9188    beos*)
9189      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190	allow_undefined_flag=unsupported
9191	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9192	# support --undefined.  This deserves some investigation.  FIXME
9193	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194      else
9195	ld_shlibs=no
9196      fi
9197      ;;
9198
9199    cygwin* | mingw* | pw32* | cegcc*)
9200      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9201      # as there is no search path for DLLs.
9202      hardcode_libdir_flag_spec='-L$libdir'
9203      allow_undefined_flag=unsupported
9204      always_export_symbols=no
9205      enable_shared_with_static_runtimes=yes
9206      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9207
9208      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9209        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9210	# If the export-symbols file already is a .def file (1st line
9211	# is EXPORTS), use it as is; otherwise, prepend...
9212	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9213	  cp $export_symbols $output_objdir/$soname.def;
9214	else
9215	  echo EXPORTS > $output_objdir/$soname.def;
9216	  cat $export_symbols >> $output_objdir/$soname.def;
9217	fi~
9218	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9219      else
9220	ld_shlibs=no
9221      fi
9222      ;;
9223
9224    interix[3-9]*)
9225      hardcode_direct=no
9226      hardcode_shlibpath_var=no
9227      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9228      export_dynamic_flag_spec='${wl}-E'
9229      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9230      # Instead, shared libraries are loaded at an image base (0x10000000 by
9231      # default) and relocated if they conflict, which is a slow very memory
9232      # consuming and fragmenting process.  To avoid this, we pick a random,
9233      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9234      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9235      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9236      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'
9237      ;;
9238
9239    gnu* | linux* | tpf* | k*bsd*-gnu)
9240      tmp_diet=no
9241      if test "$host_os" = linux-dietlibc; then
9242	case $cc_basename in
9243	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9244	esac
9245      fi
9246      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9247	 && test "$tmp_diet" = no
9248      then
9249	tmp_addflag=
9250	tmp_sharedflag='-shared'
9251	case $cc_basename,$host_cpu in
9252        pgcc*)				# Portland Group C compiler
9253	  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'
9254	  tmp_addflag=' $pic_flag'
9255	  ;;
9256	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9257	  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'
9258	  tmp_addflag=' $pic_flag -Mnomain' ;;
9259	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9260	  tmp_addflag=' -i_dynamic' ;;
9261	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9262	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9263	ifc* | ifort*)			# Intel Fortran compiler
9264	  tmp_addflag=' -nofor_main' ;;
9265	lf95*)				# Lahey Fortran 8.1
9266	  whole_archive_flag_spec=
9267	  tmp_sharedflag='--shared' ;;
9268	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9269	  tmp_sharedflag='-qmkshrobj'
9270	  tmp_addflag= ;;
9271	esac
9272	case `$CC -V 2>&1 | sed 5q` in
9273	*Sun\ C*)			# Sun C 5.9
9274	  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'
9275	  compiler_needs_object=yes
9276	  tmp_sharedflag='-G' ;;
9277	*Sun\ F*)			# Sun Fortran 8.3
9278	  tmp_sharedflag='-G' ;;
9279	esac
9280	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281
9282        if test "x$supports_anon_versioning" = xyes; then
9283          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9284	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9285	    echo "local: *; };" >> $output_objdir/$libname.ver~
9286	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9287        fi
9288
9289	case $cc_basename in
9290	xlf*)
9291	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9292	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9293	  hardcode_libdir_flag_spec=
9294	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9295	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9296	  if test "x$supports_anon_versioning" = xyes; then
9297	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9298	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9299	      echo "local: *; };" >> $output_objdir/$libname.ver~
9300	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9301	  fi
9302	  ;;
9303	esac
9304      else
9305        ld_shlibs=no
9306      fi
9307      ;;
9308
9309    netbsd*)
9310      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9311	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9312	wlarc=
9313      else
9314	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9316      fi
9317      ;;
9318
9319    solaris*)
9320      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9321	ld_shlibs=no
9322	cat <<_LT_EOF 1>&2
9323
9324*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9325*** create shared libraries on Solaris systems.  Therefore, libtool
9326*** is disabling shared libraries support.  We urge you to upgrade GNU
9327*** binutils to release 2.9.1 or newer.  Another option is to modify
9328*** your PATH or compiler configuration so that the native linker is
9329*** used, and then restart.
9330
9331_LT_EOF
9332      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9333	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9335      else
9336	ld_shlibs=no
9337      fi
9338      ;;
9339
9340    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9341      case `$LD -v 2>&1` in
9342        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9343	ld_shlibs=no
9344	cat <<_LT_EOF 1>&2
9345
9346*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9347*** reliably create shared libraries on SCO systems.  Therefore, libtool
9348*** is disabling shared libraries support.  We urge you to upgrade GNU
9349*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9350*** your PATH or compiler configuration so that the native linker is
9351*** used, and then restart.
9352
9353_LT_EOF
9354	;;
9355	*)
9356	  # For security reasons, it is highly recommended that you always
9357	  # use absolute paths for naming shared libraries, and exclude the
9358	  # DT_RUNPATH tag from executables and libraries.  But doing so
9359	  # requires that you compile everything twice, which is a pain.
9360	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9361	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9364	  else
9365	    ld_shlibs=no
9366	  fi
9367	;;
9368      esac
9369      ;;
9370
9371    sunos4*)
9372      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9373      wlarc=
9374      hardcode_direct=yes
9375      hardcode_shlibpath_var=no
9376      ;;
9377
9378    *)
9379      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382      else
9383	ld_shlibs=no
9384      fi
9385      ;;
9386    esac
9387
9388    if test "$ld_shlibs" = no; then
9389      runpath_var=
9390      hardcode_libdir_flag_spec=
9391      export_dynamic_flag_spec=
9392      whole_archive_flag_spec=
9393    fi
9394  else
9395    # PORTME fill in a description of your system's linker (not GNU ld)
9396    case $host_os in
9397    aix3*)
9398      allow_undefined_flag=unsupported
9399      always_export_symbols=yes
9400      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'
9401      # Note: this linker hardcodes the directories in LIBPATH if there
9402      # are no directories specified by -L.
9403      hardcode_minus_L=yes
9404      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9405	# Neither direct hardcoding nor static linking is supported with a
9406	# broken collect2.
9407	hardcode_direct=unsupported
9408      fi
9409      ;;
9410
9411    aix[4-9]*)
9412      if test "$host_cpu" = ia64; then
9413	# On IA64, the linker does run time linking by default, so we don't
9414	# have to do anything special.
9415	aix_use_runtimelinking=no
9416	exp_sym_flag='-Bexport'
9417	no_entry_flag=""
9418      else
9419	# If we're using GNU nm, then we don't want the "-C" option.
9420	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9421	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9422	  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'
9423	else
9424	  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'
9425	fi
9426	aix_use_runtimelinking=no
9427
9428	# Test if we are trying to use run time linking or normal
9429	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9430	# need to do runtime linking.
9431	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9432	  for ld_flag in $LDFLAGS; do
9433	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9434	    aix_use_runtimelinking=yes
9435	    break
9436	  fi
9437	  done
9438	  ;;
9439	esac
9440
9441	exp_sym_flag='-bexport'
9442	no_entry_flag='-bnoentry'
9443      fi
9444
9445      # When large executables or shared objects are built, AIX ld can
9446      # have problems creating the table of contents.  If linking a library
9447      # or program results in "error TOC overflow" add -mminimal-toc to
9448      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9449      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9450
9451      archive_cmds=''
9452      hardcode_direct=yes
9453      hardcode_direct_absolute=yes
9454      hardcode_libdir_separator=':'
9455      link_all_deplibs=yes
9456      file_list_spec='${wl}-f,'
9457
9458      if test "$GCC" = yes; then
9459	case $host_os in aix4.[012]|aix4.[012].*)
9460	# We only want to do this on AIX 4.2 and lower, the check
9461	# below for broken collect2 doesn't work under 4.3+
9462	  collect2name=`${CC} -print-prog-name=collect2`
9463	  if test -f "$collect2name" &&
9464	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9465	  then
9466	  # We have reworked collect2
9467	  :
9468	  else
9469	  # We have old collect2
9470	  hardcode_direct=unsupported
9471	  # It fails to find uninstalled libraries when the uninstalled
9472	  # path is not listed in the libpath.  Setting hardcode_minus_L
9473	  # to unsupported forces relinking
9474	  hardcode_minus_L=yes
9475	  hardcode_libdir_flag_spec='-L$libdir'
9476	  hardcode_libdir_separator=
9477	  fi
9478	  ;;
9479	esac
9480	shared_flag='-shared'
9481	if test "$aix_use_runtimelinking" = yes; then
9482	  shared_flag="$shared_flag "'${wl}-G'
9483	fi
9484      else
9485	# not using gcc
9486	if test "$host_cpu" = ia64; then
9487	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9488	# chokes on -Wl,-G. The following line is correct:
9489	  shared_flag='-G'
9490	else
9491	  if test "$aix_use_runtimelinking" = yes; then
9492	    shared_flag='${wl}-G'
9493	  else
9494	    shared_flag='${wl}-bM:SRE'
9495	  fi
9496	fi
9497      fi
9498
9499      export_dynamic_flag_spec='${wl}-bexpall'
9500      # It seems that -bexpall does not export symbols beginning with
9501      # underscore (_), so it is better to generate a list of symbols to export.
9502      always_export_symbols=yes
9503      if test "$aix_use_runtimelinking" = yes; then
9504	# Warning - without using the other runtime loading flags (-brtl),
9505	# -berok will link without error, but may produce a broken library.
9506	allow_undefined_flag='-berok'
9507        # Determine the default libpath from the value encoded in an
9508        # empty executable.
9509        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h.  */
9511
9512int
9513main ()
9514{
9515
9516  ;
9517  return 0;
9518}
9519_ACEOF
9520if ac_fn_c_try_link "$LINENO"; then :
9521
9522lt_aix_libpath_sed='
9523    /Import File Strings/,/^$/ {
9524	/^0/ {
9525	    s/^0  *\(.*\)$/\1/
9526	    p
9527	}
9528    }'
9529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530# Check for a 64-bit object if we didn't find anything.
9531if test -z "$aix_libpath"; then
9532  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533fi
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536    conftest$ac_exeext conftest.$ac_ext
9537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9538
9539        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9540        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"
9541      else
9542	if test "$host_cpu" = ia64; then
9543	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9544	  allow_undefined_flag="-z nodefs"
9545	  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"
9546	else
9547	 # Determine the default libpath from the value encoded in an
9548	 # empty executable.
9549	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550/* end confdefs.h.  */
9551
9552int
9553main ()
9554{
9555
9556  ;
9557  return 0;
9558}
9559_ACEOF
9560if ac_fn_c_try_link "$LINENO"; then :
9561
9562lt_aix_libpath_sed='
9563    /Import File Strings/,/^$/ {
9564	/^0/ {
9565	    s/^0  *\(.*\)$/\1/
9566	    p
9567	}
9568    }'
9569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9570# Check for a 64-bit object if we didn't find anything.
9571if test -z "$aix_libpath"; then
9572  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573fi
9574fi
9575rm -f core conftest.err conftest.$ac_objext \
9576    conftest$ac_exeext conftest.$ac_ext
9577if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9578
9579	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9580	  # Warning - without using the other run time loading flags,
9581	  # -berok will link without error, but may produce a broken library.
9582	  no_undefined_flag=' ${wl}-bernotok'
9583	  allow_undefined_flag=' ${wl}-berok'
9584	  # Exported symbols can be pulled into shared objects from archives
9585	  whole_archive_flag_spec='$convenience'
9586	  archive_cmds_need_lc=yes
9587	  # This is similar to how AIX traditionally builds its shared libraries.
9588	  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'
9589	fi
9590      fi
9591      ;;
9592
9593    amigaos*)
9594      case $host_cpu in
9595      powerpc)
9596            # see comment about AmigaOS4 .so support
9597            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598            archive_expsym_cmds=''
9599        ;;
9600      m68k)
9601            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)'
9602            hardcode_libdir_flag_spec='-L$libdir'
9603            hardcode_minus_L=yes
9604        ;;
9605      esac
9606      ;;
9607
9608    bsdi[45]*)
9609      export_dynamic_flag_spec=-rdynamic
9610      ;;
9611
9612    cygwin* | mingw* | pw32* | cegcc*)
9613      # When not using gcc, we currently assume that we are using
9614      # Microsoft Visual C++.
9615      # hardcode_libdir_flag_spec is actually meaningless, as there is
9616      # no search path for DLLs.
9617      hardcode_libdir_flag_spec=' '
9618      allow_undefined_flag=unsupported
9619      # Tell ltmain to make .lib files, not .a files.
9620      libext=lib
9621      # Tell ltmain to make .dll files, not .so files.
9622      shrext_cmds=".dll"
9623      # FIXME: Setting linknames here is a bad hack.
9624      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9625      # The linker will automatically build a .lib file if we build a DLL.
9626      old_archive_from_new_cmds='true'
9627      # FIXME: Should let the user specify the lib program.
9628      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9629      fix_srcfile_path='`cygpath -w "$srcfile"`'
9630      enable_shared_with_static_runtimes=yes
9631      ;;
9632
9633    darwin* | rhapsody*)
9634
9635
9636  archive_cmds_need_lc=no
9637  hardcode_direct=no
9638  hardcode_automatic=yes
9639  hardcode_shlibpath_var=unsupported
9640  whole_archive_flag_spec=''
9641  link_all_deplibs=yes
9642  allow_undefined_flag="$_lt_dar_allow_undefined"
9643  case $cc_basename in
9644     ifort*) _lt_dar_can_shared=yes ;;
9645     *) _lt_dar_can_shared=$GCC ;;
9646  esac
9647  if test "$_lt_dar_can_shared" = "yes"; then
9648    output_verbose_link_cmd=echo
9649    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9650    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9651    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}"
9652    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}"
9653
9654  else
9655  ld_shlibs=no
9656  fi
9657
9658      ;;
9659
9660    dgux*)
9661      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662      hardcode_libdir_flag_spec='-L$libdir'
9663      hardcode_shlibpath_var=no
9664      ;;
9665
9666    freebsd1*)
9667      ld_shlibs=no
9668      ;;
9669
9670    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9671    # support.  Future versions do this automatically, but an explicit c++rt0.o
9672    # does not break anything, and helps significantly (at the cost of a little
9673    # extra space).
9674    freebsd2.2*)
9675      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9676      hardcode_libdir_flag_spec='-R$libdir'
9677      hardcode_direct=yes
9678      hardcode_shlibpath_var=no
9679      ;;
9680
9681    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9682    freebsd2*)
9683      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9684      hardcode_direct=yes
9685      hardcode_minus_L=yes
9686      hardcode_shlibpath_var=no
9687      ;;
9688
9689    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9690    freebsd* | dragonfly*)
9691      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9692      hardcode_libdir_flag_spec='-R$libdir'
9693      hardcode_direct=yes
9694      hardcode_shlibpath_var=no
9695      ;;
9696
9697    hpux9*)
9698      if test "$GCC" = yes; then
9699	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'
9700      else
9701	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'
9702      fi
9703      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9704      hardcode_libdir_separator=:
9705      hardcode_direct=yes
9706
9707      # hardcode_minus_L: Not really in the search PATH,
9708      # but as the default location of the library.
9709      hardcode_minus_L=yes
9710      export_dynamic_flag_spec='${wl}-E'
9711      ;;
9712
9713    hpux10*)
9714      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9715	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9716      else
9717	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9718      fi
9719      if test "$with_gnu_ld" = no; then
9720	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9721	hardcode_libdir_flag_spec_ld='+b $libdir'
9722	hardcode_libdir_separator=:
9723	hardcode_direct=yes
9724	hardcode_direct_absolute=yes
9725	export_dynamic_flag_spec='${wl}-E'
9726	# hardcode_minus_L: Not really in the search PATH,
9727	# but as the default location of the library.
9728	hardcode_minus_L=yes
9729      fi
9730      ;;
9731
9732    hpux11*)
9733      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9734	case $host_cpu in
9735	hppa*64*)
9736	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737	  ;;
9738	ia64*)
9739	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9740	  ;;
9741	*)
9742	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9743	  ;;
9744	esac
9745      else
9746	case $host_cpu in
9747	hppa*64*)
9748	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9749	  ;;
9750	ia64*)
9751	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9752	  ;;
9753	*)
9754	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9755	  ;;
9756	esac
9757      fi
9758      if test "$with_gnu_ld" = no; then
9759	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760	hardcode_libdir_separator=:
9761
9762	case $host_cpu in
9763	hppa*64*|ia64*)
9764	  hardcode_direct=no
9765	  hardcode_shlibpath_var=no
9766	  ;;
9767	*)
9768	  hardcode_direct=yes
9769	  hardcode_direct_absolute=yes
9770	  export_dynamic_flag_spec='${wl}-E'
9771
9772	  # hardcode_minus_L: Not really in the search PATH,
9773	  # but as the default location of the library.
9774	  hardcode_minus_L=yes
9775	  ;;
9776	esac
9777      fi
9778      ;;
9779
9780    irix5* | irix6* | nonstopux*)
9781      if test "$GCC" = yes; then
9782	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'
9783	# Try to use the -exported_symbol ld option, if it does not
9784	# work, assume that -exports_file does not work either and
9785	# implicitly export all symbols.
9786        save_LDFLAGS="$LDFLAGS"
9787        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9788        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h.  */
9790int foo(void) {}
9791_ACEOF
9792if ac_fn_c_try_link "$LINENO"; then :
9793  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'
9794
9795fi
9796rm -f core conftest.err conftest.$ac_objext \
9797    conftest$ac_exeext conftest.$ac_ext
9798        LDFLAGS="$save_LDFLAGS"
9799      else
9800	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'
9801	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'
9802      fi
9803      archive_cmds_need_lc='no'
9804      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9805      hardcode_libdir_separator=:
9806      inherit_rpath=yes
9807      link_all_deplibs=yes
9808      ;;
9809
9810    netbsd*)
9811      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9812	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9813      else
9814	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9815      fi
9816      hardcode_libdir_flag_spec='-R$libdir'
9817      hardcode_direct=yes
9818      hardcode_shlibpath_var=no
9819      ;;
9820
9821    newsos6)
9822      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823      hardcode_direct=yes
9824      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9825      hardcode_libdir_separator=:
9826      hardcode_shlibpath_var=no
9827      ;;
9828
9829    *nto* | *qnx*)
9830      ;;
9831
9832    openbsd*)
9833      if test -f /usr/libexec/ld.so; then
9834	hardcode_direct=yes
9835	hardcode_shlibpath_var=no
9836	hardcode_direct_absolute=yes
9837	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9838	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9839	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9840	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9841	  export_dynamic_flag_spec='${wl}-E'
9842	else
9843	  case $host_os in
9844	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9845	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9846	     hardcode_libdir_flag_spec='-R$libdir'
9847	     ;;
9848	   *)
9849	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9850	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9851	     ;;
9852	  esac
9853	fi
9854      else
9855	ld_shlibs=no
9856      fi
9857      ;;
9858
9859    os2*)
9860      hardcode_libdir_flag_spec='-L$libdir'
9861      hardcode_minus_L=yes
9862      allow_undefined_flag=unsupported
9863      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'
9864      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9865      ;;
9866
9867    osf3*)
9868      if test "$GCC" = yes; then
9869	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9870	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'
9871      else
9872	allow_undefined_flag=' -expect_unresolved \*'
9873	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'
9874      fi
9875      archive_cmds_need_lc='no'
9876      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9877      hardcode_libdir_separator=:
9878      ;;
9879
9880    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9881      if test "$GCC" = yes; then
9882	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9883	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'
9884	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885      else
9886	allow_undefined_flag=' -expect_unresolved \*'
9887	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'
9888	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~
9889	$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'
9890
9891	# Both c and cxx compiler support -rpath directly
9892	hardcode_libdir_flag_spec='-rpath $libdir'
9893      fi
9894      archive_cmds_need_lc='no'
9895      hardcode_libdir_separator=:
9896      ;;
9897
9898    solaris*)
9899      no_undefined_flag=' -z defs'
9900      if test "$GCC" = yes; then
9901	wlarc='${wl}'
9902	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9903	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9905      else
9906	case `$CC -V 2>&1` in
9907	*"Compilers 5.0"*)
9908	  wlarc=''
9909	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9911	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9912	  ;;
9913	*)
9914	  wlarc='${wl}'
9915	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9916	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9917	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9918	  ;;
9919	esac
9920      fi
9921      hardcode_libdir_flag_spec='-R$libdir'
9922      hardcode_shlibpath_var=no
9923      case $host_os in
9924      solaris2.[0-5] | solaris2.[0-5].*) ;;
9925      *)
9926	# The compiler driver will combine and reorder linker options,
9927	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9928	# but is careful enough not to reorder.
9929	# Supported since Solaris 2.6 (maybe 2.5.1?)
9930	if test "$GCC" = yes; then
9931	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9932	else
9933	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9934	fi
9935	;;
9936      esac
9937      link_all_deplibs=yes
9938      ;;
9939
9940    sunos4*)
9941      if test "x$host_vendor" = xsequent; then
9942	# Use $CC to link under sequent, because it throws in some extra .o
9943	# files that make .init and .fini sections work.
9944	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9945      else
9946	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9947      fi
9948      hardcode_libdir_flag_spec='-L$libdir'
9949      hardcode_direct=yes
9950      hardcode_minus_L=yes
9951      hardcode_shlibpath_var=no
9952      ;;
9953
9954    sysv4)
9955      case $host_vendor in
9956	sni)
9957	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958	  hardcode_direct=yes # is this really true???
9959	;;
9960	siemens)
9961	  ## LD is ld it makes a PLAMLIB
9962	  ## CC just makes a GrossModule.
9963	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9964	  reload_cmds='$CC -r -o $output$reload_objs'
9965	  hardcode_direct=no
9966        ;;
9967	motorola)
9968	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9970	;;
9971      esac
9972      runpath_var='LD_RUN_PATH'
9973      hardcode_shlibpath_var=no
9974      ;;
9975
9976    sysv4.3*)
9977      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978      hardcode_shlibpath_var=no
9979      export_dynamic_flag_spec='-Bexport'
9980      ;;
9981
9982    sysv4*MP*)
9983      if test -d /usr/nec; then
9984	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985	hardcode_shlibpath_var=no
9986	runpath_var=LD_RUN_PATH
9987	hardcode_runpath_var=yes
9988	ld_shlibs=yes
9989      fi
9990      ;;
9991
9992    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9993      no_undefined_flag='${wl}-z,text'
9994      archive_cmds_need_lc=no
9995      hardcode_shlibpath_var=no
9996      runpath_var='LD_RUN_PATH'
9997
9998      if test "$GCC" = yes; then
9999	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10001      else
10002	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004      fi
10005      ;;
10006
10007    sysv5* | sco3.2v5* | sco5v6*)
10008      # Note: We can NOT use -z defs as we might desire, because we do not
10009      # link with -lc, and that would cause any symbols used from libc to
10010      # always be unresolved, which means just about no library would
10011      # ever link correctly.  If we're not using GNU ld we use -z text
10012      # though, which does catch some bad symbols but isn't as heavy-handed
10013      # as -z defs.
10014      no_undefined_flag='${wl}-z,text'
10015      allow_undefined_flag='${wl}-z,nodefs'
10016      archive_cmds_need_lc=no
10017      hardcode_shlibpath_var=no
10018      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10019      hardcode_libdir_separator=':'
10020      link_all_deplibs=yes
10021      export_dynamic_flag_spec='${wl}-Bexport'
10022      runpath_var='LD_RUN_PATH'
10023
10024      if test "$GCC" = yes; then
10025	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027      else
10028	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030      fi
10031      ;;
10032
10033    uts4*)
10034      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035      hardcode_libdir_flag_spec='-L$libdir'
10036      hardcode_shlibpath_var=no
10037      ;;
10038
10039    *)
10040      ld_shlibs=no
10041      ;;
10042    esac
10043
10044    if test x$host_vendor = xsni; then
10045      case $host in
10046      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10047	export_dynamic_flag_spec='${wl}-Blargedynsym'
10048	;;
10049      esac
10050    fi
10051  fi
10052
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10054$as_echo "$ld_shlibs" >&6; }
10055test "$ld_shlibs" = no && can_build_shared=no
10056
10057with_gnu_ld=$with_gnu_ld
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073#
10074# Do we need to explicitly link libc?
10075#
10076case "x$archive_cmds_need_lc" in
10077x|xyes)
10078  # Assume -lc should be added
10079  archive_cmds_need_lc=yes
10080
10081  if test "$enable_shared" = yes && test "$GCC" = yes; then
10082    case $archive_cmds in
10083    *'~'*)
10084      # FIXME: we may have to deal with multi-command sequences.
10085      ;;
10086    '$CC '*)
10087      # Test whether the compiler implicitly links with -lc since on some
10088      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10089      # to ld, don't add -lc before -lgcc.
10090      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10091$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10092      $RM conftest*
10093      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10094
10095      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10096  (eval $ac_compile) 2>&5
10097  ac_status=$?
10098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10099  test $ac_status = 0; } 2>conftest.err; then
10100        soname=conftest
10101        lib=conftest
10102        libobjs=conftest.$ac_objext
10103        deplibs=
10104        wl=$lt_prog_compiler_wl
10105	pic_flag=$lt_prog_compiler_pic
10106        compiler_flags=-v
10107        linker_flags=-v
10108        verstring=
10109        output_objdir=.
10110        libname=conftest
10111        lt_save_allow_undefined_flag=$allow_undefined_flag
10112        allow_undefined_flag=
10113        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10114  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10115  ac_status=$?
10116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117  test $ac_status = 0; }
10118        then
10119	  archive_cmds_need_lc=no
10120        else
10121	  archive_cmds_need_lc=yes
10122        fi
10123        allow_undefined_flag=$lt_save_allow_undefined_flag
10124      else
10125        cat conftest.err 1>&5
10126      fi
10127      $RM conftest*
10128      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10129$as_echo "$archive_cmds_need_lc" >&6; }
10130      ;;
10131    esac
10132  fi
10133  ;;
10134esac
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10293$as_echo_n "checking dynamic linker characteristics... " >&6; }
10294
10295if test "$GCC" = yes; then
10296  case $host_os in
10297    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10298    *) lt_awk_arg="/^libraries:/" ;;
10299  esac
10300  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10301  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10302    # if the path contains ";" then we assume it to be the separator
10303    # otherwise default to the standard path separator (i.e. ":") - it is
10304    # assumed that no part of a normal pathname contains ";" but that should
10305    # okay in the real world where ";" in dirpaths is itself problematic.
10306    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10307  else
10308    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10309  fi
10310  # Ok, now we have the path, separated by spaces, we can step through it
10311  # and add multilib dir if necessary.
10312  lt_tmp_lt_search_path_spec=
10313  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10314  for lt_sys_path in $lt_search_path_spec; do
10315    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10316      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10317    else
10318      test -d "$lt_sys_path" && \
10319	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10320    fi
10321  done
10322  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10323BEGIN {RS=" "; FS="/|\n";} {
10324  lt_foo="";
10325  lt_count=0;
10326  for (lt_i = NF; lt_i > 0; lt_i--) {
10327    if ($lt_i != "" && $lt_i != ".") {
10328      if ($lt_i == "..") {
10329        lt_count++;
10330      } else {
10331        if (lt_count == 0) {
10332          lt_foo="/" $lt_i lt_foo;
10333        } else {
10334          lt_count--;
10335        }
10336      }
10337    }
10338  }
10339  if (lt_foo != "") { lt_freq[lt_foo]++; }
10340  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10341}'`
10342  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10343else
10344  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10345fi
10346library_names_spec=
10347libname_spec='lib$name'
10348soname_spec=
10349shrext_cmds=".so"
10350postinstall_cmds=
10351postuninstall_cmds=
10352finish_cmds=
10353finish_eval=
10354shlibpath_var=
10355shlibpath_overrides_runpath=unknown
10356version_type=none
10357dynamic_linker="$host_os ld.so"
10358sys_lib_dlsearch_path_spec="/lib /usr/lib"
10359need_lib_prefix=unknown
10360hardcode_into_libs=no
10361
10362# when you set need_version to no, make sure it does not cause -set_version
10363# flags to be left without arguments
10364need_version=unknown
10365
10366case $host_os in
10367aix3*)
10368  version_type=linux
10369  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10370  shlibpath_var=LIBPATH
10371
10372  # AIX 3 has no versioning support, so we append a major version to the name.
10373  soname_spec='${libname}${release}${shared_ext}$major'
10374  ;;
10375
10376aix[4-9]*)
10377  version_type=linux
10378  need_lib_prefix=no
10379  need_version=no
10380  hardcode_into_libs=yes
10381  if test "$host_cpu" = ia64; then
10382    # AIX 5 supports IA64
10383    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10384    shlibpath_var=LD_LIBRARY_PATH
10385  else
10386    # With GCC up to 2.95.x, collect2 would create an import file
10387    # for dependence libraries.  The import file would start with
10388    # the line `#! .'.  This would cause the generated library to
10389    # depend on `.', always an invalid library.  This was fixed in
10390    # development snapshots of GCC prior to 3.0.
10391    case $host_os in
10392      aix4 | aix4.[01] | aix4.[01].*)
10393      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10394	   echo ' yes '
10395	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10396	:
10397      else
10398	can_build_shared=no
10399      fi
10400      ;;
10401    esac
10402    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10403    # soname into executable. Probably we can add versioning support to
10404    # collect2, so additional links can be useful in future.
10405    if test "$aix_use_runtimelinking" = yes; then
10406      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10407      # instead of lib<name>.a to let people know that these are not
10408      # typical AIX shared libraries.
10409      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410    else
10411      # We preserve .a as extension for shared libraries through AIX4.2
10412      # and later when we are not doing run time linking.
10413      library_names_spec='${libname}${release}.a $libname.a'
10414      soname_spec='${libname}${release}${shared_ext}$major'
10415    fi
10416    shlibpath_var=LIBPATH
10417  fi
10418  ;;
10419
10420amigaos*)
10421  case $host_cpu in
10422  powerpc)
10423    # Since July 2007 AmigaOS4 officially supports .so libraries.
10424    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10425    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426    ;;
10427  m68k)
10428    library_names_spec='$libname.ixlibrary $libname.a'
10429    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10430    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'
10431    ;;
10432  esac
10433  ;;
10434
10435beos*)
10436  library_names_spec='${libname}${shared_ext}'
10437  dynamic_linker="$host_os ld.so"
10438  shlibpath_var=LIBRARY_PATH
10439  ;;
10440
10441bsdi[45]*)
10442  version_type=linux
10443  need_version=no
10444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445  soname_spec='${libname}${release}${shared_ext}$major'
10446  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10447  shlibpath_var=LD_LIBRARY_PATH
10448  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10449  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10450  # the default ld.so.conf also contains /usr/contrib/lib and
10451  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10452  # libtool to hard-code these into programs
10453  ;;
10454
10455cygwin* | mingw* | pw32* | cegcc*)
10456  version_type=windows
10457  shrext_cmds=".dll"
10458  need_version=no
10459  need_lib_prefix=no
10460
10461  case $GCC,$host_os in
10462  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10463    library_names_spec='$libname.dll.a'
10464    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10465    postinstall_cmds='base_file=`basename \${file}`~
10466      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10467      dldir=$destdir/`dirname \$dlpath`~
10468      test -d \$dldir || mkdir -p \$dldir~
10469      $install_prog $dir/$dlname \$dldir/$dlname~
10470      chmod a+x \$dldir/$dlname~
10471      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10472        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10473      fi'
10474    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10475      dlpath=$dir/\$dldll~
10476       $RM \$dlpath'
10477    shlibpath_overrides_runpath=yes
10478
10479    case $host_os in
10480    cygwin*)
10481      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10482      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10483      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10484      ;;
10485    mingw* | cegcc*)
10486      # MinGW DLLs use traditional 'lib' prefix
10487      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10488      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10489      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10490        # It is most probably a Windows format PATH printed by
10491        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10492        # path with ; separators, and with drive letters. We can handle the
10493        # drive letters (cygwin fileutils understands them), so leave them,
10494        # especially as we might pass files found there to a mingw objdump,
10495        # which wouldn't understand a cygwinified path. Ahh.
10496        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10497      else
10498        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10499      fi
10500      ;;
10501    pw32*)
10502      # pw32 DLLs use 'pw' prefix rather than 'lib'
10503      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504      ;;
10505    esac
10506    ;;
10507
10508  *)
10509    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10510    ;;
10511  esac
10512  dynamic_linker='Win32 ld.exe'
10513  # FIXME: first we should search . and the directory the executable is in
10514  shlibpath_var=PATH
10515  ;;
10516
10517darwin* | rhapsody*)
10518  dynamic_linker="$host_os dyld"
10519  version_type=darwin
10520  need_lib_prefix=no
10521  need_version=no
10522  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10523  soname_spec='${libname}${release}${major}$shared_ext'
10524  shlibpath_overrides_runpath=yes
10525  shlibpath_var=DYLD_LIBRARY_PATH
10526  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10527
10528  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10529  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10530  ;;
10531
10532dgux*)
10533  version_type=linux
10534  need_lib_prefix=no
10535  need_version=no
10536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10537  soname_spec='${libname}${release}${shared_ext}$major'
10538  shlibpath_var=LD_LIBRARY_PATH
10539  ;;
10540
10541freebsd1*)
10542  dynamic_linker=no
10543  ;;
10544
10545freebsd* | dragonfly*)
10546  # DragonFly does not have aout.  When/if they implement a new
10547  # versioning mechanism, adjust this.
10548  if test -x /usr/bin/objformat; then
10549    objformat=`/usr/bin/objformat`
10550  else
10551    case $host_os in
10552    freebsd[123]*) objformat=aout ;;
10553    *) objformat=elf ;;
10554    esac
10555  fi
10556  # Handle Gentoo/FreeBSD as it was Linux
10557  case $host_vendor in
10558    gentoo)
10559      version_type=linux ;;
10560    *)
10561      version_type=freebsd-$objformat ;;
10562  esac
10563
10564  case $version_type in
10565    freebsd-elf*)
10566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10567      need_version=no
10568      need_lib_prefix=no
10569      ;;
10570    freebsd-*)
10571      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10572      need_version=yes
10573      ;;
10574    linux)
10575      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10576      soname_spec='${libname}${release}${shared_ext}$major'
10577      need_lib_prefix=no
10578      need_version=no
10579      ;;
10580  esac
10581  shlibpath_var=LD_LIBRARY_PATH
10582  case $host_os in
10583  freebsd2*)
10584    shlibpath_overrides_runpath=yes
10585    ;;
10586  freebsd3.[01]* | freebsdelf3.[01]*)
10587    shlibpath_overrides_runpath=yes
10588    hardcode_into_libs=yes
10589    ;;
10590  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10591  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10592    shlibpath_overrides_runpath=no
10593    hardcode_into_libs=yes
10594    ;;
10595  *) # from 4.6 on, and DragonFly
10596    shlibpath_overrides_runpath=yes
10597    hardcode_into_libs=yes
10598    ;;
10599  esac
10600  ;;
10601
10602gnu*)
10603  version_type=linux
10604  need_lib_prefix=no
10605  need_version=no
10606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10607  soname_spec='${libname}${release}${shared_ext}$major'
10608  shlibpath_var=LD_LIBRARY_PATH
10609  hardcode_into_libs=yes
10610  ;;
10611
10612hpux9* | hpux10* | hpux11*)
10613  # Give a soname corresponding to the major version so that dld.sl refuses to
10614  # link against other versions.
10615  version_type=sunos
10616  need_lib_prefix=no
10617  need_version=no
10618  case $host_cpu in
10619  ia64*)
10620    shrext_cmds='.so'
10621    hardcode_into_libs=yes
10622    dynamic_linker="$host_os dld.so"
10623    shlibpath_var=LD_LIBRARY_PATH
10624    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10625    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626    soname_spec='${libname}${release}${shared_ext}$major'
10627    if test "X$HPUX_IA64_MODE" = X32; then
10628      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10629    else
10630      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10631    fi
10632    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10633    ;;
10634  hppa*64*)
10635    shrext_cmds='.sl'
10636    hardcode_into_libs=yes
10637    dynamic_linker="$host_os dld.sl"
10638    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10639    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10640    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641    soname_spec='${libname}${release}${shared_ext}$major'
10642    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10643    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10644    ;;
10645  *)
10646    shrext_cmds='.sl'
10647    dynamic_linker="$host_os dld.sl"
10648    shlibpath_var=SHLIB_PATH
10649    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10650    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651    soname_spec='${libname}${release}${shared_ext}$major'
10652    ;;
10653  esac
10654  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10655  postinstall_cmds='chmod 555 $lib'
10656  ;;
10657
10658interix[3-9]*)
10659  version_type=linux
10660  need_lib_prefix=no
10661  need_version=no
10662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10663  soname_spec='${libname}${release}${shared_ext}$major'
10664  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10665  shlibpath_var=LD_LIBRARY_PATH
10666  shlibpath_overrides_runpath=no
10667  hardcode_into_libs=yes
10668  ;;
10669
10670irix5* | irix6* | nonstopux*)
10671  case $host_os in
10672    nonstopux*) version_type=nonstopux ;;
10673    *)
10674	if test "$lt_cv_prog_gnu_ld" = yes; then
10675		version_type=linux
10676	else
10677		version_type=irix
10678	fi ;;
10679  esac
10680  need_lib_prefix=no
10681  need_version=no
10682  soname_spec='${libname}${release}${shared_ext}$major'
10683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10684  case $host_os in
10685  irix5* | nonstopux*)
10686    libsuff= shlibsuff=
10687    ;;
10688  *)
10689    case $LD in # libtool.m4 will add one of these switches to LD
10690    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10691      libsuff= shlibsuff= libmagic=32-bit;;
10692    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10693      libsuff=32 shlibsuff=N32 libmagic=N32;;
10694    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10695      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10696    *) libsuff= shlibsuff= libmagic=never-match;;
10697    esac
10698    ;;
10699  esac
10700  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10701  shlibpath_overrides_runpath=no
10702  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10703  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10704  hardcode_into_libs=yes
10705  ;;
10706
10707# No shared lib support for Linux oldld, aout, or coff.
10708linux*oldld* | linux*aout* | linux*coff*)
10709  dynamic_linker=no
10710  ;;
10711
10712# This must be Linux ELF.
10713linux* | k*bsd*-gnu)
10714  version_type=linux
10715  need_lib_prefix=no
10716  need_version=no
10717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718  soname_spec='${libname}${release}${shared_ext}$major'
10719  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10720  shlibpath_var=LD_LIBRARY_PATH
10721  shlibpath_overrides_runpath=no
10722  # Some binutils ld are patched to set DT_RUNPATH
10723  save_LDFLAGS=$LDFLAGS
10724  save_libdir=$libdir
10725  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10726       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728/* end confdefs.h.  */
10729
10730int
10731main ()
10732{
10733
10734  ;
10735  return 0;
10736}
10737_ACEOF
10738if ac_fn_c_try_link "$LINENO"; then :
10739  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10740  shlibpath_overrides_runpath=yes
10741fi
10742fi
10743rm -f core conftest.err conftest.$ac_objext \
10744    conftest$ac_exeext conftest.$ac_ext
10745  LDFLAGS=$save_LDFLAGS
10746  libdir=$save_libdir
10747
10748  # This implies no fast_install, which is unacceptable.
10749  # Some rework will be needed to allow for fast_install
10750  # before this can be enabled.
10751  hardcode_into_libs=yes
10752
10753  # Append ld.so.conf contents to the search path
10754  if test -f /etc/ld.so.conf; then
10755    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' ' '`
10756    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10757  fi
10758
10759  # We used to test for /lib/ld.so.1 and disable shared libraries on
10760  # powerpc, because MkLinux only supported shared libraries with the
10761  # GNU dynamic linker.  Since this was broken with cross compilers,
10762  # most powerpc-linux boxes support dynamic linking these days and
10763  # people can always --disable-shared, the test was removed, and we
10764  # assume the GNU/Linux dynamic linker is in use.
10765  dynamic_linker='GNU/Linux ld.so'
10766  ;;
10767
10768netbsd*)
10769  version_type=sunos
10770  need_lib_prefix=no
10771  need_version=no
10772  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10773    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10774    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10775    dynamic_linker='NetBSD (a.out) ld.so'
10776  else
10777    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10778    soname_spec='${libname}${release}${shared_ext}$major'
10779    dynamic_linker='NetBSD ld.elf_so'
10780  fi
10781  shlibpath_var=LD_LIBRARY_PATH
10782  shlibpath_overrides_runpath=yes
10783  hardcode_into_libs=yes
10784  ;;
10785
10786newsos6)
10787  version_type=linux
10788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789  shlibpath_var=LD_LIBRARY_PATH
10790  shlibpath_overrides_runpath=yes
10791  ;;
10792
10793*nto* | *qnx*)
10794  version_type=qnx
10795  need_lib_prefix=no
10796  need_version=no
10797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798  soname_spec='${libname}${release}${shared_ext}$major'
10799  shlibpath_var=LD_LIBRARY_PATH
10800  shlibpath_overrides_runpath=no
10801  hardcode_into_libs=yes
10802  dynamic_linker='ldqnx.so'
10803  ;;
10804
10805openbsd*)
10806  version_type=sunos
10807  sys_lib_dlsearch_path_spec="/usr/lib"
10808  need_lib_prefix=no
10809  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10810  case $host_os in
10811    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10812    *)				need_version=no  ;;
10813  esac
10814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10815  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10816  shlibpath_var=LD_LIBRARY_PATH
10817  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10818    case $host_os in
10819      openbsd2.[89] | openbsd2.[89].*)
10820	shlibpath_overrides_runpath=no
10821	;;
10822      *)
10823	shlibpath_overrides_runpath=yes
10824	;;
10825      esac
10826  else
10827    shlibpath_overrides_runpath=yes
10828  fi
10829  ;;
10830
10831os2*)
10832  libname_spec='$name'
10833  shrext_cmds=".dll"
10834  need_lib_prefix=no
10835  library_names_spec='$libname${shared_ext} $libname.a'
10836  dynamic_linker='OS/2 ld.exe'
10837  shlibpath_var=LIBPATH
10838  ;;
10839
10840osf3* | osf4* | osf5*)
10841  version_type=osf
10842  need_lib_prefix=no
10843  need_version=no
10844  soname_spec='${libname}${release}${shared_ext}$major'
10845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846  shlibpath_var=LD_LIBRARY_PATH
10847  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10848  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10849  ;;
10850
10851rdos*)
10852  dynamic_linker=no
10853  ;;
10854
10855solaris*)
10856  version_type=linux
10857  need_lib_prefix=no
10858  need_version=no
10859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860  soname_spec='${libname}${release}${shared_ext}$major'
10861  shlibpath_var=LD_LIBRARY_PATH
10862  shlibpath_overrides_runpath=yes
10863  hardcode_into_libs=yes
10864  # ldd complains unless libraries are executable
10865  postinstall_cmds='chmod +x $lib'
10866  ;;
10867
10868sunos4*)
10869  version_type=sunos
10870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10871  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10872  shlibpath_var=LD_LIBRARY_PATH
10873  shlibpath_overrides_runpath=yes
10874  if test "$with_gnu_ld" = yes; then
10875    need_lib_prefix=no
10876  fi
10877  need_version=yes
10878  ;;
10879
10880sysv4 | sysv4.3*)
10881  version_type=linux
10882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883  soname_spec='${libname}${release}${shared_ext}$major'
10884  shlibpath_var=LD_LIBRARY_PATH
10885  case $host_vendor in
10886    sni)
10887      shlibpath_overrides_runpath=no
10888      need_lib_prefix=no
10889      runpath_var=LD_RUN_PATH
10890      ;;
10891    siemens)
10892      need_lib_prefix=no
10893      ;;
10894    motorola)
10895      need_lib_prefix=no
10896      need_version=no
10897      shlibpath_overrides_runpath=no
10898      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10899      ;;
10900  esac
10901  ;;
10902
10903sysv4*MP*)
10904  if test -d /usr/nec ;then
10905    version_type=linux
10906    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10907    soname_spec='$libname${shared_ext}.$major'
10908    shlibpath_var=LD_LIBRARY_PATH
10909  fi
10910  ;;
10911
10912sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10913  version_type=freebsd-elf
10914  need_lib_prefix=no
10915  need_version=no
10916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10917  soname_spec='${libname}${release}${shared_ext}$major'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  shlibpath_overrides_runpath=yes
10920  hardcode_into_libs=yes
10921  if test "$with_gnu_ld" = yes; then
10922    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10923  else
10924    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10925    case $host_os in
10926      sco3.2v5*)
10927        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10928	;;
10929    esac
10930  fi
10931  sys_lib_dlsearch_path_spec='/usr/lib'
10932  ;;
10933
10934tpf*)
10935  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10936  version_type=linux
10937  need_lib_prefix=no
10938  need_version=no
10939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940  shlibpath_var=LD_LIBRARY_PATH
10941  shlibpath_overrides_runpath=no
10942  hardcode_into_libs=yes
10943  ;;
10944
10945uts4*)
10946  version_type=linux
10947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948  soname_spec='${libname}${release}${shared_ext}$major'
10949  shlibpath_var=LD_LIBRARY_PATH
10950  ;;
10951
10952*)
10953  dynamic_linker=no
10954  ;;
10955esac
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10957$as_echo "$dynamic_linker" >&6; }
10958test "$dynamic_linker" = no && can_build_shared=no
10959
10960variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10961if test "$GCC" = yes; then
10962  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10963fi
10964
10965if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10966  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10967fi
10968if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10969  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10970fi
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11059$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11060hardcode_action=
11061if test -n "$hardcode_libdir_flag_spec" ||
11062   test -n "$runpath_var" ||
11063   test "X$hardcode_automatic" = "Xyes" ; then
11064
11065  # We can hardcode non-existent directories.
11066  if test "$hardcode_direct" != no &&
11067     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11068     # have to relink, otherwise we might link with an installed library
11069     # when we should be linking with a yet-to-be-installed one
11070     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11071     test "$hardcode_minus_L" != no; then
11072    # Linking always hardcodes the temporary library directory.
11073    hardcode_action=relink
11074  else
11075    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11076    hardcode_action=immediate
11077  fi
11078else
11079  # We cannot hardcode anything, or else we can only hardcode existing
11080  # directories.
11081  hardcode_action=unsupported
11082fi
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11084$as_echo "$hardcode_action" >&6; }
11085
11086if test "$hardcode_action" = relink ||
11087   test "$inherit_rpath" = yes; then
11088  # Fast installation is not supported
11089  enable_fast_install=no
11090elif test "$shlibpath_overrides_runpath" = yes ||
11091     test "$enable_shared" = no; then
11092  # Fast installation is not necessary
11093  enable_fast_install=needless
11094fi
11095
11096
11097
11098
11099
11100
11101  if test "x$enable_dlopen" != xyes; then
11102  enable_dlopen=unknown
11103  enable_dlopen_self=unknown
11104  enable_dlopen_self_static=unknown
11105else
11106  lt_cv_dlopen=no
11107  lt_cv_dlopen_libs=
11108
11109  case $host_os in
11110  beos*)
11111    lt_cv_dlopen="load_add_on"
11112    lt_cv_dlopen_libs=
11113    lt_cv_dlopen_self=yes
11114    ;;
11115
11116  mingw* | pw32* | cegcc*)
11117    lt_cv_dlopen="LoadLibrary"
11118    lt_cv_dlopen_libs=
11119    ;;
11120
11121  cygwin*)
11122    lt_cv_dlopen="dlopen"
11123    lt_cv_dlopen_libs=
11124    ;;
11125
11126  darwin*)
11127  # if libdl is installed we need to link against it
11128    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11129$as_echo_n "checking for dlopen in -ldl... " >&6; }
11130if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11131  $as_echo_n "(cached) " >&6
11132else
11133  ac_check_lib_save_LIBS=$LIBS
11134LIBS="-ldl  $LIBS"
11135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136/* end confdefs.h.  */
11137
11138/* Override any GCC internal prototype to avoid an error.
11139   Use char because int might match the return type of a GCC
11140   builtin and then its argument prototype would still apply.  */
11141#ifdef __cplusplus
11142extern "C"
11143#endif
11144char dlopen ();
11145int
11146main ()
11147{
11148return dlopen ();
11149  ;
11150  return 0;
11151}
11152_ACEOF
11153if ac_fn_c_try_link "$LINENO"; then :
11154  ac_cv_lib_dl_dlopen=yes
11155else
11156  ac_cv_lib_dl_dlopen=no
11157fi
11158rm -f core conftest.err conftest.$ac_objext \
11159    conftest$ac_exeext conftest.$ac_ext
11160LIBS=$ac_check_lib_save_LIBS
11161fi
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11163$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11164if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11165  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11166else
11167
11168    lt_cv_dlopen="dyld"
11169    lt_cv_dlopen_libs=
11170    lt_cv_dlopen_self=yes
11171
11172fi
11173
11174    ;;
11175
11176  *)
11177    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11178if test "x$ac_cv_func_shl_load" = x""yes; then :
11179  lt_cv_dlopen="shl_load"
11180else
11181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11182$as_echo_n "checking for shl_load in -ldld... " >&6; }
11183if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11184  $as_echo_n "(cached) " >&6
11185else
11186  ac_check_lib_save_LIBS=$LIBS
11187LIBS="-ldld  $LIBS"
11188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189/* end confdefs.h.  */
11190
11191/* Override any GCC internal prototype to avoid an error.
11192   Use char because int might match the return type of a GCC
11193   builtin and then its argument prototype would still apply.  */
11194#ifdef __cplusplus
11195extern "C"
11196#endif
11197char shl_load ();
11198int
11199main ()
11200{
11201return shl_load ();
11202  ;
11203  return 0;
11204}
11205_ACEOF
11206if ac_fn_c_try_link "$LINENO"; then :
11207  ac_cv_lib_dld_shl_load=yes
11208else
11209  ac_cv_lib_dld_shl_load=no
11210fi
11211rm -f core conftest.err conftest.$ac_objext \
11212    conftest$ac_exeext conftest.$ac_ext
11213LIBS=$ac_check_lib_save_LIBS
11214fi
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11216$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11217if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11218  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11219else
11220  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11221if test "x$ac_cv_func_dlopen" = x""yes; then :
11222  lt_cv_dlopen="dlopen"
11223else
11224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11225$as_echo_n "checking for dlopen in -ldl... " >&6; }
11226if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11227  $as_echo_n "(cached) " >&6
11228else
11229  ac_check_lib_save_LIBS=$LIBS
11230LIBS="-ldl  $LIBS"
11231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232/* end confdefs.h.  */
11233
11234/* Override any GCC internal prototype to avoid an error.
11235   Use char because int might match the return type of a GCC
11236   builtin and then its argument prototype would still apply.  */
11237#ifdef __cplusplus
11238extern "C"
11239#endif
11240char dlopen ();
11241int
11242main ()
11243{
11244return dlopen ();
11245  ;
11246  return 0;
11247}
11248_ACEOF
11249if ac_fn_c_try_link "$LINENO"; then :
11250  ac_cv_lib_dl_dlopen=yes
11251else
11252  ac_cv_lib_dl_dlopen=no
11253fi
11254rm -f core conftest.err conftest.$ac_objext \
11255    conftest$ac_exeext conftest.$ac_ext
11256LIBS=$ac_check_lib_save_LIBS
11257fi
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11259$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11260if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11261  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11262else
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11264$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11265if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  ac_check_lib_save_LIBS=$LIBS
11269LIBS="-lsvld  $LIBS"
11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271/* end confdefs.h.  */
11272
11273/* Override any GCC internal prototype to avoid an error.
11274   Use char because int might match the return type of a GCC
11275   builtin and then its argument prototype would still apply.  */
11276#ifdef __cplusplus
11277extern "C"
11278#endif
11279char dlopen ();
11280int
11281main ()
11282{
11283return dlopen ();
11284  ;
11285  return 0;
11286}
11287_ACEOF
11288if ac_fn_c_try_link "$LINENO"; then :
11289  ac_cv_lib_svld_dlopen=yes
11290else
11291  ac_cv_lib_svld_dlopen=no
11292fi
11293rm -f core conftest.err conftest.$ac_objext \
11294    conftest$ac_exeext conftest.$ac_ext
11295LIBS=$ac_check_lib_save_LIBS
11296fi
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11298$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11299if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11300  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11301else
11302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11303$as_echo_n "checking for dld_link in -ldld... " >&6; }
11304if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11305  $as_echo_n "(cached) " >&6
11306else
11307  ac_check_lib_save_LIBS=$LIBS
11308LIBS="-ldld  $LIBS"
11309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310/* end confdefs.h.  */
11311
11312/* Override any GCC internal prototype to avoid an error.
11313   Use char because int might match the return type of a GCC
11314   builtin and then its argument prototype would still apply.  */
11315#ifdef __cplusplus
11316extern "C"
11317#endif
11318char dld_link ();
11319int
11320main ()
11321{
11322return dld_link ();
11323  ;
11324  return 0;
11325}
11326_ACEOF
11327if ac_fn_c_try_link "$LINENO"; then :
11328  ac_cv_lib_dld_dld_link=yes
11329else
11330  ac_cv_lib_dld_dld_link=no
11331fi
11332rm -f core conftest.err conftest.$ac_objext \
11333    conftest$ac_exeext conftest.$ac_ext
11334LIBS=$ac_check_lib_save_LIBS
11335fi
11336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11337$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11338if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11339  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11340fi
11341
11342
11343fi
11344
11345
11346fi
11347
11348
11349fi
11350
11351
11352fi
11353
11354
11355fi
11356
11357    ;;
11358  esac
11359
11360  if test "x$lt_cv_dlopen" != xno; then
11361    enable_dlopen=yes
11362  else
11363    enable_dlopen=no
11364  fi
11365
11366  case $lt_cv_dlopen in
11367  dlopen)
11368    save_CPPFLAGS="$CPPFLAGS"
11369    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11370
11371    save_LDFLAGS="$LDFLAGS"
11372    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11373
11374    save_LIBS="$LIBS"
11375    LIBS="$lt_cv_dlopen_libs $LIBS"
11376
11377    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11378$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11379if test "${lt_cv_dlopen_self+set}" = set; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  	  if test "$cross_compiling" = yes; then :
11383  lt_cv_dlopen_self=cross
11384else
11385  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11386  lt_status=$lt_dlunknown
11387  cat > conftest.$ac_ext <<_LT_EOF
11388#line 11388 "configure"
11389#include "confdefs.h"
11390
11391#if HAVE_DLFCN_H
11392#include <dlfcn.h>
11393#endif
11394
11395#include <stdio.h>
11396
11397#ifdef RTLD_GLOBAL
11398#  define LT_DLGLOBAL		RTLD_GLOBAL
11399#else
11400#  ifdef DL_GLOBAL
11401#    define LT_DLGLOBAL		DL_GLOBAL
11402#  else
11403#    define LT_DLGLOBAL		0
11404#  endif
11405#endif
11406
11407/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11408   find out it does not work in some platform. */
11409#ifndef LT_DLLAZY_OR_NOW
11410#  ifdef RTLD_LAZY
11411#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11412#  else
11413#    ifdef DL_LAZY
11414#      define LT_DLLAZY_OR_NOW		DL_LAZY
11415#    else
11416#      ifdef RTLD_NOW
11417#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11418#      else
11419#        ifdef DL_NOW
11420#          define LT_DLLAZY_OR_NOW	DL_NOW
11421#        else
11422#          define LT_DLLAZY_OR_NOW	0
11423#        endif
11424#      endif
11425#    endif
11426#  endif
11427#endif
11428
11429void fnord() { int i=42;}
11430int main ()
11431{
11432  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433  int status = $lt_dlunknown;
11434
11435  if (self)
11436    {
11437      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11438      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11439      /* dlclose (self); */
11440    }
11441  else
11442    puts (dlerror ());
11443
11444  return status;
11445}
11446_LT_EOF
11447  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11448  (eval $ac_link) 2>&5
11449  ac_status=$?
11450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11451  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11452    (./conftest; exit; ) >&5 2>/dev/null
11453    lt_status=$?
11454    case x$lt_status in
11455      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11456      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11457      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11458    esac
11459  else :
11460    # compilation failed
11461    lt_cv_dlopen_self=no
11462  fi
11463fi
11464rm -fr conftest*
11465
11466
11467fi
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11469$as_echo "$lt_cv_dlopen_self" >&6; }
11470
11471    if test "x$lt_cv_dlopen_self" = xyes; then
11472      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11473      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11474$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11475if test "${lt_cv_dlopen_self_static+set}" = set; then :
11476  $as_echo_n "(cached) " >&6
11477else
11478  	  if test "$cross_compiling" = yes; then :
11479  lt_cv_dlopen_self_static=cross
11480else
11481  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11482  lt_status=$lt_dlunknown
11483  cat > conftest.$ac_ext <<_LT_EOF
11484#line 11484 "configure"
11485#include "confdefs.h"
11486
11487#if HAVE_DLFCN_H
11488#include <dlfcn.h>
11489#endif
11490
11491#include <stdio.h>
11492
11493#ifdef RTLD_GLOBAL
11494#  define LT_DLGLOBAL		RTLD_GLOBAL
11495#else
11496#  ifdef DL_GLOBAL
11497#    define LT_DLGLOBAL		DL_GLOBAL
11498#  else
11499#    define LT_DLGLOBAL		0
11500#  endif
11501#endif
11502
11503/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11504   find out it does not work in some platform. */
11505#ifndef LT_DLLAZY_OR_NOW
11506#  ifdef RTLD_LAZY
11507#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11508#  else
11509#    ifdef DL_LAZY
11510#      define LT_DLLAZY_OR_NOW		DL_LAZY
11511#    else
11512#      ifdef RTLD_NOW
11513#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11514#      else
11515#        ifdef DL_NOW
11516#          define LT_DLLAZY_OR_NOW	DL_NOW
11517#        else
11518#          define LT_DLLAZY_OR_NOW	0
11519#        endif
11520#      endif
11521#    endif
11522#  endif
11523#endif
11524
11525void fnord() { int i=42;}
11526int main ()
11527{
11528  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11529  int status = $lt_dlunknown;
11530
11531  if (self)
11532    {
11533      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11534      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11535      /* dlclose (self); */
11536    }
11537  else
11538    puts (dlerror ());
11539
11540  return status;
11541}
11542_LT_EOF
11543  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11544  (eval $ac_link) 2>&5
11545  ac_status=$?
11546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11547  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11548    (./conftest; exit; ) >&5 2>/dev/null
11549    lt_status=$?
11550    case x$lt_status in
11551      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11552      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11553      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11554    esac
11555  else :
11556    # compilation failed
11557    lt_cv_dlopen_self_static=no
11558  fi
11559fi
11560rm -fr conftest*
11561
11562
11563fi
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11565$as_echo "$lt_cv_dlopen_self_static" >&6; }
11566    fi
11567
11568    CPPFLAGS="$save_CPPFLAGS"
11569    LDFLAGS="$save_LDFLAGS"
11570    LIBS="$save_LIBS"
11571    ;;
11572  esac
11573
11574  case $lt_cv_dlopen_self in
11575  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11576  *) enable_dlopen_self=unknown ;;
11577  esac
11578
11579  case $lt_cv_dlopen_self_static in
11580  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11581  *) enable_dlopen_self_static=unknown ;;
11582  esac
11583fi
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601striplib=
11602old_striplib=
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11604$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11605if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11606  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11607  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609$as_echo "yes" >&6; }
11610else
11611# FIXME - insert some real tests, host_os isn't really good enough
11612  case $host_os in
11613  darwin*)
11614    if test -n "$STRIP" ; then
11615      striplib="$STRIP -x"
11616      old_striplib="$STRIP -S"
11617      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11618$as_echo "yes" >&6; }
11619    else
11620      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
11622    fi
11623    ;;
11624  *)
11625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626$as_echo "no" >&6; }
11627    ;;
11628  esac
11629fi
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642  # Report which library types will actually be built
11643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11644$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11646$as_echo "$can_build_shared" >&6; }
11647
11648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11649$as_echo_n "checking whether to build shared libraries... " >&6; }
11650  test "$can_build_shared" = "no" && enable_shared=no
11651
11652  # On AIX, shared libraries and static libraries use the same namespace, and
11653  # are all built from PIC.
11654  case $host_os in
11655  aix3*)
11656    test "$enable_shared" = yes && enable_static=no
11657    if test -n "$RANLIB"; then
11658      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11659      postinstall_cmds='$RANLIB $lib'
11660    fi
11661    ;;
11662
11663  aix[4-9]*)
11664    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11665      test "$enable_shared" = yes && enable_static=no
11666    fi
11667    ;;
11668  esac
11669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11670$as_echo "$enable_shared" >&6; }
11671
11672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11673$as_echo_n "checking whether to build static libraries... " >&6; }
11674  # Make sure either enable_shared or enable_static is yes.
11675  test "$enable_shared" = yes || enable_static=yes
11676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11677$as_echo "$enable_static" >&6; }
11678
11679
11680
11681
11682fi
11683ac_ext=c
11684ac_cpp='$CPP $CPPFLAGS'
11685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11687ac_compiler_gnu=$ac_cv_c_compiler_gnu
11688
11689CC="$lt_save_CC"
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703        ac_config_commands="$ac_config_commands libtool"
11704
11705
11706
11707
11708# Only expand once:
11709
11710
11711if test "x$CC" != xcc; then
11712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11713$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11714else
11715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11716$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11717fi
11718set dummy $CC; ac_cc=`$as_echo "$2" |
11719		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11720if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11721  $as_echo_n "(cached) " >&6
11722else
11723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h.  */
11725
11726int
11727main ()
11728{
11729
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734# Make sure it works both with $CC and with simple cc.
11735# We do the test twice because some compilers refuse to overwrite an
11736# existing .o file with -o, though they will create one.
11737ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11738rm -f conftest2.*
11739if { { case "(($ac_try" in
11740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741  *) ac_try_echo=$ac_try;;
11742esac
11743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11744$as_echo "$ac_try_echo"; } >&5
11745  (eval "$ac_try") 2>&5
11746  ac_status=$?
11747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748  test $ac_status = 0; } &&
11749   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751  *) ac_try_echo=$ac_try;;
11752esac
11753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11754$as_echo "$ac_try_echo"; } >&5
11755  (eval "$ac_try") 2>&5
11756  ac_status=$?
11757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758  test $ac_status = 0; };
11759then
11760  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11761  if test "x$CC" != xcc; then
11762    # Test first that cc exists at all.
11763    if { ac_try='cc -c conftest.$ac_ext >&5'
11764  { { case "(($ac_try" in
11765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766  *) ac_try_echo=$ac_try;;
11767esac
11768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11769$as_echo "$ac_try_echo"; } >&5
11770  (eval "$ac_try") 2>&5
11771  ac_status=$?
11772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11773  test $ac_status = 0; }; }; then
11774      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11775      rm -f conftest2.*
11776      if { { case "(($ac_try" in
11777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778  *) ac_try_echo=$ac_try;;
11779esac
11780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11781$as_echo "$ac_try_echo"; } >&5
11782  (eval "$ac_try") 2>&5
11783  ac_status=$?
11784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11785  test $ac_status = 0; } &&
11786	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788  *) ac_try_echo=$ac_try;;
11789esac
11790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11791$as_echo "$ac_try_echo"; } >&5
11792  (eval "$ac_try") 2>&5
11793  ac_status=$?
11794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11795  test $ac_status = 0; };
11796      then
11797	# cc works too.
11798	:
11799      else
11800	# cc exists but doesn't like -o.
11801	eval ac_cv_prog_cc_${ac_cc}_c_o=no
11802      fi
11803    fi
11804  fi
11805else
11806  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11807fi
11808rm -f core conftest*
11809
11810fi
11811if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11813$as_echo "yes" >&6; }
11814else
11815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
11817
11818$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11819
11820fi
11821
11822# FIXME: we rely on the cache variable name because
11823# there is no other way.
11824set dummy $CC
11825am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11826eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11827if test "$am_t" != yes; then
11828   # Losing compiler, so override with the script.
11829   # FIXME: It is wrong to rewrite CC.
11830   # But if we don't then we get into trouble of one sort or another.
11831   # A longer-term fix would be to have automake use am__CC in this case,
11832   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11833   CC="$am_aux_dir/compile $CC"
11834fi
11835
11836
11837
11838if test x"$CC_FOR_BUILD" = x; then
11839	if test x"$cross_compiling" = xyes; then
11840		for ac_prog in gcc cc
11841do
11842  # Extract the first word of "$ac_prog", so it can be a program name with args.
11843set dummy $ac_prog; ac_word=$2
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845$as_echo_n "checking for $ac_word... " >&6; }
11846if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
11847  $as_echo_n "(cached) " >&6
11848else
11849  if test -n "$CC_FOR_BUILD"; then
11850  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
11851else
11852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853for as_dir in $PATH
11854do
11855  IFS=$as_save_IFS
11856  test -z "$as_dir" && as_dir=.
11857    for ac_exec_ext in '' $ac_executable_extensions; do
11858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11859    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
11860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11861    break 2
11862  fi
11863done
11864  done
11865IFS=$as_save_IFS
11866
11867fi
11868fi
11869CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
11870if test -n "$CC_FOR_BUILD"; then
11871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
11872$as_echo "$CC_FOR_BUILD" >&6; }
11873else
11874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
11876fi
11877
11878
11879  test -n "$CC_FOR_BUILD" && break
11880done
11881
11882	else
11883	        CC_FOR_BUILD="$CC"
11884	fi
11885fi
11886
11887CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11888
11889LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11890
11891
11892
11893pkg_failed=no
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
11895$as_echo_n "checking for XT... " >&6; }
11896
11897if test -n "$XT_CFLAGS"; then
11898    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
11899 elif test -n "$PKG_CONFIG"; then
11900    if test -n "$PKG_CONFIG" && \
11901    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
11902  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
11903  ac_status=$?
11904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905  test $ac_status = 0; }; then
11906  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null`
11907else
11908  pkg_failed=yes
11909fi
11910 else
11911    pkg_failed=untried
11912fi
11913if test -n "$XT_LIBS"; then
11914    pkg_cv_XT_LIBS="$XT_LIBS"
11915 elif test -n "$PKG_CONFIG"; then
11916    if test -n "$PKG_CONFIG" && \
11917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
11918  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
11919  ac_status=$?
11920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11921  test $ac_status = 0; }; then
11922  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null`
11923else
11924  pkg_failed=yes
11925fi
11926 else
11927    pkg_failed=untried
11928fi
11929
11930
11931
11932if test $pkg_failed = yes; then
11933
11934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11935        _pkg_short_errors_supported=yes
11936else
11937        _pkg_short_errors_supported=no
11938fi
11939        if test $_pkg_short_errors_supported = yes; then
11940	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice x11 xproto kbproto" 2>&1`
11941        else
11942	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice x11 xproto kbproto" 2>&1`
11943        fi
11944	# Put the nasty error message in config.log where it belongs
11945	echo "$XT_PKG_ERRORS" >&5
11946
11947	as_fn_error "Package requirements (sm ice x11 xproto kbproto) were not met:
11948
11949$XT_PKG_ERRORS
11950
11951Consider adjusting the PKG_CONFIG_PATH environment variable if you
11952installed software in a non-standard prefix.
11953
11954Alternatively, you may set the environment variables XT_CFLAGS
11955and XT_LIBS to avoid the need to call pkg-config.
11956See the pkg-config man page for more details.
11957" "$LINENO" 5
11958elif test $pkg_failed = untried; then
11959	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11961as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11962is in your PATH or set the PKG_CONFIG environment variable to the full
11963path to pkg-config.
11964
11965Alternatively, you may set the environment variables XT_CFLAGS
11966and XT_LIBS to avoid the need to call pkg-config.
11967See the pkg-config man page for more details.
11968
11969To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11970See \`config.log' for more details." "$LINENO" 5; }
11971else
11972	XT_CFLAGS=$pkg_cv_XT_CFLAGS
11973	XT_LIBS=$pkg_cv_XT_LIBS
11974        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11975$as_echo "yes" >&6; }
11976	:
11977fi
11978
11979# Needed for including Xalloca.h
11980ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
11981if test "x$ac_cv_header_alloca_h" = x""yes; then :
11982
11983$as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h
11984
11985fi
11986
11987
11988
11989# Map function checks to old Imake #defines
11990case $host_os in
11991	# darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
11992	darwin*) ;;
11993	*)
11994		ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
11995if test "x$ac_cv_func_poll" = x""yes; then :
11996
11997$as_echo "#define USE_POLL 1" >>confdefs.h
11998
11999fi
12000
12001	;;
12002esac
12003ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
12004if test "x$ac_cv_func_snprintf" = x""yes; then :
12005
12006$as_echo "#define USE_SNPRINTF 1" >>confdefs.h
12007
12008fi
12009
12010
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12012$as_echo_n "checking for main in -lws2_32... " >&6; }
12013if test "${ac_cv_lib_ws2_32_main+set}" = set; then :
12014  $as_echo_n "(cached) " >&6
12015else
12016  ac_check_lib_save_LIBS=$LIBS
12017LIBS="-lws2_32  $LIBS"
12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020
12021
12022int
12023main ()
12024{
12025return main ();
12026  ;
12027  return 0;
12028}
12029_ACEOF
12030if ac_fn_c_try_link "$LINENO"; then :
12031  ac_cv_lib_ws2_32_main=yes
12032else
12033  ac_cv_lib_ws2_32_main=no
12034fi
12035rm -f core conftest.err conftest.$ac_objext \
12036    conftest$ac_exeext conftest.$ac_ext
12037LIBS=$ac_check_lib_save_LIBS
12038fi
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12040$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12041if test "x$ac_cv_lib_ws2_32_main" = x""yes; then :
12042  cat >>confdefs.h <<_ACEOF
12043#define HAVE_LIBWS2_32 1
12044_ACEOF
12045
12046  LIBS="-lws2_32 $LIBS"
12047
12048fi
12049ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12050
12051
12052# Options
12053# Check whether --enable-xkb was given.
12054if test "${enable_xkb+set}" = set; then :
12055  enableval=$enable_xkb; XKB="$enableval"
12056else
12057  XKB="yes"
12058fi
12059
12060if test "x$XKB" = "xyes" ; then
12061
12062$as_echo "#define XKB 1" >>confdefs.h
12063
12064fi
12065
12066# Replaces XFileSearchPathDefault from Imake configs
12067XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
12068
12069
12070# Check whether --with-xfile-search-path was given.
12071if test "${with_xfile_search_path+set}" = set; then :
12072  withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval"
12073fi
12074
12075
12076
12077
12078# Check whether --with-appdefaultdir was given.
12079if test "${with_appdefaultdir+set}" = set; then :
12080  withval=$with_appdefaultdir; appdefaultdir="$withval"
12081else
12082  appdefaultdir=${datadir}/X11/app-defaults
12083fi
12084
12085
12086  prefix_NONE=
12087  exec_prefix_NONE=
12088  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
12089  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
12090  eval ax_define_dir="\"$appdefaultdir\""
12091  eval ax_define_dir="\"$ax_define_dir\""
12092  appdefaultdir="$ax_define_dir"
12093
12094
12095cat >>confdefs.h <<_ACEOF
12096#define appdefaultdir "$ax_define_dir"
12097_ACEOF
12098
12099  test "$prefix_NONE" && prefix=NONE
12100  test "$exec_prefix_NONE" && exec_prefix=NONE
12101
12102
12103# Replacement for Imake ToolkitStringsABIOptions, controls string tables
12104# generated by util/string.list in StringDefs.h & Shell.h
12105case $host_os in
12106	solaris*)
12107		# Solaris uses -intelabi even on SPARC
12108  		STRINGSABIOPTIONS="-intelabi -solarisabinames"
12109		;;
12110	sco* | svr4*)
12111		case $host_cpu in
12112		    i*86) STRINGSABIOPTIONS="-intelabi" ;;
12113		       *) STRINGSABIOPTIONS="" ;;
12114		esac
12115		;;
12116esac
12117
12118
12119case $host_os in
12120    darwin*)
12121        OS_CFLAGS="-Wl,-flat_namespace"
12122	;;
12123    *)
12124        OS_CFLAGS=
12125        ;;
12126esac
12127
12128XT_CFLAGS="$XT_CFLAGS $OS_CFLAGS"
12129
12130# Man page processing requirements
12131
12132
12133for ac_prog in cpp
12134do
12135  # Extract the first word of "$ac_prog", so it can be a program name with args.
12136set dummy $ac_prog; ac_word=$2
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
12139if test "${ac_cv_path_RAWCPP+set}" = set; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  case $RAWCPP in
12143  [\\/]* | ?:[\\/]*)
12144  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12145  ;;
12146  *)
12147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12149for as_dir in $as_dummy
12150do
12151  IFS=$as_save_IFS
12152  test -z "$as_dir" && as_dir=.
12153    for ac_exec_ext in '' $ac_executable_extensions; do
12154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12155    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157    break 2
12158  fi
12159done
12160  done
12161IFS=$as_save_IFS
12162
12163  ;;
12164esac
12165fi
12166RAWCPP=$ac_cv_path_RAWCPP
12167if test -n "$RAWCPP"; then
12168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
12169$as_echo "$RAWCPP" >&6; }
12170else
12171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
12173fi
12174
12175
12176  test -n "$RAWCPP" && break
12177done
12178test -n "$RAWCPP" || RAWCPP="${CPP}"
12179
12180
12181# Check for flag to avoid builtin definitions - assumes unix is predefined,
12182# which is not the best choice for supporting other OS'es, but covers most
12183# of the ones we need for now.
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
12185$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188Does cpp redefine unix ?
12189_ACEOF
12190if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12191	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
12193else
12194	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12195		RAWCPPFLAGS=-undef
12196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12197$as_echo "yes" >&6; }
12198	# under Cygwin unix is still defined even with -undef
12199	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12200		RAWCPPFLAGS="-undef -ansi"
12201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
12202$as_echo "yes, with -ansi" >&6; }
12203	else
12204		as_fn_error "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
12205	fi
12206fi
12207rm -f conftest.$ac_ext
12208
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
12210$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212/* end confdefs.h.  */
12213Does cpp preserve   "whitespace"?
12214_ACEOF
12215if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12216	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217$as_echo "no" >&6; }
12218else
12219	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12220		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222$as_echo "yes" >&6; }
12223	else
12224		as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
12225	fi
12226fi
12227rm -f conftest.$ac_ext
12228
12229
12230
12231
12232# Check whether --enable-malloc0returnsnull was given.
12233if test "${enable_malloc0returnsnull+set}" = set; then :
12234  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12235else
12236  MALLOC_ZERO_RETURNS_NULL=auto
12237fi
12238
12239
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12241$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12242if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12243	if test "$cross_compiling" = yes; then :
12244  MALLOC_ZERO_RETURNS_NULL=yes
12245else
12246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247/* end confdefs.h.  */
12248
12249char *malloc();
12250char *realloc();
12251char *calloc();
12252main() {
12253    char *m0, *r0, *c0, *p;
12254    m0 = malloc(0);
12255    p = malloc(10);
12256    r0 = realloc(p,0);
12257    c0 = calloc(0);
12258    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12259}
12260_ACEOF
12261if ac_fn_c_try_run "$LINENO"; then :
12262  MALLOC_ZERO_RETURNS_NULL=yes
12263else
12264  MALLOC_ZERO_RETURNS_NULL=no
12265fi
12266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12267  conftest.$ac_objext conftest.beam conftest.$ac_ext
12268fi
12269
12270fi
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12272$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12273
12274if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12275	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12276	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12277	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12278else
12279	MALLOC_ZERO_CFLAGS=""
12280	XMALLOC_ZERO_CFLAGS=""
12281	XTMALLOC_ZERO_CFLAGS=""
12282fi
12283
12284
12285
12286
12287
12288
12289ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile xt.pc"
12290
12291cat >confcache <<\_ACEOF
12292# This file is a shell script that caches the results of configure
12293# tests run on this system so they can be shared between configure
12294# scripts and configure runs, see configure's option --config-cache.
12295# It is not useful on other systems.  If it contains results you don't
12296# want to keep, you may remove or edit it.
12297#
12298# config.status only pays attention to the cache file if you give it
12299# the --recheck option to rerun configure.
12300#
12301# `ac_cv_env_foo' variables (set or unset) will be overridden when
12302# loading this file, other *unset* `ac_cv_foo' will be assigned the
12303# following values.
12304
12305_ACEOF
12306
12307# The following way of writing the cache mishandles newlines in values,
12308# but we know of no workaround that is simple, portable, and efficient.
12309# So, we kill variables containing newlines.
12310# Ultrix sh set writes to stderr and can't be redirected directly,
12311# and sets the high bit in the cache file unless we assign to the vars.
12312(
12313  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12314    eval ac_val=\$$ac_var
12315    case $ac_val in #(
12316    *${as_nl}*)
12317      case $ac_var in #(
12318      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12319$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12320      esac
12321      case $ac_var in #(
12322      _ | IFS | as_nl) ;; #(
12323      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12324      *) { eval $ac_var=; unset $ac_var;} ;;
12325      esac ;;
12326    esac
12327  done
12328
12329  (set) 2>&1 |
12330    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12331    *${as_nl}ac_space=\ *)
12332      # `set' does not quote correctly, so add quotes: double-quote
12333      # substitution turns \\\\ into \\, and sed turns \\ into \.
12334      sed -n \
12335	"s/'/'\\\\''/g;
12336	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12337      ;; #(
12338    *)
12339      # `set' quotes correctly as required by POSIX, so do not add quotes.
12340      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12341      ;;
12342    esac |
12343    sort
12344) |
12345  sed '
12346     /^ac_cv_env_/b end
12347     t clear
12348     :clear
12349     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12350     t end
12351     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12352     :end' >>confcache
12353if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12354  if test -w "$cache_file"; then
12355    test "x$cache_file" != "x/dev/null" &&
12356      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12357$as_echo "$as_me: updating cache $cache_file" >&6;}
12358    cat confcache >$cache_file
12359  else
12360    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12361$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12362  fi
12363fi
12364rm -f confcache
12365
12366test "x$prefix" = xNONE && prefix=$ac_default_prefix
12367# Let make expand exec_prefix.
12368test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12369
12370DEFS=-DHAVE_CONFIG_H
12371
12372ac_libobjs=
12373ac_ltlibobjs=
12374for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12375  # 1. Remove the extension, and $U if already installed.
12376  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12377  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12378  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12379  #    will be set to the directory where LIBOBJS objects are built.
12380  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12381  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12382done
12383LIBOBJS=$ac_libobjs
12384
12385LTLIBOBJS=$ac_ltlibobjs
12386
12387
12388 if test -n "$EXEEXT"; then
12389  am__EXEEXT_TRUE=
12390  am__EXEEXT_FALSE='#'
12391else
12392  am__EXEEXT_TRUE='#'
12393  am__EXEEXT_FALSE=
12394fi
12395
12396if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12397  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12398Usually this means the macro was only invoked conditionally." "$LINENO" 5
12399fi
12400if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12401  as_fn_error "conditional \"AMDEP\" was never defined.
12402Usually this means the macro was only invoked conditionally." "$LINENO" 5
12403fi
12404if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12405  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12406Usually this means the macro was only invoked conditionally." "$LINENO" 5
12407fi
12408if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12409  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12410Usually this means the macro was only invoked conditionally." "$LINENO" 5
12411fi
12412
12413: ${CONFIG_STATUS=./config.status}
12414ac_write_fail=0
12415ac_clean_files_save=$ac_clean_files
12416ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12418$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12419as_write_fail=0
12420cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12421#! $SHELL
12422# Generated by $as_me.
12423# Run this file to recreate the current configuration.
12424# Compiler output produced by configure, useful for debugging
12425# configure, is in config.log if it exists.
12426
12427debug=false
12428ac_cs_recheck=false
12429ac_cs_silent=false
12430
12431SHELL=\${CONFIG_SHELL-$SHELL}
12432export SHELL
12433_ASEOF
12434cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12435## -------------------- ##
12436## M4sh Initialization. ##
12437## -------------------- ##
12438
12439# Be more Bourne compatible
12440DUALCASE=1; export DUALCASE # for MKS sh
12441if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12442  emulate sh
12443  NULLCMD=:
12444  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12445  # is contrary to our usage.  Disable this feature.
12446  alias -g '${1+"$@"}'='"$@"'
12447  setopt NO_GLOB_SUBST
12448else
12449  case `(set -o) 2>/dev/null` in #(
12450  *posix*) :
12451    set -o posix ;; #(
12452  *) :
12453     ;;
12454esac
12455fi
12456
12457
12458as_nl='
12459'
12460export as_nl
12461# Printing a long string crashes Solaris 7 /usr/bin/printf.
12462as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12463as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12464as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12465# Prefer a ksh shell builtin over an external printf program on Solaris,
12466# but without wasting forks for bash or zsh.
12467if test -z "$BASH_VERSION$ZSH_VERSION" \
12468    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12469  as_echo='print -r --'
12470  as_echo_n='print -rn --'
12471elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12472  as_echo='printf %s\n'
12473  as_echo_n='printf %s'
12474else
12475  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12476    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12477    as_echo_n='/usr/ucb/echo -n'
12478  else
12479    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12480    as_echo_n_body='eval
12481      arg=$1;
12482      case $arg in #(
12483      *"$as_nl"*)
12484	expr "X$arg" : "X\\(.*\\)$as_nl";
12485	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12486      esac;
12487      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12488    '
12489    export as_echo_n_body
12490    as_echo_n='sh -c $as_echo_n_body as_echo'
12491  fi
12492  export as_echo_body
12493  as_echo='sh -c $as_echo_body as_echo'
12494fi
12495
12496# The user is always right.
12497if test "${PATH_SEPARATOR+set}" != set; then
12498  PATH_SEPARATOR=:
12499  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12500    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12501      PATH_SEPARATOR=';'
12502  }
12503fi
12504
12505
12506# IFS
12507# We need space, tab and new line, in precisely that order.  Quoting is
12508# there to prevent editors from complaining about space-tab.
12509# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12510# splitting by setting IFS to empty value.)
12511IFS=" ""	$as_nl"
12512
12513# Find who we are.  Look in the path if we contain no directory separator.
12514case $0 in #((
12515  *[\\/]* ) as_myself=$0 ;;
12516  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517for as_dir in $PATH
12518do
12519  IFS=$as_save_IFS
12520  test -z "$as_dir" && as_dir=.
12521    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12522  done
12523IFS=$as_save_IFS
12524
12525     ;;
12526esac
12527# We did not find ourselves, most probably we were run as `sh COMMAND'
12528# in which case we are not to be found in the path.
12529if test "x$as_myself" = x; then
12530  as_myself=$0
12531fi
12532if test ! -f "$as_myself"; then
12533  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12534  exit 1
12535fi
12536
12537# Unset variables that we do not need and which cause bugs (e.g. in
12538# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12539# suppresses any "Segmentation fault" message there.  '((' could
12540# trigger a bug in pdksh 5.2.14.
12541for as_var in BASH_ENV ENV MAIL MAILPATH
12542do eval test x\${$as_var+set} = xset \
12543  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12544done
12545PS1='$ '
12546PS2='> '
12547PS4='+ '
12548
12549# NLS nuisances.
12550LC_ALL=C
12551export LC_ALL
12552LANGUAGE=C
12553export LANGUAGE
12554
12555# CDPATH.
12556(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12557
12558
12559# as_fn_error ERROR [LINENO LOG_FD]
12560# ---------------------------------
12561# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12562# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12563# script with status $?, using 1 if that was 0.
12564as_fn_error ()
12565{
12566  as_status=$?; test $as_status -eq 0 && as_status=1
12567  if test "$3"; then
12568    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12569    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12570  fi
12571  $as_echo "$as_me: error: $1" >&2
12572  as_fn_exit $as_status
12573} # as_fn_error
12574
12575
12576# as_fn_set_status STATUS
12577# -----------------------
12578# Set $? to STATUS, without forking.
12579as_fn_set_status ()
12580{
12581  return $1
12582} # as_fn_set_status
12583
12584# as_fn_exit STATUS
12585# -----------------
12586# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12587as_fn_exit ()
12588{
12589  set +e
12590  as_fn_set_status $1
12591  exit $1
12592} # as_fn_exit
12593
12594# as_fn_unset VAR
12595# ---------------
12596# Portably unset VAR.
12597as_fn_unset ()
12598{
12599  { eval $1=; unset $1;}
12600}
12601as_unset=as_fn_unset
12602# as_fn_append VAR VALUE
12603# ----------------------
12604# Append the text in VALUE to the end of the definition contained in VAR. Take
12605# advantage of any shell optimizations that allow amortized linear growth over
12606# repeated appends, instead of the typical quadratic growth present in naive
12607# implementations.
12608if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12609  eval 'as_fn_append ()
12610  {
12611    eval $1+=\$2
12612  }'
12613else
12614  as_fn_append ()
12615  {
12616    eval $1=\$$1\$2
12617  }
12618fi # as_fn_append
12619
12620# as_fn_arith ARG...
12621# ------------------
12622# Perform arithmetic evaluation on the ARGs, and store the result in the
12623# global $as_val. Take advantage of shells that can avoid forks. The arguments
12624# must be portable across $(()) and expr.
12625if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12626  eval 'as_fn_arith ()
12627  {
12628    as_val=$(( $* ))
12629  }'
12630else
12631  as_fn_arith ()
12632  {
12633    as_val=`expr "$@" || test $? -eq 1`
12634  }
12635fi # as_fn_arith
12636
12637
12638if expr a : '\(a\)' >/dev/null 2>&1 &&
12639   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12640  as_expr=expr
12641else
12642  as_expr=false
12643fi
12644
12645if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12646  as_basename=basename
12647else
12648  as_basename=false
12649fi
12650
12651if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12652  as_dirname=dirname
12653else
12654  as_dirname=false
12655fi
12656
12657as_me=`$as_basename -- "$0" ||
12658$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12659	 X"$0" : 'X\(//\)$' \| \
12660	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12661$as_echo X/"$0" |
12662    sed '/^.*\/\([^/][^/]*\)\/*$/{
12663	    s//\1/
12664	    q
12665	  }
12666	  /^X\/\(\/\/\)$/{
12667	    s//\1/
12668	    q
12669	  }
12670	  /^X\/\(\/\).*/{
12671	    s//\1/
12672	    q
12673	  }
12674	  s/.*/./; q'`
12675
12676# Avoid depending upon Character Ranges.
12677as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12678as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12679as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12680as_cr_digits='0123456789'
12681as_cr_alnum=$as_cr_Letters$as_cr_digits
12682
12683ECHO_C= ECHO_N= ECHO_T=
12684case `echo -n x` in #(((((
12685-n*)
12686  case `echo 'xy\c'` in
12687  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12688  xy)  ECHO_C='\c';;
12689  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12690       ECHO_T='	';;
12691  esac;;
12692*)
12693  ECHO_N='-n';;
12694esac
12695
12696rm -f conf$$ conf$$.exe conf$$.file
12697if test -d conf$$.dir; then
12698  rm -f conf$$.dir/conf$$.file
12699else
12700  rm -f conf$$.dir
12701  mkdir conf$$.dir 2>/dev/null
12702fi
12703if (echo >conf$$.file) 2>/dev/null; then
12704  if ln -s conf$$.file conf$$ 2>/dev/null; then
12705    as_ln_s='ln -s'
12706    # ... but there are two gotchas:
12707    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12708    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12709    # In both cases, we have to default to `cp -p'.
12710    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12711      as_ln_s='cp -p'
12712  elif ln conf$$.file conf$$ 2>/dev/null; then
12713    as_ln_s=ln
12714  else
12715    as_ln_s='cp -p'
12716  fi
12717else
12718  as_ln_s='cp -p'
12719fi
12720rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12721rmdir conf$$.dir 2>/dev/null
12722
12723
12724# as_fn_mkdir_p
12725# -------------
12726# Create "$as_dir" as a directory, including parents if necessary.
12727as_fn_mkdir_p ()
12728{
12729
12730  case $as_dir in #(
12731  -*) as_dir=./$as_dir;;
12732  esac
12733  test -d "$as_dir" || eval $as_mkdir_p || {
12734    as_dirs=
12735    while :; do
12736      case $as_dir in #(
12737      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12738      *) as_qdir=$as_dir;;
12739      esac
12740      as_dirs="'$as_qdir' $as_dirs"
12741      as_dir=`$as_dirname -- "$as_dir" ||
12742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12743	 X"$as_dir" : 'X\(//\)[^/]' \| \
12744	 X"$as_dir" : 'X\(//\)$' \| \
12745	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12746$as_echo X"$as_dir" |
12747    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12748	    s//\1/
12749	    q
12750	  }
12751	  /^X\(\/\/\)[^/].*/{
12752	    s//\1/
12753	    q
12754	  }
12755	  /^X\(\/\/\)$/{
12756	    s//\1/
12757	    q
12758	  }
12759	  /^X\(\/\).*/{
12760	    s//\1/
12761	    q
12762	  }
12763	  s/.*/./; q'`
12764      test -d "$as_dir" && break
12765    done
12766    test -z "$as_dirs" || eval "mkdir $as_dirs"
12767  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12768
12769
12770} # as_fn_mkdir_p
12771if mkdir -p . 2>/dev/null; then
12772  as_mkdir_p='mkdir -p "$as_dir"'
12773else
12774  test -d ./-p && rmdir ./-p
12775  as_mkdir_p=false
12776fi
12777
12778if test -x / >/dev/null 2>&1; then
12779  as_test_x='test -x'
12780else
12781  if ls -dL / >/dev/null 2>&1; then
12782    as_ls_L_option=L
12783  else
12784    as_ls_L_option=
12785  fi
12786  as_test_x='
12787    eval sh -c '\''
12788      if test -d "$1"; then
12789	test -d "$1/.";
12790      else
12791	case $1 in #(
12792	-*)set "./$1";;
12793	esac;
12794	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12795	???[sx]*):;;*)false;;esac;fi
12796    '\'' sh
12797  '
12798fi
12799as_executable_p=$as_test_x
12800
12801# Sed expression to map a string onto a valid CPP name.
12802as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12803
12804# Sed expression to map a string onto a valid variable name.
12805as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12806
12807
12808exec 6>&1
12809## ----------------------------------- ##
12810## Main body of $CONFIG_STATUS script. ##
12811## ----------------------------------- ##
12812_ASEOF
12813test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12814
12815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12816# Save the log message, to keep $0 and so on meaningful, and to
12817# report actual input values of CONFIG_FILES etc. instead of their
12818# values after options handling.
12819ac_log="
12820This file was extended by libXt $as_me 1.0.8, which was
12821generated by GNU Autoconf 2.65.  Invocation command line was
12822
12823  CONFIG_FILES    = $CONFIG_FILES
12824  CONFIG_HEADERS  = $CONFIG_HEADERS
12825  CONFIG_LINKS    = $CONFIG_LINKS
12826  CONFIG_COMMANDS = $CONFIG_COMMANDS
12827  $ $0 $@
12828
12829on `(hostname || uname -n) 2>/dev/null | sed 1q`
12830"
12831
12832_ACEOF
12833
12834case $ac_config_files in *"
12835"*) set x $ac_config_files; shift; ac_config_files=$*;;
12836esac
12837
12838case $ac_config_headers in *"
12839"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12840esac
12841
12842
12843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12844# Files that config.status was made for.
12845config_files="$ac_config_files"
12846config_headers="$ac_config_headers"
12847config_commands="$ac_config_commands"
12848
12849_ACEOF
12850
12851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12852ac_cs_usage="\
12853\`$as_me' instantiates files and other configuration actions
12854from templates according to the current configuration.  Unless the files
12855and actions are specified as TAGs, all are instantiated by default.
12856
12857Usage: $0 [OPTION]... [TAG]...
12858
12859  -h, --help       print this help, then exit
12860  -V, --version    print version number and configuration settings, then exit
12861      --config     print configuration, then exit
12862  -q, --quiet, --silent
12863                   do not print progress messages
12864  -d, --debug      don't remove temporary files
12865      --recheck    update $as_me by reconfiguring in the same conditions
12866      --file=FILE[:TEMPLATE]
12867                   instantiate the configuration file FILE
12868      --header=FILE[:TEMPLATE]
12869                   instantiate the configuration header FILE
12870
12871Configuration files:
12872$config_files
12873
12874Configuration headers:
12875$config_headers
12876
12877Configuration commands:
12878$config_commands
12879
12880Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12881
12882_ACEOF
12883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12884ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12885ac_cs_version="\\
12886libXt config.status 1.0.8
12887configured by $0, generated by GNU Autoconf 2.65,
12888  with options \\"\$ac_cs_config\\"
12889
12890Copyright (C) 2009 Free Software Foundation, Inc.
12891This config.status script is free software; the Free Software Foundation
12892gives unlimited permission to copy, distribute and modify it."
12893
12894ac_pwd='$ac_pwd'
12895srcdir='$srcdir'
12896INSTALL='$INSTALL'
12897MKDIR_P='$MKDIR_P'
12898AWK='$AWK'
12899test -n "\$AWK" || AWK=awk
12900_ACEOF
12901
12902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12903# The default lists apply if the user does not specify any file.
12904ac_need_defaults=:
12905while test $# != 0
12906do
12907  case $1 in
12908  --*=*)
12909    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12910    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12911    ac_shift=:
12912    ;;
12913  *)
12914    ac_option=$1
12915    ac_optarg=$2
12916    ac_shift=shift
12917    ;;
12918  esac
12919
12920  case $ac_option in
12921  # Handling of the options.
12922  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12923    ac_cs_recheck=: ;;
12924  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12925    $as_echo "$ac_cs_version"; exit ;;
12926  --config | --confi | --conf | --con | --co | --c )
12927    $as_echo "$ac_cs_config"; exit ;;
12928  --debug | --debu | --deb | --de | --d | -d )
12929    debug=: ;;
12930  --file | --fil | --fi | --f )
12931    $ac_shift
12932    case $ac_optarg in
12933    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12934    esac
12935    as_fn_append CONFIG_FILES " '$ac_optarg'"
12936    ac_need_defaults=false;;
12937  --header | --heade | --head | --hea )
12938    $ac_shift
12939    case $ac_optarg in
12940    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12941    esac
12942    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12943    ac_need_defaults=false;;
12944  --he | --h)
12945    # Conflict between --help and --header
12946    as_fn_error "ambiguous option: \`$1'
12947Try \`$0 --help' for more information.";;
12948  --help | --hel | -h )
12949    $as_echo "$ac_cs_usage"; exit ;;
12950  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12951  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12952    ac_cs_silent=: ;;
12953
12954  # This is an error.
12955  -*) as_fn_error "unrecognized option: \`$1'
12956Try \`$0 --help' for more information." ;;
12957
12958  *) as_fn_append ac_config_targets " $1"
12959     ac_need_defaults=false ;;
12960
12961  esac
12962  shift
12963done
12964
12965ac_configure_extra_args=
12966
12967if $ac_cs_silent; then
12968  exec 6>/dev/null
12969  ac_configure_extra_args="$ac_configure_extra_args --silent"
12970fi
12971
12972_ACEOF
12973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12974if \$ac_cs_recheck; then
12975  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12976  shift
12977  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12978  CONFIG_SHELL='$SHELL'
12979  export CONFIG_SHELL
12980  exec "\$@"
12981fi
12982
12983_ACEOF
12984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12985exec 5>>config.log
12986{
12987  echo
12988  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12989## Running $as_me. ##
12990_ASBOX
12991  $as_echo "$ac_log"
12992} >&5
12993
12994_ACEOF
12995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12996#
12997# INIT-COMMANDS
12998#
12999AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13000
13001
13002# The HP-UX ksh and POSIX shell print the target directory to stdout
13003# if CDPATH is set.
13004(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13005
13006sed_quote_subst='$sed_quote_subst'
13007double_quote_subst='$double_quote_subst'
13008delay_variable_subst='$delay_variable_subst'
13009macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13010macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13011enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13012enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13013pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13014enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13015host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13016host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13017host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13018build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13019build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13020build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13021SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13022Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13023GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13024EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13025FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13026LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13027NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13028LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13029max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13030ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13031exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13032lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13033lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13034lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13035reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13036reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13037OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13038deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13039file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13040AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13041AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13042STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13043RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13044old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13045old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13046old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13047CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13048CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13049compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13050GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13051lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13052lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13053lt_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"`'
13054lt_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"`'
13055objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13056SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13057ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13058MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13059lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13060lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13061lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13062lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13063lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13064need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13065DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13066NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13067LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13068OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13069OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13070libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13071shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13072extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13073archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13074enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13075export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13076whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13077compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13078old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13079old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13080archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13081archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13082module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13083module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13084with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13085allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13086no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13087hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13088hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13089hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13090hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13091hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13092hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13093hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13094hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13095inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13096link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13097fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13098always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13099export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13100exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13101include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13102prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13103file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13104variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13105need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13106need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13107version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13108runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13109shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13110shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13111libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13112library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13113soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13114postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13115postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13116finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13117finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13118hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13119sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13120sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13121hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13122enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13123enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13124enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13125old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13126striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13127
13128LTCC='$LTCC'
13129LTCFLAGS='$LTCFLAGS'
13130compiler='$compiler_DEFAULT'
13131
13132# Quote evaled strings.
13133for var in SED \
13134GREP \
13135EGREP \
13136FGREP \
13137LD \
13138NM \
13139LN_S \
13140lt_SP2NL \
13141lt_NL2SP \
13142reload_flag \
13143OBJDUMP \
13144deplibs_check_method \
13145file_magic_cmd \
13146AR \
13147AR_FLAGS \
13148STRIP \
13149RANLIB \
13150CC \
13151CFLAGS \
13152compiler \
13153lt_cv_sys_global_symbol_pipe \
13154lt_cv_sys_global_symbol_to_cdecl \
13155lt_cv_sys_global_symbol_to_c_name_address \
13156lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13157SHELL \
13158ECHO \
13159lt_prog_compiler_no_builtin_flag \
13160lt_prog_compiler_wl \
13161lt_prog_compiler_pic \
13162lt_prog_compiler_static \
13163lt_cv_prog_compiler_c_o \
13164need_locks \
13165DSYMUTIL \
13166NMEDIT \
13167LIPO \
13168OTOOL \
13169OTOOL64 \
13170shrext_cmds \
13171export_dynamic_flag_spec \
13172whole_archive_flag_spec \
13173compiler_needs_object \
13174with_gnu_ld \
13175allow_undefined_flag \
13176no_undefined_flag \
13177hardcode_libdir_flag_spec \
13178hardcode_libdir_flag_spec_ld \
13179hardcode_libdir_separator \
13180fix_srcfile_path \
13181exclude_expsyms \
13182include_expsyms \
13183file_list_spec \
13184variables_saved_for_relink \
13185libname_spec \
13186library_names_spec \
13187soname_spec \
13188finish_eval \
13189old_striplib \
13190striplib; do
13191    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13192    *[\\\\\\\`\\"\\\$]*)
13193      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13194      ;;
13195    *)
13196      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13197      ;;
13198    esac
13199done
13200
13201# Double-quote double-evaled strings.
13202for var in reload_cmds \
13203old_postinstall_cmds \
13204old_postuninstall_cmds \
13205old_archive_cmds \
13206extract_expsyms_cmds \
13207old_archive_from_new_cmds \
13208old_archive_from_expsyms_cmds \
13209archive_cmds \
13210archive_expsym_cmds \
13211module_cmds \
13212module_expsym_cmds \
13213export_symbols_cmds \
13214prelink_cmds \
13215postinstall_cmds \
13216postuninstall_cmds \
13217finish_cmds \
13218sys_lib_search_path_spec \
13219sys_lib_dlsearch_path_spec; do
13220    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13221    *[\\\\\\\`\\"\\\$]*)
13222      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13223      ;;
13224    *)
13225      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13226      ;;
13227    esac
13228done
13229
13230# Fix-up fallback echo if it was mangled by the above quoting rules.
13231case \$lt_ECHO in
13232*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13233  ;;
13234esac
13235
13236ac_aux_dir='$ac_aux_dir'
13237xsi_shell='$xsi_shell'
13238lt_shell_append='$lt_shell_append'
13239
13240# See if we are running on zsh, and set the options which allow our
13241# commands through without removal of \ escapes INIT.
13242if test -n "\${ZSH_VERSION+set}" ; then
13243   setopt NO_GLOB_SUBST
13244fi
13245
13246
13247    PACKAGE='$PACKAGE'
13248    VERSION='$VERSION'
13249    TIMESTAMP='$TIMESTAMP'
13250    RM='$RM'
13251    ofile='$ofile'
13252
13253
13254
13255
13256_ACEOF
13257
13258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13259
13260# Handling of arguments.
13261for ac_config_target in $ac_config_targets
13262do
13263  case $ac_config_target in
13264    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13265    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13266    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13267    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13268    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13269    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13270    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13271    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13272    "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;;
13273
13274  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13275  esac
13276done
13277
13278
13279# If the user did not use the arguments to specify the items to instantiate,
13280# then the envvar interface is used.  Set only those that are not.
13281# We use the long form for the default assignment because of an extremely
13282# bizarre bug on SunOS 4.1.3.
13283if $ac_need_defaults; then
13284  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13285  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13286  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13287fi
13288
13289# Have a temporary directory for convenience.  Make it in the build tree
13290# simply because there is no reason against having it here, and in addition,
13291# creating and moving files from /tmp can sometimes cause problems.
13292# Hook for its removal unless debugging.
13293# Note that there is a small window in which the directory will not be cleaned:
13294# after its creation but before its name has been assigned to `$tmp'.
13295$debug ||
13296{
13297  tmp=
13298  trap 'exit_status=$?
13299  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13300' 0
13301  trap 'as_fn_exit 1' 1 2 13 15
13302}
13303# Create a (secure) tmp directory for tmp files.
13304
13305{
13306  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13307  test -n "$tmp" && test -d "$tmp"
13308}  ||
13309{
13310  tmp=./conf$$-$RANDOM
13311  (umask 077 && mkdir "$tmp")
13312} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13313
13314# Set up the scripts for CONFIG_FILES section.
13315# No need to generate them if there are no CONFIG_FILES.
13316# This happens for instance with `./config.status config.h'.
13317if test -n "$CONFIG_FILES"; then
13318
13319
13320ac_cr=`echo X | tr X '\015'`
13321# On cygwin, bash can eat \r inside `` if the user requested igncr.
13322# But we know of no other shell where ac_cr would be empty at this
13323# point, so we can use a bashism as a fallback.
13324if test "x$ac_cr" = x; then
13325  eval ac_cr=\$\'\\r\'
13326fi
13327ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13328if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13329  ac_cs_awk_cr='\r'
13330else
13331  ac_cs_awk_cr=$ac_cr
13332fi
13333
13334echo 'BEGIN {' >"$tmp/subs1.awk" &&
13335_ACEOF
13336
13337
13338{
13339  echo "cat >conf$$subs.awk <<_ACEOF" &&
13340  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13341  echo "_ACEOF"
13342} >conf$$subs.sh ||
13343  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13344ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13345ac_delim='%!_!# '
13346for ac_last_try in false false false false false :; do
13347  . ./conf$$subs.sh ||
13348    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13349
13350  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13351  if test $ac_delim_n = $ac_delim_num; then
13352    break
13353  elif $ac_last_try; then
13354    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13355  else
13356    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13357  fi
13358done
13359rm -f conf$$subs.sh
13360
13361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13362cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13363_ACEOF
13364sed -n '
13365h
13366s/^/S["/; s/!.*/"]=/
13367p
13368g
13369s/^[^!]*!//
13370:repl
13371t repl
13372s/'"$ac_delim"'$//
13373t delim
13374:nl
13375h
13376s/\(.\{148\}\)..*/\1/
13377t more1
13378s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13379p
13380n
13381b repl
13382:more1
13383s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13384p
13385g
13386s/.\{148\}//
13387t nl
13388:delim
13389h
13390s/\(.\{148\}\)..*/\1/
13391t more2
13392s/["\\]/\\&/g; s/^/"/; s/$/"/
13393p
13394b
13395:more2
13396s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13397p
13398g
13399s/.\{148\}//
13400t delim
13401' <conf$$subs.awk | sed '
13402/^[^""]/{
13403  N
13404  s/\n//
13405}
13406' >>$CONFIG_STATUS || ac_write_fail=1
13407rm -f conf$$subs.awk
13408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13409_ACAWK
13410cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13411  for (key in S) S_is_set[key] = 1
13412  FS = ""
13413
13414}
13415{
13416  line = $ 0
13417  nfields = split(line, field, "@")
13418  substed = 0
13419  len = length(field[1])
13420  for (i = 2; i < nfields; i++) {
13421    key = field[i]
13422    keylen = length(key)
13423    if (S_is_set[key]) {
13424      value = S[key]
13425      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13426      len += length(value) + length(field[++i])
13427      substed = 1
13428    } else
13429      len += 1 + keylen
13430  }
13431
13432  print line
13433}
13434
13435_ACAWK
13436_ACEOF
13437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13438if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13439  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13440else
13441  cat
13442fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13443  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13444_ACEOF
13445
13446# VPATH may cause trouble with some makes, so we remove $(srcdir),
13447# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13448# trailing colons and then remove the whole line if VPATH becomes empty
13449# (actually we leave an empty line to preserve line numbers).
13450if test "x$srcdir" = x.; then
13451  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13452s/:*\$(srcdir):*/:/
13453s/:*\${srcdir}:*/:/
13454s/:*@srcdir@:*/:/
13455s/^\([^=]*=[	 ]*\):*/\1/
13456s/:*$//
13457s/^[^=]*=[	 ]*$//
13458}'
13459fi
13460
13461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13462fi # test -n "$CONFIG_FILES"
13463
13464# Set up the scripts for CONFIG_HEADERS section.
13465# No need to generate them if there are no CONFIG_HEADERS.
13466# This happens for instance with `./config.status Makefile'.
13467if test -n "$CONFIG_HEADERS"; then
13468cat >"$tmp/defines.awk" <<\_ACAWK ||
13469BEGIN {
13470_ACEOF
13471
13472# Transform confdefs.h into an awk script `defines.awk', embedded as
13473# here-document in config.status, that substitutes the proper values into
13474# config.h.in to produce config.h.
13475
13476# Create a delimiter string that does not exist in confdefs.h, to ease
13477# handling of long lines.
13478ac_delim='%!_!# '
13479for ac_last_try in false false :; do
13480  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13481  if test -z "$ac_t"; then
13482    break
13483  elif $ac_last_try; then
13484    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13485  else
13486    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13487  fi
13488done
13489
13490# For the awk script, D is an array of macro values keyed by name,
13491# likewise P contains macro parameters if any.  Preserve backslash
13492# newline sequences.
13493
13494ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13495sed -n '
13496s/.\{148\}/&'"$ac_delim"'/g
13497t rset
13498:rset
13499s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13500t def
13501d
13502:def
13503s/\\$//
13504t bsnl
13505s/["\\]/\\&/g
13506s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13507D["\1"]=" \3"/p
13508s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13509d
13510:bsnl
13511s/["\\]/\\&/g
13512s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13513D["\1"]=" \3\\\\\\n"\\/p
13514t cont
13515s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13516t cont
13517d
13518:cont
13519n
13520s/.\{148\}/&'"$ac_delim"'/g
13521t clear
13522:clear
13523s/\\$//
13524t bsnlc
13525s/["\\]/\\&/g; s/^/"/; s/$/"/p
13526d
13527:bsnlc
13528s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13529b cont
13530' <confdefs.h | sed '
13531s/'"$ac_delim"'/"\\\
13532"/g' >>$CONFIG_STATUS || ac_write_fail=1
13533
13534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13535  for (key in D) D_is_set[key] = 1
13536  FS = ""
13537}
13538/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13539  line = \$ 0
13540  split(line, arg, " ")
13541  if (arg[1] == "#") {
13542    defundef = arg[2]
13543    mac1 = arg[3]
13544  } else {
13545    defundef = substr(arg[1], 2)
13546    mac1 = arg[2]
13547  }
13548  split(mac1, mac2, "(") #)
13549  macro = mac2[1]
13550  prefix = substr(line, 1, index(line, defundef) - 1)
13551  if (D_is_set[macro]) {
13552    # Preserve the white space surrounding the "#".
13553    print prefix "define", macro P[macro] D[macro]
13554    next
13555  } else {
13556    # Replace #undef with comments.  This is necessary, for example,
13557    # in the case of _POSIX_SOURCE, which is predefined and required
13558    # on some systems where configure will not decide to define it.
13559    if (defundef == "undef") {
13560      print "/*", prefix defundef, macro, "*/"
13561      next
13562    }
13563  }
13564}
13565{ print }
13566_ACAWK
13567_ACEOF
13568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13569  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13570fi # test -n "$CONFIG_HEADERS"
13571
13572
13573eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13574shift
13575for ac_tag
13576do
13577  case $ac_tag in
13578  :[FHLC]) ac_mode=$ac_tag; continue;;
13579  esac
13580  case $ac_mode$ac_tag in
13581  :[FHL]*:*);;
13582  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13583  :[FH]-) ac_tag=-:-;;
13584  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13585  esac
13586  ac_save_IFS=$IFS
13587  IFS=:
13588  set x $ac_tag
13589  IFS=$ac_save_IFS
13590  shift
13591  ac_file=$1
13592  shift
13593
13594  case $ac_mode in
13595  :L) ac_source=$1;;
13596  :[FH])
13597    ac_file_inputs=
13598    for ac_f
13599    do
13600      case $ac_f in
13601      -) ac_f="$tmp/stdin";;
13602      *) # Look for the file first in the build tree, then in the source tree
13603	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13604	 # because $ac_f cannot contain `:'.
13605	 test -f "$ac_f" ||
13606	   case $ac_f in
13607	   [\\/$]*) false;;
13608	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13609	   esac ||
13610	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13611      esac
13612      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13613      as_fn_append ac_file_inputs " '$ac_f'"
13614    done
13615
13616    # Let's still pretend it is `configure' which instantiates (i.e., don't
13617    # use $as_me), people would be surprised to read:
13618    #    /* config.h.  Generated by config.status.  */
13619    configure_input='Generated from '`
13620	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13621	`' by configure.'
13622    if test x"$ac_file" != x-; then
13623      configure_input="$ac_file.  $configure_input"
13624      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13625$as_echo "$as_me: creating $ac_file" >&6;}
13626    fi
13627    # Neutralize special characters interpreted by sed in replacement strings.
13628    case $configure_input in #(
13629    *\&* | *\|* | *\\* )
13630       ac_sed_conf_input=`$as_echo "$configure_input" |
13631       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13632    *) ac_sed_conf_input=$configure_input;;
13633    esac
13634
13635    case $ac_tag in
13636    *:-:* | *:-) cat >"$tmp/stdin" \
13637      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13638    esac
13639    ;;
13640  esac
13641
13642  ac_dir=`$as_dirname -- "$ac_file" ||
13643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13644	 X"$ac_file" : 'X\(//\)[^/]' \| \
13645	 X"$ac_file" : 'X\(//\)$' \| \
13646	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13647$as_echo X"$ac_file" |
13648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13649	    s//\1/
13650	    q
13651	  }
13652	  /^X\(\/\/\)[^/].*/{
13653	    s//\1/
13654	    q
13655	  }
13656	  /^X\(\/\/\)$/{
13657	    s//\1/
13658	    q
13659	  }
13660	  /^X\(\/\).*/{
13661	    s//\1/
13662	    q
13663	  }
13664	  s/.*/./; q'`
13665  as_dir="$ac_dir"; as_fn_mkdir_p
13666  ac_builddir=.
13667
13668case "$ac_dir" in
13669.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13670*)
13671  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13672  # A ".." for each directory in $ac_dir_suffix.
13673  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13674  case $ac_top_builddir_sub in
13675  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13676  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13677  esac ;;
13678esac
13679ac_abs_top_builddir=$ac_pwd
13680ac_abs_builddir=$ac_pwd$ac_dir_suffix
13681# for backward compatibility:
13682ac_top_builddir=$ac_top_build_prefix
13683
13684case $srcdir in
13685  .)  # We are building in place.
13686    ac_srcdir=.
13687    ac_top_srcdir=$ac_top_builddir_sub
13688    ac_abs_top_srcdir=$ac_pwd ;;
13689  [\\/]* | ?:[\\/]* )  # Absolute name.
13690    ac_srcdir=$srcdir$ac_dir_suffix;
13691    ac_top_srcdir=$srcdir
13692    ac_abs_top_srcdir=$srcdir ;;
13693  *) # Relative name.
13694    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13695    ac_top_srcdir=$ac_top_build_prefix$srcdir
13696    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13697esac
13698ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13699
13700
13701  case $ac_mode in
13702  :F)
13703  #
13704  # CONFIG_FILE
13705  #
13706
13707  case $INSTALL in
13708  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13709  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13710  esac
13711  ac_MKDIR_P=$MKDIR_P
13712  case $MKDIR_P in
13713  [\\/$]* | ?:[\\/]* ) ;;
13714  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13715  esac
13716_ACEOF
13717
13718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13719# If the template does not know about datarootdir, expand it.
13720# FIXME: This hack should be removed a few years after 2.60.
13721ac_datarootdir_hack=; ac_datarootdir_seen=
13722ac_sed_dataroot='
13723/datarootdir/ {
13724  p
13725  q
13726}
13727/@datadir@/p
13728/@docdir@/p
13729/@infodir@/p
13730/@localedir@/p
13731/@mandir@/p'
13732case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13733*datarootdir*) ac_datarootdir_seen=yes;;
13734*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13735  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13736$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13737_ACEOF
13738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13739  ac_datarootdir_hack='
13740  s&@datadir@&$datadir&g
13741  s&@docdir@&$docdir&g
13742  s&@infodir@&$infodir&g
13743  s&@localedir@&$localedir&g
13744  s&@mandir@&$mandir&g
13745  s&\\\${datarootdir}&$datarootdir&g' ;;
13746esac
13747_ACEOF
13748
13749# Neutralize VPATH when `$srcdir' = `.'.
13750# Shell code in configure.ac might set extrasub.
13751# FIXME: do we really want to maintain this feature?
13752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13753ac_sed_extra="$ac_vpsub
13754$extrasub
13755_ACEOF
13756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13757:t
13758/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13759s|@configure_input@|$ac_sed_conf_input|;t t
13760s&@top_builddir@&$ac_top_builddir_sub&;t t
13761s&@top_build_prefix@&$ac_top_build_prefix&;t t
13762s&@srcdir@&$ac_srcdir&;t t
13763s&@abs_srcdir@&$ac_abs_srcdir&;t t
13764s&@top_srcdir@&$ac_top_srcdir&;t t
13765s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13766s&@builddir@&$ac_builddir&;t t
13767s&@abs_builddir@&$ac_abs_builddir&;t t
13768s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13769s&@INSTALL@&$ac_INSTALL&;t t
13770s&@MKDIR_P@&$ac_MKDIR_P&;t t
13771$ac_datarootdir_hack
13772"
13773eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13774  || as_fn_error "could not create $ac_file" "$LINENO" 5
13775
13776test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13777  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13778  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13779  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13780which seems to be undefined.  Please make sure it is defined." >&5
13781$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13782which seems to be undefined.  Please make sure it is defined." >&2;}
13783
13784  rm -f "$tmp/stdin"
13785  case $ac_file in
13786  -) cat "$tmp/out" && rm -f "$tmp/out";;
13787  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13788  esac \
13789  || as_fn_error "could not create $ac_file" "$LINENO" 5
13790 ;;
13791  :H)
13792  #
13793  # CONFIG_HEADER
13794  #
13795  if test x"$ac_file" != x-; then
13796    {
13797      $as_echo "/* $configure_input  */" \
13798      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13799    } >"$tmp/config.h" \
13800      || as_fn_error "could not create $ac_file" "$LINENO" 5
13801    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13802      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13803$as_echo "$as_me: $ac_file is unchanged" >&6;}
13804    else
13805      rm -f "$ac_file"
13806      mv "$tmp/config.h" "$ac_file" \
13807	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13808    fi
13809  else
13810    $as_echo "/* $configure_input  */" \
13811      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13812      || as_fn_error "could not create -" "$LINENO" 5
13813  fi
13814# Compute "$ac_file"'s index in $config_headers.
13815_am_arg="$ac_file"
13816_am_stamp_count=1
13817for _am_header in $config_headers :; do
13818  case $_am_header in
13819    $_am_arg | $_am_arg:* )
13820      break ;;
13821    * )
13822      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13823  esac
13824done
13825echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13826$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13827	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13828	 X"$_am_arg" : 'X\(//\)$' \| \
13829	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13830$as_echo X"$_am_arg" |
13831    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13832	    s//\1/
13833	    q
13834	  }
13835	  /^X\(\/\/\)[^/].*/{
13836	    s//\1/
13837	    q
13838	  }
13839	  /^X\(\/\/\)$/{
13840	    s//\1/
13841	    q
13842	  }
13843	  /^X\(\/\).*/{
13844	    s//\1/
13845	    q
13846	  }
13847	  s/.*/./; q'`/stamp-h$_am_stamp_count
13848 ;;
13849
13850  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13851$as_echo "$as_me: executing $ac_file commands" >&6;}
13852 ;;
13853  esac
13854
13855
13856  case $ac_file$ac_mode in
13857    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13858  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13859  # are listed without --file.  Let's play safe and only enable the eval
13860  # if we detect the quoting.
13861  case $CONFIG_FILES in
13862  *\'*) eval set x "$CONFIG_FILES" ;;
13863  *)   set x $CONFIG_FILES ;;
13864  esac
13865  shift
13866  for mf
13867  do
13868    # Strip MF so we end up with the name of the file.
13869    mf=`echo "$mf" | sed -e 's/:.*$//'`
13870    # Check whether this is an Automake generated Makefile or not.
13871    # We used to match only the files named `Makefile.in', but
13872    # some people rename them; so instead we look at the file content.
13873    # Grep'ing the first line is not enough: some people post-process
13874    # each Makefile.in and add a new line on top of each file to say so.
13875    # Grep'ing the whole file is not good either: AIX grep has a line
13876    # limit of 2048, but all sed's we know have understand at least 4000.
13877    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13878      dirpart=`$as_dirname -- "$mf" ||
13879$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13880	 X"$mf" : 'X\(//\)[^/]' \| \
13881	 X"$mf" : 'X\(//\)$' \| \
13882	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13883$as_echo X"$mf" |
13884    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13885	    s//\1/
13886	    q
13887	  }
13888	  /^X\(\/\/\)[^/].*/{
13889	    s//\1/
13890	    q
13891	  }
13892	  /^X\(\/\/\)$/{
13893	    s//\1/
13894	    q
13895	  }
13896	  /^X\(\/\).*/{
13897	    s//\1/
13898	    q
13899	  }
13900	  s/.*/./; q'`
13901    else
13902      continue
13903    fi
13904    # Extract the definition of DEPDIR, am__include, and am__quote
13905    # from the Makefile without running `make'.
13906    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13907    test -z "$DEPDIR" && continue
13908    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13909    test -z "am__include" && continue
13910    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13911    # When using ansi2knr, U may be empty or an underscore; expand it
13912    U=`sed -n 's/^U = //p' < "$mf"`
13913    # Find all dependency output files, they are included files with
13914    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13915    # simplest approach to changing $(DEPDIR) to its actual value in the
13916    # expansion.
13917    for file in `sed -n "
13918      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13919	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13920      # Make sure the directory exists.
13921      test -f "$dirpart/$file" && continue
13922      fdir=`$as_dirname -- "$file" ||
13923$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13924	 X"$file" : 'X\(//\)[^/]' \| \
13925	 X"$file" : 'X\(//\)$' \| \
13926	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13927$as_echo X"$file" |
13928    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13929	    s//\1/
13930	    q
13931	  }
13932	  /^X\(\/\/\)[^/].*/{
13933	    s//\1/
13934	    q
13935	  }
13936	  /^X\(\/\/\)$/{
13937	    s//\1/
13938	    q
13939	  }
13940	  /^X\(\/\).*/{
13941	    s//\1/
13942	    q
13943	  }
13944	  s/.*/./; q'`
13945      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13946      # echo "creating $dirpart/$file"
13947      echo '# dummy' > "$dirpart/$file"
13948    done
13949  done
13950}
13951 ;;
13952    "libtool":C)
13953
13954    # See if we are running on zsh, and set the options which allow our
13955    # commands through without removal of \ escapes.
13956    if test -n "${ZSH_VERSION+set}" ; then
13957      setopt NO_GLOB_SUBST
13958    fi
13959
13960    cfgfile="${ofile}T"
13961    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13962    $RM "$cfgfile"
13963
13964    cat <<_LT_EOF >> "$cfgfile"
13965#! $SHELL
13966
13967# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13968# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13969# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13970# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13971#
13972#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13973#                 2006, 2007, 2008 Free Software Foundation, Inc.
13974#   Written by Gordon Matzigkeit, 1996
13975#
13976#   This file is part of GNU Libtool.
13977#
13978# GNU Libtool is free software; you can redistribute it and/or
13979# modify it under the terms of the GNU General Public License as
13980# published by the Free Software Foundation; either version 2 of
13981# the License, or (at your option) any later version.
13982#
13983# As a special exception to the GNU General Public License,
13984# if you distribute this file as part of a program or library that
13985# is built using GNU Libtool, you may include this file under the
13986# same distribution terms that you use for the rest of that program.
13987#
13988# GNU Libtool is distributed in the hope that it will be useful,
13989# but WITHOUT ANY WARRANTY; without even the implied warranty of
13990# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13991# GNU General Public License for more details.
13992#
13993# You should have received a copy of the GNU General Public License
13994# along with GNU Libtool; see the file COPYING.  If not, a copy
13995# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13996# obtained by writing to the Free Software Foundation, Inc.,
13997# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13998
13999
14000# The names of the tagged configurations supported by this script.
14001available_tags=""
14002
14003# ### BEGIN LIBTOOL CONFIG
14004
14005# Which release of libtool.m4 was used?
14006macro_version=$macro_version
14007macro_revision=$macro_revision
14008
14009# Whether or not to build shared libraries.
14010build_libtool_libs=$enable_shared
14011
14012# Whether or not to build static libraries.
14013build_old_libs=$enable_static
14014
14015# What type of objects to build.
14016pic_mode=$pic_mode
14017
14018# Whether or not to optimize for fast installation.
14019fast_install=$enable_fast_install
14020
14021# The host system.
14022host_alias=$host_alias
14023host=$host
14024host_os=$host_os
14025
14026# The build system.
14027build_alias=$build_alias
14028build=$build
14029build_os=$build_os
14030
14031# A sed program that does not truncate output.
14032SED=$lt_SED
14033
14034# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14035Xsed="\$SED -e 1s/^X//"
14036
14037# A grep program that handles long lines.
14038GREP=$lt_GREP
14039
14040# An ERE matcher.
14041EGREP=$lt_EGREP
14042
14043# A literal string matcher.
14044FGREP=$lt_FGREP
14045
14046# A BSD- or MS-compatible name lister.
14047NM=$lt_NM
14048
14049# Whether we need soft or hard links.
14050LN_S=$lt_LN_S
14051
14052# What is the maximum length of a command?
14053max_cmd_len=$max_cmd_len
14054
14055# Object file suffix (normally "o").
14056objext=$ac_objext
14057
14058# Executable file suffix (normally "").
14059exeext=$exeext
14060
14061# whether the shell understands "unset".
14062lt_unset=$lt_unset
14063
14064# turn spaces into newlines.
14065SP2NL=$lt_lt_SP2NL
14066
14067# turn newlines into spaces.
14068NL2SP=$lt_lt_NL2SP
14069
14070# How to create reloadable object files.
14071reload_flag=$lt_reload_flag
14072reload_cmds=$lt_reload_cmds
14073
14074# An object symbol dumper.
14075OBJDUMP=$lt_OBJDUMP
14076
14077# Method to check whether dependent libraries are shared objects.
14078deplibs_check_method=$lt_deplibs_check_method
14079
14080# Command to use when deplibs_check_method == "file_magic".
14081file_magic_cmd=$lt_file_magic_cmd
14082
14083# The archiver.
14084AR=$lt_AR
14085AR_FLAGS=$lt_AR_FLAGS
14086
14087# A symbol stripping program.
14088STRIP=$lt_STRIP
14089
14090# Commands used to install an old-style archive.
14091RANLIB=$lt_RANLIB
14092old_postinstall_cmds=$lt_old_postinstall_cmds
14093old_postuninstall_cmds=$lt_old_postuninstall_cmds
14094
14095# A C compiler.
14096LTCC=$lt_CC
14097
14098# LTCC compiler flags.
14099LTCFLAGS=$lt_CFLAGS
14100
14101# Take the output of nm and produce a listing of raw symbols and C names.
14102global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14103
14104# Transform the output of nm in a proper C declaration.
14105global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14106
14107# Transform the output of nm in a C name address pair.
14108global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14109
14110# Transform the output of nm in a C name address pair when lib prefix is needed.
14111global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14112
14113# The name of the directory that contains temporary libtool files.
14114objdir=$objdir
14115
14116# Shell to use when invoking shell scripts.
14117SHELL=$lt_SHELL
14118
14119# An echo program that does not interpret backslashes.
14120ECHO=$lt_ECHO
14121
14122# Used to examine libraries when file_magic_cmd begins with "file".
14123MAGIC_CMD=$MAGIC_CMD
14124
14125# Must we lock files when doing compilation?
14126need_locks=$lt_need_locks
14127
14128# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14129DSYMUTIL=$lt_DSYMUTIL
14130
14131# Tool to change global to local symbols on Mac OS X.
14132NMEDIT=$lt_NMEDIT
14133
14134# Tool to manipulate fat objects and archives on Mac OS X.
14135LIPO=$lt_LIPO
14136
14137# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14138OTOOL=$lt_OTOOL
14139
14140# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14141OTOOL64=$lt_OTOOL64
14142
14143# Old archive suffix (normally "a").
14144libext=$libext
14145
14146# Shared library suffix (normally ".so").
14147shrext_cmds=$lt_shrext_cmds
14148
14149# The commands to extract the exported symbol list from a shared archive.
14150extract_expsyms_cmds=$lt_extract_expsyms_cmds
14151
14152# Variables whose values should be saved in libtool wrapper scripts and
14153# restored at link time.
14154variables_saved_for_relink=$lt_variables_saved_for_relink
14155
14156# Do we need the "lib" prefix for modules?
14157need_lib_prefix=$need_lib_prefix
14158
14159# Do we need a version for libraries?
14160need_version=$need_version
14161
14162# Library versioning type.
14163version_type=$version_type
14164
14165# Shared library runtime path variable.
14166runpath_var=$runpath_var
14167
14168# Shared library path variable.
14169shlibpath_var=$shlibpath_var
14170
14171# Is shlibpath searched before the hard-coded library search path?
14172shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14173
14174# Format of library name prefix.
14175libname_spec=$lt_libname_spec
14176
14177# List of archive names.  First name is the real one, the rest are links.
14178# The last name is the one that the linker finds with -lNAME
14179library_names_spec=$lt_library_names_spec
14180
14181# The coded name of the library, if different from the real name.
14182soname_spec=$lt_soname_spec
14183
14184# Command to use after installation of a shared archive.
14185postinstall_cmds=$lt_postinstall_cmds
14186
14187# Command to use after uninstallation of a shared archive.
14188postuninstall_cmds=$lt_postuninstall_cmds
14189
14190# Commands used to finish a libtool library installation in a directory.
14191finish_cmds=$lt_finish_cmds
14192
14193# As "finish_cmds", except a single script fragment to be evaled but
14194# not shown.
14195finish_eval=$lt_finish_eval
14196
14197# Whether we should hardcode library paths into libraries.
14198hardcode_into_libs=$hardcode_into_libs
14199
14200# Compile-time system search path for libraries.
14201sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14202
14203# Run-time system search path for libraries.
14204sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14205
14206# Whether dlopen is supported.
14207dlopen_support=$enable_dlopen
14208
14209# Whether dlopen of programs is supported.
14210dlopen_self=$enable_dlopen_self
14211
14212# Whether dlopen of statically linked programs is supported.
14213dlopen_self_static=$enable_dlopen_self_static
14214
14215# Commands to strip libraries.
14216old_striplib=$lt_old_striplib
14217striplib=$lt_striplib
14218
14219
14220# The linker used to build libraries.
14221LD=$lt_LD
14222
14223# Commands used to build an old-style archive.
14224old_archive_cmds=$lt_old_archive_cmds
14225
14226# A language specific compiler.
14227CC=$lt_compiler
14228
14229# Is the compiler the GNU compiler?
14230with_gcc=$GCC
14231
14232# Compiler flag to turn off builtin functions.
14233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14234
14235# How to pass a linker flag through the compiler.
14236wl=$lt_lt_prog_compiler_wl
14237
14238# Additional compiler flags for building library objects.
14239pic_flag=$lt_lt_prog_compiler_pic
14240
14241# Compiler flag to prevent dynamic linking.
14242link_static_flag=$lt_lt_prog_compiler_static
14243
14244# Does compiler simultaneously support -c and -o options?
14245compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14246
14247# Whether or not to add -lc for building shared libraries.
14248build_libtool_need_lc=$archive_cmds_need_lc
14249
14250# Whether or not to disallow shared libs when runtime libs are static.
14251allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14252
14253# Compiler flag to allow reflexive dlopens.
14254export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14255
14256# Compiler flag to generate shared objects directly from archives.
14257whole_archive_flag_spec=$lt_whole_archive_flag_spec
14258
14259# Whether the compiler copes with passing no objects directly.
14260compiler_needs_object=$lt_compiler_needs_object
14261
14262# Create an old-style archive from a shared archive.
14263old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14264
14265# Create a temporary old-style archive to link instead of a shared archive.
14266old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14267
14268# Commands used to build a shared archive.
14269archive_cmds=$lt_archive_cmds
14270archive_expsym_cmds=$lt_archive_expsym_cmds
14271
14272# Commands used to build a loadable module if different from building
14273# a shared archive.
14274module_cmds=$lt_module_cmds
14275module_expsym_cmds=$lt_module_expsym_cmds
14276
14277# Whether we are building with GNU ld or not.
14278with_gnu_ld=$lt_with_gnu_ld
14279
14280# Flag that allows shared libraries with undefined symbols to be built.
14281allow_undefined_flag=$lt_allow_undefined_flag
14282
14283# Flag that enforces no undefined symbols.
14284no_undefined_flag=$lt_no_undefined_flag
14285
14286# Flag to hardcode \$libdir into a binary during linking.
14287# This must work even if \$libdir does not exist
14288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14289
14290# If ld is used when linking, flag to hardcode \$libdir into a binary
14291# during linking.  This must work even if \$libdir does not exist.
14292hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14293
14294# Whether we need a single "-rpath" flag with a separated argument.
14295hardcode_libdir_separator=$lt_hardcode_libdir_separator
14296
14297# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14298# DIR into the resulting binary.
14299hardcode_direct=$hardcode_direct
14300
14301# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14302# DIR into the resulting binary and the resulting library dependency is
14303# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14304# library is relocated.
14305hardcode_direct_absolute=$hardcode_direct_absolute
14306
14307# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14308# into the resulting binary.
14309hardcode_minus_L=$hardcode_minus_L
14310
14311# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14312# into the resulting binary.
14313hardcode_shlibpath_var=$hardcode_shlibpath_var
14314
14315# Set to "yes" if building a shared library automatically hardcodes DIR
14316# into the library and all subsequent libraries and executables linked
14317# against it.
14318hardcode_automatic=$hardcode_automatic
14319
14320# Set to yes if linker adds runtime paths of dependent libraries
14321# to runtime path list.
14322inherit_rpath=$inherit_rpath
14323
14324# Whether libtool must link a program against all its dependency libraries.
14325link_all_deplibs=$link_all_deplibs
14326
14327# Fix the shell variable \$srcfile for the compiler.
14328fix_srcfile_path=$lt_fix_srcfile_path
14329
14330# Set to "yes" if exported symbols are required.
14331always_export_symbols=$always_export_symbols
14332
14333# The commands to list exported symbols.
14334export_symbols_cmds=$lt_export_symbols_cmds
14335
14336# Symbols that should not be listed in the preloaded symbols.
14337exclude_expsyms=$lt_exclude_expsyms
14338
14339# Symbols that must always be exported.
14340include_expsyms=$lt_include_expsyms
14341
14342# Commands necessary for linking programs (against libraries) with templates.
14343prelink_cmds=$lt_prelink_cmds
14344
14345# Specify filename containing input files.
14346file_list_spec=$lt_file_list_spec
14347
14348# How to hardcode a shared library path into an executable.
14349hardcode_action=$hardcode_action
14350
14351# ### END LIBTOOL CONFIG
14352
14353_LT_EOF
14354
14355  case $host_os in
14356  aix3*)
14357    cat <<\_LT_EOF >> "$cfgfile"
14358# AIX sometimes has problems with the GCC collect2 program.  For some
14359# reason, if we set the COLLECT_NAMES environment variable, the problems
14360# vanish in a puff of smoke.
14361if test "X${COLLECT_NAMES+set}" != Xset; then
14362  COLLECT_NAMES=
14363  export COLLECT_NAMES
14364fi
14365_LT_EOF
14366    ;;
14367  esac
14368
14369
14370ltmain="$ac_aux_dir/ltmain.sh"
14371
14372
14373  # We use sed instead of cat because bash on DJGPP gets confused if
14374  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14375  # text mode, it properly converts lines to CR/LF.  This bash problem
14376  # is reportedly fixed, but why not run on old versions too?
14377  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14378    || (rm -f "$cfgfile"; exit 1)
14379
14380  case $xsi_shell in
14381  yes)
14382    cat << \_LT_EOF >> "$cfgfile"
14383
14384# func_dirname file append nondir_replacement
14385# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14386# otherwise set result to NONDIR_REPLACEMENT.
14387func_dirname ()
14388{
14389  case ${1} in
14390    */*) func_dirname_result="${1%/*}${2}" ;;
14391    *  ) func_dirname_result="${3}" ;;
14392  esac
14393}
14394
14395# func_basename file
14396func_basename ()
14397{
14398  func_basename_result="${1##*/}"
14399}
14400
14401# func_dirname_and_basename file append nondir_replacement
14402# perform func_basename and func_dirname in a single function
14403# call:
14404#   dirname:  Compute the dirname of FILE.  If nonempty,
14405#             add APPEND to the result, otherwise set result
14406#             to NONDIR_REPLACEMENT.
14407#             value returned in "$func_dirname_result"
14408#   basename: Compute filename of FILE.
14409#             value retuned in "$func_basename_result"
14410# Implementation must be kept synchronized with func_dirname
14411# and func_basename. For efficiency, we do not delegate to
14412# those functions but instead duplicate the functionality here.
14413func_dirname_and_basename ()
14414{
14415  case ${1} in
14416    */*) func_dirname_result="${1%/*}${2}" ;;
14417    *  ) func_dirname_result="${3}" ;;
14418  esac
14419  func_basename_result="${1##*/}"
14420}
14421
14422# func_stripname prefix suffix name
14423# strip PREFIX and SUFFIX off of NAME.
14424# PREFIX and SUFFIX must not contain globbing or regex special
14425# characters, hashes, percent signs, but SUFFIX may contain a leading
14426# dot (in which case that matches only a dot).
14427func_stripname ()
14428{
14429  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14430  # positional parameters, so assign one to ordinary parameter first.
14431  func_stripname_result=${3}
14432  func_stripname_result=${func_stripname_result#"${1}"}
14433  func_stripname_result=${func_stripname_result%"${2}"}
14434}
14435
14436# func_opt_split
14437func_opt_split ()
14438{
14439  func_opt_split_opt=${1%%=*}
14440  func_opt_split_arg=${1#*=}
14441}
14442
14443# func_lo2o object
14444func_lo2o ()
14445{
14446  case ${1} in
14447    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14448    *)    func_lo2o_result=${1} ;;
14449  esac
14450}
14451
14452# func_xform libobj-or-source
14453func_xform ()
14454{
14455  func_xform_result=${1%.*}.lo
14456}
14457
14458# func_arith arithmetic-term...
14459func_arith ()
14460{
14461  func_arith_result=$(( $* ))
14462}
14463
14464# func_len string
14465# STRING may not start with a hyphen.
14466func_len ()
14467{
14468  func_len_result=${#1}
14469}
14470
14471_LT_EOF
14472    ;;
14473  *) # Bourne compatible functions.
14474    cat << \_LT_EOF >> "$cfgfile"
14475
14476# func_dirname file append nondir_replacement
14477# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14478# otherwise set result to NONDIR_REPLACEMENT.
14479func_dirname ()
14480{
14481  # Extract subdirectory from the argument.
14482  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14483  if test "X$func_dirname_result" = "X${1}"; then
14484    func_dirname_result="${3}"
14485  else
14486    func_dirname_result="$func_dirname_result${2}"
14487  fi
14488}
14489
14490# func_basename file
14491func_basename ()
14492{
14493  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14494}
14495
14496
14497# func_stripname prefix suffix name
14498# strip PREFIX and SUFFIX off of NAME.
14499# PREFIX and SUFFIX must not contain globbing or regex special
14500# characters, hashes, percent signs, but SUFFIX may contain a leading
14501# dot (in which case that matches only a dot).
14502# func_strip_suffix prefix name
14503func_stripname ()
14504{
14505  case ${2} in
14506    .*) func_stripname_result=`$ECHO "X${3}" \
14507           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14508    *)  func_stripname_result=`$ECHO "X${3}" \
14509           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14510  esac
14511}
14512
14513# sed scripts:
14514my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14515my_sed_long_arg='1s/^-[^=]*=//'
14516
14517# func_opt_split
14518func_opt_split ()
14519{
14520  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14521  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14522}
14523
14524# func_lo2o object
14525func_lo2o ()
14526{
14527  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14528}
14529
14530# func_xform libobj-or-source
14531func_xform ()
14532{
14533  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14534}
14535
14536# func_arith arithmetic-term...
14537func_arith ()
14538{
14539  func_arith_result=`expr "$@"`
14540}
14541
14542# func_len string
14543# STRING may not start with a hyphen.
14544func_len ()
14545{
14546  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14547}
14548
14549_LT_EOF
14550esac
14551
14552case $lt_shell_append in
14553  yes)
14554    cat << \_LT_EOF >> "$cfgfile"
14555
14556# func_append var value
14557# Append VALUE to the end of shell variable VAR.
14558func_append ()
14559{
14560  eval "$1+=\$2"
14561}
14562_LT_EOF
14563    ;;
14564  *)
14565    cat << \_LT_EOF >> "$cfgfile"
14566
14567# func_append var value
14568# Append VALUE to the end of shell variable VAR.
14569func_append ()
14570{
14571  eval "$1=\$$1\$2"
14572}
14573
14574_LT_EOF
14575    ;;
14576  esac
14577
14578
14579  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14580    || (rm -f "$cfgfile"; exit 1)
14581
14582  mv -f "$cfgfile" "$ofile" ||
14583    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14584  chmod +x "$ofile"
14585
14586 ;;
14587
14588  esac
14589done # for ac_tag
14590
14591
14592as_fn_exit 0
14593_ACEOF
14594ac_clean_files=$ac_clean_files_save
14595
14596test $ac_write_fail = 0 ||
14597  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14598
14599
14600# configure is writing to config.log, and then calls config.status.
14601# config.status does its own redirection, appending to config.log.
14602# Unfortunately, on DOS this fails, as config.log is still kept open
14603# by configure, so config.status won't be able to write to it; its
14604# output is simply discarded.  So we exec the FD to /dev/null,
14605# effectively closing config.log, so it can be properly (re)opened and
14606# appended to by config.status.  When coming back to configure, we
14607# need to make the FD available again.
14608if test "$no_create" != yes; then
14609  ac_cs_success=:
14610  ac_config_status_args=
14611  test "$silent" = yes &&
14612    ac_config_status_args="$ac_config_status_args --quiet"
14613  exec 5>/dev/null
14614  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14615  exec 5>>config.log
14616  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14617  # would make configure fail if this is the last instruction.
14618  $ac_cs_success || as_fn_exit $?
14619fi
14620if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14621  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14622$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14623fi
14624
14625