configure revision 3e256790
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for libXi 1.3.2.
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='libXi'
704PACKAGE_TARNAME='libXi'
705PACKAGE_VERSION='1.3.2'
706PACKAGE_STRING='libXi 1.3.2'
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
753INSTALL_MANPAGES_FALSE
754INSTALL_MANPAGES_TRUE
755HAVE_DOCTOOLS_FALSE
756HAVE_DOCTOOLS_TRUE
757ASCIIDOC
758XMLTO
759XI_LIBS
760XI_CFLAGS
761OTOOL64
762OTOOL
763LIPO
764NMEDIT
765DSYMUTIL
766lt_ECHO
767RANLIB
768AR
769OBJDUMP
770LN_S
771NM
772ac_ct_DUMPBIN
773DUMPBIN
774LD
775FGREP
776LIBTOOL
777AM_BACKSLASH
778AM_DEFAULT_VERBOSITY
779MAN_SUBSTS
780XORG_MAN_PAGE
781ADMIN_MAN_DIR
782DRIVER_MAN_DIR
783MISC_MAN_DIR
784FILE_MAN_DIR
785LIB_MAN_DIR
786APP_MAN_DIR
787ADMIN_MAN_SUFFIX
788DRIVER_MAN_SUFFIX
789MISC_MAN_SUFFIX
790FILE_MAN_SUFFIX
791LIB_MAN_SUFFIX
792APP_MAN_SUFFIX
793SED
794host_os
795host_vendor
796host_cpu
797host
798build_os
799build_vendor
800build_cpu
801build
802INSTALL_CMD
803PKG_CONFIG
804CHANGELOG_CMD
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_strict_compilation
895enable_silent_rules
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900with_gnu_ld
901enable_libtool_lock
902enable_malloc0returnsnull
903'
904      ac_precious_vars='build_alias
905host_alias
906target_alias
907CC
908CFLAGS
909LDFLAGS
910LIBS
911CPPFLAGS
912CPP
913PKG_CONFIG
914XI_CFLAGS
915XI_LIBS
916XMLTO
917ASCIIDOC'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923ac_unrecognized_opts=
924ac_unrecognized_sep=
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972  # If the previous option needs an argument, assign it.
973  if test -n "$ac_prev"; then
974    eval $ac_prev=\$ac_option
975    ac_prev=
976    continue
977  fi
978
979  case $ac_option in
980  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981  *)	ac_optarg=yes ;;
982  esac
983
984  # Accept the important Cygnus configure options, so we can diagnose typos.
985
986  case $ac_dashdash$ac_option in
987  --)
988    ac_dashdash=yes ;;
989
990  -bindir | --bindir | --bindi | --bind | --bin | --bi)
991    ac_prev=bindir ;;
992  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993    bindir=$ac_optarg ;;
994
995  -build | --build | --buil | --bui | --bu)
996    ac_prev=build_alias ;;
997  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998    build_alias=$ac_optarg ;;
999
1000  -cache-file | --cache-file | --cache-fil | --cache-fi \
1001  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002    ac_prev=cache_file ;;
1003  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005    cache_file=$ac_optarg ;;
1006
1007  --config-cache | -C)
1008    cache_file=config.cache ;;
1009
1010  -datadir | --datadir | --datadi | --datad)
1011    ac_prev=datadir ;;
1012  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013    datadir=$ac_optarg ;;
1014
1015  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016  | --dataroo | --dataro | --datar)
1017    ac_prev=datarootdir ;;
1018  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020    datarootdir=$ac_optarg ;;
1021
1022  -disable-* | --disable-*)
1023    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026      as_fn_error "invalid feature name: $ac_useropt"
1027    ac_useropt_orig=$ac_useropt
1028    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029    case $ac_user_opts in
1030      *"
1031"enable_$ac_useropt"
1032"*) ;;
1033      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034	 ac_unrecognized_sep=', ';;
1035    esac
1036    eval enable_$ac_useropt=no ;;
1037
1038  -docdir | --docdir | --docdi | --doc | --do)
1039    ac_prev=docdir ;;
1040  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041    docdir=$ac_optarg ;;
1042
1043  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044    ac_prev=dvidir ;;
1045  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046    dvidir=$ac_optarg ;;
1047
1048  -enable-* | --enable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066  | --exec | --exe | --ex)
1067    ac_prev=exec_prefix ;;
1068  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070  | --exec=* | --exe=* | --ex=*)
1071    exec_prefix=$ac_optarg ;;
1072
1073  -gas | --gas | --ga | --g)
1074    # Obsolete; use --with-gas.
1075    with_gas=yes ;;
1076
1077  -help | --help | --hel | --he | -h)
1078    ac_init_help=long ;;
1079  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080    ac_init_help=recursive ;;
1081  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082    ac_init_help=short ;;
1083
1084  -host | --host | --hos | --ho)
1085    ac_prev=host_alias ;;
1086  -host=* | --host=* | --hos=* | --ho=*)
1087    host_alias=$ac_optarg ;;
1088
1089  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090    ac_prev=htmldir ;;
1091  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092  | --ht=*)
1093    htmldir=$ac_optarg ;;
1094
1095  -includedir | --includedir | --includedi | --included | --include \
1096  | --includ | --inclu | --incl | --inc)
1097    ac_prev=includedir ;;
1098  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099  | --includ=* | --inclu=* | --incl=* | --inc=*)
1100    includedir=$ac_optarg ;;
1101
1102  -infodir | --infodir | --infodi | --infod | --info | --inf)
1103    ac_prev=infodir ;;
1104  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105    infodir=$ac_optarg ;;
1106
1107  -libdir | --libdir | --libdi | --libd)
1108    ac_prev=libdir ;;
1109  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110    libdir=$ac_optarg ;;
1111
1112  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113  | --libexe | --libex | --libe)
1114    ac_prev=libexecdir ;;
1115  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116  | --libexe=* | --libex=* | --libe=*)
1117    libexecdir=$ac_optarg ;;
1118
1119  -localedir | --localedir | --localedi | --localed | --locale)
1120    ac_prev=localedir ;;
1121  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122    localedir=$ac_optarg ;;
1123
1124  -localstatedir | --localstatedir | --localstatedi | --localstated \
1125  | --localstate | --localstat | --localsta | --localst | --locals)
1126    ac_prev=localstatedir ;;
1127  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129    localstatedir=$ac_optarg ;;
1130
1131  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132    ac_prev=mandir ;;
1133  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134    mandir=$ac_optarg ;;
1135
1136  -nfp | --nfp | --nf)
1137    # Obsolete; use --without-fp.
1138    with_fp=no ;;
1139
1140  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141  | --no-cr | --no-c | -n)
1142    no_create=yes ;;
1143
1144  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146    no_recursion=yes ;;
1147
1148  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150  | --oldin | --oldi | --old | --ol | --o)
1151    ac_prev=oldincludedir ;;
1152  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155    oldincludedir=$ac_optarg ;;
1156
1157  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158    ac_prev=prefix ;;
1159  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160    prefix=$ac_optarg ;;
1161
1162  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163  | --program-pre | --program-pr | --program-p)
1164    ac_prev=program_prefix ;;
1165  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167    program_prefix=$ac_optarg ;;
1168
1169  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170  | --program-suf | --program-su | --program-s)
1171    ac_prev=program_suffix ;;
1172  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174    program_suffix=$ac_optarg ;;
1175
1176  -program-transform-name | --program-transform-name \
1177  | --program-transform-nam | --program-transform-na \
1178  | --program-transform-n | --program-transform- \
1179  | --program-transform | --program-transfor \
1180  | --program-transfo | --program-transf \
1181  | --program-trans | --program-tran \
1182  | --progr-tra | --program-tr | --program-t)
1183    ac_prev=program_transform_name ;;
1184  -program-transform-name=* | --program-transform-name=* \
1185  | --program-transform-nam=* | --program-transform-na=* \
1186  | --program-transform-n=* | --program-transform-=* \
1187  | --program-transform=* | --program-transfor=* \
1188  | --program-transfo=* | --program-transf=* \
1189  | --program-trans=* | --program-tran=* \
1190  | --progr-tra=* | --program-tr=* | --program-t=*)
1191    program_transform_name=$ac_optarg ;;
1192
1193  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194    ac_prev=pdfdir ;;
1195  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196    pdfdir=$ac_optarg ;;
1197
1198  -psdir | --psdir | --psdi | --psd | --ps)
1199    ac_prev=psdir ;;
1200  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201    psdir=$ac_optarg ;;
1202
1203  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204  | -silent | --silent | --silen | --sile | --sil)
1205    silent=yes ;;
1206
1207  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208    ac_prev=sbindir ;;
1209  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210  | --sbi=* | --sb=*)
1211    sbindir=$ac_optarg ;;
1212
1213  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215  | --sharedst | --shareds | --shared | --share | --shar \
1216  | --sha | --sh)
1217    ac_prev=sharedstatedir ;;
1218  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221  | --sha=* | --sh=*)
1222    sharedstatedir=$ac_optarg ;;
1223
1224  -site | --site | --sit)
1225    ac_prev=site ;;
1226  -site=* | --site=* | --sit=*)
1227    site=$ac_optarg ;;
1228
1229  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230    ac_prev=srcdir ;;
1231  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232    srcdir=$ac_optarg ;;
1233
1234  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235  | --syscon | --sysco | --sysc | --sys | --sy)
1236    ac_prev=sysconfdir ;;
1237  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239    sysconfdir=$ac_optarg ;;
1240
1241  -target | --target | --targe | --targ | --tar | --ta | --t)
1242    ac_prev=target_alias ;;
1243  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244    target_alias=$ac_optarg ;;
1245
1246  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247    verbose=yes ;;
1248
1249  -version | --version | --versio | --versi | --vers | -V)
1250    ac_init_version=: ;;
1251
1252  -with-* | --with-*)
1253    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256      as_fn_error "invalid package name: $ac_useropt"
1257    ac_useropt_orig=$ac_useropt
1258    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259    case $ac_user_opts in
1260      *"
1261"with_$ac_useropt"
1262"*) ;;
1263      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264	 ac_unrecognized_sep=', ';;
1265    esac
1266    eval with_$ac_useropt=\$ac_optarg ;;
1267
1268  -without-* | --without-*)
1269    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270    # Reject names that are not valid shell variable names.
1271    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272      as_fn_error "invalid package name: $ac_useropt"
1273    ac_useropt_orig=$ac_useropt
1274    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275    case $ac_user_opts in
1276      *"
1277"with_$ac_useropt"
1278"*) ;;
1279      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280	 ac_unrecognized_sep=', ';;
1281    esac
1282    eval with_$ac_useropt=no ;;
1283
1284  --x)
1285    # Obsolete; use --with-x.
1286    with_x=yes ;;
1287
1288  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289  | --x-incl | --x-inc | --x-in | --x-i)
1290    ac_prev=x_includes ;;
1291  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293    x_includes=$ac_optarg ;;
1294
1295  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297    ac_prev=x_libraries ;;
1298  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300    x_libraries=$ac_optarg ;;
1301
1302  -*) as_fn_error "unrecognized option: \`$ac_option'
1303Try \`$0 --help' for more information."
1304    ;;
1305
1306  *=*)
1307    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308    # Reject names that are not valid shell variable names.
1309    case $ac_envvar in #(
1310      '' | [0-9]* | *[!_$as_cr_alnum]* )
1311      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1312    esac
1313    eval $ac_envvar=\$ac_optarg
1314    export $ac_envvar ;;
1315
1316  *)
1317    # FIXME: should be removed in autoconf 3.0.
1318    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322    ;;
1323
1324  esac
1325done
1326
1327if test -n "$ac_prev"; then
1328  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329  as_fn_error "missing argument to $ac_option"
1330fi
1331
1332if test -n "$ac_unrecognized_opts"; then
1333  case $enable_option_checking in
1334    no) ;;
1335    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1336    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337  esac
1338fi
1339
1340# Check all directory arguments for consistency.
1341for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342		datadir sysconfdir sharedstatedir localstatedir includedir \
1343		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344		libdir localedir mandir
1345do
1346  eval ac_val=\$$ac_var
1347  # Remove trailing slashes.
1348  case $ac_val in
1349    */ )
1350      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351      eval $ac_var=\$ac_val;;
1352  esac
1353  # Be sure to have absolute directory names.
1354  case $ac_val in
1355    [\\/$]* | ?:[\\/]* )  continue;;
1356    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357  esac
1358  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370  if test "x$build_alias" = x; then
1371    cross_compiling=maybe
1372    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373    If a cross compiler is detected then cross compile mode will be used." >&2
1374  elif test "x$build_alias" != "x$host_alias"; then
1375    cross_compiling=yes
1376  fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388  as_fn_error "working directory cannot be determined"
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390  as_fn_error "pwd does not report name of working directory"
1391
1392
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395  ac_srcdir_defaulted=yes
1396  # Try the directory containing this script, then the parent directory.
1397  ac_confdir=`$as_dirname -- "$as_myself" ||
1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399	 X"$as_myself" : 'X\(//\)[^/]' \| \
1400	 X"$as_myself" : 'X\(//\)$' \| \
1401	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402$as_echo X"$as_myself" |
1403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\/\)[^/].*/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)$/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\).*/{
1416	    s//\1/
1417	    q
1418	  }
1419	  s/.*/./; q'`
1420  srcdir=$ac_confdir
1421  if test ! -r "$srcdir/$ac_unique_file"; then
1422    srcdir=..
1423  fi
1424else
1425  ac_srcdir_defaulted=no
1426fi
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1430fi
1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1434	pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437  srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447  eval ac_env_${ac_var}_value=\$${ac_var}
1448  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456  # Omit some internal or obsolete options to make the list less imposing.
1457  # This message is too long to be a string in the A/UX 3.1 sh.
1458  cat <<_ACEOF
1459\`configure' configures libXi 1.3.2 to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469  -h, --help              display this help and exit
1470      --help=short        display options specific to this package
1471      --help=recursive    display the short help of all the included packages
1472  -V, --version           display version information and exit
1473  -q, --quiet, --silent   do not print \`checking...' messages
1474      --cache-file=FILE   cache test results in FILE [disabled]
1475  -C, --config-cache      alias for \`--cache-file=config.cache'
1476  -n, --no-create         do not create output files
1477      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479Installation directories:
1480  --prefix=PREFIX         install architecture-independent files in PREFIX
1481                          [$ac_default_prefix]
1482  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                          [PREFIX]
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
1493  --bindir=DIR            user executables [EPREFIX/bin]
1494  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1495  --libexecdir=DIR        program executables [EPREFIX/libexec]
1496  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1497  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1498  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1499  --libdir=DIR            object code libraries [EPREFIX/lib]
1500  --includedir=DIR        C header files [PREFIX/include]
1501  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1502  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1503  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1504  --infodir=DIR           info documentation [DATAROOTDIR/info]
1505  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1506  --mandir=DIR            man documentation [DATAROOTDIR/man]
1507  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXi]
1508  --htmldir=DIR           html documentation [DOCDIR]
1509  --dvidir=DIR            dvi documentation [DOCDIR]
1510  --pdfdir=DIR            pdf documentation [DOCDIR]
1511  --psdir=DIR             ps documentation [DOCDIR]
1512_ACEOF
1513
1514  cat <<\_ACEOF
1515
1516Program names:
1517  --program-prefix=PREFIX            prepend PREFIX to installed program names
1518  --program-suffix=SUFFIX            append SUFFIX to installed program names
1519  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1520
1521System types:
1522  --build=BUILD     configure for building on BUILD [guessed]
1523  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528  case $ac_init_help in
1529     short | recursive ) echo "Configuration of libXi 1.3.2:";;
1530   esac
1531  cat <<\_ACEOF
1532
1533Optional Features:
1534  --disable-option-checking  ignore unrecognized --enable/--with options
1535  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1536  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1537  --enable-maintainer-mode  enable make rules and dependencies not useful
1538			  (and sometimes confusing) to the casual installer
1539  --disable-dependency-tracking  speeds up one-time build
1540  --enable-dependency-tracking   do not reject slow dependency extractors
1541  --enable-strict-compilation
1542                          Enable all warnings from compiler and make them
1543                          errors (default: disabled)
1544  --enable-silent-rules          less verbose build output (undo: `make V=1')
1545  --disable-silent-rules         verbose build output (undo: `make V=0')
1546  --enable-shared[=PKGS]  build shared libraries [default=yes]
1547  --enable-static[=PKGS]  build static libraries [default=yes]
1548  --enable-fast-install[=PKGS]
1549                          optimize for fast installation [default=yes]
1550  --disable-libtool-lock  avoid locking (might break parallel builds)
1551  --enable-malloc0returnsnull
1552                          malloc(0) returns NULL (default: auto)
1553
1554Optional Packages:
1555  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557  --with-pic              try to use only PIC/non-PIC objects [default=use
1558                          both]
1559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560
1561Some influential environment variables:
1562  CC          C compiler command
1563  CFLAGS      C compiler flags
1564  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1565              nonstandard directory <lib dir>
1566  LIBS        libraries to pass to the linker, e.g. -l<library>
1567  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568              you have headers in a nonstandard directory <include dir>
1569  CPP         C preprocessor
1570  PKG_CONFIG  path to pkg-config utility
1571  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1572  XI_LIBS     linker flags for XI, overriding pkg-config
1573  XMLTO       Path to xmlto command
1574  ASCIIDOC    Path to asciidoc command
1575
1576Use these variables to override the choices made by `configure' or to help
1577it to find libraries and programs with nonstandard names/locations.
1578
1579Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1580_ACEOF
1581ac_status=$?
1582fi
1583
1584if test "$ac_init_help" = "recursive"; then
1585  # If there are subdirs, report their specific --help.
1586  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587    test -d "$ac_dir" ||
1588      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589      continue
1590    ac_builddir=.
1591
1592case "$ac_dir" in
1593.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594*)
1595  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596  # A ".." for each directory in $ac_dir_suffix.
1597  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598  case $ac_top_builddir_sub in
1599  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601  esac ;;
1602esac
1603ac_abs_top_builddir=$ac_pwd
1604ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605# for backward compatibility:
1606ac_top_builddir=$ac_top_build_prefix
1607
1608case $srcdir in
1609  .)  # We are building in place.
1610    ac_srcdir=.
1611    ac_top_srcdir=$ac_top_builddir_sub
1612    ac_abs_top_srcdir=$ac_pwd ;;
1613  [\\/]* | ?:[\\/]* )  # Absolute name.
1614    ac_srcdir=$srcdir$ac_dir_suffix;
1615    ac_top_srcdir=$srcdir
1616    ac_abs_top_srcdir=$srcdir ;;
1617  *) # Relative name.
1618    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619    ac_top_srcdir=$ac_top_build_prefix$srcdir
1620    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621esac
1622ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
1624    cd "$ac_dir" || { ac_status=$?; continue; }
1625    # Check for guested configure.
1626    if test -f "$ac_srcdir/configure.gnu"; then
1627      echo &&
1628      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629    elif test -f "$ac_srcdir/configure"; then
1630      echo &&
1631      $SHELL "$ac_srcdir/configure" --help=recursive
1632    else
1633      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634    fi || ac_status=$?
1635    cd "$ac_pwd" || { ac_status=$?; break; }
1636  done
1637fi
1638
1639test -n "$ac_init_help" && exit $ac_status
1640if $ac_init_version; then
1641  cat <<\_ACEOF
1642libXi configure 1.3.2
1643generated by GNU Autoconf 2.65
1644
1645Copyright (C) 2009 Free Software Foundation, Inc.
1646This configure script is free software; the Free Software Foundation
1647gives unlimited permission to copy, distribute and modify it.
1648_ACEOF
1649  exit
1650fi
1651
1652## ------------------------ ##
1653## Autoconf initialization. ##
1654## ------------------------ ##
1655
1656# ac_fn_c_try_compile LINENO
1657# --------------------------
1658# Try to compile conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  rm -f conftest.$ac_objext
1663  if { { ac_try="$ac_compile"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_compile") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } && {
1679	 test -z "$ac_c_werror_flag" ||
1680	 test ! -s conftest.err
1681       } && test -s conftest.$ac_objext; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687	ac_retval=1
1688fi
1689  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_compile
1693
1694# ac_fn_c_check_decl LINENO SYMBOL VAR
1695# ------------------------------------
1696# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1697ac_fn_c_check_decl ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1701$as_echo_n "checking whether $2 is declared... " >&6; }
1702if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703  $as_echo_n "(cached) " >&6
1704else
1705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708int
1709main ()
1710{
1711#ifndef $2
1712  (void) $2;
1713#endif
1714
1715  ;
1716  return 0;
1717}
1718_ACEOF
1719if ac_fn_c_try_compile "$LINENO"; then :
1720  eval "$3=yes"
1721else
1722  eval "$3=no"
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725fi
1726eval ac_res=\$$3
1727	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728$as_echo "$ac_res" >&6; }
1729  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730
1731} # ac_fn_c_check_decl
1732
1733# ac_fn_c_try_cpp LINENO
1734# ----------------------
1735# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_c_try_cpp ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  if { { ac_try="$ac_cpp conftest.$ac_ext"
1740case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747  ac_status=$?
1748  if test -s conftest.err; then
1749    grep -v '^ *+' conftest.err >conftest.er1
1750    cat conftest.er1 >&5
1751    mv -f conftest.er1 conftest.err
1752  fi
1753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; } >/dev/null && {
1755	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756	 test ! -s conftest.err
1757       }; then :
1758  ac_retval=0
1759else
1760  $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763    ac_retval=1
1764fi
1765  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766  as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_cpp
1769
1770# ac_fn_c_try_run LINENO
1771# ----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773# that executables *can* be run.
1774ac_fn_c_try_run ()
1775{
1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777  if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780  *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784  (eval "$ac_link") 2>&5
1785  ac_status=$?
1786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788  { { case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_try") 2>&5
1795  ac_status=$?
1796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797  test $ac_status = 0; }; }; then :
1798  ac_retval=0
1799else
1800  $as_echo "$as_me: program exited with status $ac_status" >&5
1801       $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804       ac_retval=$ac_status
1805fi
1806  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_run
1811
1812# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1813# -------------------------------------------------------
1814# Tests whether HEADER exists and can be compiled using the include files in
1815# INCLUDES, setting the cache variable VAR accordingly.
1816ac_fn_c_check_header_compile ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826$4
1827#include <$2>
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"; then :
1830  eval "$3=yes"
1831else
1832  eval "$3=no"
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835fi
1836eval ac_res=\$$3
1837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
1839  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840
1841} # ac_fn_c_check_header_compile
1842
1843# ac_fn_c_try_link LINENO
1844# -----------------------
1845# Try to link conftest.$ac_ext, and return whether this succeeded.
1846ac_fn_c_try_link ()
1847{
1848  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849  rm -f conftest.$ac_objext conftest$ac_exeext
1850  if { { ac_try="$ac_link"
1851case "(($ac_try" in
1852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853  *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857  (eval "$ac_link") 2>conftest.err
1858  ac_status=$?
1859  if test -s conftest.err; then
1860    grep -v '^ *+' conftest.err >conftest.er1
1861    cat conftest.er1 >&5
1862    mv -f conftest.er1 conftest.err
1863  fi
1864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865  test $ac_status = 0; } && {
1866	 test -z "$ac_c_werror_flag" ||
1867	 test ! -s conftest.err
1868       } && test -s conftest$ac_exeext && {
1869	 test "$cross_compiling" = yes ||
1870	 $as_test_x conftest$ac_exeext
1871       }; then :
1872  ac_retval=0
1873else
1874  $as_echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877	ac_retval=1
1878fi
1879  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1880  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1881  # interfere with the next link command; also delete a directory that is
1882  # left behind by Apple's compiler.  We do this before executing the actions.
1883  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885  as_fn_set_status $ac_retval
1886
1887} # ac_fn_c_try_link
1888
1889# ac_fn_c_check_func LINENO FUNC VAR
1890# ----------------------------------
1891# Tests whether FUNC exists, setting the cache variable VAR accordingly
1892ac_fn_c_check_func ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898  $as_echo_n "(cached) " >&6
1899else
1900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1904#define $2 innocuous_$2
1905
1906/* System header to define __stub macros and hopefully few prototypes,
1907    which can conflict with char $2 (); below.
1908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909    <limits.h> exists even on freestanding compilers.  */
1910
1911#ifdef __STDC__
1912# include <limits.h>
1913#else
1914# include <assert.h>
1915#endif
1916
1917#undef $2
1918
1919/* Override any GCC internal prototype to avoid an error.
1920   Use char because int might match the return type of a GCC
1921   builtin and then its argument prototype would still apply.  */
1922#ifdef __cplusplus
1923extern "C"
1924#endif
1925char $2 ();
1926/* The GNU C library defines this for functions which it implements
1927    to always fail with ENOSYS.  Some functions are actually named
1928    something starting with __ and the normal name is an alias.  */
1929#if defined __stub_$2 || defined __stub___$2
1930choke me
1931#endif
1932
1933int
1934main ()
1935{
1936return $2 ();
1937  ;
1938  return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_link "$LINENO"; then :
1942  eval "$3=yes"
1943else
1944  eval "$3=no"
1945fi
1946rm -f core conftest.err conftest.$ac_objext \
1947    conftest$ac_exeext conftest.$ac_ext
1948fi
1949eval ac_res=\$$3
1950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
1954} # ac_fn_c_check_func
1955cat >config.log <<_ACEOF
1956This file contains any messages produced by compilers while
1957running configure, to aid debugging if configure makes a mistake.
1958
1959It was created by libXi $as_me 1.3.2, which was
1960generated by GNU Autoconf 2.65.  Invocation command line was
1961
1962  $ $0 $@
1963
1964_ACEOF
1965exec 5>>config.log
1966{
1967cat <<_ASUNAME
1968## --------- ##
1969## Platform. ##
1970## --------- ##
1971
1972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977
1978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1980
1981/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1982/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1985/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1986/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1987/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1988
1989_ASUNAME
1990
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994  IFS=$as_save_IFS
1995  test -z "$as_dir" && as_dir=.
1996    $as_echo "PATH: $as_dir"
1997  done
1998IFS=$as_save_IFS
1999
2000} >&5
2001
2002cat >&5 <<_ACEOF
2003
2004
2005## ----------- ##
2006## Core tests. ##
2007## ----------- ##
2008
2009_ACEOF
2010
2011
2012# Keep a trace of the command line.
2013# Strip out --no-create and --no-recursion so they do not pile up.
2014# Strip out --silent because we don't want to record it for future runs.
2015# Also quote any args containing shell meta-characters.
2016# Make two passes to allow for proper duplicate-argument suppression.
2017ac_configure_args=
2018ac_configure_args0=
2019ac_configure_args1=
2020ac_must_keep_next=false
2021for ac_pass in 1 2
2022do
2023  for ac_arg
2024  do
2025    case $ac_arg in
2026    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028    | -silent | --silent | --silen | --sile | --sil)
2029      continue ;;
2030    *\'*)
2031      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032    esac
2033    case $ac_pass in
2034    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035    2)
2036      as_fn_append ac_configure_args1 " '$ac_arg'"
2037      if test $ac_must_keep_next = true; then
2038	ac_must_keep_next=false # Got value, back to normal.
2039      else
2040	case $ac_arg in
2041	  *=* | --config-cache | -C | -disable-* | --disable-* \
2042	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044	  | -with-* | --with-* | -without-* | --without-* | --x)
2045	    case "$ac_configure_args0 " in
2046	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047	    esac
2048	    ;;
2049	  -* ) ac_must_keep_next=true ;;
2050	esac
2051      fi
2052      as_fn_append ac_configure_args " '$ac_arg'"
2053      ;;
2054    esac
2055  done
2056done
2057{ ac_configure_args0=; unset ac_configure_args0;}
2058{ ac_configure_args1=; unset ac_configure_args1;}
2059
2060# When interrupted or exit'd, cleanup temporary files, and complete
2061# config.log.  We remove comments because anyway the quotes in there
2062# would cause problems or look ugly.
2063# WARNING: Use '\'' to represent an apostrophe within the trap.
2064# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065trap 'exit_status=$?
2066  # Save into config.log some information that might help in debugging.
2067  {
2068    echo
2069
2070    cat <<\_ASBOX
2071## ---------------- ##
2072## Cache variables. ##
2073## ---------------- ##
2074_ASBOX
2075    echo
2076    # The following way of writing the cache mishandles newlines in values,
2077(
2078  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2079    eval ac_val=\$$ac_var
2080    case $ac_val in #(
2081    *${as_nl}*)
2082      case $ac_var in #(
2083      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2084$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2085      esac
2086      case $ac_var in #(
2087      _ | IFS | as_nl) ;; #(
2088      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2089      *) { eval $ac_var=; unset $ac_var;} ;;
2090      esac ;;
2091    esac
2092  done
2093  (set) 2>&1 |
2094    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2095    *${as_nl}ac_space=\ *)
2096      sed -n \
2097	"s/'\''/'\''\\\\'\'''\''/g;
2098	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2099      ;; #(
2100    *)
2101      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2102      ;;
2103    esac |
2104    sort
2105)
2106    echo
2107
2108    cat <<\_ASBOX
2109## ----------------- ##
2110## Output variables. ##
2111## ----------------- ##
2112_ASBOX
2113    echo
2114    for ac_var in $ac_subst_vars
2115    do
2116      eval ac_val=\$$ac_var
2117      case $ac_val in
2118      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119      esac
2120      $as_echo "$ac_var='\''$ac_val'\''"
2121    done | sort
2122    echo
2123
2124    if test -n "$ac_subst_files"; then
2125      cat <<\_ASBOX
2126## ------------------- ##
2127## File substitutions. ##
2128## ------------------- ##
2129_ASBOX
2130      echo
2131      for ac_var in $ac_subst_files
2132      do
2133	eval ac_val=\$$ac_var
2134	case $ac_val in
2135	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136	esac
2137	$as_echo "$ac_var='\''$ac_val'\''"
2138      done | sort
2139      echo
2140    fi
2141
2142    if test -s confdefs.h; then
2143      cat <<\_ASBOX
2144## ----------- ##
2145## confdefs.h. ##
2146## ----------- ##
2147_ASBOX
2148      echo
2149      cat confdefs.h
2150      echo
2151    fi
2152    test "$ac_signal" != 0 &&
2153      $as_echo "$as_me: caught signal $ac_signal"
2154    $as_echo "$as_me: exit $exit_status"
2155  } >&5
2156  rm -f core *.core core.conftest.* &&
2157    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2158    exit $exit_status
2159' 0
2160for ac_signal in 1 2 13 15; do
2161  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2162done
2163ac_signal=0
2164
2165# confdefs.h avoids OS command line length limits that DEFS can exceed.
2166rm -f -r conftest* confdefs.h
2167
2168$as_echo "/* confdefs.h */" > confdefs.h
2169
2170# Predefined preprocessor variables.
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_NAME "$PACKAGE_NAME"
2174_ACEOF
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_VERSION "$PACKAGE_VERSION"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_STRING "$PACKAGE_STRING"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_URL "$PACKAGE_URL"
2194_ACEOF
2195
2196
2197# Let the site file select an alternate cache file if it wants to.
2198# Prefer an explicitly selected file to automatically selected ones.
2199ac_site_file1=NONE
2200ac_site_file2=NONE
2201if test -n "$CONFIG_SITE"; then
2202  ac_site_file1=$CONFIG_SITE
2203elif test "x$prefix" != xNONE; then
2204  ac_site_file1=$prefix/share/config.site
2205  ac_site_file2=$prefix/etc/config.site
2206else
2207  ac_site_file1=$ac_default_prefix/share/config.site
2208  ac_site_file2=$ac_default_prefix/etc/config.site
2209fi
2210for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211do
2212  test "x$ac_site_file" = xNONE && continue
2213  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216    sed 's/^/| /' "$ac_site_file" >&5
2217    . "$ac_site_file"
2218  fi
2219done
2220
2221if test -r "$cache_file"; then
2222  # Some versions of bash will fail to source /dev/null (special files
2223  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2224  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226$as_echo "$as_me: loading cache $cache_file" >&6;}
2227    case $cache_file in
2228      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229      *)                      . "./$cache_file";;
2230    esac
2231  fi
2232else
2233  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234$as_echo "$as_me: creating cache $cache_file" >&6;}
2235  >$cache_file
2236fi
2237
2238# Check that the precious variables saved in the cache have kept the same
2239# value.
2240ac_cache_corrupted=false
2241for ac_var in $ac_precious_vars; do
2242  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243  eval ac_new_set=\$ac_env_${ac_var}_set
2244  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245  eval ac_new_val=\$ac_env_${ac_var}_value
2246  case $ac_old_set,$ac_new_set in
2247    set,)
2248      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250      ac_cache_corrupted=: ;;
2251    ,set)
2252      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254      ac_cache_corrupted=: ;;
2255    ,);;
2256    *)
2257      if test "x$ac_old_val" != "x$ac_new_val"; then
2258	# differences in whitespace do not lead to failure.
2259	ac_old_val_w=`echo x $ac_old_val`
2260	ac_new_val_w=`echo x $ac_new_val`
2261	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264	  ac_cache_corrupted=:
2265	else
2266	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268	  eval $ac_var=\$ac_old_val
2269	fi
2270	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2271$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2272	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2273$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2274      fi;;
2275  esac
2276  # Pass precious variables to config.status.
2277  if test "$ac_new_set" = set; then
2278    case $ac_new_val in
2279    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280    *) ac_arg=$ac_var=$ac_new_val ;;
2281    esac
2282    case " $ac_configure_args " in
2283      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2284      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285    esac
2286  fi
2287done
2288if $ac_cache_corrupted; then
2289  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2294fi
2295## -------------------- ##
2296## Main body of script. ##
2297## -------------------- ##
2298
2299ac_ext=c
2300ac_cpp='$CPP $CPPFLAGS'
2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306am__api_version='1.11'
2307
2308ac_aux_dir=
2309for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2310  for ac_t in install-sh install.sh shtool; do
2311    if test -f "$ac_dir/$ac_t"; then
2312      ac_aux_dir=$ac_dir
2313      ac_install_sh="$ac_aux_dir/$ac_t -c"
2314      break 2
2315    fi
2316  done
2317done
2318if test -z "$ac_aux_dir"; then
2319  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2320fi
2321
2322# These three variables are undocumented and unsupported,
2323# and are intended to be withdrawn in a future Autoconf release.
2324# They can cause serious problems if a builder's source tree is in a directory
2325# whose full name contains unusual characters.
2326ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2327ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2328ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2329
2330
2331# Find a good install program.  We prefer a C program (faster),
2332# so one script is as good as another.  But avoid the broken or
2333# incompatible versions:
2334# SysV /etc/install, /usr/sbin/install
2335# SunOS /usr/etc/install
2336# IRIX /sbin/install
2337# AIX /bin/install
2338# AmigaOS /C/install, which installs bootblocks on floppy discs
2339# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342# OS/2's system install, which has a completely different semantic
2343# ./install, which can be erroneously created by make from ./install.sh.
2344# Reject install programs that cannot install multiple files.
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2346$as_echo_n "checking for a BSD-compatible install... " >&6; }
2347if test -z "$INSTALL"; then
2348if test "${ac_cv_path_install+set}" = set; then :
2349  $as_echo_n "(cached) " >&6
2350else
2351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354  IFS=$as_save_IFS
2355  test -z "$as_dir" && as_dir=.
2356    # Account for people who put trailing slashes in PATH elements.
2357case $as_dir/ in #((
2358  ./ | .// | /[cC]/* | \
2359  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2360  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2361  /usr/ucb/* ) ;;
2362  *)
2363    # OSF1 and SCO ODT 3.0 have their own names for install.
2364    # Don't use installbsd from OSF since it installs stuff as root
2365    # by default.
2366    for ac_prog in ginstall scoinst install; do
2367      for ac_exec_ext in '' $ac_executable_extensions; do
2368	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2369	  if test $ac_prog = install &&
2370	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2371	    # AIX install.  It has an incompatible calling convention.
2372	    :
2373	  elif test $ac_prog = install &&
2374	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375	    # program-specific install script used by HP pwplus--don't use.
2376	    :
2377	  else
2378	    rm -rf conftest.one conftest.two conftest.dir
2379	    echo one > conftest.one
2380	    echo two > conftest.two
2381	    mkdir conftest.dir
2382	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2383	      test -s conftest.one && test -s conftest.two &&
2384	      test -s conftest.dir/conftest.one &&
2385	      test -s conftest.dir/conftest.two
2386	    then
2387	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2388	      break 3
2389	    fi
2390	  fi
2391	fi
2392      done
2393    done
2394    ;;
2395esac
2396
2397  done
2398IFS=$as_save_IFS
2399
2400rm -rf conftest.one conftest.two conftest.dir
2401
2402fi
2403  if test "${ac_cv_path_install+set}" = set; then
2404    INSTALL=$ac_cv_path_install
2405  else
2406    # As a last resort, use the slow shell script.  Don't cache a
2407    # value for INSTALL within a source directory, because that will
2408    # break other packages using the cache if that directory is
2409    # removed, or if the value is a relative name.
2410    INSTALL=$ac_install_sh
2411  fi
2412fi
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2414$as_echo "$INSTALL" >&6; }
2415
2416# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2417# It thinks the first close brace ends the variable substitution.
2418test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2419
2420test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2421
2422test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2423
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2425$as_echo_n "checking whether build environment is sane... " >&6; }
2426# Just in case
2427sleep 1
2428echo timestamp > conftest.file
2429# Reject unsafe characters in $srcdir or the absolute working directory
2430# name.  Accept space and tab only in the latter.
2431am_lf='
2432'
2433case `pwd` in
2434  *[\\\"\#\$\&\'\`$am_lf]*)
2435    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2436esac
2437case $srcdir in
2438  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2439    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2440esac
2441
2442# Do `set' in a subshell so we don't clobber the current shell's
2443# arguments.  Must try -L first in case configure is actually a
2444# symlink; some systems play weird games with the mod time of symlinks
2445# (eg FreeBSD returns the mod time of the symlink's containing
2446# directory).
2447if (
2448   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2449   if test "$*" = "X"; then
2450      # -L didn't work.
2451      set X `ls -t "$srcdir/configure" conftest.file`
2452   fi
2453   rm -f conftest.file
2454   if test "$*" != "X $srcdir/configure conftest.file" \
2455      && test "$*" != "X conftest.file $srcdir/configure"; then
2456
2457      # If neither matched, then we have a broken ls.  This can happen
2458      # if, for instance, CONFIG_SHELL is bash and it inherits a
2459      # broken ls alias from the environment.  This has actually
2460      # happened.  Such a system could not be considered "sane".
2461      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2462alias in your environment" "$LINENO" 5
2463   fi
2464
2465   test "$2" = conftest.file
2466   )
2467then
2468   # Ok.
2469   :
2470else
2471   as_fn_error "newly created file is older than distributed files!
2472Check your system clock" "$LINENO" 5
2473fi
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475$as_echo "yes" >&6; }
2476test "$program_prefix" != NONE &&
2477  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478# Use a double $ so make ignores it.
2479test "$program_suffix" != NONE &&
2480  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481# Double any \ or $.
2482# By default was `s,x,x', remove it if useless.
2483ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486# expand $ac_aux_dir to an absolute path
2487am_aux_dir=`cd $ac_aux_dir && pwd`
2488
2489if test x"${MISSING+set}" != xset; then
2490  case $am_aux_dir in
2491  *\ * | *\	*)
2492    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2493  *)
2494    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2495  esac
2496fi
2497# Use eval to expand $SHELL
2498if eval "$MISSING --run true"; then
2499  am_missing_run="$MISSING --run "
2500else
2501  am_missing_run=
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2503$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2504fi
2505
2506if test x"${install_sh}" != xset; then
2507  case $am_aux_dir in
2508  *\ * | *\	*)
2509    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2510  *)
2511    install_sh="\${SHELL} $am_aux_dir/install-sh"
2512  esac
2513fi
2514
2515# Installed binaries are usually stripped using `strip' when the user
2516# run `make install-strip'.  However `strip' might not be the right
2517# tool to use in cross-compilation environments, therefore Automake
2518# will honor the `STRIP' environment variable to overrule this program.
2519if test "$cross_compiling" != no; then
2520  if test -n "$ac_tool_prefix"; then
2521  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522set dummy ${ac_tool_prefix}strip; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if test "${ac_cv_prog_STRIP+set}" = set; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  if test -n "$STRIP"; then
2529  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534  IFS=$as_save_IFS
2535  test -z "$as_dir" && as_dir=.
2536    for ac_exec_ext in '' $ac_executable_extensions; do
2537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540    break 2
2541  fi
2542done
2543  done
2544IFS=$as_save_IFS
2545
2546fi
2547fi
2548STRIP=$ac_cv_prog_STRIP
2549if test -n "$STRIP"; then
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551$as_echo "$STRIP" >&6; }
2552else
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
2555fi
2556
2557
2558fi
2559if test -z "$ac_cv_prog_STRIP"; then
2560  ac_ct_STRIP=$STRIP
2561  # Extract the first word of "strip", so it can be a program name with args.
2562set dummy strip; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test -n "$ac_ct_STRIP"; then
2569  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_exec_ext in '' $ac_executable_extensions; do
2577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578    ac_cv_prog_ac_ct_STRIP="strip"
2579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583  done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589if test -n "$ac_ct_STRIP"; then
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591$as_echo "$ac_ct_STRIP" >&6; }
2592else
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597  if test "x$ac_ct_STRIP" = x; then
2598    STRIP=":"
2599  else
2600    case $cross_compiling:$ac_tool_warned in
2601yes:)
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604ac_tool_warned=yes ;;
2605esac
2606    STRIP=$ac_ct_STRIP
2607  fi
2608else
2609  STRIP="$ac_cv_prog_STRIP"
2610fi
2611
2612fi
2613INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2614
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617if test -z "$MKDIR_P"; then
2618  if test "${ac_cv_path_mkdir+set}" = set; then :
2619  $as_echo_n "(cached) " >&6
2620else
2621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_prog in mkdir gmkdir; do
2627	 for ac_exec_ext in '' $ac_executable_extensions; do
2628	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2629	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630	     'mkdir (GNU coreutils) '* | \
2631	     'mkdir (coreutils) '* | \
2632	     'mkdir (fileutils) '4.1*)
2633	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2634	       break 3;;
2635	   esac
2636	 done
2637       done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642
2643  test -d ./--version && rmdir ./--version
2644  if test "${ac_cv_path_mkdir+set}" = set; then
2645    MKDIR_P="$ac_cv_path_mkdir -p"
2646  else
2647    # As a last resort, use the slow shell script.  Don't cache a
2648    # value for MKDIR_P within a source directory, because that will
2649    # break other packages using the cache if that directory is
2650    # removed, or if the value is a relative name.
2651    MKDIR_P="$ac_install_sh -d"
2652  fi
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655$as_echo "$MKDIR_P" >&6; }
2656
2657mkdir_p="$MKDIR_P"
2658case $mkdir_p in
2659  [\\/$]* | ?:[\\/]*) ;;
2660  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2661esac
2662
2663for ac_prog in gawk mawk nawk awk
2664do
2665  # Extract the first word of "$ac_prog", so it can be a program name with args.
2666set dummy $ac_prog; ac_word=$2
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_AWK+set}" = set; then :
2670  $as_echo_n "(cached) " >&6
2671else
2672  if test -n "$AWK"; then
2673  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678  IFS=$as_save_IFS
2679  test -z "$as_dir" && as_dir=.
2680    for ac_exec_ext in '' $ac_executable_extensions; do
2681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682    ac_cv_prog_AWK="$ac_prog"
2683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684    break 2
2685  fi
2686done
2687  done
2688IFS=$as_save_IFS
2689
2690fi
2691fi
2692AWK=$ac_cv_prog_AWK
2693if test -n "$AWK"; then
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2695$as_echo "$AWK" >&6; }
2696else
2697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699fi
2700
2701
2702  test -n "$AWK" && break
2703done
2704
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2706$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2707set x ${MAKE-make}
2708ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2709if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  cat >conftest.make <<\_ACEOF
2713SHELL = /bin/sh
2714all:
2715	@echo '@@@%%%=$(MAKE)=@@@%%%'
2716_ACEOF
2717# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2718case `${MAKE-make} -f conftest.make 2>/dev/null` in
2719  *@@@%%%=?*=@@@%%%*)
2720    eval ac_cv_prog_make_${ac_make}_set=yes;;
2721  *)
2722    eval ac_cv_prog_make_${ac_make}_set=no;;
2723esac
2724rm -f conftest.make
2725fi
2726if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2728$as_echo "yes" >&6; }
2729  SET_MAKE=
2730else
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733  SET_MAKE="MAKE=${MAKE-make}"
2734fi
2735
2736rm -rf .tst 2>/dev/null
2737mkdir .tst 2>/dev/null
2738if test -d .tst; then
2739  am__leading_dot=.
2740else
2741  am__leading_dot=_
2742fi
2743rmdir .tst 2>/dev/null
2744
2745if test "`cd $srcdir && pwd`" != "`pwd`"; then
2746  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2747  # is not polluted with repeated "-I."
2748  am__isrc=' -I$(srcdir)'
2749  # test to see if srcdir already configured
2750  if test -f $srcdir/config.status; then
2751    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2752  fi
2753fi
2754
2755# test whether we have cygpath
2756if test -z "$CYGPATH_W"; then
2757  if (cygpath --version) >/dev/null 2>/dev/null; then
2758    CYGPATH_W='cygpath -w'
2759  else
2760    CYGPATH_W=echo
2761  fi
2762fi
2763
2764
2765# Define the identity of the package.
2766 PACKAGE='libXi'
2767 VERSION='1.3.2'
2768
2769
2770cat >>confdefs.h <<_ACEOF
2771#define PACKAGE "$PACKAGE"
2772_ACEOF
2773
2774
2775cat >>confdefs.h <<_ACEOF
2776#define VERSION "$VERSION"
2777_ACEOF
2778
2779# Some tools Automake needs.
2780
2781ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2782
2783
2784AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2785
2786
2787AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2788
2789
2790AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2791
2792
2793MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2794
2795# We need awk for the "check" target.  The system "awk" is bad on
2796# some platforms.
2797# Always define AMTAR for backward compatibility.
2798
2799AMTAR=${AMTAR-"${am_missing_run}tar"}
2800
2801am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2802
2803
2804
2805
2806
2807
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2809$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2810    # Check whether --enable-maintainer-mode was given.
2811if test "${enable_maintainer_mode+set}" = set; then :
2812  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2813else
2814  USE_MAINTAINER_MODE=no
2815fi
2816
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2818$as_echo "$USE_MAINTAINER_MODE" >&6; }
2819   if test $USE_MAINTAINER_MODE = yes; then
2820  MAINTAINER_MODE_TRUE=
2821  MAINTAINER_MODE_FALSE='#'
2822else
2823  MAINTAINER_MODE_TRUE='#'
2824  MAINTAINER_MODE_FALSE=
2825fi
2826
2827  MAINT=$MAINTAINER_MODE_TRUE
2828
2829
2830
2831# Require xorg-macros: XORG_DEFAULT_OPTIONS
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843DEPDIR="${am__leading_dot}deps"
2844
2845ac_config_commands="$ac_config_commands depfiles"
2846
2847
2848am_make=${MAKE-make}
2849cat > confinc << 'END'
2850am__doit:
2851	@echo this is the am__doit target
2852.PHONY: am__doit
2853END
2854# If we don't find an include directive, just comment out the code.
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2856$as_echo_n "checking for style of include used by $am_make... " >&6; }
2857am__include="#"
2858am__quote=
2859_am_result=none
2860# First try GNU make style include.
2861echo "include confinc" > confmf
2862# Ignore all kinds of additional output from `make'.
2863case `$am_make -s -f confmf 2> /dev/null` in #(
2864*the\ am__doit\ target*)
2865  am__include=include
2866  am__quote=
2867  _am_result=GNU
2868  ;;
2869esac
2870# Now try BSD make style include.
2871if test "$am__include" = "#"; then
2872   echo '.include "confinc"' > confmf
2873   case `$am_make -s -f confmf 2> /dev/null` in #(
2874   *the\ am__doit\ target*)
2875     am__include=.include
2876     am__quote="\""
2877     _am_result=BSD
2878     ;;
2879   esac
2880fi
2881
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2884$as_echo "$_am_result" >&6; }
2885rm -f confinc confmf
2886
2887# Check whether --enable-dependency-tracking was given.
2888if test "${enable_dependency_tracking+set}" = set; then :
2889  enableval=$enable_dependency_tracking;
2890fi
2891
2892if test "x$enable_dependency_tracking" != xno; then
2893  am_depcomp="$ac_aux_dir/depcomp"
2894  AMDEPBACKSLASH='\'
2895fi
2896 if test "x$enable_dependency_tracking" != xno; then
2897  AMDEP_TRUE=
2898  AMDEP_FALSE='#'
2899else
2900  AMDEP_TRUE='#'
2901  AMDEP_FALSE=
2902fi
2903
2904
2905ac_ext=c
2906ac_cpp='$CPP $CPPFLAGS'
2907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910if test -n "$ac_tool_prefix"; then
2911  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2912set dummy ${ac_tool_prefix}gcc; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if test "${ac_cv_prog_CC+set}" = set; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  if test -n "$CC"; then
2919  ac_cv_prog_CC="$CC" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926    for ac_exec_ext in '' $ac_executable_extensions; do
2927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933  done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938CC=$ac_cv_prog_CC
2939if test -n "$CC"; then
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941$as_echo "$CC" >&6; }
2942else
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947
2948fi
2949if test -z "$ac_cv_prog_CC"; then
2950  ac_ct_CC=$CC
2951  # Extract the first word of "gcc", so it can be a program name with args.
2952set dummy gcc; ac_word=$2
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954$as_echo_n "checking for $ac_word... " >&6; }
2955if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  if test -n "$ac_ct_CC"; then
2959  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966    for ac_exec_ext in '' $ac_executable_extensions; do
2967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968    ac_cv_prog_ac_ct_CC="gcc"
2969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970    break 2
2971  fi
2972done
2973  done
2974IFS=$as_save_IFS
2975
2976fi
2977fi
2978ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979if test -n "$ac_ct_CC"; then
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981$as_echo "$ac_ct_CC" >&6; }
2982else
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985fi
2986
2987  if test "x$ac_ct_CC" = x; then
2988    CC=""
2989  else
2990    case $cross_compiling:$ac_tool_warned in
2991yes:)
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994ac_tool_warned=yes ;;
2995esac
2996    CC=$ac_ct_CC
2997  fi
2998else
2999  CC="$ac_cv_prog_CC"
3000fi
3001
3002if test -z "$CC"; then
3003          if test -n "$ac_tool_prefix"; then
3004    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3005set dummy ${ac_tool_prefix}cc; ac_word=$2
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007$as_echo_n "checking for $ac_word... " >&6; }
3008if test "${ac_cv_prog_CC+set}" = set; then :
3009  $as_echo_n "(cached) " >&6
3010else
3011  if test -n "$CC"; then
3012  ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017  IFS=$as_save_IFS
3018  test -z "$as_dir" && as_dir=.
3019    for ac_exec_ext in '' $ac_executable_extensions; do
3020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021    ac_cv_prog_CC="${ac_tool_prefix}cc"
3022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023    break 2
3024  fi
3025done
3026  done
3027IFS=$as_save_IFS
3028
3029fi
3030fi
3031CC=$ac_cv_prog_CC
3032if test -n "$CC"; then
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034$as_echo "$CC" >&6; }
3035else
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037$as_echo "no" >&6; }
3038fi
3039
3040
3041  fi
3042fi
3043if test -z "$CC"; then
3044  # Extract the first word of "cc", so it can be a program name with args.
3045set dummy cc; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if test "${ac_cv_prog_CC+set}" = set; then :
3049  $as_echo_n "(cached) " >&6
3050else
3051  if test -n "$CC"; then
3052  ac_cv_prog_CC="$CC" # Let the user override the test.
3053else
3054  ac_prog_rejected=no
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060    for ac_exec_ext in '' $ac_executable_extensions; do
3061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063       ac_prog_rejected=yes
3064       continue
3065     fi
3066    ac_cv_prog_CC="cc"
3067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068    break 2
3069  fi
3070done
3071  done
3072IFS=$as_save_IFS
3073
3074if test $ac_prog_rejected = yes; then
3075  # We found a bogon in the path, so make sure we never use it.
3076  set dummy $ac_cv_prog_CC
3077  shift
3078  if test $# != 0; then
3079    # We chose a different compiler from the bogus one.
3080    # However, it has the same basename, so the bogon will be chosen
3081    # first if we set CC to just the basename; use the full file name.
3082    shift
3083    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3084  fi
3085fi
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098fi
3099if test -z "$CC"; then
3100  if test -n "$ac_tool_prefix"; then
3101  for ac_prog in cl.exe
3102  do
3103    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if test "${ac_cv_prog_CC+set}" = set; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$CC"; then
3111  ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118    for ac_exec_ext in '' $ac_executable_extensions; do
3119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125  done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133$as_echo "$CC" >&6; }
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139
3140    test -n "$CC" && break
3141  done
3142fi
3143if test -z "$CC"; then
3144  ac_ct_CC=$CC
3145  for ac_prog in cl.exe
3146do
3147  # Extract the first word of "$ac_prog", so it can be a program name with args.
3148set dummy $ac_prog; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$ac_ct_CC"; then
3155  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164    ac_cv_prog_ac_ct_CC="$ac_prog"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175if test -n "$ac_ct_CC"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177$as_echo "$ac_ct_CC" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184  test -n "$ac_ct_CC" && break
3185done
3186
3187  if test "x$ac_ct_CC" = x; then
3188    CC=""
3189  else
3190    case $cross_compiling:$ac_tool_warned in
3191yes:)
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194ac_tool_warned=yes ;;
3195esac
3196    CC=$ac_ct_CC
3197  fi
3198fi
3199
3200fi
3201
3202
3203test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205as_fn_error "no acceptable C compiler found in \$PATH
3206See \`config.log' for more details." "$LINENO" 5; }
3207
3208# Provide some information about the compiler.
3209$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210set X $ac_compile
3211ac_compiler=$2
3212for ac_option in --version -v -V -qversion; do
3213  { { ac_try="$ac_compiler $ac_option >&5"
3214case "(($ac_try" in
3215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216  *) ac_try_echo=$ac_try;;
3217esac
3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219$as_echo "$ac_try_echo"; } >&5
3220  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3221  ac_status=$?
3222  if test -s conftest.err; then
3223    sed '10a\
3224... rest of stderr output deleted ...
3225         10q' conftest.err >conftest.er1
3226    cat conftest.er1 >&5
3227  fi
3228  rm -f conftest.er1 conftest.err
3229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230  test $ac_status = 0; }
3231done
3232
3233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h.  */
3235
3236int
3237main ()
3238{
3239
3240  ;
3241  return 0;
3242}
3243_ACEOF
3244ac_clean_files_save=$ac_clean_files
3245ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3246# Try to create an executable without -o first, disregard a.out.
3247# It will help us diagnose broken compilers, and finding out an intuition
3248# of exeext.
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3250$as_echo_n "checking whether the C compiler works... " >&6; }
3251ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252
3253# The possible output files:
3254ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255
3256ac_rmfiles=
3257for ac_file in $ac_files
3258do
3259  case $ac_file in
3260    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3261    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262  esac
3263done
3264rm -f $ac_rmfiles
3265
3266if { { ac_try="$ac_link_default"
3267case "(($ac_try" in
3268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269  *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272$as_echo "$ac_try_echo"; } >&5
3273  (eval "$ac_link_default") 2>&5
3274  ac_status=$?
3275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276  test $ac_status = 0; }; then :
3277  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3278# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3279# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3280# so that the user can short-circuit this test for compilers unknown to
3281# Autoconf.
3282for ac_file in $ac_files ''
3283do
3284  test -f "$ac_file" || continue
3285  case $ac_file in
3286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287	;;
3288    [ab].out )
3289	# We found the default executable, but exeext='' is most
3290	# certainly right.
3291	break;;
3292    *.* )
3293	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3294	then :; else
3295	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296	fi
3297	# We set ac_cv_exeext here because the later test for it is not
3298	# safe: cross compilers may not add the suffix if given an `-o'
3299	# argument, so we may need to know it at that point already.
3300	# Even if this section looks crufty: it has the advantage of
3301	# actually working.
3302	break;;
3303    * )
3304	break;;
3305  esac
3306done
3307test "$ac_cv_exeext" = no && ac_cv_exeext=
3308
3309else
3310  ac_file=''
3311fi
3312if test -z "$ac_file"; then :
3313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315$as_echo "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
3318{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320{ as_fn_set_status 77
3321as_fn_error "C compiler cannot create executables
3322See \`config.log' for more details." "$LINENO" 5; }; }
3323else
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325$as_echo "yes" >&6; }
3326fi
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3328$as_echo_n "checking for C compiler default output file name... " >&6; }
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3330$as_echo "$ac_file" >&6; }
3331ac_exeext=$ac_cv_exeext
3332
3333rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3334ac_clean_files=$ac_clean_files_save
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3336$as_echo_n "checking for suffix of executables... " >&6; }
3337if { { ac_try="$ac_link"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343$as_echo "$ac_try_echo"; } >&5
3344  (eval "$ac_link") 2>&5
3345  ac_status=$?
3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347  test $ac_status = 0; }; then :
3348  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3349# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3350# work properly (i.e., refer to `conftest.exe'), while it won't with
3351# `rm'.
3352for ac_file in conftest.exe conftest conftest.*; do
3353  test -f "$ac_file" || continue
3354  case $ac_file in
3355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3356    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357	  break;;
3358    * ) break;;
3359  esac
3360done
3361else
3362  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error "cannot compute suffix of executables: cannot compile and link
3365See \`config.log' for more details." "$LINENO" 5; }
3366fi
3367rm -f conftest conftest$ac_cv_exeext
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3369$as_echo "$ac_cv_exeext" >&6; }
3370
3371rm -f conftest.$ac_ext
3372EXEEXT=$ac_cv_exeext
3373ac_exeext=$EXEEXT
3374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376#include <stdio.h>
3377int
3378main ()
3379{
3380FILE *f = fopen ("conftest.out", "w");
3381 return ferror (f) || fclose (f) != 0;
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387ac_clean_files="$ac_clean_files conftest.out"
3388# Check that the compiler produces executables we can run.  If not, either
3389# the compiler is broken, or we cross compile.
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3391$as_echo_n "checking whether we are cross compiling... " >&6; }
3392if test "$cross_compiling" != yes; then
3393  { { ac_try="$ac_link"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400  (eval "$ac_link") 2>&5
3401  ac_status=$?
3402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403  test $ac_status = 0; }
3404  if { ac_try='./conftest$ac_cv_exeext'
3405  { { case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_try") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }; }; then
3415    cross_compiling=no
3416  else
3417    if test "$cross_compiling" = maybe; then
3418	cross_compiling=yes
3419    else
3420	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error "cannot run C compiled programs.
3423If you meant to cross compile, use \`--host'.
3424See \`config.log' for more details." "$LINENO" 5; }
3425    fi
3426  fi
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3429$as_echo "$cross_compiling" >&6; }
3430
3431rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3432ac_clean_files=$ac_clean_files_save
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3434$as_echo_n "checking for suffix of object files... " >&6; }
3435if test "${ac_cv_objext+set}" = set; then :
3436  $as_echo_n "(cached) " >&6
3437else
3438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440
3441int
3442main ()
3443{
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449rm -f conftest.o conftest.obj
3450if { { ac_try="$ac_compile"
3451case "(($ac_try" in
3452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453  *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
3457  (eval "$ac_compile") 2>&5
3458  ac_status=$?
3459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460  test $ac_status = 0; }; then :
3461  for ac_file in conftest.o conftest.obj conftest.*; do
3462  test -f "$ac_file" || continue;
3463  case $ac_file in
3464    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3465    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3466       break;;
3467  esac
3468done
3469else
3470  $as_echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475as_fn_error "cannot compute suffix of object files: cannot compile
3476See \`config.log' for more details." "$LINENO" 5; }
3477fi
3478rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479fi
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3481$as_echo "$ac_cv_objext" >&6; }
3482OBJEXT=$ac_cv_objext
3483ac_objext=$OBJEXT
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3485$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3486if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495#ifndef __GNUC__
3496       choke me
3497#endif
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503if ac_fn_c_try_compile "$LINENO"; then :
3504  ac_compiler_gnu=yes
3505else
3506  ac_compiler_gnu=no
3507fi
3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510
3511fi
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3513$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3514if test $ac_compiler_gnu = yes; then
3515  GCC=yes
3516else
3517  GCC=
3518fi
3519ac_test_CFLAGS=${CFLAGS+set}
3520ac_save_CFLAGS=$CFLAGS
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3522$as_echo_n "checking whether $CC accepts -g... " >&6; }
3523if test "${ac_cv_prog_cc_g+set}" = set; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  ac_save_c_werror_flag=$ac_c_werror_flag
3527   ac_c_werror_flag=yes
3528   ac_cv_prog_cc_g=no
3529   CFLAGS="-g"
3530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532
3533int
3534main ()
3535{
3536
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541if ac_fn_c_try_compile "$LINENO"; then :
3542  ac_cv_prog_cc_g=yes
3543else
3544  CFLAGS=""
3545      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547
3548int
3549main ()
3550{
3551
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556if ac_fn_c_try_compile "$LINENO"; then :
3557
3558else
3559  ac_c_werror_flag=$ac_save_c_werror_flag
3560	 CFLAGS="-g"
3561	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_compile "$LINENO"; then :
3573  ac_cv_prog_cc_g=yes
3574fi
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576fi
3577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580   ac_c_werror_flag=$ac_save_c_werror_flag
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3583$as_echo "$ac_cv_prog_cc_g" >&6; }
3584if test "$ac_test_CFLAGS" = set; then
3585  CFLAGS=$ac_save_CFLAGS
3586elif test $ac_cv_prog_cc_g = yes; then
3587  if test "$GCC" = yes; then
3588    CFLAGS="-g -O2"
3589  else
3590    CFLAGS="-g"
3591  fi
3592else
3593  if test "$GCC" = yes; then
3594    CFLAGS="-O2"
3595  else
3596    CFLAGS=
3597  fi
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3600$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3601if test "${ac_cv_prog_cc_c89+set}" = set; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  ac_cv_prog_cc_c89=no
3605ac_save_CC=$CC
3606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608#include <stdarg.h>
3609#include <stdio.h>
3610#include <sys/types.h>
3611#include <sys/stat.h>
3612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3613struct buf { int x; };
3614FILE * (*rcsopen) (struct buf *, struct stat *, int);
3615static char *e (p, i)
3616     char **p;
3617     int i;
3618{
3619  return p[i];
3620}
3621static char *f (char * (*g) (char **, int), char **p, ...)
3622{
3623  char *s;
3624  va_list v;
3625  va_start (v,p);
3626  s = g (p, va_arg (v,int));
3627  va_end (v);
3628  return s;
3629}
3630
3631/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3632   function prototypes and stuff, but not '\xHH' hex character constants.
3633   These don't provoke an error unfortunately, instead are silently treated
3634   as 'x'.  The following induces an error, until -std is added to get
3635   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3636   array size at least.  It's necessary to write '\x00'==0 to get something
3637   that's true only with -std.  */
3638int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3639
3640/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3641   inside strings and character constants.  */
3642#define FOO(x) 'x'
3643int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3644
3645int test (int i, double x);
3646struct s1 {int (*f) (int a);};
3647struct s2 {int (*f) (double a);};
3648int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3649int argc;
3650char **argv;
3651int
3652main ()
3653{
3654return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3660	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3661do
3662  CC="$ac_save_CC $ac_arg"
3663  if ac_fn_c_try_compile "$LINENO"; then :
3664  ac_cv_prog_cc_c89=$ac_arg
3665fi
3666rm -f core conftest.err conftest.$ac_objext
3667  test "x$ac_cv_prog_cc_c89" != "xno" && break
3668done
3669rm -f conftest.$ac_ext
3670CC=$ac_save_CC
3671
3672fi
3673# AC_CACHE_VAL
3674case "x$ac_cv_prog_cc_c89" in
3675  x)
3676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3677$as_echo "none needed" >&6; } ;;
3678  xno)
3679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3680$as_echo "unsupported" >&6; } ;;
3681  *)
3682    CC="$CC $ac_cv_prog_cc_c89"
3683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3684$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3685esac
3686if test "x$ac_cv_prog_cc_c89" != xno; then :
3687
3688fi
3689
3690ac_ext=c
3691ac_cpp='$CPP $CPPFLAGS'
3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696depcc="$CC"   am_compiler_list=
3697
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3699$as_echo_n "checking dependency style of $depcc... " >&6; }
3700if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3701  $as_echo_n "(cached) " >&6
3702else
3703  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3704  # We make a subdir and do the tests there.  Otherwise we can end up
3705  # making bogus files that we don't know about and never remove.  For
3706  # instance it was reported that on HP-UX the gcc test will end up
3707  # making a dummy file named `D' -- because `-MD' means `put the output
3708  # in D'.
3709  mkdir conftest.dir
3710  # Copy depcomp to subdir because otherwise we won't find it if we're
3711  # using a relative directory.
3712  cp "$am_depcomp" conftest.dir
3713  cd conftest.dir
3714  # We will build objects and dependencies in a subdirectory because
3715  # it helps to detect inapplicable dependency modes.  For instance
3716  # both Tru64's cc and ICC support -MD to output dependencies as a
3717  # side effect of compilation, but ICC will put the dependencies in
3718  # the current directory while Tru64 will put them in the object
3719  # directory.
3720  mkdir sub
3721
3722  am_cv_CC_dependencies_compiler_type=none
3723  if test "$am_compiler_list" = ""; then
3724     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3725  fi
3726  am__universal=false
3727  case " $depcc " in #(
3728     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3729     esac
3730
3731  for depmode in $am_compiler_list; do
3732    # Setup a source with many dependencies, because some compilers
3733    # like to wrap large dependency lists on column 80 (with \), and
3734    # we should not choose a depcomp mode which is confused by this.
3735    #
3736    # We need to recreate these files for each test, as the compiler may
3737    # overwrite some of them when testing with obscure command lines.
3738    # This happens at least with the AIX C compiler.
3739    : > sub/conftest.c
3740    for i in 1 2 3 4 5 6; do
3741      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3742      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3743      # Solaris 8's {/usr,}/bin/sh.
3744      touch sub/conftst$i.h
3745    done
3746    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3747
3748    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3749    # mode.  It turns out that the SunPro C++ compiler does not properly
3750    # handle `-M -o', and we need to detect this.  Also, some Intel
3751    # versions had trouble with output in subdirs
3752    am__obj=sub/conftest.${OBJEXT-o}
3753    am__minus_obj="-o $am__obj"
3754    case $depmode in
3755    gcc)
3756      # This depmode causes a compiler race in universal mode.
3757      test "$am__universal" = false || continue
3758      ;;
3759    nosideeffect)
3760      # after this tag, mechanisms are not by side-effect, so they'll
3761      # only be used when explicitly requested
3762      if test "x$enable_dependency_tracking" = xyes; then
3763	continue
3764      else
3765	break
3766      fi
3767      ;;
3768    msvisualcpp | msvcmsys)
3769      # This compiler won't grok `-c -o', but also, the minuso test has
3770      # not run yet.  These depmodes are late enough in the game, and
3771      # so weak that their functioning should not be impacted.
3772      am__obj=conftest.${OBJEXT-o}
3773      am__minus_obj=
3774      ;;
3775    none) break ;;
3776    esac
3777    if depmode=$depmode \
3778       source=sub/conftest.c object=$am__obj \
3779       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3780       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3781         >/dev/null 2>conftest.err &&
3782       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3783       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3784       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3785       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3786      # icc doesn't choke on unknown options, it will just issue warnings
3787      # or remarks (even with -Werror).  So we grep stderr for any message
3788      # that says an option was ignored or not supported.
3789      # When given -MP, icc 7.0 and 7.1 complain thusly:
3790      #   icc: Command line warning: ignoring option '-M'; no argument required
3791      # The diagnosis changed in icc 8.0:
3792      #   icc: Command line remark: option '-MP' not supported
3793      if (grep 'ignoring option' conftest.err ||
3794          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3795        am_cv_CC_dependencies_compiler_type=$depmode
3796        break
3797      fi
3798    fi
3799  done
3800
3801  cd ..
3802  rm -rf conftest.dir
3803else
3804  am_cv_CC_dependencies_compiler_type=none
3805fi
3806
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3809$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3810CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3811
3812 if
3813  test "x$enable_dependency_tracking" != xno \
3814  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3815  am__fastdepCC_TRUE=
3816  am__fastdepCC_FALSE='#'
3817else
3818  am__fastdepCC_TRUE='#'
3819  am__fastdepCC_FALSE=
3820fi
3821
3822
3823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3824$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3825if test "${ac_cv_prog_cc_c99+set}" = set; then :
3826  $as_echo_n "(cached) " >&6
3827else
3828  ac_cv_prog_cc_c99=no
3829ac_save_CC=$CC
3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h.  */
3832#include <stdarg.h>
3833#include <stdbool.h>
3834#include <stdlib.h>
3835#include <wchar.h>
3836#include <stdio.h>
3837
3838// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3839#define debug(...) fprintf (stderr, __VA_ARGS__)
3840#define showlist(...) puts (#__VA_ARGS__)
3841#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3842static void
3843test_varargs_macros (void)
3844{
3845  int x = 1234;
3846  int y = 5678;
3847  debug ("Flag");
3848  debug ("X = %d\n", x);
3849  showlist (The first, second, and third items.);
3850  report (x>y, "x is %d but y is %d", x, y);
3851}
3852
3853// Check long long types.
3854#define BIG64 18446744073709551615ull
3855#define BIG32 4294967295ul
3856#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3857#if !BIG_OK
3858  your preprocessor is broken;
3859#endif
3860#if BIG_OK
3861#else
3862  your preprocessor is broken;
3863#endif
3864static long long int bignum = -9223372036854775807LL;
3865static unsigned long long int ubignum = BIG64;
3866
3867struct incomplete_array
3868{
3869  int datasize;
3870  double data[];
3871};
3872
3873struct named_init {
3874  int number;
3875  const wchar_t *name;
3876  double average;
3877};
3878
3879typedef const char *ccp;
3880
3881static inline int
3882test_restrict (ccp restrict text)
3883{
3884  // See if C++-style comments work.
3885  // Iterate through items via the restricted pointer.
3886  // Also check for declarations in for loops.
3887  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3888    continue;
3889  return 0;
3890}
3891
3892// Check varargs and va_copy.
3893static void
3894test_varargs (const char *format, ...)
3895{
3896  va_list args;
3897  va_start (args, format);
3898  va_list args_copy;
3899  va_copy (args_copy, args);
3900
3901  const char *str;
3902  int number;
3903  float fnumber;
3904
3905  while (*format)
3906    {
3907      switch (*format++)
3908	{
3909	case 's': // string
3910	  str = va_arg (args_copy, const char *);
3911	  break;
3912	case 'd': // int
3913	  number = va_arg (args_copy, int);
3914	  break;
3915	case 'f': // float
3916	  fnumber = va_arg (args_copy, double);
3917	  break;
3918	default:
3919	  break;
3920	}
3921    }
3922  va_end (args_copy);
3923  va_end (args);
3924}
3925
3926int
3927main ()
3928{
3929
3930  // Check bool.
3931  _Bool success = false;
3932
3933  // Check restrict.
3934  if (test_restrict ("String literal") == 0)
3935    success = true;
3936  char *restrict newvar = "Another string";
3937
3938  // Check varargs.
3939  test_varargs ("s, d' f .", "string", 65, 34.234);
3940  test_varargs_macros ();
3941
3942  // Check flexible array members.
3943  struct incomplete_array *ia =
3944    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3945  ia->datasize = 10;
3946  for (int i = 0; i < ia->datasize; ++i)
3947    ia->data[i] = i * 1.234;
3948
3949  // Check named initializers.
3950  struct named_init ni = {
3951    .number = 34,
3952    .name = L"Test wide string",
3953    .average = 543.34343,
3954  };
3955
3956  ni.number = 58;
3957
3958  int dynamic_array[ni.number];
3959  dynamic_array[ni.number - 1] = 543;
3960
3961  // work around unused variable warnings
3962  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3963	  || dynamic_array[ni.number - 1] != 543);
3964
3965  ;
3966  return 0;
3967}
3968_ACEOF
3969for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3970do
3971  CC="$ac_save_CC $ac_arg"
3972  if ac_fn_c_try_compile "$LINENO"; then :
3973  ac_cv_prog_cc_c99=$ac_arg
3974fi
3975rm -f core conftest.err conftest.$ac_objext
3976  test "x$ac_cv_prog_cc_c99" != "xno" && break
3977done
3978rm -f conftest.$ac_ext
3979CC=$ac_save_CC
3980
3981fi
3982# AC_CACHE_VAL
3983case "x$ac_cv_prog_cc_c99" in
3984  x)
3985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3986$as_echo "none needed" >&6; } ;;
3987  xno)
3988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3989$as_echo "unsupported" >&6; } ;;
3990  *)
3991    CC="$CC $ac_cv_prog_cc_c99"
3992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3993$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3994esac
3995if test "x$ac_cv_prog_cc_c99" != xno; then :
3996
3997fi
3998
3999
4000
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4007$as_echo_n "checking how to run the C preprocessor... " >&6; }
4008# On Suns, sometimes $CPP names a directory.
4009if test -n "$CPP" && test -d "$CPP"; then
4010  CPP=
4011fi
4012if test -z "$CPP"; then
4013  if test "${ac_cv_prog_CPP+set}" = set; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016      # Double quotes because CPP needs to be expanded
4017    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4018    do
4019      ac_preproc_ok=false
4020for ac_c_preproc_warn_flag in '' yes
4021do
4022  # Use a header file that comes with gcc, so configuring glibc
4023  # with a fresh cross-compiler works.
4024  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025  # <limits.h> exists even on freestanding compilers.
4026  # On the NeXT, cc -E runs the code through the compiler's parser,
4027  # not just through cpp. "Syntax error" is here to catch this case.
4028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030#ifdef __STDC__
4031# include <limits.h>
4032#else
4033# include <assert.h>
4034#endif
4035		     Syntax error
4036_ACEOF
4037if ac_fn_c_try_cpp "$LINENO"; then :
4038
4039else
4040  # Broken: fails on valid input.
4041continue
4042fi
4043rm -f conftest.err conftest.$ac_ext
4044
4045  # OK, works on sane cases.  Now check whether nonexistent headers
4046  # can be detected and how.
4047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049#include <ac_nonexistent.h>
4050_ACEOF
4051if ac_fn_c_try_cpp "$LINENO"; then :
4052  # Broken: success on invalid input.
4053continue
4054else
4055  # Passes both tests.
4056ac_preproc_ok=:
4057break
4058fi
4059rm -f conftest.err conftest.$ac_ext
4060
4061done
4062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063rm -f conftest.err conftest.$ac_ext
4064if $ac_preproc_ok; then :
4065  break
4066fi
4067
4068    done
4069    ac_cv_prog_CPP=$CPP
4070
4071fi
4072  CPP=$ac_cv_prog_CPP
4073else
4074  ac_cv_prog_CPP=$CPP
4075fi
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4077$as_echo "$CPP" >&6; }
4078ac_preproc_ok=false
4079for ac_c_preproc_warn_flag in '' yes
4080do
4081  # Use a header file that comes with gcc, so configuring glibc
4082  # with a fresh cross-compiler works.
4083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084  # <limits.h> exists even on freestanding compilers.
4085  # On the NeXT, cc -E runs the code through the compiler's parser,
4086  # not just through cpp. "Syntax error" is here to catch this case.
4087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#ifdef __STDC__
4090# include <limits.h>
4091#else
4092# include <assert.h>
4093#endif
4094		     Syntax error
4095_ACEOF
4096if ac_fn_c_try_cpp "$LINENO"; then :
4097
4098else
4099  # Broken: fails on valid input.
4100continue
4101fi
4102rm -f conftest.err conftest.$ac_ext
4103
4104  # OK, works on sane cases.  Now check whether nonexistent headers
4105  # can be detected and how.
4106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108#include <ac_nonexistent.h>
4109_ACEOF
4110if ac_fn_c_try_cpp "$LINENO"; then :
4111  # Broken: success on invalid input.
4112continue
4113else
4114  # Passes both tests.
4115ac_preproc_ok=:
4116break
4117fi
4118rm -f conftest.err conftest.$ac_ext
4119
4120done
4121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122rm -f conftest.err conftest.$ac_ext
4123if $ac_preproc_ok; then :
4124
4125else
4126  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128as_fn_error "C preprocessor \"$CPP\" fails sanity check
4129See \`config.log' for more details." "$LINENO" 5; }
4130fi
4131
4132ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4140$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4141if test "${ac_cv_path_GREP+set}" = set; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  if test -z "$GREP"; then
4145  ac_path_GREP_found=false
4146  # Loop through the user's path and test for each of PROGNAME-LIST
4147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4149do
4150  IFS=$as_save_IFS
4151  test -z "$as_dir" && as_dir=.
4152    for ac_prog in grep ggrep; do
4153    for ac_exec_ext in '' $ac_executable_extensions; do
4154      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4155      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4156# Check for GNU ac_path_GREP and select it if it is found.
4157  # Check for GNU $ac_path_GREP
4158case `"$ac_path_GREP" --version 2>&1` in
4159*GNU*)
4160  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4161*)
4162  ac_count=0
4163  $as_echo_n 0123456789 >"conftest.in"
4164  while :
4165  do
4166    cat "conftest.in" "conftest.in" >"conftest.tmp"
4167    mv "conftest.tmp" "conftest.in"
4168    cp "conftest.in" "conftest.nl"
4169    $as_echo 'GREP' >> "conftest.nl"
4170    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172    as_fn_arith $ac_count + 1 && ac_count=$as_val
4173    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4174      # Best one so far, save it but keep looking for a better one
4175      ac_cv_path_GREP="$ac_path_GREP"
4176      ac_path_GREP_max=$ac_count
4177    fi
4178    # 10*(2^10) chars as input seems more than enough
4179    test $ac_count -gt 10 && break
4180  done
4181  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4182esac
4183
4184      $ac_path_GREP_found && break 3
4185    done
4186  done
4187  done
4188IFS=$as_save_IFS
4189  if test -z "$ac_cv_path_GREP"; then
4190    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4191  fi
4192else
4193  ac_cv_path_GREP=$GREP
4194fi
4195
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4198$as_echo "$ac_cv_path_GREP" >&6; }
4199 GREP="$ac_cv_path_GREP"
4200
4201
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4203$as_echo_n "checking for egrep... " >&6; }
4204if test "${ac_cv_path_EGREP+set}" = set; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4208   then ac_cv_path_EGREP="$GREP -E"
4209   else
4210     if test -z "$EGREP"; then
4211  ac_path_EGREP_found=false
4212  # Loop through the user's path and test for each of PROGNAME-LIST
4213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215do
4216  IFS=$as_save_IFS
4217  test -z "$as_dir" && as_dir=.
4218    for ac_prog in egrep; do
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4221      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4222# Check for GNU ac_path_EGREP and select it if it is found.
4223  # Check for GNU $ac_path_EGREP
4224case `"$ac_path_EGREP" --version 2>&1` in
4225*GNU*)
4226  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4227*)
4228  ac_count=0
4229  $as_echo_n 0123456789 >"conftest.in"
4230  while :
4231  do
4232    cat "conftest.in" "conftest.in" >"conftest.tmp"
4233    mv "conftest.tmp" "conftest.in"
4234    cp "conftest.in" "conftest.nl"
4235    $as_echo 'EGREP' >> "conftest.nl"
4236    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238    as_fn_arith $ac_count + 1 && ac_count=$as_val
4239    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4240      # Best one so far, save it but keep looking for a better one
4241      ac_cv_path_EGREP="$ac_path_EGREP"
4242      ac_path_EGREP_max=$ac_count
4243    fi
4244    # 10*(2^10) chars as input seems more than enough
4245    test $ac_count -gt 10 && break
4246  done
4247  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248esac
4249
4250      $ac_path_EGREP_found && break 3
4251    done
4252  done
4253  done
4254IFS=$as_save_IFS
4255  if test -z "$ac_cv_path_EGREP"; then
4256    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257  fi
4258else
4259  ac_cv_path_EGREP=$EGREP
4260fi
4261
4262   fi
4263fi
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4265$as_echo "$ac_cv_path_EGREP" >&6; }
4266 EGREP="$ac_cv_path_EGREP"
4267
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4270$as_echo_n "checking for ANSI C header files... " >&6; }
4271if test "${ac_cv_header_stdc+set}" = set; then :
4272  $as_echo_n "(cached) " >&6
4273else
4274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276#include <stdlib.h>
4277#include <stdarg.h>
4278#include <string.h>
4279#include <float.h>
4280
4281int
4282main ()
4283{
4284
4285  ;
4286  return 0;
4287}
4288_ACEOF
4289if ac_fn_c_try_compile "$LINENO"; then :
4290  ac_cv_header_stdc=yes
4291else
4292  ac_cv_header_stdc=no
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295
4296if test $ac_cv_header_stdc = yes; then
4297  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h.  */
4300#include <string.h>
4301
4302_ACEOF
4303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304  $EGREP "memchr" >/dev/null 2>&1; then :
4305
4306else
4307  ac_cv_header_stdc=no
4308fi
4309rm -f conftest*
4310
4311fi
4312
4313if test $ac_cv_header_stdc = yes; then
4314  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <stdlib.h>
4318
4319_ACEOF
4320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321  $EGREP "free" >/dev/null 2>&1; then :
4322
4323else
4324  ac_cv_header_stdc=no
4325fi
4326rm -f conftest*
4327
4328fi
4329
4330if test $ac_cv_header_stdc = yes; then
4331  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4332  if test "$cross_compiling" = yes; then :
4333  :
4334else
4335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336/* end confdefs.h.  */
4337#include <ctype.h>
4338#include <stdlib.h>
4339#if ((' ' & 0x0FF) == 0x020)
4340# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4341# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4342#else
4343# define ISLOWER(c) \
4344		   (('a' <= (c) && (c) <= 'i') \
4345		     || ('j' <= (c) && (c) <= 'r') \
4346		     || ('s' <= (c) && (c) <= 'z'))
4347# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4348#endif
4349
4350#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4351int
4352main ()
4353{
4354  int i;
4355  for (i = 0; i < 256; i++)
4356    if (XOR (islower (i), ISLOWER (i))
4357	|| toupper (i) != TOUPPER (i))
4358      return 2;
4359  return 0;
4360}
4361_ACEOF
4362if ac_fn_c_try_run "$LINENO"; then :
4363
4364else
4365  ac_cv_header_stdc=no
4366fi
4367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4368  conftest.$ac_objext conftest.beam conftest.$ac_ext
4369fi
4370
4371fi
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4374$as_echo "$ac_cv_header_stdc" >&6; }
4375if test $ac_cv_header_stdc = yes; then
4376
4377$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4378
4379fi
4380
4381# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383		  inttypes.h stdint.h unistd.h
4384do :
4385  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4387"
4388eval as_val=\$$as_ac_Header
4389   if test "x$as_val" = x""yes; then :
4390  cat >>confdefs.h <<_ACEOF
4391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392_ACEOF
4393
4394fi
4395
4396done
4397
4398
4399
4400
4401if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4402	if test -n "$ac_tool_prefix"; then
4403  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4404set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  case $PKG_CONFIG in
4411  [\\/]* | ?:[\\/]*)
4412  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4413  ;;
4414  *)
4415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418  IFS=$as_save_IFS
4419  test -z "$as_dir" && as_dir=.
4420    for ac_exec_ext in '' $ac_executable_extensions; do
4421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424    break 2
4425  fi
4426done
4427  done
4428IFS=$as_save_IFS
4429
4430  ;;
4431esac
4432fi
4433PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4434if test -n "$PKG_CONFIG"; then
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4436$as_echo "$PKG_CONFIG" >&6; }
4437else
4438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439$as_echo "no" >&6; }
4440fi
4441
4442
4443fi
4444if test -z "$ac_cv_path_PKG_CONFIG"; then
4445  ac_pt_PKG_CONFIG=$PKG_CONFIG
4446  # Extract the first word of "pkg-config", so it can be a program name with args.
4447set dummy pkg-config; ac_word=$2
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449$as_echo_n "checking for $ac_word... " >&6; }
4450if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4451  $as_echo_n "(cached) " >&6
4452else
4453  case $ac_pt_PKG_CONFIG in
4454  [\\/]* | ?:[\\/]*)
4455  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4456  ;;
4457  *)
4458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461  IFS=$as_save_IFS
4462  test -z "$as_dir" && as_dir=.
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467    break 2
4468  fi
4469done
4470  done
4471IFS=$as_save_IFS
4472
4473  ;;
4474esac
4475fi
4476ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4477if test -n "$ac_pt_PKG_CONFIG"; then
4478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4479$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4480else
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
4483fi
4484
4485  if test "x$ac_pt_PKG_CONFIG" = x; then
4486    PKG_CONFIG=""
4487  else
4488    case $cross_compiling:$ac_tool_warned in
4489yes:)
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492ac_tool_warned=yes ;;
4493esac
4494    PKG_CONFIG=$ac_pt_PKG_CONFIG
4495  fi
4496else
4497  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4498fi
4499
4500fi
4501if test -n "$PKG_CONFIG"; then
4502	_pkg_min_version=0.9.0
4503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4504$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4505	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507$as_echo "yes" >&6; }
4508	else
4509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511		PKG_CONFIG=""
4512	fi
4513
4514fi
4515# Make sure we can run config.sub.
4516$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4517  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4518
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4520$as_echo_n "checking build system type... " >&6; }
4521if test "${ac_cv_build+set}" = set; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524  ac_build_alias=$build_alias
4525test "x$ac_build_alias" = x &&
4526  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4527test "x$ac_build_alias" = x &&
4528  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4529ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4530  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4531
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4534$as_echo "$ac_cv_build" >&6; }
4535case $ac_cv_build in
4536*-*-*) ;;
4537*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4538esac
4539build=$ac_cv_build
4540ac_save_IFS=$IFS; IFS='-'
4541set x $ac_cv_build
4542shift
4543build_cpu=$1
4544build_vendor=$2
4545shift; shift
4546# Remember, the first character of IFS is used to create $*,
4547# except with old shells:
4548build_os=$*
4549IFS=$ac_save_IFS
4550case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4551
4552
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4554$as_echo_n "checking host system type... " >&6; }
4555if test "${ac_cv_host+set}" = set; then :
4556  $as_echo_n "(cached) " >&6
4557else
4558  if test "x$host_alias" = x; then
4559  ac_cv_host=$ac_cv_build
4560else
4561  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4562    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4563fi
4564
4565fi
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4567$as_echo "$ac_cv_host" >&6; }
4568case $ac_cv_host in
4569*-*-*) ;;
4570*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4571esac
4572host=$ac_cv_host
4573ac_save_IFS=$IFS; IFS='-'
4574set x $ac_cv_host
4575shift
4576host_cpu=$1
4577host_vendor=$2
4578shift; shift
4579# Remember, the first character of IFS is used to create $*,
4580# except with old shells:
4581host_os=$*
4582IFS=$ac_save_IFS
4583case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4584
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4587$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4588if test "${ac_cv_path_SED+set}" = set; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4592     for ac_i in 1 2 3 4 5 6 7; do
4593       ac_script="$ac_script$as_nl$ac_script"
4594     done
4595     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4596     { ac_script=; unset ac_script;}
4597     if test -z "$SED"; then
4598  ac_path_SED_found=false
4599  # Loop through the user's path and test for each of PROGNAME-LIST
4600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603  IFS=$as_save_IFS
4604  test -z "$as_dir" && as_dir=.
4605    for ac_prog in sed gsed; do
4606    for ac_exec_ext in '' $ac_executable_extensions; do
4607      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4608      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4609# Check for GNU ac_path_SED and select it if it is found.
4610  # Check for GNU $ac_path_SED
4611case `"$ac_path_SED" --version 2>&1` in
4612*GNU*)
4613  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4614*)
4615  ac_count=0
4616  $as_echo_n 0123456789 >"conftest.in"
4617  while :
4618  do
4619    cat "conftest.in" "conftest.in" >"conftest.tmp"
4620    mv "conftest.tmp" "conftest.in"
4621    cp "conftest.in" "conftest.nl"
4622    $as_echo '' >> "conftest.nl"
4623    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4624    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625    as_fn_arith $ac_count + 1 && ac_count=$as_val
4626    if test $ac_count -gt ${ac_path_SED_max-0}; then
4627      # Best one so far, save it but keep looking for a better one
4628      ac_cv_path_SED="$ac_path_SED"
4629      ac_path_SED_max=$ac_count
4630    fi
4631    # 10*(2^10) chars as input seems more than enough
4632    test $ac_count -gt 10 && break
4633  done
4634  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635esac
4636
4637      $ac_path_SED_found && break 3
4638    done
4639  done
4640  done
4641IFS=$as_save_IFS
4642  if test -z "$ac_cv_path_SED"; then
4643    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4644  fi
4645else
4646  ac_cv_path_SED=$SED
4647fi
4648
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4651$as_echo "$ac_cv_path_SED" >&6; }
4652 SED="$ac_cv_path_SED"
4653  rm -f conftest.sed
4654
4655
4656
4657
4658
4659if  test "x$GCC" = xyes ; then
4660    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4661-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4662-Wbad-function-cast -Wformat=2"
4663    case `$CC -dumpversion` in
4664    3.4.* | 4.*)
4665	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4666	;;
4667    esac
4668else
4669    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4670if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4671  SUNCC="yes"
4672else
4673  SUNCC="no"
4674fi
4675
4676    if test "x$SUNCC" = "xyes"; then
4677	CWARNFLAGS="-v"
4678    fi
4679fi
4680
4681
4682
4683# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4684
4685
4686
4687# Check whether --enable-strict-compilation was given.
4688if test "${enable_strict_compilation+set}" = set; then :
4689  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4690else
4691  STRICT_COMPILE=no
4692fi
4693
4694if test "x$STRICT_COMPILE" = "xyes"; then
4695	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4696if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4697  SUNCC="yes"
4698else
4699  SUNCC="no"
4700fi
4701
4702	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4703if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4704  INTELCC="yes"
4705else
4706  INTELCC="no"
4707fi
4708
4709	if test "x$GCC" = xyes ; then
4710		STRICT_CFLAGS="-pedantic -Werror"
4711	elif test "x$SUNCC" = "xyes"; then
4712		STRICT_CFLAGS="-errwarn"
4713    elif test "x$INTELCC" = "xyes"; then
4714		STRICT_CFLAGS="-Werror"
4715	fi
4716fi
4717CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4718
4719
4720
4721
4722cat >>confdefs.h <<_ACEOF
4723#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4724_ACEOF
4725
4726	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4727	if test "x$PVM" = "x"; then
4728		PVM="0"
4729	fi
4730
4731cat >>confdefs.h <<_ACEOF
4732#define PACKAGE_VERSION_MINOR $PVM
4733_ACEOF
4734
4735	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4736	if test "x$PVP" = "x"; then
4737		PVP="0"
4738	fi
4739
4740cat >>confdefs.h <<_ACEOF
4741#define PACKAGE_VERSION_PATCHLEVEL $PVP
4742_ACEOF
4743
4744
4745
4746CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4747mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4748|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4749echo 'git directory not found: installing possibly empty changelog.' >&2)"
4750
4751
4752
4753
4754macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4755INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4756mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4757|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4758echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4759
4760
4761
4762
4763
4764
4765if test x$APP_MAN_SUFFIX = x    ; then
4766    APP_MAN_SUFFIX=1
4767fi
4768if test x$APP_MAN_DIR = x    ; then
4769    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4770fi
4771
4772if test x$LIB_MAN_SUFFIX = x    ; then
4773    LIB_MAN_SUFFIX=3
4774fi
4775if test x$LIB_MAN_DIR = x    ; then
4776    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4777fi
4778
4779if test x$FILE_MAN_SUFFIX = x    ; then
4780    case $host_os in
4781	solaris*)	FILE_MAN_SUFFIX=4  ;;
4782	*)		FILE_MAN_SUFFIX=5  ;;
4783    esac
4784fi
4785if test x$FILE_MAN_DIR = x    ; then
4786    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4787fi
4788
4789if test x$MISC_MAN_SUFFIX = x    ; then
4790    case $host_os in
4791	solaris*)	MISC_MAN_SUFFIX=5  ;;
4792	*)		MISC_MAN_SUFFIX=7  ;;
4793    esac
4794fi
4795if test x$MISC_MAN_DIR = x    ; then
4796    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4797fi
4798
4799if test x$DRIVER_MAN_SUFFIX = x    ; then
4800    case $host_os in
4801	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4802	*)		DRIVER_MAN_SUFFIX=4  ;;
4803    esac
4804fi
4805if test x$DRIVER_MAN_DIR = x    ; then
4806    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4807fi
4808
4809if test x$ADMIN_MAN_SUFFIX = x    ; then
4810    case $host_os in
4811	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4812	*)		ADMIN_MAN_SUFFIX=8  ;;
4813    esac
4814fi
4815if test x$ADMIN_MAN_DIR = x    ; then
4816    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4817fi
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833XORG_MAN_PAGE="X Version 11"
4834
4835MAN_SUBSTS="\
4836	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4837	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4838	-e 's|__xservername__|Xorg|g' \
4839	-e 's|__xconfigfile__|xorg.conf|g' \
4840	-e 's|__projectroot__|\$(prefix)|g' \
4841	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4842	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4843	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4844	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4845	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4846	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4847
4848
4849
4850# Check whether --enable-silent-rules was given.
4851if test "${enable_silent_rules+set}" = set; then :
4852  enableval=$enable_silent_rules;
4853fi
4854
4855case $enable_silent_rules in
4856yes) AM_DEFAULT_VERBOSITY=0;;
4857no)  AM_DEFAULT_VERBOSITY=1;;
4858*)   AM_DEFAULT_VERBOSITY=0;;
4859esac
4860AM_BACKSLASH='\'
4861
4862
4863ac_config_headers="$ac_config_headers src/config.h"
4864
4865
4866# Check for progs
4867ac_ext=c
4868ac_cpp='$CPP $CPPFLAGS'
4869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872if test -n "$ac_tool_prefix"; then
4873  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4874set dummy ${ac_tool_prefix}gcc; ac_word=$2
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876$as_echo_n "checking for $ac_word... " >&6; }
4877if test "${ac_cv_prog_CC+set}" = set; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  if test -n "$CC"; then
4881  ac_cv_prog_CC="$CC" # Let the user override the test.
4882else
4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886  IFS=$as_save_IFS
4887  test -z "$as_dir" && as_dir=.
4888    for ac_exec_ext in '' $ac_executable_extensions; do
4889  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892    break 2
4893  fi
4894done
4895  done
4896IFS=$as_save_IFS
4897
4898fi
4899fi
4900CC=$ac_cv_prog_CC
4901if test -n "$CC"; then
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4903$as_echo "$CC" >&6; }
4904else
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908
4909
4910fi
4911if test -z "$ac_cv_prog_CC"; then
4912  ac_ct_CC=$CC
4913  # Extract the first word of "gcc", so it can be a program name with args.
4914set dummy gcc; ac_word=$2
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916$as_echo_n "checking for $ac_word... " >&6; }
4917if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  if test -n "$ac_ct_CC"; then
4921  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_exec_ext in '' $ac_executable_extensions; do
4929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930    ac_cv_prog_ac_ct_CC="gcc"
4931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932    break 2
4933  fi
4934done
4935  done
4936IFS=$as_save_IFS
4937
4938fi
4939fi
4940ac_ct_CC=$ac_cv_prog_ac_ct_CC
4941if test -n "$ac_ct_CC"; then
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4943$as_echo "$ac_ct_CC" >&6; }
4944else
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946$as_echo "no" >&6; }
4947fi
4948
4949  if test "x$ac_ct_CC" = x; then
4950    CC=""
4951  else
4952    case $cross_compiling:$ac_tool_warned in
4953yes:)
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956ac_tool_warned=yes ;;
4957esac
4958    CC=$ac_ct_CC
4959  fi
4960else
4961  CC="$ac_cv_prog_CC"
4962fi
4963
4964if test -z "$CC"; then
4965          if test -n "$ac_tool_prefix"; then
4966    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}cc; ac_word=$2
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if test "${ac_cv_prog_CC+set}" = set; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  if test -n "$CC"; then
4974  ac_cv_prog_CC="$CC" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979  IFS=$as_save_IFS
4980  test -z "$as_dir" && as_dir=.
4981    for ac_exec_ext in '' $ac_executable_extensions; do
4982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983    ac_cv_prog_CC="${ac_tool_prefix}cc"
4984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985    break 2
4986  fi
4987done
4988  done
4989IFS=$as_save_IFS
4990
4991fi
4992fi
4993CC=$ac_cv_prog_CC
4994if test -n "$CC"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4996$as_echo "$CC" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003  fi
5004fi
5005if test -z "$CC"; then
5006  # Extract the first word of "cc", so it can be a program name with args.
5007set dummy cc; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if test "${ac_cv_prog_CC+set}" = set; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  if test -n "$CC"; then
5014  ac_cv_prog_CC="$CC" # Let the user override the test.
5015else
5016  ac_prog_rejected=no
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5025       ac_prog_rejected=yes
5026       continue
5027     fi
5028    ac_cv_prog_CC="cc"
5029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030    break 2
5031  fi
5032done
5033  done
5034IFS=$as_save_IFS
5035
5036if test $ac_prog_rejected = yes; then
5037  # We found a bogon in the path, so make sure we never use it.
5038  set dummy $ac_cv_prog_CC
5039  shift
5040  if test $# != 0; then
5041    # We chose a different compiler from the bogus one.
5042    # However, it has the same basename, so the bogon will be chosen
5043    # first if we set CC to just the basename; use the full file name.
5044    shift
5045    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5046  fi
5047fi
5048fi
5049fi
5050CC=$ac_cv_prog_CC
5051if test -n "$CC"; then
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5053$as_echo "$CC" >&6; }
5054else
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060fi
5061if test -z "$CC"; then
5062  if test -n "$ac_tool_prefix"; then
5063  for ac_prog in cl.exe
5064  do
5065    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if test "${ac_cv_prog_CC+set}" = set; then :
5070  $as_echo_n "(cached) " >&6
5071else
5072  if test -n "$CC"; then
5073  ac_cv_prog_CC="$CC" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078  IFS=$as_save_IFS
5079  test -z "$as_dir" && as_dir=.
5080    for ac_exec_ext in '' $ac_executable_extensions; do
5081  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084    break 2
5085  fi
5086done
5087  done
5088IFS=$as_save_IFS
5089
5090fi
5091fi
5092CC=$ac_cv_prog_CC
5093if test -n "$CC"; then
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5095$as_echo "$CC" >&6; }
5096else
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100
5101
5102    test -n "$CC" && break
5103  done
5104fi
5105if test -z "$CC"; then
5106  ac_ct_CC=$CC
5107  for ac_prog in cl.exe
5108do
5109  # Extract the first word of "$ac_prog", so it can be a program name with args.
5110set dummy $ac_prog; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  if test -n "$ac_ct_CC"; then
5117  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_exec_ext in '' $ac_executable_extensions; do
5125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126    ac_cv_prog_ac_ct_CC="$ac_prog"
5127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131  done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136ac_ct_CC=$ac_cv_prog_ac_ct_CC
5137if test -n "$ac_ct_CC"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5139$as_echo "$ac_ct_CC" >&6; }
5140else
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146  test -n "$ac_ct_CC" && break
5147done
5148
5149  if test "x$ac_ct_CC" = x; then
5150    CC=""
5151  else
5152    case $cross_compiling:$ac_tool_warned in
5153yes:)
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5156ac_tool_warned=yes ;;
5157esac
5158    CC=$ac_ct_CC
5159  fi
5160fi
5161
5162fi
5163
5164
5165test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167as_fn_error "no acceptable C compiler found in \$PATH
5168See \`config.log' for more details." "$LINENO" 5; }
5169
5170# Provide some information about the compiler.
5171$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5172set X $ac_compile
5173ac_compiler=$2
5174for ac_option in --version -v -V -qversion; do
5175  { { ac_try="$ac_compiler $ac_option >&5"
5176case "(($ac_try" in
5177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178  *) ac_try_echo=$ac_try;;
5179esac
5180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5181$as_echo "$ac_try_echo"; } >&5
5182  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5183  ac_status=$?
5184  if test -s conftest.err; then
5185    sed '10a\
5186... rest of stderr output deleted ...
5187         10q' conftest.err >conftest.er1
5188    cat conftest.er1 >&5
5189  fi
5190  rm -f conftest.er1 conftest.err
5191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192  test $ac_status = 0; }
5193done
5194
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5197if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202
5203int
5204main ()
5205{
5206#ifndef __GNUC__
5207       choke me
5208#endif
5209
5210  ;
5211  return 0;
5212}
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"; then :
5215  ac_compiler_gnu=yes
5216else
5217  ac_compiler_gnu=no
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220ac_cv_c_compiler_gnu=$ac_compiler_gnu
5221
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5224$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5225if test $ac_compiler_gnu = yes; then
5226  GCC=yes
5227else
5228  GCC=
5229fi
5230ac_test_CFLAGS=${CFLAGS+set}
5231ac_save_CFLAGS=$CFLAGS
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5233$as_echo_n "checking whether $CC accepts -g... " >&6; }
5234if test "${ac_cv_prog_cc_g+set}" = set; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  ac_save_c_werror_flag=$ac_c_werror_flag
5238   ac_c_werror_flag=yes
5239   ac_cv_prog_cc_g=no
5240   CFLAGS="-g"
5241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h.  */
5243
5244int
5245main ()
5246{
5247
5248  ;
5249  return 0;
5250}
5251_ACEOF
5252if ac_fn_c_try_compile "$LINENO"; then :
5253  ac_cv_prog_cc_g=yes
5254else
5255  CFLAGS=""
5256      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258
5259int
5260main ()
5261{
5262
5263  ;
5264  return 0;
5265}
5266_ACEOF
5267if ac_fn_c_try_compile "$LINENO"; then :
5268
5269else
5270  ac_c_werror_flag=$ac_save_c_werror_flag
5271	 CFLAGS="-g"
5272	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274
5275int
5276main ()
5277{
5278
5279  ;
5280  return 0;
5281}
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284  ac_cv_prog_cc_g=yes
5285fi
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287fi
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289fi
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291   ac_c_werror_flag=$ac_save_c_werror_flag
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5294$as_echo "$ac_cv_prog_cc_g" >&6; }
5295if test "$ac_test_CFLAGS" = set; then
5296  CFLAGS=$ac_save_CFLAGS
5297elif test $ac_cv_prog_cc_g = yes; then
5298  if test "$GCC" = yes; then
5299    CFLAGS="-g -O2"
5300  else
5301    CFLAGS="-g"
5302  fi
5303else
5304  if test "$GCC" = yes; then
5305    CFLAGS="-O2"
5306  else
5307    CFLAGS=
5308  fi
5309fi
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5311$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5312if test "${ac_cv_prog_cc_c89+set}" = set; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  ac_cv_prog_cc_c89=no
5316ac_save_CC=$CC
5317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h.  */
5319#include <stdarg.h>
5320#include <stdio.h>
5321#include <sys/types.h>
5322#include <sys/stat.h>
5323/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5324struct buf { int x; };
5325FILE * (*rcsopen) (struct buf *, struct stat *, int);
5326static char *e (p, i)
5327     char **p;
5328     int i;
5329{
5330  return p[i];
5331}
5332static char *f (char * (*g) (char **, int), char **p, ...)
5333{
5334  char *s;
5335  va_list v;
5336  va_start (v,p);
5337  s = g (p, va_arg (v,int));
5338  va_end (v);
5339  return s;
5340}
5341
5342/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5343   function prototypes and stuff, but not '\xHH' hex character constants.
5344   These don't provoke an error unfortunately, instead are silently treated
5345   as 'x'.  The following induces an error, until -std is added to get
5346   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5347   array size at least.  It's necessary to write '\x00'==0 to get something
5348   that's true only with -std.  */
5349int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5350
5351/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5352   inside strings and character constants.  */
5353#define FOO(x) 'x'
5354int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5355
5356int test (int i, double x);
5357struct s1 {int (*f) (int a);};
5358struct s2 {int (*f) (double a);};
5359int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5360int argc;
5361char **argv;
5362int
5363main ()
5364{
5365return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5366  ;
5367  return 0;
5368}
5369_ACEOF
5370for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5371	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5372do
5373  CC="$ac_save_CC $ac_arg"
5374  if ac_fn_c_try_compile "$LINENO"; then :
5375  ac_cv_prog_cc_c89=$ac_arg
5376fi
5377rm -f core conftest.err conftest.$ac_objext
5378  test "x$ac_cv_prog_cc_c89" != "xno" && break
5379done
5380rm -f conftest.$ac_ext
5381CC=$ac_save_CC
5382
5383fi
5384# AC_CACHE_VAL
5385case "x$ac_cv_prog_cc_c89" in
5386  x)
5387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5388$as_echo "none needed" >&6; } ;;
5389  xno)
5390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5391$as_echo "unsupported" >&6; } ;;
5392  *)
5393    CC="$CC $ac_cv_prog_cc_c89"
5394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5395$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5396esac
5397if test "x$ac_cv_prog_cc_c89" != xno; then :
5398
5399fi
5400
5401ac_ext=c
5402ac_cpp='$CPP $CPPFLAGS'
5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407depcc="$CC"   am_compiler_list=
5408
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5410$as_echo_n "checking dependency style of $depcc... " >&6; }
5411if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5415  # We make a subdir and do the tests there.  Otherwise we can end up
5416  # making bogus files that we don't know about and never remove.  For
5417  # instance it was reported that on HP-UX the gcc test will end up
5418  # making a dummy file named `D' -- because `-MD' means `put the output
5419  # in D'.
5420  mkdir conftest.dir
5421  # Copy depcomp to subdir because otherwise we won't find it if we're
5422  # using a relative directory.
5423  cp "$am_depcomp" conftest.dir
5424  cd conftest.dir
5425  # We will build objects and dependencies in a subdirectory because
5426  # it helps to detect inapplicable dependency modes.  For instance
5427  # both Tru64's cc and ICC support -MD to output dependencies as a
5428  # side effect of compilation, but ICC will put the dependencies in
5429  # the current directory while Tru64 will put them in the object
5430  # directory.
5431  mkdir sub
5432
5433  am_cv_CC_dependencies_compiler_type=none
5434  if test "$am_compiler_list" = ""; then
5435     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5436  fi
5437  am__universal=false
5438  case " $depcc " in #(
5439     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5440     esac
5441
5442  for depmode in $am_compiler_list; do
5443    # Setup a source with many dependencies, because some compilers
5444    # like to wrap large dependency lists on column 80 (with \), and
5445    # we should not choose a depcomp mode which is confused by this.
5446    #
5447    # We need to recreate these files for each test, as the compiler may
5448    # overwrite some of them when testing with obscure command lines.
5449    # This happens at least with the AIX C compiler.
5450    : > sub/conftest.c
5451    for i in 1 2 3 4 5 6; do
5452      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5453      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5454      # Solaris 8's {/usr,}/bin/sh.
5455      touch sub/conftst$i.h
5456    done
5457    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5458
5459    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5460    # mode.  It turns out that the SunPro C++ compiler does not properly
5461    # handle `-M -o', and we need to detect this.  Also, some Intel
5462    # versions had trouble with output in subdirs
5463    am__obj=sub/conftest.${OBJEXT-o}
5464    am__minus_obj="-o $am__obj"
5465    case $depmode in
5466    gcc)
5467      # This depmode causes a compiler race in universal mode.
5468      test "$am__universal" = false || continue
5469      ;;
5470    nosideeffect)
5471      # after this tag, mechanisms are not by side-effect, so they'll
5472      # only be used when explicitly requested
5473      if test "x$enable_dependency_tracking" = xyes; then
5474	continue
5475      else
5476	break
5477      fi
5478      ;;
5479    msvisualcpp | msvcmsys)
5480      # This compiler won't grok `-c -o', but also, the minuso test has
5481      # not run yet.  These depmodes are late enough in the game, and
5482      # so weak that their functioning should not be impacted.
5483      am__obj=conftest.${OBJEXT-o}
5484      am__minus_obj=
5485      ;;
5486    none) break ;;
5487    esac
5488    if depmode=$depmode \
5489       source=sub/conftest.c object=$am__obj \
5490       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5491       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5492         >/dev/null 2>conftest.err &&
5493       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5494       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5495       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5496       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5497      # icc doesn't choke on unknown options, it will just issue warnings
5498      # or remarks (even with -Werror).  So we grep stderr for any message
5499      # that says an option was ignored or not supported.
5500      # When given -MP, icc 7.0 and 7.1 complain thusly:
5501      #   icc: Command line warning: ignoring option '-M'; no argument required
5502      # The diagnosis changed in icc 8.0:
5503      #   icc: Command line remark: option '-MP' not supported
5504      if (grep 'ignoring option' conftest.err ||
5505          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5506        am_cv_CC_dependencies_compiler_type=$depmode
5507        break
5508      fi
5509    fi
5510  done
5511
5512  cd ..
5513  rm -rf conftest.dir
5514else
5515  am_cv_CC_dependencies_compiler_type=none
5516fi
5517
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5520$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5521CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5522
5523 if
5524  test "x$enable_dependency_tracking" != xno \
5525  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5526  am__fastdepCC_TRUE=
5527  am__fastdepCC_FALSE='#'
5528else
5529  am__fastdepCC_TRUE='#'
5530  am__fastdepCC_FALSE=
5531fi
5532
5533
5534case `pwd` in
5535  *\ * | *\	*)
5536    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5537$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5538esac
5539
5540
5541
5542macro_version='2.2.6b'
5543macro_revision='1.3017'
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557ltmain="$ac_aux_dir/ltmain.sh"
5558
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5560$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5561if test "${ac_cv_path_SED+set}" = set; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5565     for ac_i in 1 2 3 4 5 6 7; do
5566       ac_script="$ac_script$as_nl$ac_script"
5567     done
5568     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5569     { ac_script=; unset ac_script;}
5570     if test -z "$SED"; then
5571  ac_path_SED_found=false
5572  # Loop through the user's path and test for each of PROGNAME-LIST
5573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576  IFS=$as_save_IFS
5577  test -z "$as_dir" && as_dir=.
5578    for ac_prog in sed gsed; do
5579    for ac_exec_ext in '' $ac_executable_extensions; do
5580      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5581      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5582# Check for GNU ac_path_SED and select it if it is found.
5583  # Check for GNU $ac_path_SED
5584case `"$ac_path_SED" --version 2>&1` in
5585*GNU*)
5586  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5587*)
5588  ac_count=0
5589  $as_echo_n 0123456789 >"conftest.in"
5590  while :
5591  do
5592    cat "conftest.in" "conftest.in" >"conftest.tmp"
5593    mv "conftest.tmp" "conftest.in"
5594    cp "conftest.in" "conftest.nl"
5595    $as_echo '' >> "conftest.nl"
5596    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5597    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5598    as_fn_arith $ac_count + 1 && ac_count=$as_val
5599    if test $ac_count -gt ${ac_path_SED_max-0}; then
5600      # Best one so far, save it but keep looking for a better one
5601      ac_cv_path_SED="$ac_path_SED"
5602      ac_path_SED_max=$ac_count
5603    fi
5604    # 10*(2^10) chars as input seems more than enough
5605    test $ac_count -gt 10 && break
5606  done
5607  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5608esac
5609
5610      $ac_path_SED_found && break 3
5611    done
5612  done
5613  done
5614IFS=$as_save_IFS
5615  if test -z "$ac_cv_path_SED"; then
5616    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5617  fi
5618else
5619  ac_cv_path_SED=$SED
5620fi
5621
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5624$as_echo "$ac_cv_path_SED" >&6; }
5625 SED="$ac_cv_path_SED"
5626  rm -f conftest.sed
5627
5628test -z "$SED" && SED=sed
5629Xsed="$SED -e 1s/^X//"
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5642$as_echo_n "checking for fgrep... " >&6; }
5643if test "${ac_cv_path_FGREP+set}" = set; then :
5644  $as_echo_n "(cached) " >&6
5645else
5646  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5647   then ac_cv_path_FGREP="$GREP -F"
5648   else
5649     if test -z "$FGREP"; then
5650  ac_path_FGREP_found=false
5651  # Loop through the user's path and test for each of PROGNAME-LIST
5652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5654do
5655  IFS=$as_save_IFS
5656  test -z "$as_dir" && as_dir=.
5657    for ac_prog in fgrep; do
5658    for ac_exec_ext in '' $ac_executable_extensions; do
5659      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5660      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5661# Check for GNU ac_path_FGREP and select it if it is found.
5662  # Check for GNU $ac_path_FGREP
5663case `"$ac_path_FGREP" --version 2>&1` in
5664*GNU*)
5665  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5666*)
5667  ac_count=0
5668  $as_echo_n 0123456789 >"conftest.in"
5669  while :
5670  do
5671    cat "conftest.in" "conftest.in" >"conftest.tmp"
5672    mv "conftest.tmp" "conftest.in"
5673    cp "conftest.in" "conftest.nl"
5674    $as_echo 'FGREP' >> "conftest.nl"
5675    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5676    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5677    as_fn_arith $ac_count + 1 && ac_count=$as_val
5678    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5679      # Best one so far, save it but keep looking for a better one
5680      ac_cv_path_FGREP="$ac_path_FGREP"
5681      ac_path_FGREP_max=$ac_count
5682    fi
5683    # 10*(2^10) chars as input seems more than enough
5684    test $ac_count -gt 10 && break
5685  done
5686  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5687esac
5688
5689      $ac_path_FGREP_found && break 3
5690    done
5691  done
5692  done
5693IFS=$as_save_IFS
5694  if test -z "$ac_cv_path_FGREP"; then
5695    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5696  fi
5697else
5698  ac_cv_path_FGREP=$FGREP
5699fi
5700
5701   fi
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5704$as_echo "$ac_cv_path_FGREP" >&6; }
5705 FGREP="$ac_cv_path_FGREP"
5706
5707
5708test -z "$GREP" && GREP=grep
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728# Check whether --with-gnu-ld was given.
5729if test "${with_gnu_ld+set}" = set; then :
5730  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5731else
5732  with_gnu_ld=no
5733fi
5734
5735ac_prog=ld
5736if test "$GCC" = yes; then
5737  # Check if gcc -print-prog-name=ld gives a path.
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5739$as_echo_n "checking for ld used by $CC... " >&6; }
5740  case $host in
5741  *-*-mingw*)
5742    # gcc leaves a trailing carriage return which upsets mingw
5743    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5744  *)
5745    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5746  esac
5747  case $ac_prog in
5748    # Accept absolute paths.
5749    [\\/]* | ?:[\\/]*)
5750      re_direlt='/[^/][^/]*/\.\./'
5751      # Canonicalize the pathname of ld
5752      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5753      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5754	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5755      done
5756      test -z "$LD" && LD="$ac_prog"
5757      ;;
5758  "")
5759    # If it fails, then pretend we aren't using GCC.
5760    ac_prog=ld
5761    ;;
5762  *)
5763    # If it is relative, then search for the first ld in PATH.
5764    with_gnu_ld=unknown
5765    ;;
5766  esac
5767elif test "$with_gnu_ld" = yes; then
5768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5769$as_echo_n "checking for GNU ld... " >&6; }
5770else
5771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5772$as_echo_n "checking for non-GNU ld... " >&6; }
5773fi
5774if test "${lt_cv_path_LD+set}" = set; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  if test -z "$LD"; then
5778  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779  for ac_dir in $PATH; do
5780    IFS="$lt_save_ifs"
5781    test -z "$ac_dir" && ac_dir=.
5782    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5783      lt_cv_path_LD="$ac_dir/$ac_prog"
5784      # Check to see if the program is GNU ld.  I'd rather use --version,
5785      # but apparently some variants of GNU ld only accept -v.
5786      # Break only if it was the GNU/non-GNU ld that we prefer.
5787      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5788      *GNU* | *'with BFD'*)
5789	test "$with_gnu_ld" != no && break
5790	;;
5791      *)
5792	test "$with_gnu_ld" != yes && break
5793	;;
5794      esac
5795    fi
5796  done
5797  IFS="$lt_save_ifs"
5798else
5799  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5800fi
5801fi
5802
5803LD="$lt_cv_path_LD"
5804if test -n "$LD"; then
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5806$as_echo "$LD" >&6; }
5807else
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5813$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5814if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5818case `$LD -v 2>&1 </dev/null` in
5819*GNU* | *'with BFD'*)
5820  lt_cv_prog_gnu_ld=yes
5821  ;;
5822*)
5823  lt_cv_prog_gnu_ld=no
5824  ;;
5825esac
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5828$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5829with_gnu_ld=$lt_cv_prog_gnu_ld
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5840$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5841if test "${lt_cv_path_NM+set}" = set; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  if test -n "$NM"; then
5845  # Let the user override the test.
5846  lt_cv_path_NM="$NM"
5847else
5848  lt_nm_to_check="${ac_tool_prefix}nm"
5849  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5850    lt_nm_to_check="$lt_nm_to_check nm"
5851  fi
5852  for lt_tmp_nm in $lt_nm_to_check; do
5853    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5854    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5855      IFS="$lt_save_ifs"
5856      test -z "$ac_dir" && ac_dir=.
5857      tmp_nm="$ac_dir/$lt_tmp_nm"
5858      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5859	# Check to see if the nm accepts a BSD-compat flag.
5860	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5861	#   nm: unknown option "B" ignored
5862	# Tru64's nm complains that /dev/null is an invalid object file
5863	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5864	*/dev/null* | *'Invalid file or object type'*)
5865	  lt_cv_path_NM="$tmp_nm -B"
5866	  break
5867	  ;;
5868	*)
5869	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5870	  */dev/null*)
5871	    lt_cv_path_NM="$tmp_nm -p"
5872	    break
5873	    ;;
5874	  *)
5875	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5876	    continue # so that we can try to find one that supports BSD flags
5877	    ;;
5878	  esac
5879	  ;;
5880	esac
5881      fi
5882    done
5883    IFS="$lt_save_ifs"
5884  done
5885  : ${lt_cv_path_NM=no}
5886fi
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5889$as_echo "$lt_cv_path_NM" >&6; }
5890if test "$lt_cv_path_NM" != "no"; then
5891  NM="$lt_cv_path_NM"
5892else
5893  # Didn't find any BSD compatible name lister, look for dumpbin.
5894  if test -n "$ac_tool_prefix"; then
5895  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5896  do
5897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  if test -n "$DUMPBIN"; then
5905  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910  IFS=$as_save_IFS
5911  test -z "$as_dir" && as_dir=.
5912    for ac_exec_ext in '' $ac_executable_extensions; do
5913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916    break 2
5917  fi
5918done
5919  done
5920IFS=$as_save_IFS
5921
5922fi
5923fi
5924DUMPBIN=$ac_cv_prog_DUMPBIN
5925if test -n "$DUMPBIN"; then
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5927$as_echo "$DUMPBIN" >&6; }
5928else
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930$as_echo "no" >&6; }
5931fi
5932
5933
5934    test -n "$DUMPBIN" && break
5935  done
5936fi
5937if test -z "$DUMPBIN"; then
5938  ac_ct_DUMPBIN=$DUMPBIN
5939  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5940do
5941  # Extract the first word of "$ac_prog", so it can be a program name with args.
5942set dummy $ac_prog; ac_word=$2
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944$as_echo_n "checking for $ac_word... " >&6; }
5945if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  if test -n "$ac_ct_DUMPBIN"; then
5949  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954  IFS=$as_save_IFS
5955  test -z "$as_dir" && as_dir=.
5956    for ac_exec_ext in '' $ac_executable_extensions; do
5957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960    break 2
5961  fi
5962done
5963  done
5964IFS=$as_save_IFS
5965
5966fi
5967fi
5968ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5969if test -n "$ac_ct_DUMPBIN"; then
5970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5971$as_echo "$ac_ct_DUMPBIN" >&6; }
5972else
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }
5975fi
5976
5977
5978  test -n "$ac_ct_DUMPBIN" && break
5979done
5980
5981  if test "x$ac_ct_DUMPBIN" = x; then
5982    DUMPBIN=":"
5983  else
5984    case $cross_compiling:$ac_tool_warned in
5985yes:)
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988ac_tool_warned=yes ;;
5989esac
5990    DUMPBIN=$ac_ct_DUMPBIN
5991  fi
5992fi
5993
5994
5995  if test "$DUMPBIN" != ":"; then
5996    NM="$DUMPBIN"
5997  fi
5998fi
5999test -z "$NM" && NM=nm
6000
6001
6002
6003
6004
6005
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6007$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6008if test "${lt_cv_nm_interface+set}" = set; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  lt_cv_nm_interface="BSD nm"
6012  echo "int some_variable = 0;" > conftest.$ac_ext
6013  (eval echo "\"\$as_me:6013: $ac_compile\"" >&5)
6014  (eval "$ac_compile" 2>conftest.err)
6015  cat conftest.err >&5
6016  (eval echo "\"\$as_me:6016: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6017  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6018  cat conftest.err >&5
6019  (eval echo "\"\$as_me:6019: output\"" >&5)
6020  cat conftest.out >&5
6021  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6022    lt_cv_nm_interface="MS dumpbin"
6023  fi
6024  rm -f conftest*
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6027$as_echo "$lt_cv_nm_interface" >&6; }
6028
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6030$as_echo_n "checking whether ln -s works... " >&6; }
6031LN_S=$as_ln_s
6032if test "$LN_S" = "ln -s"; then
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6034$as_echo "yes" >&6; }
6035else
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6037$as_echo "no, using $LN_S" >&6; }
6038fi
6039
6040# find the maximum length of command line arguments
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6042$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6043if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046    i=0
6047  teststring="ABCD"
6048
6049  case $build_os in
6050  msdosdjgpp*)
6051    # On DJGPP, this test can blow up pretty badly due to problems in libc
6052    # (any single argument exceeding 2000 bytes causes a buffer overrun
6053    # during glob expansion).  Even if it were fixed, the result of this
6054    # check would be larger than it should be.
6055    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6056    ;;
6057
6058  gnu*)
6059    # Under GNU Hurd, this test is not required because there is
6060    # no limit to the length of command line arguments.
6061    # Libtool will interpret -1 as no limit whatsoever
6062    lt_cv_sys_max_cmd_len=-1;
6063    ;;
6064
6065  cygwin* | mingw* | cegcc*)
6066    # On Win9x/ME, this test blows up -- it succeeds, but takes
6067    # about 5 minutes as the teststring grows exponentially.
6068    # Worse, since 9x/ME are not pre-emptively multitasking,
6069    # you end up with a "frozen" computer, even though with patience
6070    # the test eventually succeeds (with a max line length of 256k).
6071    # Instead, let's just punt: use the minimum linelength reported by
6072    # all of the supported platforms: 8192 (on NT/2K/XP).
6073    lt_cv_sys_max_cmd_len=8192;
6074    ;;
6075
6076  amigaos*)
6077    # On AmigaOS with pdksh, this test takes hours, literally.
6078    # So we just punt and use a minimum line length of 8192.
6079    lt_cv_sys_max_cmd_len=8192;
6080    ;;
6081
6082  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6083    # This has been around since 386BSD, at least.  Likely further.
6084    if test -x /sbin/sysctl; then
6085      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6086    elif test -x /usr/sbin/sysctl; then
6087      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6088    else
6089      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6090    fi
6091    # And add a safety zone
6092    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6093    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6094    ;;
6095
6096  interix*)
6097    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6098    lt_cv_sys_max_cmd_len=196608
6099    ;;
6100
6101  osf*)
6102    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6103    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6104    # nice to cause kernel panics so lets avoid the loop below.
6105    # First set a reasonable default.
6106    lt_cv_sys_max_cmd_len=16384
6107    #
6108    if test -x /sbin/sysconfig; then
6109      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6110        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6111      esac
6112    fi
6113    ;;
6114  sco3.2v5*)
6115    lt_cv_sys_max_cmd_len=102400
6116    ;;
6117  sysv5* | sco5v6* | sysv4.2uw2*)
6118    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6119    if test -n "$kargmax"; then
6120      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6121    else
6122      lt_cv_sys_max_cmd_len=32768
6123    fi
6124    ;;
6125  *)
6126    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6127    if test -n "$lt_cv_sys_max_cmd_len"; then
6128      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6130    else
6131      # Make teststring a little bigger before we do anything with it.
6132      # a 1K string should be a reasonable start.
6133      for i in 1 2 3 4 5 6 7 8 ; do
6134        teststring=$teststring$teststring
6135      done
6136      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6137      # If test is not a shell built-in, we'll probably end up computing a
6138      # maximum length that is only half of the actual maximum length, but
6139      # we can't tell.
6140      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6141	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6142	      test $i != 17 # 1/2 MB should be enough
6143      do
6144        i=`expr $i + 1`
6145        teststring=$teststring$teststring
6146      done
6147      # Only check the string length outside the loop.
6148      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6149      teststring=
6150      # Add a significant safety factor because C++ compilers can tack on
6151      # massive amounts of additional arguments before passing them to the
6152      # linker.  It appears as though 1/2 is a usable value.
6153      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6154    fi
6155    ;;
6156  esac
6157
6158fi
6159
6160if test -n $lt_cv_sys_max_cmd_len ; then
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6162$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6163else
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6165$as_echo "none" >&6; }
6166fi
6167max_cmd_len=$lt_cv_sys_max_cmd_len
6168
6169
6170
6171
6172
6173
6174: ${CP="cp -f"}
6175: ${MV="mv -f"}
6176: ${RM="rm -f"}
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6179$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6180# Try some XSI features
6181xsi_shell=no
6182( _lt_dummy="a/b/c"
6183  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6184      = c,a/b,, \
6185    && eval 'test $(( 1 + 1 )) -eq 2 \
6186    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6187  && xsi_shell=yes
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6189$as_echo "$xsi_shell" >&6; }
6190
6191
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6193$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6194lt_shell_append=no
6195( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6196    >/dev/null 2>&1 \
6197  && lt_shell_append=yes
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6199$as_echo "$lt_shell_append" >&6; }
6200
6201
6202if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6203  lt_unset=unset
6204else
6205  lt_unset=false
6206fi
6207
6208
6209
6210
6211
6212# test EBCDIC or ASCII
6213case `echo X|tr X '\101'` in
6214 A) # ASCII based system
6215    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6216  lt_SP2NL='tr \040 \012'
6217  lt_NL2SP='tr \015\012 \040\040'
6218  ;;
6219 *) # EBCDIC based system
6220  lt_SP2NL='tr \100 \n'
6221  lt_NL2SP='tr \r\n \100\100'
6222  ;;
6223esac
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6234$as_echo_n "checking for $LD option to reload object files... " >&6; }
6235if test "${lt_cv_ld_reload_flag+set}" = set; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  lt_cv_ld_reload_flag='-r'
6239fi
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6241$as_echo "$lt_cv_ld_reload_flag" >&6; }
6242reload_flag=$lt_cv_ld_reload_flag
6243case $reload_flag in
6244"" | " "*) ;;
6245*) reload_flag=" $reload_flag" ;;
6246esac
6247reload_cmds='$LD$reload_flag -o $output$reload_objs'
6248case $host_os in
6249  darwin*)
6250    if test "$GCC" = yes; then
6251      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6252    else
6253      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6254    fi
6255    ;;
6256esac
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266if test -n "$ac_tool_prefix"; then
6267  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6268set dummy ${ac_tool_prefix}objdump; ac_word=$2
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270$as_echo_n "checking for $ac_word... " >&6; }
6271if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  if test -n "$OBJDUMP"; then
6275  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  test -z "$as_dir" && as_dir=.
6282    for ac_exec_ext in '' $ac_executable_extensions; do
6283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286    break 2
6287  fi
6288done
6289  done
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294OBJDUMP=$ac_cv_prog_OBJDUMP
6295if test -n "$OBJDUMP"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6297$as_echo "$OBJDUMP" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300$as_echo "no" >&6; }
6301fi
6302
6303
6304fi
6305if test -z "$ac_cv_prog_OBJDUMP"; then
6306  ac_ct_OBJDUMP=$OBJDUMP
6307  # Extract the first word of "objdump", so it can be a program name with args.
6308set dummy objdump; ac_word=$2
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
6311if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -n "$ac_ct_OBJDUMP"; then
6315  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322    for ac_exec_ext in '' $ac_executable_extensions; do
6323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329  done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6335if test -n "$ac_ct_OBJDUMP"; then
6336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6337$as_echo "$ac_ct_OBJDUMP" >&6; }
6338else
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343  if test "x$ac_ct_OBJDUMP" = x; then
6344    OBJDUMP="false"
6345  else
6346    case $cross_compiling:$ac_tool_warned in
6347yes:)
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350ac_tool_warned=yes ;;
6351esac
6352    OBJDUMP=$ac_ct_OBJDUMP
6353  fi
6354else
6355  OBJDUMP="$ac_cv_prog_OBJDUMP"
6356fi
6357
6358test -z "$OBJDUMP" && OBJDUMP=objdump
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6369$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6370if test "${lt_cv_deplibs_check_method+set}" = set; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  lt_cv_file_magic_cmd='$MAGIC_CMD'
6374lt_cv_file_magic_test_file=
6375lt_cv_deplibs_check_method='unknown'
6376# Need to set the preceding variable on all platforms that support
6377# interlibrary dependencies.
6378# 'none' -- dependencies not supported.
6379# `unknown' -- same as none, but documents that we really don't know.
6380# 'pass_all' -- all dependencies passed with no checks.
6381# 'test_compile' -- check by making test program.
6382# 'file_magic [[regex]]' -- check by looking for files in library path
6383# which responds to the $file_magic_cmd with a given extended regex.
6384# If you have `file' or equivalent on your system and you're not sure
6385# whether `pass_all' will *always* work, you probably want this one.
6386
6387case $host_os in
6388aix[4-9]*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391
6392beos*)
6393  lt_cv_deplibs_check_method=pass_all
6394  ;;
6395
6396bsdi[45]*)
6397  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6398  lt_cv_file_magic_cmd='/usr/bin/file -L'
6399  lt_cv_file_magic_test_file=/shlib/libc.so
6400  ;;
6401
6402cygwin*)
6403  # func_win32_libid is a shell function defined in ltmain.sh
6404  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6405  lt_cv_file_magic_cmd='func_win32_libid'
6406  ;;
6407
6408mingw* | pw32*)
6409  # Base MSYS/MinGW do not provide the 'file' command needed by
6410  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6411  # unless we find 'file', for example because we are cross-compiling.
6412  if ( file / ) >/dev/null 2>&1; then
6413    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6414    lt_cv_file_magic_cmd='func_win32_libid'
6415  else
6416    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6417    lt_cv_file_magic_cmd='$OBJDUMP -f'
6418  fi
6419  ;;
6420
6421cegcc)
6422  # use the weaker test based on 'objdump'. See mingw*.
6423  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6424  lt_cv_file_magic_cmd='$OBJDUMP -f'
6425  ;;
6426
6427darwin* | rhapsody*)
6428  lt_cv_deplibs_check_method=pass_all
6429  ;;
6430
6431freebsd* | dragonfly*)
6432  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6433    case $host_cpu in
6434    i*86 )
6435      # Not sure whether the presence of OpenBSD here was a mistake.
6436      # Let's accept both of them until this is cleared up.
6437      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6438      lt_cv_file_magic_cmd=/usr/bin/file
6439      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6440      ;;
6441    esac
6442  else
6443    lt_cv_deplibs_check_method=pass_all
6444  fi
6445  ;;
6446
6447gnu*)
6448  lt_cv_deplibs_check_method=pass_all
6449  ;;
6450
6451hpux10.20* | hpux11*)
6452  lt_cv_file_magic_cmd=/usr/bin/file
6453  case $host_cpu in
6454  ia64*)
6455    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6456    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6457    ;;
6458  hppa*64*)
6459    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]'
6460    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6461    ;;
6462  *)
6463    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6464    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6465    ;;
6466  esac
6467  ;;
6468
6469interix[3-9]*)
6470  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6471  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6472  ;;
6473
6474irix5* | irix6* | nonstopux*)
6475  case $LD in
6476  *-32|*"-32 ") libmagic=32-bit;;
6477  *-n32|*"-n32 ") libmagic=N32;;
6478  *-64|*"-64 ") libmagic=64-bit;;
6479  *) libmagic=never-match;;
6480  esac
6481  lt_cv_deplibs_check_method=pass_all
6482  ;;
6483
6484# This must be Linux ELF.
6485linux* | k*bsd*-gnu)
6486  lt_cv_deplibs_check_method=pass_all
6487  ;;
6488
6489netbsd*)
6490  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6491    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492  else
6493    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6494  fi
6495  ;;
6496
6497newos6*)
6498  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6499  lt_cv_file_magic_cmd=/usr/bin/file
6500  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6501  ;;
6502
6503*nto* | *qnx*)
6504  lt_cv_deplibs_check_method=pass_all
6505  ;;
6506
6507openbsd*)
6508  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6509    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510  else
6511    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6512  fi
6513  ;;
6514
6515osf3* | osf4* | osf5*)
6516  lt_cv_deplibs_check_method=pass_all
6517  ;;
6518
6519rdos*)
6520  lt_cv_deplibs_check_method=pass_all
6521  ;;
6522
6523solaris*)
6524  lt_cv_deplibs_check_method=pass_all
6525  ;;
6526
6527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6528  lt_cv_deplibs_check_method=pass_all
6529  ;;
6530
6531sysv4 | sysv4.3*)
6532  case $host_vendor in
6533  motorola)
6534    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]'
6535    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6536    ;;
6537  ncr)
6538    lt_cv_deplibs_check_method=pass_all
6539    ;;
6540  sequent)
6541    lt_cv_file_magic_cmd='/bin/file'
6542    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6543    ;;
6544  sni)
6545    lt_cv_file_magic_cmd='/bin/file'
6546    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6547    lt_cv_file_magic_test_file=/lib/libc.so
6548    ;;
6549  siemens)
6550    lt_cv_deplibs_check_method=pass_all
6551    ;;
6552  pc)
6553    lt_cv_deplibs_check_method=pass_all
6554    ;;
6555  esac
6556  ;;
6557
6558tpf*)
6559  lt_cv_deplibs_check_method=pass_all
6560  ;;
6561esac
6562
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6565$as_echo "$lt_cv_deplibs_check_method" >&6; }
6566file_magic_cmd=$lt_cv_file_magic_cmd
6567deplibs_check_method=$lt_cv_deplibs_check_method
6568test -z "$deplibs_check_method" && deplibs_check_method=unknown
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581if test -n "$ac_tool_prefix"; then
6582  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6583set dummy ${ac_tool_prefix}ar; ac_word=$2
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585$as_echo_n "checking for $ac_word... " >&6; }
6586if test "${ac_cv_prog_AR+set}" = set; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  if test -n "$AR"; then
6590  ac_cv_prog_AR="$AR" # Let the user override the test.
6591else
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595  IFS=$as_save_IFS
6596  test -z "$as_dir" && as_dir=.
6597    for ac_exec_ext in '' $ac_executable_extensions; do
6598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599    ac_cv_prog_AR="${ac_tool_prefix}ar"
6600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601    break 2
6602  fi
6603done
6604  done
6605IFS=$as_save_IFS
6606
6607fi
6608fi
6609AR=$ac_cv_prog_AR
6610if test -n "$AR"; then
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6612$as_echo "$AR" >&6; }
6613else
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615$as_echo "no" >&6; }
6616fi
6617
6618
6619fi
6620if test -z "$ac_cv_prog_AR"; then
6621  ac_ct_AR=$AR
6622  # Extract the first word of "ar", so it can be a program name with args.
6623set dummy ar; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
6626if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  if test -n "$ac_ct_AR"; then
6630  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637    for ac_exec_ext in '' $ac_executable_extensions; do
6638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639    ac_cv_prog_ac_ct_AR="ar"
6640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644  done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649ac_ct_AR=$ac_cv_prog_ac_ct_AR
6650if test -n "$ac_ct_AR"; then
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6652$as_echo "$ac_ct_AR" >&6; }
6653else
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658  if test "x$ac_ct_AR" = x; then
6659    AR="false"
6660  else
6661    case $cross_compiling:$ac_tool_warned in
6662yes:)
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665ac_tool_warned=yes ;;
6666esac
6667    AR=$ac_ct_AR
6668  fi
6669else
6670  AR="$ac_cv_prog_AR"
6671fi
6672
6673test -z "$AR" && AR=ar
6674test -z "$AR_FLAGS" && AR_FLAGS=cru
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686if test -n "$ac_tool_prefix"; then
6687  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6688set dummy ${ac_tool_prefix}strip; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
6691if test "${ac_cv_prog_STRIP+set}" = set; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  if test -n "$STRIP"; then
6695  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700  IFS=$as_save_IFS
6701  test -z "$as_dir" && as_dir=.
6702    for ac_exec_ext in '' $ac_executable_extensions; do
6703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706    break 2
6707  fi
6708done
6709  done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714STRIP=$ac_cv_prog_STRIP
6715if test -n "$STRIP"; then
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6717$as_echo "$STRIP" >&6; }
6718else
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723
6724fi
6725if test -z "$ac_cv_prog_STRIP"; then
6726  ac_ct_STRIP=$STRIP
6727  # Extract the first word of "strip", so it can be a program name with args.
6728set dummy strip; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -n "$ac_ct_STRIP"; then
6735  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744    ac_cv_prog_ac_ct_STRIP="strip"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6755if test -n "$ac_ct_STRIP"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6757$as_echo "$ac_ct_STRIP" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763  if test "x$ac_ct_STRIP" = x; then
6764    STRIP=":"
6765  else
6766    case $cross_compiling:$ac_tool_warned in
6767yes:)
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770ac_tool_warned=yes ;;
6771esac
6772    STRIP=$ac_ct_STRIP
6773  fi
6774else
6775  STRIP="$ac_cv_prog_STRIP"
6776fi
6777
6778test -z "$STRIP" && STRIP=:
6779
6780
6781
6782
6783
6784
6785if test -n "$ac_tool_prefix"; then
6786  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
6790if test "${ac_cv_prog_RANLIB+set}" = set; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  if test -n "$RANLIB"; then
6794  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813RANLIB=$ac_cv_prog_RANLIB
6814if test -n "$RANLIB"; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6816$as_echo "$RANLIB" >&6; }
6817else
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822
6823fi
6824if test -z "$ac_cv_prog_RANLIB"; then
6825  ac_ct_RANLIB=$RANLIB
6826  # Extract the first word of "ranlib", so it can be a program name with args.
6827set dummy ranlib; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  if test -n "$ac_ct_RANLIB"; then
6834  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839  IFS=$as_save_IFS
6840  test -z "$as_dir" && as_dir=.
6841    for ac_exec_ext in '' $ac_executable_extensions; do
6842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843    ac_cv_prog_ac_ct_RANLIB="ranlib"
6844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845    break 2
6846  fi
6847done
6848  done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854if test -n "$ac_ct_RANLIB"; then
6855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6856$as_echo "$ac_ct_RANLIB" >&6; }
6857else
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862  if test "x$ac_ct_RANLIB" = x; then
6863    RANLIB=":"
6864  else
6865    case $cross_compiling:$ac_tool_warned in
6866yes:)
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869ac_tool_warned=yes ;;
6870esac
6871    RANLIB=$ac_ct_RANLIB
6872  fi
6873else
6874  RANLIB="$ac_cv_prog_RANLIB"
6875fi
6876
6877test -z "$RANLIB" && RANLIB=:
6878
6879
6880
6881
6882
6883
6884# Determine commands to create old-style static archives.
6885old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886old_postinstall_cmds='chmod 644 $oldlib'
6887old_postuninstall_cmds=
6888
6889if test -n "$RANLIB"; then
6890  case $host_os in
6891  openbsd*)
6892    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6893    ;;
6894  *)
6895    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6896    ;;
6897  esac
6898  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6899fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934# If no C compiler was specified, use CC.
6935LTCC=${LTCC-"$CC"}
6936
6937# If no C compiler flags were specified, use CFLAGS.
6938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6939
6940# Allow CC to be a program name with arguments.
6941compiler=$CC
6942
6943
6944# Check for command to grab the raw symbol name followed by C symbol from nm.
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6946$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6947if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950
6951# These are sane defaults that work on at least a few old systems.
6952# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6953
6954# Character class describing NM global symbol codes.
6955symcode='[BCDEGRST]'
6956
6957# Regexp to match symbols that can be accessed directly from C.
6958sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6959
6960# Define system-specific variables.
6961case $host_os in
6962aix*)
6963  symcode='[BCDT]'
6964  ;;
6965cygwin* | mingw* | pw32* | cegcc*)
6966  symcode='[ABCDGISTW]'
6967  ;;
6968hpux*)
6969  if test "$host_cpu" = ia64; then
6970    symcode='[ABCDEGRST]'
6971  fi
6972  ;;
6973irix* | nonstopux*)
6974  symcode='[BCDEGRST]'
6975  ;;
6976osf*)
6977  symcode='[BCDEGQRST]'
6978  ;;
6979solaris*)
6980  symcode='[BDRT]'
6981  ;;
6982sco3.2v5*)
6983  symcode='[DT]'
6984  ;;
6985sysv4.2uw2*)
6986  symcode='[DT]'
6987  ;;
6988sysv5* | sco5v6* | unixware* | OpenUNIX*)
6989  symcode='[ABDT]'
6990  ;;
6991sysv4)
6992  symcode='[DFNSTU]'
6993  ;;
6994esac
6995
6996# If we're using GNU nm, then use its standard symbol codes.
6997case `$NM -V 2>&1` in
6998*GNU* | *'with BFD'*)
6999  symcode='[ABCDGIRSTW]' ;;
7000esac
7001
7002# Transform an extracted symbol line into a proper C declaration.
7003# Some systems (esp. on ia64) link data and code symbols differently,
7004# so use this general approach.
7005lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7006
7007# Transform an extracted symbol line into symbol name and symbol address
7008lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7009lt_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'"
7010
7011# Handle CRLF in mingw tool chain
7012opt_cr=
7013case $build_os in
7014mingw*)
7015  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7016  ;;
7017esac
7018
7019# Try without a prefix underscore, then with it.
7020for ac_symprfx in "" "_"; do
7021
7022  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023  symxfrm="\\1 $ac_symprfx\\2 \\2"
7024
7025  # Write the raw and C identifiers.
7026  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027    # Fake it for dumpbin and say T for any non-static function
7028    # and D for any global variable.
7029    # Also find C++ and __fastcall symbols from MSVC++,
7030    # which start with @ or ?.
7031    lt_cv_sys_global_symbol_pipe="$AWK '"\
7032"     {last_section=section; section=\$ 3};"\
7033"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7034"     \$ 0!~/External *\|/{next};"\
7035"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7036"     {if(hide[section]) next};"\
7037"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7038"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7039"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7040"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7041"     ' prfx=^$ac_symprfx"
7042  else
7043    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044  fi
7045
7046  # Check to see that the pipe works correctly.
7047  pipe_works=no
7048
7049  rm -f conftest*
7050  cat > conftest.$ac_ext <<_LT_EOF
7051#ifdef __cplusplus
7052extern "C" {
7053#endif
7054char nm_test_var;
7055void nm_test_func(void);
7056void nm_test_func(void){}
7057#ifdef __cplusplus
7058}
7059#endif
7060int main(){nm_test_var='a';nm_test_func();return(0);}
7061_LT_EOF
7062
7063  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064  (eval $ac_compile) 2>&5
7065  ac_status=$?
7066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067  test $ac_status = 0; }; then
7068    # Now try to grab the symbols.
7069    nlist=conftest.nm
7070    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7071  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7072  ac_status=$?
7073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7074  test $ac_status = 0; } && test -s "$nlist"; then
7075      # Try sorting and uniquifying the output.
7076      if sort "$nlist" | uniq > "$nlist"T; then
7077	mv -f "$nlist"T "$nlist"
7078      else
7079	rm -f "$nlist"T
7080      fi
7081
7082      # Make sure that we snagged all the symbols we need.
7083      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7084	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7085	  cat <<_LT_EOF > conftest.$ac_ext
7086#ifdef __cplusplus
7087extern "C" {
7088#endif
7089
7090_LT_EOF
7091	  # Now generate the symbol file.
7092	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7093
7094	  cat <<_LT_EOF >> conftest.$ac_ext
7095
7096/* The mapping between symbol names and symbols.  */
7097const struct {
7098  const char *name;
7099  void       *address;
7100}
7101lt__PROGRAM__LTX_preloaded_symbols[] =
7102{
7103  { "@PROGRAM@", (void *) 0 },
7104_LT_EOF
7105	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7106	  cat <<\_LT_EOF >> conftest.$ac_ext
7107  {0, (void *) 0}
7108};
7109
7110/* This works around a problem in FreeBSD linker */
7111#ifdef FREEBSD_WORKAROUND
7112static const void *lt_preloaded_setup() {
7113  return lt__PROGRAM__LTX_preloaded_symbols;
7114}
7115#endif
7116
7117#ifdef __cplusplus
7118}
7119#endif
7120_LT_EOF
7121	  # Now try linking the two files.
7122	  mv conftest.$ac_objext conftstm.$ac_objext
7123	  lt_save_LIBS="$LIBS"
7124	  lt_save_CFLAGS="$CFLAGS"
7125	  LIBS="conftstm.$ac_objext"
7126	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7127	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7128  (eval $ac_link) 2>&5
7129  ac_status=$?
7130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7131  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7132	    pipe_works=yes
7133	  fi
7134	  LIBS="$lt_save_LIBS"
7135	  CFLAGS="$lt_save_CFLAGS"
7136	else
7137	  echo "cannot find nm_test_func in $nlist" >&5
7138	fi
7139      else
7140	echo "cannot find nm_test_var in $nlist" >&5
7141      fi
7142    else
7143      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7144    fi
7145  else
7146    echo "$progname: failed program was:" >&5
7147    cat conftest.$ac_ext >&5
7148  fi
7149  rm -rf conftest* conftst*
7150
7151  # Do not use the global_symbol_pipe unless it works.
7152  if test "$pipe_works" = yes; then
7153    break
7154  else
7155    lt_cv_sys_global_symbol_pipe=
7156  fi
7157done
7158
7159fi
7160
7161if test -z "$lt_cv_sys_global_symbol_pipe"; then
7162  lt_cv_sys_global_symbol_to_cdecl=
7163fi
7164if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7166$as_echo "failed" >&6; }
7167else
7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7169$as_echo "ok" >&6; }
7170fi
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193# Check whether --enable-libtool-lock was given.
7194if test "${enable_libtool_lock+set}" = set; then :
7195  enableval=$enable_libtool_lock;
7196fi
7197
7198test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7199
7200# Some flags need to be propagated to the compiler or linker for good
7201# libtool support.
7202case $host in
7203ia64-*-hpux*)
7204  # Find out which ABI we are using.
7205  echo 'int i;' > conftest.$ac_ext
7206  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207  (eval $ac_compile) 2>&5
7208  ac_status=$?
7209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210  test $ac_status = 0; }; then
7211    case `/usr/bin/file conftest.$ac_objext` in
7212      *ELF-32*)
7213	HPUX_IA64_MODE="32"
7214	;;
7215      *ELF-64*)
7216	HPUX_IA64_MODE="64"
7217	;;
7218    esac
7219  fi
7220  rm -rf conftest*
7221  ;;
7222*-*-irix6*)
7223  # Find out which ABI we are using.
7224  echo '#line 7224 "configure"' > conftest.$ac_ext
7225  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7226  (eval $ac_compile) 2>&5
7227  ac_status=$?
7228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229  test $ac_status = 0; }; then
7230    if test "$lt_cv_prog_gnu_ld" = yes; then
7231      case `/usr/bin/file conftest.$ac_objext` in
7232	*32-bit*)
7233	  LD="${LD-ld} -melf32bsmip"
7234	  ;;
7235	*N32*)
7236	  LD="${LD-ld} -melf32bmipn32"
7237	  ;;
7238	*64-bit*)
7239	  LD="${LD-ld} -melf64bmip"
7240	;;
7241      esac
7242    else
7243      case `/usr/bin/file conftest.$ac_objext` in
7244	*32-bit*)
7245	  LD="${LD-ld} -32"
7246	  ;;
7247	*N32*)
7248	  LD="${LD-ld} -n32"
7249	  ;;
7250	*64-bit*)
7251	  LD="${LD-ld} -64"
7252	  ;;
7253      esac
7254    fi
7255  fi
7256  rm -rf conftest*
7257  ;;
7258
7259x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7260s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7261  # Find out which ABI we are using.
7262  echo 'int i;' > conftest.$ac_ext
7263  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7264  (eval $ac_compile) 2>&5
7265  ac_status=$?
7266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267  test $ac_status = 0; }; then
7268    case `/usr/bin/file conftest.o` in
7269      *32-bit*)
7270	case $host in
7271	  x86_64-*kfreebsd*-gnu)
7272	    LD="${LD-ld} -m elf_i386_fbsd"
7273	    ;;
7274	  x86_64-*linux*)
7275	    LD="${LD-ld} -m elf_i386"
7276	    ;;
7277	  ppc64-*linux*|powerpc64-*linux*)
7278	    LD="${LD-ld} -m elf32ppclinux"
7279	    ;;
7280	  s390x-*linux*)
7281	    LD="${LD-ld} -m elf_s390"
7282	    ;;
7283	  sparc64-*linux*)
7284	    LD="${LD-ld} -m elf32_sparc"
7285	    ;;
7286	esac
7287	;;
7288      *64-bit*)
7289	case $host in
7290	  x86_64-*kfreebsd*-gnu)
7291	    LD="${LD-ld} -m elf_x86_64_fbsd"
7292	    ;;
7293	  x86_64-*linux*)
7294	    LD="${LD-ld} -m elf_x86_64"
7295	    ;;
7296	  ppc*-*linux*|powerpc*-*linux*)
7297	    LD="${LD-ld} -m elf64ppc"
7298	    ;;
7299	  s390*-*linux*|s390*-*tpf*)
7300	    LD="${LD-ld} -m elf64_s390"
7301	    ;;
7302	  sparc*-*linux*)
7303	    LD="${LD-ld} -m elf64_sparc"
7304	    ;;
7305	esac
7306	;;
7307    esac
7308  fi
7309  rm -rf conftest*
7310  ;;
7311
7312*-*-sco3.2v5*)
7313  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7314  SAVE_CFLAGS="$CFLAGS"
7315  CFLAGS="$CFLAGS -belf"
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7317$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7318if test "${lt_cv_cc_needs_belf+set}" = set; then :
7319  $as_echo_n "(cached) " >&6
7320else
7321  ac_ext=c
7322ac_cpp='$CPP $CPPFLAGS'
7323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326
7327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h.  */
7329
7330int
7331main ()
7332{
7333
7334  ;
7335  return 0;
7336}
7337_ACEOF
7338if ac_fn_c_try_link "$LINENO"; then :
7339  lt_cv_cc_needs_belf=yes
7340else
7341  lt_cv_cc_needs_belf=no
7342fi
7343rm -f core conftest.err conftest.$ac_objext \
7344    conftest$ac_exeext conftest.$ac_ext
7345     ac_ext=c
7346ac_cpp='$CPP $CPPFLAGS'
7347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7349ac_compiler_gnu=$ac_cv_c_compiler_gnu
7350
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7353$as_echo "$lt_cv_cc_needs_belf" >&6; }
7354  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7355    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7356    CFLAGS="$SAVE_CFLAGS"
7357  fi
7358  ;;
7359sparc*-*solaris*)
7360  # Find out which ABI we are using.
7361  echo 'int i;' > conftest.$ac_ext
7362  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7363  (eval $ac_compile) 2>&5
7364  ac_status=$?
7365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7366  test $ac_status = 0; }; then
7367    case `/usr/bin/file conftest.o` in
7368    *64-bit*)
7369      case $lt_cv_prog_gnu_ld in
7370      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7371      *)
7372	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7373	  LD="${LD-ld} -64"
7374	fi
7375	;;
7376      esac
7377      ;;
7378    esac
7379  fi
7380  rm -rf conftest*
7381  ;;
7382esac
7383
7384need_locks="$enable_libtool_lock"
7385
7386
7387  case $host_os in
7388    rhapsody* | darwin*)
7389    if test -n "$ac_tool_prefix"; then
7390  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7391set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$DSYMUTIL"; then
7398  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417DSYMUTIL=$ac_cv_prog_DSYMUTIL
7418if test -n "$DSYMUTIL"; then
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7420$as_echo "$DSYMUTIL" >&6; }
7421else
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426
7427fi
7428if test -z "$ac_cv_prog_DSYMUTIL"; then
7429  ac_ct_DSYMUTIL=$DSYMUTIL
7430  # Extract the first word of "dsymutil", so it can be a program name with args.
7431set dummy dsymutil; ac_word=$2
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  if test -n "$ac_ct_DSYMUTIL"; then
7438  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445    for ac_exec_ext in '' $ac_executable_extensions; do
7446  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452  done
7453IFS=$as_save_IFS
7454
7455fi
7456fi
7457ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7458if test -n "$ac_ct_DSYMUTIL"; then
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7460$as_echo "$ac_ct_DSYMUTIL" >&6; }
7461else
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
7465
7466  if test "x$ac_ct_DSYMUTIL" = x; then
7467    DSYMUTIL=":"
7468  else
7469    case $cross_compiling:$ac_tool_warned in
7470yes:)
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473ac_tool_warned=yes ;;
7474esac
7475    DSYMUTIL=$ac_ct_DSYMUTIL
7476  fi
7477else
7478  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7479fi
7480
7481    if test -n "$ac_tool_prefix"; then
7482  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7483set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485$as_echo_n "checking for $ac_word... " >&6; }
7486if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  if test -n "$NMEDIT"; then
7490  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497    for ac_exec_ext in '' $ac_executable_extensions; do
7498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504  done
7505IFS=$as_save_IFS
7506
7507fi
7508fi
7509NMEDIT=$ac_cv_prog_NMEDIT
7510if test -n "$NMEDIT"; then
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7512$as_echo "$NMEDIT" >&6; }
7513else
7514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517
7518
7519fi
7520if test -z "$ac_cv_prog_NMEDIT"; then
7521  ac_ct_NMEDIT=$NMEDIT
7522  # Extract the first word of "nmedit", so it can be a program name with args.
7523set dummy nmedit; ac_word=$2
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525$as_echo_n "checking for $ac_word... " >&6; }
7526if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  if test -n "$ac_ct_NMEDIT"; then
7530  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537    for ac_exec_ext in '' $ac_executable_extensions; do
7538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7539    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544  done
7545IFS=$as_save_IFS
7546
7547fi
7548fi
7549ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7550if test -n "$ac_ct_NMEDIT"; then
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7552$as_echo "$ac_ct_NMEDIT" >&6; }
7553else
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
7557
7558  if test "x$ac_ct_NMEDIT" = x; then
7559    NMEDIT=":"
7560  else
7561    case $cross_compiling:$ac_tool_warned in
7562yes:)
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565ac_tool_warned=yes ;;
7566esac
7567    NMEDIT=$ac_ct_NMEDIT
7568  fi
7569else
7570  NMEDIT="$ac_cv_prog_NMEDIT"
7571fi
7572
7573    if test -n "$ac_tool_prefix"; then
7574  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7575set dummy ${ac_tool_prefix}lipo; ac_word=$2
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if test "${ac_cv_prog_LIPO+set}" = set; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  if test -n "$LIPO"; then
7582  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587  IFS=$as_save_IFS
7588  test -z "$as_dir" && as_dir=.
7589    for ac_exec_ext in '' $ac_executable_extensions; do
7590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596  done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
7601LIPO=$ac_cv_prog_LIPO
7602if test -n "$LIPO"; then
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7604$as_echo "$LIPO" >&6; }
7605else
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
7609
7610
7611fi
7612if test -z "$ac_cv_prog_LIPO"; then
7613  ac_ct_LIPO=$LIPO
7614  # Extract the first word of "lipo", so it can be a program name with args.
7615set dummy lipo; ac_word=$2
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617$as_echo_n "checking for $ac_word... " >&6; }
7618if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7619  $as_echo_n "(cached) " >&6
7620else
7621  if test -n "$ac_ct_LIPO"; then
7622  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7623else
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627  IFS=$as_save_IFS
7628  test -z "$as_dir" && as_dir=.
7629    for ac_exec_ext in '' $ac_executable_extensions; do
7630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631    ac_cv_prog_ac_ct_LIPO="lipo"
7632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633    break 2
7634  fi
7635done
7636  done
7637IFS=$as_save_IFS
7638
7639fi
7640fi
7641ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7642if test -n "$ac_ct_LIPO"; then
7643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7644$as_echo "$ac_ct_LIPO" >&6; }
7645else
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
7648fi
7649
7650  if test "x$ac_ct_LIPO" = x; then
7651    LIPO=":"
7652  else
7653    case $cross_compiling:$ac_tool_warned in
7654yes:)
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657ac_tool_warned=yes ;;
7658esac
7659    LIPO=$ac_ct_LIPO
7660  fi
7661else
7662  LIPO="$ac_cv_prog_LIPO"
7663fi
7664
7665    if test -n "$ac_tool_prefix"; then
7666  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7667set dummy ${ac_tool_prefix}otool; ac_word=$2
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669$as_echo_n "checking for $ac_word... " >&6; }
7670if test "${ac_cv_prog_OTOOL+set}" = set; then :
7671  $as_echo_n "(cached) " >&6
7672else
7673  if test -n "$OTOOL"; then
7674  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7675else
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679  IFS=$as_save_IFS
7680  test -z "$as_dir" && as_dir=.
7681    for ac_exec_ext in '' $ac_executable_extensions; do
7682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685    break 2
7686  fi
7687done
7688  done
7689IFS=$as_save_IFS
7690
7691fi
7692fi
7693OTOOL=$ac_cv_prog_OTOOL
7694if test -n "$OTOOL"; then
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7696$as_echo "$OTOOL" >&6; }
7697else
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
7700fi
7701
7702
7703fi
7704if test -z "$ac_cv_prog_OTOOL"; then
7705  ac_ct_OTOOL=$OTOOL
7706  # Extract the first word of "otool", so it can be a program name with args.
7707set dummy otool; ac_word=$2
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709$as_echo_n "checking for $ac_word... " >&6; }
7710if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7711  $as_echo_n "(cached) " >&6
7712else
7713  if test -n "$ac_ct_OTOOL"; then
7714  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7715else
7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719  IFS=$as_save_IFS
7720  test -z "$as_dir" && as_dir=.
7721    for ac_exec_ext in '' $ac_executable_extensions; do
7722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723    ac_cv_prog_ac_ct_OTOOL="otool"
7724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725    break 2
7726  fi
7727done
7728  done
7729IFS=$as_save_IFS
7730
7731fi
7732fi
7733ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7734if test -n "$ac_ct_OTOOL"; then
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7736$as_echo "$ac_ct_OTOOL" >&6; }
7737else
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
7740fi
7741
7742  if test "x$ac_ct_OTOOL" = x; then
7743    OTOOL=":"
7744  else
7745    case $cross_compiling:$ac_tool_warned in
7746yes:)
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749ac_tool_warned=yes ;;
7750esac
7751    OTOOL=$ac_ct_OTOOL
7752  fi
7753else
7754  OTOOL="$ac_cv_prog_OTOOL"
7755fi
7756
7757    if test -n "$ac_tool_prefix"; then
7758  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7759set dummy ${ac_tool_prefix}otool64; ac_word=$2
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
7762if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7763  $as_echo_n "(cached) " >&6
7764else
7765  if test -n "$OTOOL64"; then
7766  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7767else
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771  IFS=$as_save_IFS
7772  test -z "$as_dir" && as_dir=.
7773    for ac_exec_ext in '' $ac_executable_extensions; do
7774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777    break 2
7778  fi
7779done
7780  done
7781IFS=$as_save_IFS
7782
7783fi
7784fi
7785OTOOL64=$ac_cv_prog_OTOOL64
7786if test -n "$OTOOL64"; then
7787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7788$as_echo "$OTOOL64" >&6; }
7789else
7790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792fi
7793
7794
7795fi
7796if test -z "$ac_cv_prog_OTOOL64"; then
7797  ac_ct_OTOOL64=$OTOOL64
7798  # Extract the first word of "otool64", so it can be a program name with args.
7799set dummy otool64; ac_word=$2
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801$as_echo_n "checking for $ac_word... " >&6; }
7802if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  if test -n "$ac_ct_OTOOL64"; then
7806  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811  IFS=$as_save_IFS
7812  test -z "$as_dir" && as_dir=.
7813    for ac_exec_ext in '' $ac_executable_extensions; do
7814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815    ac_cv_prog_ac_ct_OTOOL64="otool64"
7816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817    break 2
7818  fi
7819done
7820  done
7821IFS=$as_save_IFS
7822
7823fi
7824fi
7825ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7826if test -n "$ac_ct_OTOOL64"; then
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7828$as_echo "$ac_ct_OTOOL64" >&6; }
7829else
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834  if test "x$ac_ct_OTOOL64" = x; then
7835    OTOOL64=":"
7836  else
7837    case $cross_compiling:$ac_tool_warned in
7838yes:)
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7841ac_tool_warned=yes ;;
7842esac
7843    OTOOL64=$ac_ct_OTOOL64
7844  fi
7845else
7846  OTOOL64="$ac_cv_prog_OTOOL64"
7847fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7876$as_echo_n "checking for -single_module linker flag... " >&6; }
7877if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7878  $as_echo_n "(cached) " >&6
7879else
7880  lt_cv_apple_cc_single_mod=no
7881      if test -z "${LT_MULTI_MODULE}"; then
7882	# By default we will add the -single_module flag. You can override
7883	# by either setting the environment variable LT_MULTI_MODULE
7884	# non-empty at configure time, or by adding -multi_module to the
7885	# link flags.
7886	rm -rf libconftest.dylib*
7887	echo "int foo(void){return 1;}" > conftest.c
7888	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889-dynamiclib -Wl,-single_module conftest.c" >&5
7890	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7891	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7892        _lt_result=$?
7893	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7894	  lt_cv_apple_cc_single_mod=yes
7895	else
7896	  cat conftest.err >&5
7897	fi
7898	rm -rf libconftest.dylib*
7899	rm -f conftest.*
7900      fi
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7903$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7905$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7906if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  lt_cv_ld_exported_symbols_list=no
7910      save_LDFLAGS=$LDFLAGS
7911      echo "_main" > conftest.sym
7912      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915
7916int
7917main ()
7918{
7919
7920  ;
7921  return 0;
7922}
7923_ACEOF
7924if ac_fn_c_try_link "$LINENO"; then :
7925  lt_cv_ld_exported_symbols_list=yes
7926else
7927  lt_cv_ld_exported_symbols_list=no
7928fi
7929rm -f core conftest.err conftest.$ac_objext \
7930    conftest$ac_exeext conftest.$ac_ext
7931	LDFLAGS="$save_LDFLAGS"
7932
7933fi
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7935$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7936    case $host_os in
7937    rhapsody* | darwin1.[012])
7938      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7939    darwin1.*)
7940      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7941    darwin*) # darwin 5.x on
7942      # if running on 10.5 or later, the deployment target defaults
7943      # to the OS version, if on x86, and 10.4, the deployment
7944      # target defaults to 10.4. Don't you love it?
7945      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7946	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7947	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7948	10.[012]*)
7949	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7950	10.*)
7951	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7952      esac
7953    ;;
7954  esac
7955    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7956      _lt_dar_single_mod='$single_module'
7957    fi
7958    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7959      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7960    else
7961      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7962    fi
7963    if test "$DSYMUTIL" != ":"; then
7964      _lt_dsymutil='~$DSYMUTIL $lib || :'
7965    else
7966      _lt_dsymutil=
7967    fi
7968    ;;
7969  esac
7970
7971for ac_header in dlfcn.h
7972do :
7973  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7974"
7975if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7976  cat >>confdefs.h <<_ACEOF
7977#define HAVE_DLFCN_H 1
7978_ACEOF
7979
7980fi
7981
7982done
7983
7984
7985
7986# Set options
7987
7988
7989
7990        enable_dlopen=no
7991
7992
7993  enable_win32_dll=no
7994
7995
7996            # Check whether --enable-shared was given.
7997if test "${enable_shared+set}" = set; then :
7998  enableval=$enable_shared; p=${PACKAGE-default}
7999    case $enableval in
8000    yes) enable_shared=yes ;;
8001    no) enable_shared=no ;;
8002    *)
8003      enable_shared=no
8004      # Look at the argument we got.  We use all the common list separators.
8005      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8006      for pkg in $enableval; do
8007	IFS="$lt_save_ifs"
8008	if test "X$pkg" = "X$p"; then
8009	  enable_shared=yes
8010	fi
8011      done
8012      IFS="$lt_save_ifs"
8013      ;;
8014    esac
8015else
8016  enable_shared=yes
8017fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027  # Check whether --enable-static was given.
8028if test "${enable_static+set}" = set; then :
8029  enableval=$enable_static; p=${PACKAGE-default}
8030    case $enableval in
8031    yes) enable_static=yes ;;
8032    no) enable_static=no ;;
8033    *)
8034     enable_static=no
8035      # Look at the argument we got.  We use all the common list separators.
8036      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8037      for pkg in $enableval; do
8038	IFS="$lt_save_ifs"
8039	if test "X$pkg" = "X$p"; then
8040	  enable_static=yes
8041	fi
8042      done
8043      IFS="$lt_save_ifs"
8044      ;;
8045    esac
8046else
8047  enable_static=yes
8048fi
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059# Check whether --with-pic was given.
8060if test "${with_pic+set}" = set; then :
8061  withval=$with_pic; pic_mode="$withval"
8062else
8063  pic_mode=default
8064fi
8065
8066
8067test -z "$pic_mode" && pic_mode=default
8068
8069
8070
8071
8072
8073
8074
8075  # Check whether --enable-fast-install was given.
8076if test "${enable_fast_install+set}" = set; then :
8077  enableval=$enable_fast_install; p=${PACKAGE-default}
8078    case $enableval in
8079    yes) enable_fast_install=yes ;;
8080    no) enable_fast_install=no ;;
8081    *)
8082      enable_fast_install=no
8083      # Look at the argument we got.  We use all the common list separators.
8084      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8085      for pkg in $enableval; do
8086	IFS="$lt_save_ifs"
8087	if test "X$pkg" = "X$p"; then
8088	  enable_fast_install=yes
8089	fi
8090      done
8091      IFS="$lt_save_ifs"
8092      ;;
8093    esac
8094else
8095  enable_fast_install=yes
8096fi
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108# This can be used to rebuild libtool when needed
8109LIBTOOL_DEPS="$ltmain"
8110
8111# Always use our own libtool.
8112LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138test -z "$LN_S" && LN_S="ln -s"
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153if test -n "${ZSH_VERSION+set}" ; then
8154   setopt NO_GLOB_SUBST
8155fi
8156
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8158$as_echo_n "checking for objdir... " >&6; }
8159if test "${lt_cv_objdir+set}" = set; then :
8160  $as_echo_n "(cached) " >&6
8161else
8162  rm -f .libs 2>/dev/null
8163mkdir .libs 2>/dev/null
8164if test -d .libs; then
8165  lt_cv_objdir=.libs
8166else
8167  # MS-DOS does not allow filenames that begin with a dot.
8168  lt_cv_objdir=_libs
8169fi
8170rmdir .libs 2>/dev/null
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8173$as_echo "$lt_cv_objdir" >&6; }
8174objdir=$lt_cv_objdir
8175
8176
8177
8178
8179
8180cat >>confdefs.h <<_ACEOF
8181#define LT_OBJDIR "$lt_cv_objdir/"
8182_ACEOF
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200case $host_os in
8201aix3*)
8202  # AIX sometimes has problems with the GCC collect2 program.  For some
8203  # reason, if we set the COLLECT_NAMES environment variable, the problems
8204  # vanish in a puff of smoke.
8205  if test "X${COLLECT_NAMES+set}" != Xset; then
8206    COLLECT_NAMES=
8207    export COLLECT_NAMES
8208  fi
8209  ;;
8210esac
8211
8212# Sed substitution that helps us do robust quoting.  It backslashifies
8213# metacharacters that are still active within double-quoted strings.
8214sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8215
8216# Same as above, but do not quote variable references.
8217double_quote_subst='s/\(["`\\]\)/\\\1/g'
8218
8219# Sed substitution to delay expansion of an escaped shell variable in a
8220# double_quote_subst'ed string.
8221delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8222
8223# Sed substitution to delay expansion of an escaped single quote.
8224delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8225
8226# Sed substitution to avoid accidental globbing in evaled expressions
8227no_glob_subst='s/\*/\\\*/g'
8228
8229# Global variables:
8230ofile=libtool
8231can_build_shared=yes
8232
8233# All known linkers require a `.a' archive for static linking (except MSVC,
8234# which needs '.lib').
8235libext=a
8236
8237with_gnu_ld="$lt_cv_prog_gnu_ld"
8238
8239old_CC="$CC"
8240old_CFLAGS="$CFLAGS"
8241
8242# Set sane defaults for various variables
8243test -z "$CC" && CC=cc
8244test -z "$LTCC" && LTCC=$CC
8245test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246test -z "$LD" && LD=ld
8247test -z "$ac_objext" && ac_objext=o
8248
8249for cc_temp in $compiler""; do
8250  case $cc_temp in
8251    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253    \-*) ;;
8254    *) break;;
8255  esac
8256done
8257cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8258
8259
8260# Only perform the check for file, if the check method requires it
8261test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262case $deplibs_check_method in
8263file_magic*)
8264  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  case $MAGIC_CMD in
8271[\\/*] |  ?:[\\/]*)
8272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273  ;;
8274*)
8275  lt_save_MAGIC_CMD="$MAGIC_CMD"
8276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278  for ac_dir in $ac_dummy; do
8279    IFS="$lt_save_ifs"
8280    test -z "$ac_dir" && ac_dir=.
8281    if test -f $ac_dir/${ac_tool_prefix}file; then
8282      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283      if test -n "$file_magic_test_file"; then
8284	case $deplibs_check_method in
8285	"file_magic "*)
8286	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289	    $EGREP "$file_magic_regex" > /dev/null; then
8290	    :
8291	  else
8292	    cat <<_LT_EOF 1>&2
8293
8294*** Warning: the command libtool uses to detect shared libraries,
8295*** $file_magic_cmd, produces output that libtool cannot recognize.
8296*** The result is that libtool may fail to recognize shared libraries
8297*** as such.  This will affect the creation of libtool libraries that
8298*** depend on shared libraries, but programs linked with such libtool
8299*** libraries will work regardless of this problem.  Nevertheless, you
8300*** may want to report the problem to your system manager and/or to
8301*** bug-libtool@gnu.org
8302
8303_LT_EOF
8304	  fi ;;
8305	esac
8306      fi
8307      break
8308    fi
8309  done
8310  IFS="$lt_save_ifs"
8311  MAGIC_CMD="$lt_save_MAGIC_CMD"
8312  ;;
8313esac
8314fi
8315
8316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317if test -n "$MAGIC_CMD"; then
8318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319$as_echo "$MAGIC_CMD" >&6; }
8320else
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322$as_echo "no" >&6; }
8323fi
8324
8325
8326
8327
8328
8329if test -z "$lt_cv_path_MAGIC_CMD"; then
8330  if test -n "$ac_tool_prefix"; then
8331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332$as_echo_n "checking for file... " >&6; }
8333if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  case $MAGIC_CMD in
8337[\\/*] |  ?:[\\/]*)
8338  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339  ;;
8340*)
8341  lt_save_MAGIC_CMD="$MAGIC_CMD"
8342  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344  for ac_dir in $ac_dummy; do
8345    IFS="$lt_save_ifs"
8346    test -z "$ac_dir" && ac_dir=.
8347    if test -f $ac_dir/file; then
8348      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349      if test -n "$file_magic_test_file"; then
8350	case $deplibs_check_method in
8351	"file_magic "*)
8352	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355	    $EGREP "$file_magic_regex" > /dev/null; then
8356	    :
8357	  else
8358	    cat <<_LT_EOF 1>&2
8359
8360*** Warning: the command libtool uses to detect shared libraries,
8361*** $file_magic_cmd, produces output that libtool cannot recognize.
8362*** The result is that libtool may fail to recognize shared libraries
8363*** as such.  This will affect the creation of libtool libraries that
8364*** depend on shared libraries, but programs linked with such libtool
8365*** libraries will work regardless of this problem.  Nevertheless, you
8366*** may want to report the problem to your system manager and/or to
8367*** bug-libtool@gnu.org
8368
8369_LT_EOF
8370	  fi ;;
8371	esac
8372      fi
8373      break
8374    fi
8375  done
8376  IFS="$lt_save_ifs"
8377  MAGIC_CMD="$lt_save_MAGIC_CMD"
8378  ;;
8379esac
8380fi
8381
8382MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383if test -n "$MAGIC_CMD"; then
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385$as_echo "$MAGIC_CMD" >&6; }
8386else
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392  else
8393    MAGIC_CMD=:
8394  fi
8395fi
8396
8397  fi
8398  ;;
8399esac
8400
8401# Use C for the default configuration in the libtool script
8402
8403lt_save_CC="$CC"
8404ac_ext=c
8405ac_cpp='$CPP $CPPFLAGS'
8406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411# Source file extension for C test sources.
8412ac_ext=c
8413
8414# Object file extension for compiled C test sources.
8415objext=o
8416objext=$objext
8417
8418# Code to be used in simple compile tests
8419lt_simple_compile_test_code="int some_variable = 0;"
8420
8421# Code to be used in simple link tests
8422lt_simple_link_test_code='int main(){return(0);}'
8423
8424
8425
8426
8427
8428
8429
8430# If no C compiler was specified, use CC.
8431LTCC=${LTCC-"$CC"}
8432
8433# If no C compiler flags were specified, use CFLAGS.
8434LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435
8436# Allow CC to be a program name with arguments.
8437compiler=$CC
8438
8439# Save the default compiler, since it gets overwritten when the other
8440# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441compiler_DEFAULT=$CC
8442
8443# save warnings/boilerplate of simple test code
8444ac_outfile=conftest.$ac_objext
8445echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447_lt_compiler_boilerplate=`cat conftest.err`
8448$RM conftest*
8449
8450ac_outfile=conftest.$ac_objext
8451echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453_lt_linker_boilerplate=`cat conftest.err`
8454$RM -r conftest*
8455
8456
8457if test -n "$compiler"; then
8458
8459lt_prog_compiler_no_builtin_flag=
8460
8461if test "$GCC" = yes; then
8462  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8463
8464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8465$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8466if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8467  $as_echo_n "(cached) " >&6
8468else
8469  lt_cv_prog_compiler_rtti_exceptions=no
8470   ac_outfile=conftest.$ac_objext
8471   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8472   lt_compiler_flag="-fno-rtti -fno-exceptions"
8473   # Insert the option either (1) after the last *FLAGS variable, or
8474   # (2) before a word containing "conftest.", or (3) at the end.
8475   # Note that $ac_compile itself does not contain backslashes and begins
8476   # with a dollar sign (not a hyphen), so the echo should work correctly.
8477   # The option is referenced via a variable to avoid confusing sed.
8478   lt_compile=`echo "$ac_compile" | $SED \
8479   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8480   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481   -e 's:$: $lt_compiler_flag:'`
8482   (eval echo "\"\$as_me:8482: $lt_compile\"" >&5)
8483   (eval "$lt_compile" 2>conftest.err)
8484   ac_status=$?
8485   cat conftest.err >&5
8486   echo "$as_me:8486: \$? = $ac_status" >&5
8487   if (exit $ac_status) && test -s "$ac_outfile"; then
8488     # The compiler can only warn and ignore the option if not recognized
8489     # So say no if there are warnings other than the usual output.
8490     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8491     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8492     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8493       lt_cv_prog_compiler_rtti_exceptions=yes
8494     fi
8495   fi
8496   $RM conftest*
8497
8498fi
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8500$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8501
8502if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8503    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8504else
8505    :
8506fi
8507
8508fi
8509
8510
8511
8512
8513
8514
8515  lt_prog_compiler_wl=
8516lt_prog_compiler_pic=
8517lt_prog_compiler_static=
8518
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8520$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8521
8522  if test "$GCC" = yes; then
8523    lt_prog_compiler_wl='-Wl,'
8524    lt_prog_compiler_static='-static'
8525
8526    case $host_os in
8527      aix*)
8528      # All AIX code is PIC.
8529      if test "$host_cpu" = ia64; then
8530	# AIX 5 now supports IA64 processor
8531	lt_prog_compiler_static='-Bstatic'
8532      fi
8533      ;;
8534
8535    amigaos*)
8536      case $host_cpu in
8537      powerpc)
8538            # see comment about AmigaOS4 .so support
8539            lt_prog_compiler_pic='-fPIC'
8540        ;;
8541      m68k)
8542            # FIXME: we need at least 68020 code to build shared libraries, but
8543            # adding the `-m68020' flag to GCC prevents building anything better,
8544            # like `-m68040'.
8545            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8546        ;;
8547      esac
8548      ;;
8549
8550    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8551      # PIC is the default for these OSes.
8552      ;;
8553
8554    mingw* | cygwin* | pw32* | os2* | cegcc*)
8555      # This hack is so that the source file can tell whether it is being
8556      # built for inclusion in a dll (and should export symbols for example).
8557      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8558      # (--disable-auto-import) libraries
8559      lt_prog_compiler_pic='-DDLL_EXPORT'
8560      ;;
8561
8562    darwin* | rhapsody*)
8563      # PIC is the default on this platform
8564      # Common symbols not allowed in MH_DYLIB files
8565      lt_prog_compiler_pic='-fno-common'
8566      ;;
8567
8568    hpux*)
8569      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8570      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8571      # sets the default TLS model and affects inlining.
8572      case $host_cpu in
8573      hppa*64*)
8574	# +Z the default
8575	;;
8576      *)
8577	lt_prog_compiler_pic='-fPIC'
8578	;;
8579      esac
8580      ;;
8581
8582    interix[3-9]*)
8583      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8584      # Instead, we relocate shared libraries at runtime.
8585      ;;
8586
8587    msdosdjgpp*)
8588      # Just because we use GCC doesn't mean we suddenly get shared libraries
8589      # on systems that don't support them.
8590      lt_prog_compiler_can_build_shared=no
8591      enable_shared=no
8592      ;;
8593
8594    *nto* | *qnx*)
8595      # QNX uses GNU C++, but need to define -shared option too, otherwise
8596      # it will coredump.
8597      lt_prog_compiler_pic='-fPIC -shared'
8598      ;;
8599
8600    sysv4*MP*)
8601      if test -d /usr/nec; then
8602	lt_prog_compiler_pic=-Kconform_pic
8603      fi
8604      ;;
8605
8606    *)
8607      lt_prog_compiler_pic='-fPIC'
8608      ;;
8609    esac
8610  else
8611    # PORTME Check for flag to pass linker flags through the system compiler.
8612    case $host_os in
8613    aix*)
8614      lt_prog_compiler_wl='-Wl,'
8615      if test "$host_cpu" = ia64; then
8616	# AIX 5 now supports IA64 processor
8617	lt_prog_compiler_static='-Bstatic'
8618      else
8619	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8620      fi
8621      ;;
8622
8623    mingw* | cygwin* | pw32* | os2* | cegcc*)
8624      # This hack is so that the source file can tell whether it is being
8625      # built for inclusion in a dll (and should export symbols for example).
8626      lt_prog_compiler_pic='-DDLL_EXPORT'
8627      ;;
8628
8629    hpux9* | hpux10* | hpux11*)
8630      lt_prog_compiler_wl='-Wl,'
8631      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8632      # not for PA HP-UX.
8633      case $host_cpu in
8634      hppa*64*|ia64*)
8635	# +Z the default
8636	;;
8637      *)
8638	lt_prog_compiler_pic='+Z'
8639	;;
8640      esac
8641      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8642      lt_prog_compiler_static='${wl}-a ${wl}archive'
8643      ;;
8644
8645    irix5* | irix6* | nonstopux*)
8646      lt_prog_compiler_wl='-Wl,'
8647      # PIC (with -KPIC) is the default.
8648      lt_prog_compiler_static='-non_shared'
8649      ;;
8650
8651    linux* | k*bsd*-gnu)
8652      case $cc_basename in
8653      # old Intel for x86_64 which still supported -KPIC.
8654      ecc*)
8655	lt_prog_compiler_wl='-Wl,'
8656	lt_prog_compiler_pic='-KPIC'
8657	lt_prog_compiler_static='-static'
8658        ;;
8659      # icc used to be incompatible with GCC.
8660      # ICC 10 doesn't accept -KPIC any more.
8661      icc* | ifort*)
8662	lt_prog_compiler_wl='-Wl,'
8663	lt_prog_compiler_pic='-fPIC'
8664	lt_prog_compiler_static='-static'
8665        ;;
8666      # Lahey Fortran 8.1.
8667      lf95*)
8668	lt_prog_compiler_wl='-Wl,'
8669	lt_prog_compiler_pic='--shared'
8670	lt_prog_compiler_static='--static'
8671	;;
8672      pgcc* | pgf77* | pgf90* | pgf95*)
8673        # Portland Group compilers (*not* the Pentium gcc compiler,
8674	# which looks to be a dead project)
8675	lt_prog_compiler_wl='-Wl,'
8676	lt_prog_compiler_pic='-fpic'
8677	lt_prog_compiler_static='-Bstatic'
8678        ;;
8679      ccc*)
8680        lt_prog_compiler_wl='-Wl,'
8681        # All Alpha code is PIC.
8682        lt_prog_compiler_static='-non_shared'
8683        ;;
8684      xl*)
8685	# IBM XL C 8.0/Fortran 10.1 on PPC
8686	lt_prog_compiler_wl='-Wl,'
8687	lt_prog_compiler_pic='-qpic'
8688	lt_prog_compiler_static='-qstaticlink'
8689	;;
8690      *)
8691	case `$CC -V 2>&1 | sed 5q` in
8692	*Sun\ C*)
8693	  # Sun C 5.9
8694	  lt_prog_compiler_pic='-KPIC'
8695	  lt_prog_compiler_static='-Bstatic'
8696	  lt_prog_compiler_wl='-Wl,'
8697	  ;;
8698	*Sun\ F*)
8699	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8700	  lt_prog_compiler_pic='-KPIC'
8701	  lt_prog_compiler_static='-Bstatic'
8702	  lt_prog_compiler_wl=''
8703	  ;;
8704	esac
8705	;;
8706      esac
8707      ;;
8708
8709    newsos6)
8710      lt_prog_compiler_pic='-KPIC'
8711      lt_prog_compiler_static='-Bstatic'
8712      ;;
8713
8714    *nto* | *qnx*)
8715      # QNX uses GNU C++, but need to define -shared option too, otherwise
8716      # it will coredump.
8717      lt_prog_compiler_pic='-fPIC -shared'
8718      ;;
8719
8720    osf3* | osf4* | osf5*)
8721      lt_prog_compiler_wl='-Wl,'
8722      # All OSF/1 code is PIC.
8723      lt_prog_compiler_static='-non_shared'
8724      ;;
8725
8726    rdos*)
8727      lt_prog_compiler_static='-non_shared'
8728      ;;
8729
8730    solaris*)
8731      lt_prog_compiler_pic='-KPIC'
8732      lt_prog_compiler_static='-Bstatic'
8733      case $cc_basename in
8734      f77* | f90* | f95*)
8735	lt_prog_compiler_wl='-Qoption ld ';;
8736      *)
8737	lt_prog_compiler_wl='-Wl,';;
8738      esac
8739      ;;
8740
8741    sunos4*)
8742      lt_prog_compiler_wl='-Qoption ld '
8743      lt_prog_compiler_pic='-PIC'
8744      lt_prog_compiler_static='-Bstatic'
8745      ;;
8746
8747    sysv4 | sysv4.2uw2* | sysv4.3*)
8748      lt_prog_compiler_wl='-Wl,'
8749      lt_prog_compiler_pic='-KPIC'
8750      lt_prog_compiler_static='-Bstatic'
8751      ;;
8752
8753    sysv4*MP*)
8754      if test -d /usr/nec ;then
8755	lt_prog_compiler_pic='-Kconform_pic'
8756	lt_prog_compiler_static='-Bstatic'
8757      fi
8758      ;;
8759
8760    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8761      lt_prog_compiler_wl='-Wl,'
8762      lt_prog_compiler_pic='-KPIC'
8763      lt_prog_compiler_static='-Bstatic'
8764      ;;
8765
8766    unicos*)
8767      lt_prog_compiler_wl='-Wl,'
8768      lt_prog_compiler_can_build_shared=no
8769      ;;
8770
8771    uts4*)
8772      lt_prog_compiler_pic='-pic'
8773      lt_prog_compiler_static='-Bstatic'
8774      ;;
8775
8776    *)
8777      lt_prog_compiler_can_build_shared=no
8778      ;;
8779    esac
8780  fi
8781
8782case $host_os in
8783  # For platforms which do not support PIC, -DPIC is meaningless:
8784  *djgpp*)
8785    lt_prog_compiler_pic=
8786    ;;
8787  *)
8788    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8789    ;;
8790esac
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8792$as_echo "$lt_prog_compiler_pic" >&6; }
8793
8794
8795
8796
8797
8798
8799#
8800# Check to make sure the PIC flag actually works.
8801#
8802if test -n "$lt_prog_compiler_pic"; then
8803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8804$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8805if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  lt_cv_prog_compiler_pic_works=no
8809   ac_outfile=conftest.$ac_objext
8810   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8811   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8812   # Insert the option either (1) after the last *FLAGS variable, or
8813   # (2) before a word containing "conftest.", or (3) at the end.
8814   # Note that $ac_compile itself does not contain backslashes and begins
8815   # with a dollar sign (not a hyphen), so the echo should work correctly.
8816   # The option is referenced via a variable to avoid confusing sed.
8817   lt_compile=`echo "$ac_compile" | $SED \
8818   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8819   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8820   -e 's:$: $lt_compiler_flag:'`
8821   (eval echo "\"\$as_me:8821: $lt_compile\"" >&5)
8822   (eval "$lt_compile" 2>conftest.err)
8823   ac_status=$?
8824   cat conftest.err >&5
8825   echo "$as_me:8825: \$? = $ac_status" >&5
8826   if (exit $ac_status) && test -s "$ac_outfile"; then
8827     # The compiler can only warn and ignore the option if not recognized
8828     # So say no if there are warnings other than the usual output.
8829     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8830     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8831     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8832       lt_cv_prog_compiler_pic_works=yes
8833     fi
8834   fi
8835   $RM conftest*
8836
8837fi
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8839$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8840
8841if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8842    case $lt_prog_compiler_pic in
8843     "" | " "*) ;;
8844     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8845     esac
8846else
8847    lt_prog_compiler_pic=
8848     lt_prog_compiler_can_build_shared=no
8849fi
8850
8851fi
8852
8853
8854
8855
8856
8857
8858#
8859# Check to make sure the static flag actually works.
8860#
8861wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8863$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8864if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8865  $as_echo_n "(cached) " >&6
8866else
8867  lt_cv_prog_compiler_static_works=no
8868   save_LDFLAGS="$LDFLAGS"
8869   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8870   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8871   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8872     # The linker can only warn and ignore the option if not recognized
8873     # So say no if there are warnings
8874     if test -s conftest.err; then
8875       # Append any errors to the config.log.
8876       cat conftest.err 1>&5
8877       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8878       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8879       if diff conftest.exp conftest.er2 >/dev/null; then
8880         lt_cv_prog_compiler_static_works=yes
8881       fi
8882     else
8883       lt_cv_prog_compiler_static_works=yes
8884     fi
8885   fi
8886   $RM -r conftest*
8887   LDFLAGS="$save_LDFLAGS"
8888
8889fi
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8891$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8892
8893if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8894    :
8895else
8896    lt_prog_compiler_static=
8897fi
8898
8899
8900
8901
8902
8903
8904
8905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8906$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8907if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8908  $as_echo_n "(cached) " >&6
8909else
8910  lt_cv_prog_compiler_c_o=no
8911   $RM -r conftest 2>/dev/null
8912   mkdir conftest
8913   cd conftest
8914   mkdir out
8915   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8916
8917   lt_compiler_flag="-o out/conftest2.$ac_objext"
8918   # Insert the option either (1) after the last *FLAGS variable, or
8919   # (2) before a word containing "conftest.", or (3) at the end.
8920   # Note that $ac_compile itself does not contain backslashes and begins
8921   # with a dollar sign (not a hyphen), so the echo should work correctly.
8922   lt_compile=`echo "$ac_compile" | $SED \
8923   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8924   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8925   -e 's:$: $lt_compiler_flag:'`
8926   (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
8927   (eval "$lt_compile" 2>out/conftest.err)
8928   ac_status=$?
8929   cat out/conftest.err >&5
8930   echo "$as_me:8930: \$? = $ac_status" >&5
8931   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8932   then
8933     # The compiler can only warn and ignore the option if not recognized
8934     # So say no if there are warnings
8935     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8936     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8937     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8938       lt_cv_prog_compiler_c_o=yes
8939     fi
8940   fi
8941   chmod u+w . 2>&5
8942   $RM conftest*
8943   # SGI C++ compiler will create directory out/ii_files/ for
8944   # template instantiation
8945   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8946   $RM out/* && rmdir out
8947   cd ..
8948   $RM -r conftest
8949   $RM conftest*
8950
8951fi
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8953$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8954
8955
8956
8957
8958
8959
8960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8962if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  lt_cv_prog_compiler_c_o=no
8966   $RM -r conftest 2>/dev/null
8967   mkdir conftest
8968   cd conftest
8969   mkdir out
8970   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971
8972   lt_compiler_flag="-o out/conftest2.$ac_objext"
8973   # Insert the option either (1) after the last *FLAGS variable, or
8974   # (2) before a word containing "conftest.", or (3) at the end.
8975   # Note that $ac_compile itself does not contain backslashes and begins
8976   # with a dollar sign (not a hyphen), so the echo should work correctly.
8977   lt_compile=`echo "$ac_compile" | $SED \
8978   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8979   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8980   -e 's:$: $lt_compiler_flag:'`
8981   (eval echo "\"\$as_me:8981: $lt_compile\"" >&5)
8982   (eval "$lt_compile" 2>out/conftest.err)
8983   ac_status=$?
8984   cat out/conftest.err >&5
8985   echo "$as_me:8985: \$? = $ac_status" >&5
8986   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8987   then
8988     # The compiler can only warn and ignore the option if not recognized
8989     # So say no if there are warnings
8990     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8991     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8992     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8993       lt_cv_prog_compiler_c_o=yes
8994     fi
8995   fi
8996   chmod u+w . 2>&5
8997   $RM conftest*
8998   # SGI C++ compiler will create directory out/ii_files/ for
8999   # template instantiation
9000   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9001   $RM out/* && rmdir out
9002   cd ..
9003   $RM -r conftest
9004   $RM conftest*
9005
9006fi
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9008$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9009
9010
9011
9012
9013hard_links="nottested"
9014if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9015  # do not overwrite the value of need_locks provided by the user
9016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9017$as_echo_n "checking if we can lock with hard links... " >&6; }
9018  hard_links=yes
9019  $RM conftest*
9020  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9021  touch conftest.a
9022  ln conftest.a conftest.b 2>&5 || hard_links=no
9023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9025$as_echo "$hard_links" >&6; }
9026  if test "$hard_links" = no; then
9027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9028$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9029    need_locks=warn
9030  fi
9031else
9032  need_locks=no
9033fi
9034
9035
9036
9037
9038
9039
9040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9041$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9042
9043  runpath_var=
9044  allow_undefined_flag=
9045  always_export_symbols=no
9046  archive_cmds=
9047  archive_expsym_cmds=
9048  compiler_needs_object=no
9049  enable_shared_with_static_runtimes=no
9050  export_dynamic_flag_spec=
9051  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9052  hardcode_automatic=no
9053  hardcode_direct=no
9054  hardcode_direct_absolute=no
9055  hardcode_libdir_flag_spec=
9056  hardcode_libdir_flag_spec_ld=
9057  hardcode_libdir_separator=
9058  hardcode_minus_L=no
9059  hardcode_shlibpath_var=unsupported
9060  inherit_rpath=no
9061  link_all_deplibs=unknown
9062  module_cmds=
9063  module_expsym_cmds=
9064  old_archive_from_new_cmds=
9065  old_archive_from_expsyms_cmds=
9066  thread_safe_flag_spec=
9067  whole_archive_flag_spec=
9068  # include_expsyms should be a list of space-separated symbols to be *always*
9069  # included in the symbol list
9070  include_expsyms=
9071  # exclude_expsyms can be an extended regexp of symbols to exclude
9072  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9073  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9074  # as well as any symbol that contains `d'.
9075  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9076  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9077  # platforms (ab)use it in PIC code, but their linkers get confused if
9078  # the symbol is explicitly referenced.  Since portable code cannot
9079  # rely on this symbol name, it's probably fine to never include it in
9080  # preloaded symbol tables.
9081  # Exclude shared library initialization/finalization symbols.
9082  extract_expsyms_cmds=
9083
9084  case $host_os in
9085  cygwin* | mingw* | pw32* | cegcc*)
9086    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9087    # When not using gcc, we currently assume that we are using
9088    # Microsoft Visual C++.
9089    if test "$GCC" != yes; then
9090      with_gnu_ld=no
9091    fi
9092    ;;
9093  interix*)
9094    # we just hope/assume this is gcc and not c89 (= MSVC++)
9095    with_gnu_ld=yes
9096    ;;
9097  openbsd*)
9098    with_gnu_ld=no
9099    ;;
9100  esac
9101
9102  ld_shlibs=yes
9103  if test "$with_gnu_ld" = yes; then
9104    # If archive_cmds runs LD, not CC, wlarc should be empty
9105    wlarc='${wl}'
9106
9107    # Set some defaults for GNU ld with shared library support. These
9108    # are reset later if shared libraries are not supported. Putting them
9109    # here allows them to be overridden if necessary.
9110    runpath_var=LD_RUN_PATH
9111    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9112    export_dynamic_flag_spec='${wl}--export-dynamic'
9113    # ancient GNU ld didn't support --whole-archive et. al.
9114    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9115      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9116    else
9117      whole_archive_flag_spec=
9118    fi
9119    supports_anon_versioning=no
9120    case `$LD -v 2>&1` in
9121      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9122      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9123      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9124      *\ 2.11.*) ;; # other 2.11 versions
9125      *) supports_anon_versioning=yes ;;
9126    esac
9127
9128    # See if GNU ld supports shared libraries.
9129    case $host_os in
9130    aix[3-9]*)
9131      # On AIX/PPC, the GNU linker is very broken
9132      if test "$host_cpu" != ia64; then
9133	ld_shlibs=no
9134	cat <<_LT_EOF 1>&2
9135
9136*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9137*** to be unable to reliably create shared libraries on AIX.
9138*** Therefore, libtool is disabling shared libraries support.  If you
9139*** really care for shared libraries, you may want to modify your PATH
9140*** so that a non-GNU linker is found, and then restart.
9141
9142_LT_EOF
9143      fi
9144      ;;
9145
9146    amigaos*)
9147      case $host_cpu in
9148      powerpc)
9149            # see comment about AmigaOS4 .so support
9150            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151            archive_expsym_cmds=''
9152        ;;
9153      m68k)
9154            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)'
9155            hardcode_libdir_flag_spec='-L$libdir'
9156            hardcode_minus_L=yes
9157        ;;
9158      esac
9159      ;;
9160
9161    beos*)
9162      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163	allow_undefined_flag=unsupported
9164	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9165	# support --undefined.  This deserves some investigation.  FIXME
9166	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167      else
9168	ld_shlibs=no
9169      fi
9170      ;;
9171
9172    cygwin* | mingw* | pw32* | cegcc*)
9173      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9174      # as there is no search path for DLLs.
9175      hardcode_libdir_flag_spec='-L$libdir'
9176      allow_undefined_flag=unsupported
9177      always_export_symbols=no
9178      enable_shared_with_static_runtimes=yes
9179      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9180
9181      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9182        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9183	# If the export-symbols file already is a .def file (1st line
9184	# is EXPORTS), use it as is; otherwise, prepend...
9185	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9186	  cp $export_symbols $output_objdir/$soname.def;
9187	else
9188	  echo EXPORTS > $output_objdir/$soname.def;
9189	  cat $export_symbols >> $output_objdir/$soname.def;
9190	fi~
9191	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9192      else
9193	ld_shlibs=no
9194      fi
9195      ;;
9196
9197    interix[3-9]*)
9198      hardcode_direct=no
9199      hardcode_shlibpath_var=no
9200      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201      export_dynamic_flag_spec='${wl}-E'
9202      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9203      # Instead, shared libraries are loaded at an image base (0x10000000 by
9204      # default) and relocated if they conflict, which is a slow very memory
9205      # consuming and fragmenting process.  To avoid this, we pick a random,
9206      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9207      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9208      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9209      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'
9210      ;;
9211
9212    gnu* | linux* | tpf* | k*bsd*-gnu)
9213      tmp_diet=no
9214      if test "$host_os" = linux-dietlibc; then
9215	case $cc_basename in
9216	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9217	esac
9218      fi
9219      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9220	 && test "$tmp_diet" = no
9221      then
9222	tmp_addflag=
9223	tmp_sharedflag='-shared'
9224	case $cc_basename,$host_cpu in
9225        pgcc*)				# Portland Group C compiler
9226	  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'
9227	  tmp_addflag=' $pic_flag'
9228	  ;;
9229	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9230	  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'
9231	  tmp_addflag=' $pic_flag -Mnomain' ;;
9232	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9233	  tmp_addflag=' -i_dynamic' ;;
9234	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9235	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9236	ifc* | ifort*)			# Intel Fortran compiler
9237	  tmp_addflag=' -nofor_main' ;;
9238	lf95*)				# Lahey Fortran 8.1
9239	  whole_archive_flag_spec=
9240	  tmp_sharedflag='--shared' ;;
9241	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9242	  tmp_sharedflag='-qmkshrobj'
9243	  tmp_addflag= ;;
9244	esac
9245	case `$CC -V 2>&1 | sed 5q` in
9246	*Sun\ C*)			# Sun C 5.9
9247	  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'
9248	  compiler_needs_object=yes
9249	  tmp_sharedflag='-G' ;;
9250	*Sun\ F*)			# Sun Fortran 8.3
9251	  tmp_sharedflag='-G' ;;
9252	esac
9253	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254
9255        if test "x$supports_anon_versioning" = xyes; then
9256          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9257	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9258	    echo "local: *; };" >> $output_objdir/$libname.ver~
9259	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9260        fi
9261
9262	case $cc_basename in
9263	xlf*)
9264	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9265	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9266	  hardcode_libdir_flag_spec=
9267	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9268	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9269	  if test "x$supports_anon_versioning" = xyes; then
9270	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9271	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9272	      echo "local: *; };" >> $output_objdir/$libname.ver~
9273	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9274	  fi
9275	  ;;
9276	esac
9277      else
9278        ld_shlibs=no
9279      fi
9280      ;;
9281
9282    netbsd*)
9283      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9284	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9285	wlarc=
9286      else
9287	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9289      fi
9290      ;;
9291
9292    solaris*)
9293      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9294	ld_shlibs=no
9295	cat <<_LT_EOF 1>&2
9296
9297*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9298*** create shared libraries on Solaris systems.  Therefore, libtool
9299*** is disabling shared libraries support.  We urge you to upgrade GNU
9300*** binutils to release 2.9.1 or newer.  Another option is to modify
9301*** your PATH or compiler configuration so that the native linker is
9302*** used, and then restart.
9303
9304_LT_EOF
9305      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9306	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9307	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9308      else
9309	ld_shlibs=no
9310      fi
9311      ;;
9312
9313    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9314      case `$LD -v 2>&1` in
9315        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9316	ld_shlibs=no
9317	cat <<_LT_EOF 1>&2
9318
9319*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9320*** reliably create shared libraries on SCO systems.  Therefore, libtool
9321*** is disabling shared libraries support.  We urge you to upgrade GNU
9322*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9323*** your PATH or compiler configuration so that the native linker is
9324*** used, and then restart.
9325
9326_LT_EOF
9327	;;
9328	*)
9329	  # For security reasons, it is highly recommended that you always
9330	  # use absolute paths for naming shared libraries, and exclude the
9331	  # DT_RUNPATH tag from executables and libraries.  But doing so
9332	  # requires that you compile everything twice, which is a pain.
9333	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9334	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9335	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9337	  else
9338	    ld_shlibs=no
9339	  fi
9340	;;
9341      esac
9342      ;;
9343
9344    sunos4*)
9345      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9346      wlarc=
9347      hardcode_direct=yes
9348      hardcode_shlibpath_var=no
9349      ;;
9350
9351    *)
9352      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9353	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355      else
9356	ld_shlibs=no
9357      fi
9358      ;;
9359    esac
9360
9361    if test "$ld_shlibs" = no; then
9362      runpath_var=
9363      hardcode_libdir_flag_spec=
9364      export_dynamic_flag_spec=
9365      whole_archive_flag_spec=
9366    fi
9367  else
9368    # PORTME fill in a description of your system's linker (not GNU ld)
9369    case $host_os in
9370    aix3*)
9371      allow_undefined_flag=unsupported
9372      always_export_symbols=yes
9373      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'
9374      # Note: this linker hardcodes the directories in LIBPATH if there
9375      # are no directories specified by -L.
9376      hardcode_minus_L=yes
9377      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9378	# Neither direct hardcoding nor static linking is supported with a
9379	# broken collect2.
9380	hardcode_direct=unsupported
9381      fi
9382      ;;
9383
9384    aix[4-9]*)
9385      if test "$host_cpu" = ia64; then
9386	# On IA64, the linker does run time linking by default, so we don't
9387	# have to do anything special.
9388	aix_use_runtimelinking=no
9389	exp_sym_flag='-Bexport'
9390	no_entry_flag=""
9391      else
9392	# If we're using GNU nm, then we don't want the "-C" option.
9393	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9394	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9395	  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'
9396	else
9397	  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'
9398	fi
9399	aix_use_runtimelinking=no
9400
9401	# Test if we are trying to use run time linking or normal
9402	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9403	# need to do runtime linking.
9404	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9405	  for ld_flag in $LDFLAGS; do
9406	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9407	    aix_use_runtimelinking=yes
9408	    break
9409	  fi
9410	  done
9411	  ;;
9412	esac
9413
9414	exp_sym_flag='-bexport'
9415	no_entry_flag='-bnoentry'
9416      fi
9417
9418      # When large executables or shared objects are built, AIX ld can
9419      # have problems creating the table of contents.  If linking a library
9420      # or program results in "error TOC overflow" add -mminimal-toc to
9421      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9422      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9423
9424      archive_cmds=''
9425      hardcode_direct=yes
9426      hardcode_direct_absolute=yes
9427      hardcode_libdir_separator=':'
9428      link_all_deplibs=yes
9429      file_list_spec='${wl}-f,'
9430
9431      if test "$GCC" = yes; then
9432	case $host_os in aix4.[012]|aix4.[012].*)
9433	# We only want to do this on AIX 4.2 and lower, the check
9434	# below for broken collect2 doesn't work under 4.3+
9435	  collect2name=`${CC} -print-prog-name=collect2`
9436	  if test -f "$collect2name" &&
9437	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9438	  then
9439	  # We have reworked collect2
9440	  :
9441	  else
9442	  # We have old collect2
9443	  hardcode_direct=unsupported
9444	  # It fails to find uninstalled libraries when the uninstalled
9445	  # path is not listed in the libpath.  Setting hardcode_minus_L
9446	  # to unsupported forces relinking
9447	  hardcode_minus_L=yes
9448	  hardcode_libdir_flag_spec='-L$libdir'
9449	  hardcode_libdir_separator=
9450	  fi
9451	  ;;
9452	esac
9453	shared_flag='-shared'
9454	if test "$aix_use_runtimelinking" = yes; then
9455	  shared_flag="$shared_flag "'${wl}-G'
9456	fi
9457      else
9458	# not using gcc
9459	if test "$host_cpu" = ia64; then
9460	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9461	# chokes on -Wl,-G. The following line is correct:
9462	  shared_flag='-G'
9463	else
9464	  if test "$aix_use_runtimelinking" = yes; then
9465	    shared_flag='${wl}-G'
9466	  else
9467	    shared_flag='${wl}-bM:SRE'
9468	  fi
9469	fi
9470      fi
9471
9472      export_dynamic_flag_spec='${wl}-bexpall'
9473      # It seems that -bexpall does not export symbols beginning with
9474      # underscore (_), so it is better to generate a list of symbols to export.
9475      always_export_symbols=yes
9476      if test "$aix_use_runtimelinking" = yes; then
9477	# Warning - without using the other runtime loading flags (-brtl),
9478	# -berok will link without error, but may produce a broken library.
9479	allow_undefined_flag='-berok'
9480        # Determine the default libpath from the value encoded in an
9481        # empty executable.
9482        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484
9485int
9486main ()
9487{
9488
9489  ;
9490  return 0;
9491}
9492_ACEOF
9493if ac_fn_c_try_link "$LINENO"; then :
9494
9495lt_aix_libpath_sed='
9496    /Import File Strings/,/^$/ {
9497	/^0/ {
9498	    s/^0  *\(.*\)$/\1/
9499	    p
9500	}
9501    }'
9502aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9503# Check for a 64-bit object if we didn't find anything.
9504if test -z "$aix_libpath"; then
9505  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9506fi
9507fi
9508rm -f core conftest.err conftest.$ac_objext \
9509    conftest$ac_exeext conftest.$ac_ext
9510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9511
9512        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9513        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"
9514      else
9515	if test "$host_cpu" = ia64; then
9516	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9517	  allow_undefined_flag="-z nodefs"
9518	  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"
9519	else
9520	 # Determine the default libpath from the value encoded in an
9521	 # empty executable.
9522	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523/* end confdefs.h.  */
9524
9525int
9526main ()
9527{
9528
9529  ;
9530  return 0;
9531}
9532_ACEOF
9533if ac_fn_c_try_link "$LINENO"; then :
9534
9535lt_aix_libpath_sed='
9536    /Import File Strings/,/^$/ {
9537	/^0/ {
9538	    s/^0  *\(.*\)$/\1/
9539	    p
9540	}
9541    }'
9542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9543# Check for a 64-bit object if we didn't find anything.
9544if test -z "$aix_libpath"; then
9545  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9546fi
9547fi
9548rm -f core conftest.err conftest.$ac_objext \
9549    conftest$ac_exeext conftest.$ac_ext
9550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9551
9552	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9553	  # Warning - without using the other run time loading flags,
9554	  # -berok will link without error, but may produce a broken library.
9555	  no_undefined_flag=' ${wl}-bernotok'
9556	  allow_undefined_flag=' ${wl}-berok'
9557	  # Exported symbols can be pulled into shared objects from archives
9558	  whole_archive_flag_spec='$convenience'
9559	  archive_cmds_need_lc=yes
9560	  # This is similar to how AIX traditionally builds its shared libraries.
9561	  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'
9562	fi
9563      fi
9564      ;;
9565
9566    amigaos*)
9567      case $host_cpu in
9568      powerpc)
9569            # see comment about AmigaOS4 .so support
9570            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571            archive_expsym_cmds=''
9572        ;;
9573      m68k)
9574            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)'
9575            hardcode_libdir_flag_spec='-L$libdir'
9576            hardcode_minus_L=yes
9577        ;;
9578      esac
9579      ;;
9580
9581    bsdi[45]*)
9582      export_dynamic_flag_spec=-rdynamic
9583      ;;
9584
9585    cygwin* | mingw* | pw32* | cegcc*)
9586      # When not using gcc, we currently assume that we are using
9587      # Microsoft Visual C++.
9588      # hardcode_libdir_flag_spec is actually meaningless, as there is
9589      # no search path for DLLs.
9590      hardcode_libdir_flag_spec=' '
9591      allow_undefined_flag=unsupported
9592      # Tell ltmain to make .lib files, not .a files.
9593      libext=lib
9594      # Tell ltmain to make .dll files, not .so files.
9595      shrext_cmds=".dll"
9596      # FIXME: Setting linknames here is a bad hack.
9597      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9598      # The linker will automatically build a .lib file if we build a DLL.
9599      old_archive_from_new_cmds='true'
9600      # FIXME: Should let the user specify the lib program.
9601      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9602      fix_srcfile_path='`cygpath -w "$srcfile"`'
9603      enable_shared_with_static_runtimes=yes
9604      ;;
9605
9606    darwin* | rhapsody*)
9607
9608
9609  archive_cmds_need_lc=no
9610  hardcode_direct=no
9611  hardcode_automatic=yes
9612  hardcode_shlibpath_var=unsupported
9613  whole_archive_flag_spec=''
9614  link_all_deplibs=yes
9615  allow_undefined_flag="$_lt_dar_allow_undefined"
9616  case $cc_basename in
9617     ifort*) _lt_dar_can_shared=yes ;;
9618     *) _lt_dar_can_shared=$GCC ;;
9619  esac
9620  if test "$_lt_dar_can_shared" = "yes"; then
9621    output_verbose_link_cmd=echo
9622    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9623    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9624    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}"
9625    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}"
9626
9627  else
9628  ld_shlibs=no
9629  fi
9630
9631      ;;
9632
9633    dgux*)
9634      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635      hardcode_libdir_flag_spec='-L$libdir'
9636      hardcode_shlibpath_var=no
9637      ;;
9638
9639    freebsd1*)
9640      ld_shlibs=no
9641      ;;
9642
9643    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9644    # support.  Future versions do this automatically, but an explicit c++rt0.o
9645    # does not break anything, and helps significantly (at the cost of a little
9646    # extra space).
9647    freebsd2.2*)
9648      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9649      hardcode_libdir_flag_spec='-R$libdir'
9650      hardcode_direct=yes
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9655    freebsd2*)
9656      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9657      hardcode_direct=yes
9658      hardcode_minus_L=yes
9659      hardcode_shlibpath_var=no
9660      ;;
9661
9662    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9663    freebsd* | dragonfly*)
9664      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9665      hardcode_libdir_flag_spec='-R$libdir'
9666      hardcode_direct=yes
9667      hardcode_shlibpath_var=no
9668      ;;
9669
9670    hpux9*)
9671      if test "$GCC" = yes; then
9672	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'
9673      else
9674	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'
9675      fi
9676      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677      hardcode_libdir_separator=:
9678      hardcode_direct=yes
9679
9680      # hardcode_minus_L: Not really in the search PATH,
9681      # but as the default location of the library.
9682      hardcode_minus_L=yes
9683      export_dynamic_flag_spec='${wl}-E'
9684      ;;
9685
9686    hpux10*)
9687      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9688	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689      else
9690	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9691      fi
9692      if test "$with_gnu_ld" = no; then
9693	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9694	hardcode_libdir_flag_spec_ld='+b $libdir'
9695	hardcode_libdir_separator=:
9696	hardcode_direct=yes
9697	hardcode_direct_absolute=yes
9698	export_dynamic_flag_spec='${wl}-E'
9699	# hardcode_minus_L: Not really in the search PATH,
9700	# but as the default location of the library.
9701	hardcode_minus_L=yes
9702      fi
9703      ;;
9704
9705    hpux11*)
9706      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9707	case $host_cpu in
9708	hppa*64*)
9709	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9710	  ;;
9711	ia64*)
9712	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9713	  ;;
9714	*)
9715	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9716	  ;;
9717	esac
9718      else
9719	case $host_cpu in
9720	hppa*64*)
9721	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722	  ;;
9723	ia64*)
9724	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9725	  ;;
9726	*)
9727	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9728	  ;;
9729	esac
9730      fi
9731      if test "$with_gnu_ld" = no; then
9732	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9733	hardcode_libdir_separator=:
9734
9735	case $host_cpu in
9736	hppa*64*|ia64*)
9737	  hardcode_direct=no
9738	  hardcode_shlibpath_var=no
9739	  ;;
9740	*)
9741	  hardcode_direct=yes
9742	  hardcode_direct_absolute=yes
9743	  export_dynamic_flag_spec='${wl}-E'
9744
9745	  # hardcode_minus_L: Not really in the search PATH,
9746	  # but as the default location of the library.
9747	  hardcode_minus_L=yes
9748	  ;;
9749	esac
9750      fi
9751      ;;
9752
9753    irix5* | irix6* | nonstopux*)
9754      if test "$GCC" = yes; then
9755	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'
9756	# Try to use the -exported_symbol ld option, if it does not
9757	# work, assume that -exports_file does not work either and
9758	# implicitly export all symbols.
9759        save_LDFLAGS="$LDFLAGS"
9760        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9761        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762/* end confdefs.h.  */
9763int foo(void) {}
9764_ACEOF
9765if ac_fn_c_try_link "$LINENO"; then :
9766  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'
9767
9768fi
9769rm -f core conftest.err conftest.$ac_objext \
9770    conftest$ac_exeext conftest.$ac_ext
9771        LDFLAGS="$save_LDFLAGS"
9772      else
9773	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'
9774	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'
9775      fi
9776      archive_cmds_need_lc='no'
9777      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9778      hardcode_libdir_separator=:
9779      inherit_rpath=yes
9780      link_all_deplibs=yes
9781      ;;
9782
9783    netbsd*)
9784      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9785	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9786      else
9787	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9788      fi
9789      hardcode_libdir_flag_spec='-R$libdir'
9790      hardcode_direct=yes
9791      hardcode_shlibpath_var=no
9792      ;;
9793
9794    newsos6)
9795      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796      hardcode_direct=yes
9797      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798      hardcode_libdir_separator=:
9799      hardcode_shlibpath_var=no
9800      ;;
9801
9802    *nto* | *qnx*)
9803      ;;
9804
9805    openbsd*)
9806      if test -f /usr/libexec/ld.so; then
9807	hardcode_direct=yes
9808	hardcode_shlibpath_var=no
9809	hardcode_direct_absolute=yes
9810	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9811	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9812	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9813	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9814	  export_dynamic_flag_spec='${wl}-E'
9815	else
9816	  case $host_os in
9817	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9818	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9819	     hardcode_libdir_flag_spec='-R$libdir'
9820	     ;;
9821	   *)
9822	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9823	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9824	     ;;
9825	  esac
9826	fi
9827      else
9828	ld_shlibs=no
9829      fi
9830      ;;
9831
9832    os2*)
9833      hardcode_libdir_flag_spec='-L$libdir'
9834      hardcode_minus_L=yes
9835      allow_undefined_flag=unsupported
9836      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'
9837      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9838      ;;
9839
9840    osf3*)
9841      if test "$GCC" = yes; then
9842	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9843	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'
9844      else
9845	allow_undefined_flag=' -expect_unresolved \*'
9846	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'
9847      fi
9848      archive_cmds_need_lc='no'
9849      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850      hardcode_libdir_separator=:
9851      ;;
9852
9853    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9854      if test "$GCC" = yes; then
9855	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9856	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'
9857	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9858      else
9859	allow_undefined_flag=' -expect_unresolved \*'
9860	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'
9861	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~
9862	$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'
9863
9864	# Both c and cxx compiler support -rpath directly
9865	hardcode_libdir_flag_spec='-rpath $libdir'
9866      fi
9867      archive_cmds_need_lc='no'
9868      hardcode_libdir_separator=:
9869      ;;
9870
9871    solaris*)
9872      no_undefined_flag=' -z defs'
9873      if test "$GCC" = yes; then
9874	wlarc='${wl}'
9875	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9876	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9877	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9878      else
9879	case `$CC -V 2>&1` in
9880	*"Compilers 5.0"*)
9881	  wlarc=''
9882	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9884	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9885	  ;;
9886	*)
9887	  wlarc='${wl}'
9888	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9889	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9890	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9891	  ;;
9892	esac
9893      fi
9894      hardcode_libdir_flag_spec='-R$libdir'
9895      hardcode_shlibpath_var=no
9896      case $host_os in
9897      solaris2.[0-5] | solaris2.[0-5].*) ;;
9898      *)
9899	# The compiler driver will combine and reorder linker options,
9900	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9901	# but is careful enough not to reorder.
9902	# Supported since Solaris 2.6 (maybe 2.5.1?)
9903	if test "$GCC" = yes; then
9904	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9905	else
9906	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9907	fi
9908	;;
9909      esac
9910      link_all_deplibs=yes
9911      ;;
9912
9913    sunos4*)
9914      if test "x$host_vendor" = xsequent; then
9915	# Use $CC to link under sequent, because it throws in some extra .o
9916	# files that make .init and .fini sections work.
9917	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9918      else
9919	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9920      fi
9921      hardcode_libdir_flag_spec='-L$libdir'
9922      hardcode_direct=yes
9923      hardcode_minus_L=yes
9924      hardcode_shlibpath_var=no
9925      ;;
9926
9927    sysv4)
9928      case $host_vendor in
9929	sni)
9930	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9931	  hardcode_direct=yes # is this really true???
9932	;;
9933	siemens)
9934	  ## LD is ld it makes a PLAMLIB
9935	  ## CC just makes a GrossModule.
9936	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9937	  reload_cmds='$CC -r -o $output$reload_objs'
9938	  hardcode_direct=no
9939        ;;
9940	motorola)
9941	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9943	;;
9944      esac
9945      runpath_var='LD_RUN_PATH'
9946      hardcode_shlibpath_var=no
9947      ;;
9948
9949    sysv4.3*)
9950      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951      hardcode_shlibpath_var=no
9952      export_dynamic_flag_spec='-Bexport'
9953      ;;
9954
9955    sysv4*MP*)
9956      if test -d /usr/nec; then
9957	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958	hardcode_shlibpath_var=no
9959	runpath_var=LD_RUN_PATH
9960	hardcode_runpath_var=yes
9961	ld_shlibs=yes
9962      fi
9963      ;;
9964
9965    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9966      no_undefined_flag='${wl}-z,text'
9967      archive_cmds_need_lc=no
9968      hardcode_shlibpath_var=no
9969      runpath_var='LD_RUN_PATH'
9970
9971      if test "$GCC" = yes; then
9972	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9973	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974      else
9975	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9976	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977      fi
9978      ;;
9979
9980    sysv5* | sco3.2v5* | sco5v6*)
9981      # Note: We can NOT use -z defs as we might desire, because we do not
9982      # link with -lc, and that would cause any symbols used from libc to
9983      # always be unresolved, which means just about no library would
9984      # ever link correctly.  If we're not using GNU ld we use -z text
9985      # though, which does catch some bad symbols but isn't as heavy-handed
9986      # as -z defs.
9987      no_undefined_flag='${wl}-z,text'
9988      allow_undefined_flag='${wl}-z,nodefs'
9989      archive_cmds_need_lc=no
9990      hardcode_shlibpath_var=no
9991      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9992      hardcode_libdir_separator=':'
9993      link_all_deplibs=yes
9994      export_dynamic_flag_spec='${wl}-Bexport'
9995      runpath_var='LD_RUN_PATH'
9996
9997      if test "$GCC" = yes; then
9998	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000      else
10001	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10002	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003      fi
10004      ;;
10005
10006    uts4*)
10007      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008      hardcode_libdir_flag_spec='-L$libdir'
10009      hardcode_shlibpath_var=no
10010      ;;
10011
10012    *)
10013      ld_shlibs=no
10014      ;;
10015    esac
10016
10017    if test x$host_vendor = xsni; then
10018      case $host in
10019      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10020	export_dynamic_flag_spec='${wl}-Blargedynsym'
10021	;;
10022      esac
10023    fi
10024  fi
10025
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10027$as_echo "$ld_shlibs" >&6; }
10028test "$ld_shlibs" = no && can_build_shared=no
10029
10030with_gnu_ld=$with_gnu_ld
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046#
10047# Do we need to explicitly link libc?
10048#
10049case "x$archive_cmds_need_lc" in
10050x|xyes)
10051  # Assume -lc should be added
10052  archive_cmds_need_lc=yes
10053
10054  if test "$enable_shared" = yes && test "$GCC" = yes; then
10055    case $archive_cmds in
10056    *'~'*)
10057      # FIXME: we may have to deal with multi-command sequences.
10058      ;;
10059    '$CC '*)
10060      # Test whether the compiler implicitly links with -lc since on some
10061      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10062      # to ld, don't add -lc before -lgcc.
10063      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10064$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10065      $RM conftest*
10066      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10067
10068      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10069  (eval $ac_compile) 2>&5
10070  ac_status=$?
10071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10072  test $ac_status = 0; } 2>conftest.err; then
10073        soname=conftest
10074        lib=conftest
10075        libobjs=conftest.$ac_objext
10076        deplibs=
10077        wl=$lt_prog_compiler_wl
10078	pic_flag=$lt_prog_compiler_pic
10079        compiler_flags=-v
10080        linker_flags=-v
10081        verstring=
10082        output_objdir=.
10083        libname=conftest
10084        lt_save_allow_undefined_flag=$allow_undefined_flag
10085        allow_undefined_flag=
10086        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10087  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10088  ac_status=$?
10089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10090  test $ac_status = 0; }
10091        then
10092	  archive_cmds_need_lc=no
10093        else
10094	  archive_cmds_need_lc=yes
10095        fi
10096        allow_undefined_flag=$lt_save_allow_undefined_flag
10097      else
10098        cat conftest.err 1>&5
10099      fi
10100      $RM conftest*
10101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10102$as_echo "$archive_cmds_need_lc" >&6; }
10103      ;;
10104    esac
10105  fi
10106  ;;
10107esac
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10266$as_echo_n "checking dynamic linker characteristics... " >&6; }
10267
10268if test "$GCC" = yes; then
10269  case $host_os in
10270    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10271    *) lt_awk_arg="/^libraries:/" ;;
10272  esac
10273  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10274  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10275    # if the path contains ";" then we assume it to be the separator
10276    # otherwise default to the standard path separator (i.e. ":") - it is
10277    # assumed that no part of a normal pathname contains ";" but that should
10278    # okay in the real world where ";" in dirpaths is itself problematic.
10279    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10280  else
10281    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10282  fi
10283  # Ok, now we have the path, separated by spaces, we can step through it
10284  # and add multilib dir if necessary.
10285  lt_tmp_lt_search_path_spec=
10286  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10287  for lt_sys_path in $lt_search_path_spec; do
10288    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10289      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10290    else
10291      test -d "$lt_sys_path" && \
10292	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10293    fi
10294  done
10295  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10296BEGIN {RS=" "; FS="/|\n";} {
10297  lt_foo="";
10298  lt_count=0;
10299  for (lt_i = NF; lt_i > 0; lt_i--) {
10300    if ($lt_i != "" && $lt_i != ".") {
10301      if ($lt_i == "..") {
10302        lt_count++;
10303      } else {
10304        if (lt_count == 0) {
10305          lt_foo="/" $lt_i lt_foo;
10306        } else {
10307          lt_count--;
10308        }
10309      }
10310    }
10311  }
10312  if (lt_foo != "") { lt_freq[lt_foo]++; }
10313  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10314}'`
10315  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10316else
10317  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10318fi
10319library_names_spec=
10320libname_spec='lib$name'
10321soname_spec=
10322shrext_cmds=".so"
10323postinstall_cmds=
10324postuninstall_cmds=
10325finish_cmds=
10326finish_eval=
10327shlibpath_var=
10328shlibpath_overrides_runpath=unknown
10329version_type=none
10330dynamic_linker="$host_os ld.so"
10331sys_lib_dlsearch_path_spec="/lib /usr/lib"
10332need_lib_prefix=unknown
10333hardcode_into_libs=no
10334
10335# when you set need_version to no, make sure it does not cause -set_version
10336# flags to be left without arguments
10337need_version=unknown
10338
10339case $host_os in
10340aix3*)
10341  version_type=linux
10342  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10343  shlibpath_var=LIBPATH
10344
10345  # AIX 3 has no versioning support, so we append a major version to the name.
10346  soname_spec='${libname}${release}${shared_ext}$major'
10347  ;;
10348
10349aix[4-9]*)
10350  version_type=linux
10351  need_lib_prefix=no
10352  need_version=no
10353  hardcode_into_libs=yes
10354  if test "$host_cpu" = ia64; then
10355    # AIX 5 supports IA64
10356    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10357    shlibpath_var=LD_LIBRARY_PATH
10358  else
10359    # With GCC up to 2.95.x, collect2 would create an import file
10360    # for dependence libraries.  The import file would start with
10361    # the line `#! .'.  This would cause the generated library to
10362    # depend on `.', always an invalid library.  This was fixed in
10363    # development snapshots of GCC prior to 3.0.
10364    case $host_os in
10365      aix4 | aix4.[01] | aix4.[01].*)
10366      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10367	   echo ' yes '
10368	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10369	:
10370      else
10371	can_build_shared=no
10372      fi
10373      ;;
10374    esac
10375    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10376    # soname into executable. Probably we can add versioning support to
10377    # collect2, so additional links can be useful in future.
10378    if test "$aix_use_runtimelinking" = yes; then
10379      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10380      # instead of lib<name>.a to let people know that these are not
10381      # typical AIX shared libraries.
10382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383    else
10384      # We preserve .a as extension for shared libraries through AIX4.2
10385      # and later when we are not doing run time linking.
10386      library_names_spec='${libname}${release}.a $libname.a'
10387      soname_spec='${libname}${release}${shared_ext}$major'
10388    fi
10389    shlibpath_var=LIBPATH
10390  fi
10391  ;;
10392
10393amigaos*)
10394  case $host_cpu in
10395  powerpc)
10396    # Since July 2007 AmigaOS4 officially supports .so libraries.
10397    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10398    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399    ;;
10400  m68k)
10401    library_names_spec='$libname.ixlibrary $libname.a'
10402    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10403    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'
10404    ;;
10405  esac
10406  ;;
10407
10408beos*)
10409  library_names_spec='${libname}${shared_ext}'
10410  dynamic_linker="$host_os ld.so"
10411  shlibpath_var=LIBRARY_PATH
10412  ;;
10413
10414bsdi[45]*)
10415  version_type=linux
10416  need_version=no
10417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418  soname_spec='${libname}${release}${shared_ext}$major'
10419  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10420  shlibpath_var=LD_LIBRARY_PATH
10421  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10422  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10423  # the default ld.so.conf also contains /usr/contrib/lib and
10424  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10425  # libtool to hard-code these into programs
10426  ;;
10427
10428cygwin* | mingw* | pw32* | cegcc*)
10429  version_type=windows
10430  shrext_cmds=".dll"
10431  need_version=no
10432  need_lib_prefix=no
10433
10434  case $GCC,$host_os in
10435  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10436    library_names_spec='$libname.dll.a'
10437    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10438    postinstall_cmds='base_file=`basename \${file}`~
10439      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10440      dldir=$destdir/`dirname \$dlpath`~
10441      test -d \$dldir || mkdir -p \$dldir~
10442      $install_prog $dir/$dlname \$dldir/$dlname~
10443      chmod a+x \$dldir/$dlname~
10444      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10445        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10446      fi'
10447    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10448      dlpath=$dir/\$dldll~
10449       $RM \$dlpath'
10450    shlibpath_overrides_runpath=yes
10451
10452    case $host_os in
10453    cygwin*)
10454      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10455      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10456      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10457      ;;
10458    mingw* | cegcc*)
10459      # MinGW DLLs use traditional 'lib' prefix
10460      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10461      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10462      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10463        # It is most probably a Windows format PATH printed by
10464        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10465        # path with ; separators, and with drive letters. We can handle the
10466        # drive letters (cygwin fileutils understands them), so leave them,
10467        # especially as we might pass files found there to a mingw objdump,
10468        # which wouldn't understand a cygwinified path. Ahh.
10469        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10470      else
10471        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10472      fi
10473      ;;
10474    pw32*)
10475      # pw32 DLLs use 'pw' prefix rather than 'lib'
10476      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10477      ;;
10478    esac
10479    ;;
10480
10481  *)
10482    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10483    ;;
10484  esac
10485  dynamic_linker='Win32 ld.exe'
10486  # FIXME: first we should search . and the directory the executable is in
10487  shlibpath_var=PATH
10488  ;;
10489
10490darwin* | rhapsody*)
10491  dynamic_linker="$host_os dyld"
10492  version_type=darwin
10493  need_lib_prefix=no
10494  need_version=no
10495  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10496  soname_spec='${libname}${release}${major}$shared_ext'
10497  shlibpath_overrides_runpath=yes
10498  shlibpath_var=DYLD_LIBRARY_PATH
10499  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10500
10501  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10502  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10503  ;;
10504
10505dgux*)
10506  version_type=linux
10507  need_lib_prefix=no
10508  need_version=no
10509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10510  soname_spec='${libname}${release}${shared_ext}$major'
10511  shlibpath_var=LD_LIBRARY_PATH
10512  ;;
10513
10514freebsd1*)
10515  dynamic_linker=no
10516  ;;
10517
10518freebsd* | dragonfly*)
10519  # DragonFly does not have aout.  When/if they implement a new
10520  # versioning mechanism, adjust this.
10521  if test -x /usr/bin/objformat; then
10522    objformat=`/usr/bin/objformat`
10523  else
10524    case $host_os in
10525    freebsd[123]*) objformat=aout ;;
10526    *) objformat=elf ;;
10527    esac
10528  fi
10529  version_type=freebsd-$objformat
10530  case $version_type in
10531    freebsd-elf*)
10532      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10533      need_version=no
10534      need_lib_prefix=no
10535      ;;
10536    freebsd-*)
10537      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10538      need_version=yes
10539      ;;
10540  esac
10541  shlibpath_var=LD_LIBRARY_PATH
10542  case $host_os in
10543  freebsd2*)
10544    shlibpath_overrides_runpath=yes
10545    ;;
10546  freebsd3.[01]* | freebsdelf3.[01]*)
10547    shlibpath_overrides_runpath=yes
10548    hardcode_into_libs=yes
10549    ;;
10550  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10551  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10552    shlibpath_overrides_runpath=no
10553    hardcode_into_libs=yes
10554    ;;
10555  *) # from 4.6 on, and DragonFly
10556    shlibpath_overrides_runpath=yes
10557    hardcode_into_libs=yes
10558    ;;
10559  esac
10560  ;;
10561
10562gnu*)
10563  version_type=linux
10564  need_lib_prefix=no
10565  need_version=no
10566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10567  soname_spec='${libname}${release}${shared_ext}$major'
10568  shlibpath_var=LD_LIBRARY_PATH
10569  hardcode_into_libs=yes
10570  ;;
10571
10572hpux9* | hpux10* | hpux11*)
10573  # Give a soname corresponding to the major version so that dld.sl refuses to
10574  # link against other versions.
10575  version_type=sunos
10576  need_lib_prefix=no
10577  need_version=no
10578  case $host_cpu in
10579  ia64*)
10580    shrext_cmds='.so'
10581    hardcode_into_libs=yes
10582    dynamic_linker="$host_os dld.so"
10583    shlibpath_var=LD_LIBRARY_PATH
10584    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586    soname_spec='${libname}${release}${shared_ext}$major'
10587    if test "X$HPUX_IA64_MODE" = X32; then
10588      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10589    else
10590      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10591    fi
10592    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10593    ;;
10594  hppa*64*)
10595    shrext_cmds='.sl'
10596    hardcode_into_libs=yes
10597    dynamic_linker="$host_os dld.sl"
10598    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10599    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601    soname_spec='${libname}${release}${shared_ext}$major'
10602    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10603    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10604    ;;
10605  *)
10606    shrext_cmds='.sl'
10607    dynamic_linker="$host_os dld.sl"
10608    shlibpath_var=SHLIB_PATH
10609    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10610    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611    soname_spec='${libname}${release}${shared_ext}$major'
10612    ;;
10613  esac
10614  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10615  postinstall_cmds='chmod 555 $lib'
10616  ;;
10617
10618interix[3-9]*)
10619  version_type=linux
10620  need_lib_prefix=no
10621  need_version=no
10622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10623  soname_spec='${libname}${release}${shared_ext}$major'
10624  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10625  shlibpath_var=LD_LIBRARY_PATH
10626  shlibpath_overrides_runpath=no
10627  hardcode_into_libs=yes
10628  ;;
10629
10630irix5* | irix6* | nonstopux*)
10631  case $host_os in
10632    nonstopux*) version_type=nonstopux ;;
10633    *)
10634	if test "$lt_cv_prog_gnu_ld" = yes; then
10635		version_type=linux
10636	else
10637		version_type=irix
10638	fi ;;
10639  esac
10640  need_lib_prefix=no
10641  need_version=no
10642  soname_spec='${libname}${release}${shared_ext}$major'
10643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10644  case $host_os in
10645  irix5* | nonstopux*)
10646    libsuff= shlibsuff=
10647    ;;
10648  *)
10649    case $LD in # libtool.m4 will add one of these switches to LD
10650    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10651      libsuff= shlibsuff= libmagic=32-bit;;
10652    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10653      libsuff=32 shlibsuff=N32 libmagic=N32;;
10654    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10655      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10656    *) libsuff= shlibsuff= libmagic=never-match;;
10657    esac
10658    ;;
10659  esac
10660  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10661  shlibpath_overrides_runpath=no
10662  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10663  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10664  hardcode_into_libs=yes
10665  ;;
10666
10667# No shared lib support for Linux oldld, aout, or coff.
10668linux*oldld* | linux*aout* | linux*coff*)
10669  dynamic_linker=no
10670  ;;
10671
10672# This must be Linux ELF.
10673linux* | k*bsd*-gnu)
10674  version_type=linux
10675  need_lib_prefix=no
10676  need_version=no
10677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678  soname_spec='${libname}${release}${shared_ext}$major'
10679  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10680  shlibpath_var=LD_LIBRARY_PATH
10681  shlibpath_overrides_runpath=no
10682  # Some binutils ld are patched to set DT_RUNPATH
10683  save_LDFLAGS=$LDFLAGS
10684  save_libdir=$libdir
10685  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10686       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688/* end confdefs.h.  */
10689
10690int
10691main ()
10692{
10693
10694  ;
10695  return 0;
10696}
10697_ACEOF
10698if ac_fn_c_try_link "$LINENO"; then :
10699  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10700  shlibpath_overrides_runpath=yes
10701fi
10702fi
10703rm -f core conftest.err conftest.$ac_objext \
10704    conftest$ac_exeext conftest.$ac_ext
10705  LDFLAGS=$save_LDFLAGS
10706  libdir=$save_libdir
10707
10708  # This implies no fast_install, which is unacceptable.
10709  # Some rework will be needed to allow for fast_install
10710  # before this can be enabled.
10711  hardcode_into_libs=yes
10712
10713  # Add ABI-specific directories to the system library path.
10714  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10715
10716  # Append ld.so.conf contents to the search path
10717  if test -f /etc/ld.so.conf; then
10718    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' ' '`
10719    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10720  fi
10721
10722  # We used to test for /lib/ld.so.1 and disable shared libraries on
10723  # powerpc, because MkLinux only supported shared libraries with the
10724  # GNU dynamic linker.  Since this was broken with cross compilers,
10725  # most powerpc-linux boxes support dynamic linking these days and
10726  # people can always --disable-shared, the test was removed, and we
10727  # assume the GNU/Linux dynamic linker is in use.
10728  dynamic_linker='GNU/Linux ld.so'
10729  ;;
10730
10731netbsd*)
10732  version_type=sunos
10733  need_lib_prefix=no
10734  need_version=no
10735  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10736    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10737    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10738    dynamic_linker='NetBSD (a.out) ld.so'
10739  else
10740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10741    soname_spec='${libname}${release}${shared_ext}$major'
10742    dynamic_linker='NetBSD ld.elf_so'
10743  fi
10744  shlibpath_var=LD_LIBRARY_PATH
10745  shlibpath_overrides_runpath=yes
10746  hardcode_into_libs=yes
10747  ;;
10748
10749newsos6)
10750  version_type=linux
10751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752  shlibpath_var=LD_LIBRARY_PATH
10753  shlibpath_overrides_runpath=yes
10754  ;;
10755
10756*nto* | *qnx*)
10757  version_type=qnx
10758  need_lib_prefix=no
10759  need_version=no
10760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761  soname_spec='${libname}${release}${shared_ext}$major'
10762  shlibpath_var=LD_LIBRARY_PATH
10763  shlibpath_overrides_runpath=no
10764  hardcode_into_libs=yes
10765  dynamic_linker='ldqnx.so'
10766  ;;
10767
10768openbsd*)
10769  version_type=sunos
10770  sys_lib_dlsearch_path_spec="/usr/lib"
10771  need_lib_prefix=no
10772  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10773  case $host_os in
10774    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10775    *)				need_version=no  ;;
10776  esac
10777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10778  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10779  shlibpath_var=LD_LIBRARY_PATH
10780  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10781    case $host_os in
10782      openbsd2.[89] | openbsd2.[89].*)
10783	shlibpath_overrides_runpath=no
10784	;;
10785      *)
10786	shlibpath_overrides_runpath=yes
10787	;;
10788      esac
10789  else
10790    shlibpath_overrides_runpath=yes
10791  fi
10792  ;;
10793
10794os2*)
10795  libname_spec='$name'
10796  shrext_cmds=".dll"
10797  need_lib_prefix=no
10798  library_names_spec='$libname${shared_ext} $libname.a'
10799  dynamic_linker='OS/2 ld.exe'
10800  shlibpath_var=LIBPATH
10801  ;;
10802
10803osf3* | osf4* | osf5*)
10804  version_type=osf
10805  need_lib_prefix=no
10806  need_version=no
10807  soname_spec='${libname}${release}${shared_ext}$major'
10808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809  shlibpath_var=LD_LIBRARY_PATH
10810  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10811  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10812  ;;
10813
10814rdos*)
10815  dynamic_linker=no
10816  ;;
10817
10818solaris*)
10819  version_type=linux
10820  need_lib_prefix=no
10821  need_version=no
10822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823  soname_spec='${libname}${release}${shared_ext}$major'
10824  shlibpath_var=LD_LIBRARY_PATH
10825  shlibpath_overrides_runpath=yes
10826  hardcode_into_libs=yes
10827  # ldd complains unless libraries are executable
10828  postinstall_cmds='chmod +x $lib'
10829  ;;
10830
10831sunos4*)
10832  version_type=sunos
10833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10834  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10835  shlibpath_var=LD_LIBRARY_PATH
10836  shlibpath_overrides_runpath=yes
10837  if test "$with_gnu_ld" = yes; then
10838    need_lib_prefix=no
10839  fi
10840  need_version=yes
10841  ;;
10842
10843sysv4 | sysv4.3*)
10844  version_type=linux
10845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846  soname_spec='${libname}${release}${shared_ext}$major'
10847  shlibpath_var=LD_LIBRARY_PATH
10848  case $host_vendor in
10849    sni)
10850      shlibpath_overrides_runpath=no
10851      need_lib_prefix=no
10852      runpath_var=LD_RUN_PATH
10853      ;;
10854    siemens)
10855      need_lib_prefix=no
10856      ;;
10857    motorola)
10858      need_lib_prefix=no
10859      need_version=no
10860      shlibpath_overrides_runpath=no
10861      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10862      ;;
10863  esac
10864  ;;
10865
10866sysv4*MP*)
10867  if test -d /usr/nec ;then
10868    version_type=linux
10869    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10870    soname_spec='$libname${shared_ext}.$major'
10871    shlibpath_var=LD_LIBRARY_PATH
10872  fi
10873  ;;
10874
10875sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10876  version_type=freebsd-elf
10877  need_lib_prefix=no
10878  need_version=no
10879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10880  soname_spec='${libname}${release}${shared_ext}$major'
10881  shlibpath_var=LD_LIBRARY_PATH
10882  shlibpath_overrides_runpath=yes
10883  hardcode_into_libs=yes
10884  if test "$with_gnu_ld" = yes; then
10885    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10886  else
10887    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10888    case $host_os in
10889      sco3.2v5*)
10890        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10891	;;
10892    esac
10893  fi
10894  sys_lib_dlsearch_path_spec='/usr/lib'
10895  ;;
10896
10897tpf*)
10898  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10899  version_type=linux
10900  need_lib_prefix=no
10901  need_version=no
10902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903  shlibpath_var=LD_LIBRARY_PATH
10904  shlibpath_overrides_runpath=no
10905  hardcode_into_libs=yes
10906  ;;
10907
10908uts4*)
10909  version_type=linux
10910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911  soname_spec='${libname}${release}${shared_ext}$major'
10912  shlibpath_var=LD_LIBRARY_PATH
10913  ;;
10914
10915*)
10916  dynamic_linker=no
10917  ;;
10918esac
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10920$as_echo "$dynamic_linker" >&6; }
10921test "$dynamic_linker" = no && can_build_shared=no
10922
10923variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10924if test "$GCC" = yes; then
10925  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10926fi
10927
10928if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10929  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10930fi
10931if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10932  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10933fi
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11022$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11023hardcode_action=
11024if test -n "$hardcode_libdir_flag_spec" ||
11025   test -n "$runpath_var" ||
11026   test "X$hardcode_automatic" = "Xyes" ; then
11027
11028  # We can hardcode non-existent directories.
11029  if test "$hardcode_direct" != no &&
11030     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11031     # have to relink, otherwise we might link with an installed library
11032     # when we should be linking with a yet-to-be-installed one
11033     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11034     test "$hardcode_minus_L" != no; then
11035    # Linking always hardcodes the temporary library directory.
11036    hardcode_action=relink
11037  else
11038    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11039    hardcode_action=immediate
11040  fi
11041else
11042  # We cannot hardcode anything, or else we can only hardcode existing
11043  # directories.
11044  hardcode_action=unsupported
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11047$as_echo "$hardcode_action" >&6; }
11048
11049if test "$hardcode_action" = relink ||
11050   test "$inherit_rpath" = yes; then
11051  # Fast installation is not supported
11052  enable_fast_install=no
11053elif test "$shlibpath_overrides_runpath" = yes ||
11054     test "$enable_shared" = no; then
11055  # Fast installation is not necessary
11056  enable_fast_install=needless
11057fi
11058
11059
11060
11061
11062
11063
11064  if test "x$enable_dlopen" != xyes; then
11065  enable_dlopen=unknown
11066  enable_dlopen_self=unknown
11067  enable_dlopen_self_static=unknown
11068else
11069  lt_cv_dlopen=no
11070  lt_cv_dlopen_libs=
11071
11072  case $host_os in
11073  beos*)
11074    lt_cv_dlopen="load_add_on"
11075    lt_cv_dlopen_libs=
11076    lt_cv_dlopen_self=yes
11077    ;;
11078
11079  mingw* | pw32* | cegcc*)
11080    lt_cv_dlopen="LoadLibrary"
11081    lt_cv_dlopen_libs=
11082    ;;
11083
11084  cygwin*)
11085    lt_cv_dlopen="dlopen"
11086    lt_cv_dlopen_libs=
11087    ;;
11088
11089  darwin*)
11090  # if libdl is installed we need to link against it
11091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11092$as_echo_n "checking for dlopen in -ldl... " >&6; }
11093if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11094  $as_echo_n "(cached) " >&6
11095else
11096  ac_check_lib_save_LIBS=$LIBS
11097LIBS="-ldl  $LIBS"
11098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099/* end confdefs.h.  */
11100
11101/* Override any GCC internal prototype to avoid an error.
11102   Use char because int might match the return type of a GCC
11103   builtin and then its argument prototype would still apply.  */
11104#ifdef __cplusplus
11105extern "C"
11106#endif
11107char dlopen ();
11108int
11109main ()
11110{
11111return dlopen ();
11112  ;
11113  return 0;
11114}
11115_ACEOF
11116if ac_fn_c_try_link "$LINENO"; then :
11117  ac_cv_lib_dl_dlopen=yes
11118else
11119  ac_cv_lib_dl_dlopen=no
11120fi
11121rm -f core conftest.err conftest.$ac_objext \
11122    conftest$ac_exeext conftest.$ac_ext
11123LIBS=$ac_check_lib_save_LIBS
11124fi
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11126$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11127if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11128  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11129else
11130
11131    lt_cv_dlopen="dyld"
11132    lt_cv_dlopen_libs=
11133    lt_cv_dlopen_self=yes
11134
11135fi
11136
11137    ;;
11138
11139  *)
11140    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11141if test "x$ac_cv_func_shl_load" = x""yes; then :
11142  lt_cv_dlopen="shl_load"
11143else
11144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11145$as_echo_n "checking for shl_load in -ldld... " >&6; }
11146if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11147  $as_echo_n "(cached) " >&6
11148else
11149  ac_check_lib_save_LIBS=$LIBS
11150LIBS="-ldld  $LIBS"
11151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152/* end confdefs.h.  */
11153
11154/* Override any GCC internal prototype to avoid an error.
11155   Use char because int might match the return type of a GCC
11156   builtin and then its argument prototype would still apply.  */
11157#ifdef __cplusplus
11158extern "C"
11159#endif
11160char shl_load ();
11161int
11162main ()
11163{
11164return shl_load ();
11165  ;
11166  return 0;
11167}
11168_ACEOF
11169if ac_fn_c_try_link "$LINENO"; then :
11170  ac_cv_lib_dld_shl_load=yes
11171else
11172  ac_cv_lib_dld_shl_load=no
11173fi
11174rm -f core conftest.err conftest.$ac_objext \
11175    conftest$ac_exeext conftest.$ac_ext
11176LIBS=$ac_check_lib_save_LIBS
11177fi
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11179$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11180if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11181  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11182else
11183  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11184if test "x$ac_cv_func_dlopen" = x""yes; then :
11185  lt_cv_dlopen="dlopen"
11186else
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11188$as_echo_n "checking for dlopen in -ldl... " >&6; }
11189if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11190  $as_echo_n "(cached) " >&6
11191else
11192  ac_check_lib_save_LIBS=$LIBS
11193LIBS="-ldl  $LIBS"
11194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195/* end confdefs.h.  */
11196
11197/* Override any GCC internal prototype to avoid an error.
11198   Use char because int might match the return type of a GCC
11199   builtin and then its argument prototype would still apply.  */
11200#ifdef __cplusplus
11201extern "C"
11202#endif
11203char dlopen ();
11204int
11205main ()
11206{
11207return dlopen ();
11208  ;
11209  return 0;
11210}
11211_ACEOF
11212if ac_fn_c_try_link "$LINENO"; then :
11213  ac_cv_lib_dl_dlopen=yes
11214else
11215  ac_cv_lib_dl_dlopen=no
11216fi
11217rm -f core conftest.err conftest.$ac_objext \
11218    conftest$ac_exeext conftest.$ac_ext
11219LIBS=$ac_check_lib_save_LIBS
11220fi
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11222$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11223if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11224  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11225else
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11227$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11228if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11229  $as_echo_n "(cached) " >&6
11230else
11231  ac_check_lib_save_LIBS=$LIBS
11232LIBS="-lsvld  $LIBS"
11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234/* end confdefs.h.  */
11235
11236/* Override any GCC internal prototype to avoid an error.
11237   Use char because int might match the return type of a GCC
11238   builtin and then its argument prototype would still apply.  */
11239#ifdef __cplusplus
11240extern "C"
11241#endif
11242char dlopen ();
11243int
11244main ()
11245{
11246return dlopen ();
11247  ;
11248  return 0;
11249}
11250_ACEOF
11251if ac_fn_c_try_link "$LINENO"; then :
11252  ac_cv_lib_svld_dlopen=yes
11253else
11254  ac_cv_lib_svld_dlopen=no
11255fi
11256rm -f core conftest.err conftest.$ac_objext \
11257    conftest$ac_exeext conftest.$ac_ext
11258LIBS=$ac_check_lib_save_LIBS
11259fi
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11261$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11262if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11263  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11264else
11265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11266$as_echo_n "checking for dld_link in -ldld... " >&6; }
11267if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11268  $as_echo_n "(cached) " >&6
11269else
11270  ac_check_lib_save_LIBS=$LIBS
11271LIBS="-ldld  $LIBS"
11272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h.  */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276   Use char because int might match the return type of a GCC
11277   builtin and then its argument prototype would still apply.  */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char dld_link ();
11282int
11283main ()
11284{
11285return dld_link ();
11286  ;
11287  return 0;
11288}
11289_ACEOF
11290if ac_fn_c_try_link "$LINENO"; then :
11291  ac_cv_lib_dld_dld_link=yes
11292else
11293  ac_cv_lib_dld_dld_link=no
11294fi
11295rm -f core conftest.err conftest.$ac_objext \
11296    conftest$ac_exeext conftest.$ac_ext
11297LIBS=$ac_check_lib_save_LIBS
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11300$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11301if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11302  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11303fi
11304
11305
11306fi
11307
11308
11309fi
11310
11311
11312fi
11313
11314
11315fi
11316
11317
11318fi
11319
11320    ;;
11321  esac
11322
11323  if test "x$lt_cv_dlopen" != xno; then
11324    enable_dlopen=yes
11325  else
11326    enable_dlopen=no
11327  fi
11328
11329  case $lt_cv_dlopen in
11330  dlopen)
11331    save_CPPFLAGS="$CPPFLAGS"
11332    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11333
11334    save_LDFLAGS="$LDFLAGS"
11335    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11336
11337    save_LIBS="$LIBS"
11338    LIBS="$lt_cv_dlopen_libs $LIBS"
11339
11340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11341$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11342if test "${lt_cv_dlopen_self+set}" = set; then :
11343  $as_echo_n "(cached) " >&6
11344else
11345  	  if test "$cross_compiling" = yes; then :
11346  lt_cv_dlopen_self=cross
11347else
11348  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11349  lt_status=$lt_dlunknown
11350  cat > conftest.$ac_ext <<_LT_EOF
11351#line 11351 "configure"
11352#include "confdefs.h"
11353
11354#if HAVE_DLFCN_H
11355#include <dlfcn.h>
11356#endif
11357
11358#include <stdio.h>
11359
11360#ifdef RTLD_GLOBAL
11361#  define LT_DLGLOBAL		RTLD_GLOBAL
11362#else
11363#  ifdef DL_GLOBAL
11364#    define LT_DLGLOBAL		DL_GLOBAL
11365#  else
11366#    define LT_DLGLOBAL		0
11367#  endif
11368#endif
11369
11370/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11371   find out it does not work in some platform. */
11372#ifndef LT_DLLAZY_OR_NOW
11373#  ifdef RTLD_LAZY
11374#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11375#  else
11376#    ifdef DL_LAZY
11377#      define LT_DLLAZY_OR_NOW		DL_LAZY
11378#    else
11379#      ifdef RTLD_NOW
11380#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11381#      else
11382#        ifdef DL_NOW
11383#          define LT_DLLAZY_OR_NOW	DL_NOW
11384#        else
11385#          define LT_DLLAZY_OR_NOW	0
11386#        endif
11387#      endif
11388#    endif
11389#  endif
11390#endif
11391
11392void fnord() { int i=42;}
11393int main ()
11394{
11395  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11396  int status = $lt_dlunknown;
11397
11398  if (self)
11399    {
11400      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11401      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11402      /* dlclose (self); */
11403    }
11404  else
11405    puts (dlerror ());
11406
11407  return status;
11408}
11409_LT_EOF
11410  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11411  (eval $ac_link) 2>&5
11412  ac_status=$?
11413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11414  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11415    (./conftest; exit; ) >&5 2>/dev/null
11416    lt_status=$?
11417    case x$lt_status in
11418      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11419      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11420      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11421    esac
11422  else :
11423    # compilation failed
11424    lt_cv_dlopen_self=no
11425  fi
11426fi
11427rm -fr conftest*
11428
11429
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11432$as_echo "$lt_cv_dlopen_self" >&6; }
11433
11434    if test "x$lt_cv_dlopen_self" = xyes; then
11435      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11437$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11438if test "${lt_cv_dlopen_self_static+set}" = set; then :
11439  $as_echo_n "(cached) " >&6
11440else
11441  	  if test "$cross_compiling" = yes; then :
11442  lt_cv_dlopen_self_static=cross
11443else
11444  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11445  lt_status=$lt_dlunknown
11446  cat > conftest.$ac_ext <<_LT_EOF
11447#line 11447 "configure"
11448#include "confdefs.h"
11449
11450#if HAVE_DLFCN_H
11451#include <dlfcn.h>
11452#endif
11453
11454#include <stdio.h>
11455
11456#ifdef RTLD_GLOBAL
11457#  define LT_DLGLOBAL		RTLD_GLOBAL
11458#else
11459#  ifdef DL_GLOBAL
11460#    define LT_DLGLOBAL		DL_GLOBAL
11461#  else
11462#    define LT_DLGLOBAL		0
11463#  endif
11464#endif
11465
11466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11467   find out it does not work in some platform. */
11468#ifndef LT_DLLAZY_OR_NOW
11469#  ifdef RTLD_LAZY
11470#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11471#  else
11472#    ifdef DL_LAZY
11473#      define LT_DLLAZY_OR_NOW		DL_LAZY
11474#    else
11475#      ifdef RTLD_NOW
11476#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11477#      else
11478#        ifdef DL_NOW
11479#          define LT_DLLAZY_OR_NOW	DL_NOW
11480#        else
11481#          define LT_DLLAZY_OR_NOW	0
11482#        endif
11483#      endif
11484#    endif
11485#  endif
11486#endif
11487
11488void fnord() { int i=42;}
11489int main ()
11490{
11491  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11492  int status = $lt_dlunknown;
11493
11494  if (self)
11495    {
11496      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11497      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11498      /* dlclose (self); */
11499    }
11500  else
11501    puts (dlerror ());
11502
11503  return status;
11504}
11505_LT_EOF
11506  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11507  (eval $ac_link) 2>&5
11508  ac_status=$?
11509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11511    (./conftest; exit; ) >&5 2>/dev/null
11512    lt_status=$?
11513    case x$lt_status in
11514      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11515      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11516      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11517    esac
11518  else :
11519    # compilation failed
11520    lt_cv_dlopen_self_static=no
11521  fi
11522fi
11523rm -fr conftest*
11524
11525
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11528$as_echo "$lt_cv_dlopen_self_static" >&6; }
11529    fi
11530
11531    CPPFLAGS="$save_CPPFLAGS"
11532    LDFLAGS="$save_LDFLAGS"
11533    LIBS="$save_LIBS"
11534    ;;
11535  esac
11536
11537  case $lt_cv_dlopen_self in
11538  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11539  *) enable_dlopen_self=unknown ;;
11540  esac
11541
11542  case $lt_cv_dlopen_self_static in
11543  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11544  *) enable_dlopen_self_static=unknown ;;
11545  esac
11546fi
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564striplib=
11565old_striplib=
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11567$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11568if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11569  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11570  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572$as_echo "yes" >&6; }
11573else
11574# FIXME - insert some real tests, host_os isn't really good enough
11575  case $host_os in
11576  darwin*)
11577    if test -n "$STRIP" ; then
11578      striplib="$STRIP -x"
11579      old_striplib="$STRIP -S"
11580      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11581$as_echo "yes" >&6; }
11582    else
11583      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584$as_echo "no" >&6; }
11585    fi
11586    ;;
11587  *)
11588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
11590    ;;
11591  esac
11592fi
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605  # Report which library types will actually be built
11606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11607$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11609$as_echo "$can_build_shared" >&6; }
11610
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11612$as_echo_n "checking whether to build shared libraries... " >&6; }
11613  test "$can_build_shared" = "no" && enable_shared=no
11614
11615  # On AIX, shared libraries and static libraries use the same namespace, and
11616  # are all built from PIC.
11617  case $host_os in
11618  aix3*)
11619    test "$enable_shared" = yes && enable_static=no
11620    if test -n "$RANLIB"; then
11621      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11622      postinstall_cmds='$RANLIB $lib'
11623    fi
11624    ;;
11625
11626  aix[4-9]*)
11627    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11628      test "$enable_shared" = yes && enable_static=no
11629    fi
11630    ;;
11631  esac
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11633$as_echo "$enable_shared" >&6; }
11634
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11636$as_echo_n "checking whether to build static libraries... " >&6; }
11637  # Make sure either enable_shared or enable_static is yes.
11638  test "$enable_shared" = yes || enable_static=yes
11639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11640$as_echo "$enable_static" >&6; }
11641
11642
11643
11644
11645fi
11646ac_ext=c
11647ac_cpp='$CPP $CPPFLAGS'
11648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11650ac_compiler_gnu=$ac_cv_c_compiler_gnu
11651
11652CC="$lt_save_CC"
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666        ac_config_commands="$ac_config_commands libtool"
11667
11668
11669
11670
11671# Only expand once:
11672
11673
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11675$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11676if test "${ac_cv_path_SED+set}" = set; then :
11677  $as_echo_n "(cached) " >&6
11678else
11679            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11680     for ac_i in 1 2 3 4 5 6 7; do
11681       ac_script="$ac_script$as_nl$ac_script"
11682     done
11683     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11684     { ac_script=; unset ac_script;}
11685     if test -z "$SED"; then
11686  ac_path_SED_found=false
11687  # Loop through the user's path and test for each of PROGNAME-LIST
11688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689for as_dir in $PATH
11690do
11691  IFS=$as_save_IFS
11692  test -z "$as_dir" && as_dir=.
11693    for ac_prog in sed gsed; do
11694    for ac_exec_ext in '' $ac_executable_extensions; do
11695      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11696      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11697# Check for GNU ac_path_SED and select it if it is found.
11698  # Check for GNU $ac_path_SED
11699case `"$ac_path_SED" --version 2>&1` in
11700*GNU*)
11701  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11702*)
11703  ac_count=0
11704  $as_echo_n 0123456789 >"conftest.in"
11705  while :
11706  do
11707    cat "conftest.in" "conftest.in" >"conftest.tmp"
11708    mv "conftest.tmp" "conftest.in"
11709    cp "conftest.in" "conftest.nl"
11710    $as_echo '' >> "conftest.nl"
11711    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11712    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11713    as_fn_arith $ac_count + 1 && ac_count=$as_val
11714    if test $ac_count -gt ${ac_path_SED_max-0}; then
11715      # Best one so far, save it but keep looking for a better one
11716      ac_cv_path_SED="$ac_path_SED"
11717      ac_path_SED_max=$ac_count
11718    fi
11719    # 10*(2^10) chars as input seems more than enough
11720    test $ac_count -gt 10 && break
11721  done
11722  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11723esac
11724
11725      $ac_path_SED_found && break 3
11726    done
11727  done
11728  done
11729IFS=$as_save_IFS
11730  if test -z "$ac_cv_path_SED"; then
11731    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11732  fi
11733else
11734  ac_cv_path_SED=$SED
11735fi
11736
11737fi
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11739$as_echo "$ac_cv_path_SED" >&6; }
11740 SED="$ac_cv_path_SED"
11741  rm -f conftest.sed
11742
11743
11744# Checks for pkg-config packages
11745
11746pkg_failed=no
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
11748$as_echo_n "checking for XI... " >&6; }
11749
11750if test -n "$XI_CFLAGS"; then
11751    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
11752 elif test -n "$PKG_CONFIG"; then
11753    if test -n "$PKG_CONFIG" && \
11754    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
11755  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
11756  ac_status=$?
11757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758  test $ac_status = 0; }; then
11759  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
11760else
11761  pkg_failed=yes
11762fi
11763 else
11764    pkg_failed=untried
11765fi
11766if test -n "$XI_LIBS"; then
11767    pkg_cv_XI_LIBS="$XI_LIBS"
11768 elif test -n "$PKG_CONFIG"; then
11769    if test -n "$PKG_CONFIG" && \
11770    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
11771  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
11772  ac_status=$?
11773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11774  test $ac_status = 0; }; then
11775  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
11776else
11777  pkg_failed=yes
11778fi
11779 else
11780    pkg_failed=untried
11781fi
11782
11783
11784
11785if test $pkg_failed = yes; then
11786
11787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11788        _pkg_short_errors_supported=yes
11789else
11790        _pkg_short_errors_supported=no
11791fi
11792        if test $_pkg_short_errors_supported = yes; then
11793	        XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
11794        else
11795	        XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
11796        fi
11797	# Put the nasty error message in config.log where it belongs
11798	echo "$XI_PKG_ERRORS" >&5
11799
11800	as_fn_error "Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met:
11801
11802$XI_PKG_ERRORS
11803
11804Consider adjusting the PKG_CONFIG_PATH environment variable if you
11805installed software in a non-standard prefix.
11806
11807Alternatively, you may set the environment variables XI_CFLAGS
11808and XI_LIBS to avoid the need to call pkg-config.
11809See the pkg-config man page for more details.
11810" "$LINENO" 5
11811elif test $pkg_failed = untried; then
11812	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11814as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11815is in your PATH or set the PKG_CONFIG environment variable to the full
11816path to pkg-config.
11817
11818Alternatively, you may set the environment variables XI_CFLAGS
11819and XI_LIBS to avoid the need to call pkg-config.
11820See the pkg-config man page for more details.
11821
11822To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11823See \`config.log' for more details." "$LINENO" 5; }
11824else
11825	XI_CFLAGS=$pkg_cv_XI_CFLAGS
11826	XI_LIBS=$pkg_cv_XI_LIBS
11827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828$as_echo "yes" >&6; }
11829	:
11830fi
11831XI_CFLAGS="$CWARNFLAGS $XI_CFLAGS"
11832
11833
11834
11835# Check for xmlto and asciidoc for man page conversion
11836# (only needed by people building tarballs)
11837
11838# Extract the first word of "xmlto", so it can be a program name with args.
11839set dummy xmlto; ac_word=$2
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841$as_echo_n "checking for $ac_word... " >&6; }
11842if test "${ac_cv_path_XMLTO+set}" = set; then :
11843  $as_echo_n "(cached) " >&6
11844else
11845  case $XMLTO in
11846  [\\/]* | ?:[\\/]*)
11847  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11848  ;;
11849  *)
11850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853  IFS=$as_save_IFS
11854  test -z "$as_dir" && as_dir=.
11855    for ac_exec_ext in '' $ac_executable_extensions; do
11856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11857    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859    break 2
11860  fi
11861done
11862  done
11863IFS=$as_save_IFS
11864
11865  ;;
11866esac
11867fi
11868XMLTO=$ac_cv_path_XMLTO
11869if test -n "$XMLTO"; then
11870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11871$as_echo "$XMLTO" >&6; }
11872else
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
11875fi
11876
11877
11878
11879# Extract the first word of "asciidoc", so it can be a program name with args.
11880set dummy asciidoc; ac_word=$2
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882$as_echo_n "checking for $ac_word... " >&6; }
11883if test "${ac_cv_path_ASCIIDOC+set}" = set; then :
11884  $as_echo_n "(cached) " >&6
11885else
11886  case $ASCIIDOC in
11887  [\\/]* | ?:[\\/]*)
11888  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
11889  ;;
11890  *)
11891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894  IFS=$as_save_IFS
11895  test -z "$as_dir" && as_dir=.
11896    for ac_exec_ext in '' $ac_executable_extensions; do
11897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
11899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900    break 2
11901  fi
11902done
11903  done
11904IFS=$as_save_IFS
11905
11906  ;;
11907esac
11908fi
11909ASCIIDOC=$ac_cv_path_ASCIIDOC
11910if test -n "$ASCIIDOC"; then
11911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
11912$as_echo "$ASCIIDOC" >&6; }
11913else
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
11916fi
11917
11918
11919if test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"; then
11920	have_doctools=yes
11921else
11922	have_doctools=no
11923fi
11924 if test $have_doctools = yes; then
11925  HAVE_DOCTOOLS_TRUE=
11926  HAVE_DOCTOOLS_FALSE='#'
11927else
11928  HAVE_DOCTOOLS_TRUE='#'
11929  HAVE_DOCTOOLS_FALSE=
11930fi
11931
11932if test $have_doctools = no; then
11933	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
11934$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
11935fi
11936
11937# Determine if the source for man pages is available
11938# It may already be present (tarball) or can be generated using doctools
11939 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
11940	  test $have_doctools = yes; then
11941  INSTALL_MANPAGES_TRUE=
11942  INSTALL_MANPAGES_FALSE='#'
11943else
11944  INSTALL_MANPAGES_TRUE='#'
11945  INSTALL_MANPAGES_FALSE=
11946fi
11947
11948
11949
11950# Check whether --enable-malloc0returnsnull was given.
11951if test "${enable_malloc0returnsnull+set}" = set; then :
11952  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11953else
11954  MALLOC_ZERO_RETURNS_NULL=auto
11955fi
11956
11957
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11959$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11960if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11961	if test "$cross_compiling" = yes; then :
11962  MALLOC_ZERO_RETURNS_NULL=yes
11963else
11964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965/* end confdefs.h.  */
11966
11967char *malloc();
11968char *realloc();
11969char *calloc();
11970main() {
11971    char *m0, *r0, *c0, *p;
11972    m0 = malloc(0);
11973    p = malloc(10);
11974    r0 = realloc(p,0);
11975    c0 = calloc(0);
11976    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11977}
11978_ACEOF
11979if ac_fn_c_try_run "$LINENO"; then :
11980  MALLOC_ZERO_RETURNS_NULL=yes
11981else
11982  MALLOC_ZERO_RETURNS_NULL=no
11983fi
11984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11985  conftest.$ac_objext conftest.beam conftest.$ac_ext
11986fi
11987
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11990$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11991
11992if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11993	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11994	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11995	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11996else
11997	MALLOC_ZERO_CFLAGS=""
11998	XMALLOC_ZERO_CFLAGS=""
11999	XTMALLOC_ZERO_CFLAGS=""
12000fi
12001
12002
12003
12004
12005
12006
12007ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xi.pc"
12008
12009cat >confcache <<\_ACEOF
12010# This file is a shell script that caches the results of configure
12011# tests run on this system so they can be shared between configure
12012# scripts and configure runs, see configure's option --config-cache.
12013# It is not useful on other systems.  If it contains results you don't
12014# want to keep, you may remove or edit it.
12015#
12016# config.status only pays attention to the cache file if you give it
12017# the --recheck option to rerun configure.
12018#
12019# `ac_cv_env_foo' variables (set or unset) will be overridden when
12020# loading this file, other *unset* `ac_cv_foo' will be assigned the
12021# following values.
12022
12023_ACEOF
12024
12025# The following way of writing the cache mishandles newlines in values,
12026# but we know of no workaround that is simple, portable, and efficient.
12027# So, we kill variables containing newlines.
12028# Ultrix sh set writes to stderr and can't be redirected directly,
12029# and sets the high bit in the cache file unless we assign to the vars.
12030(
12031  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12032    eval ac_val=\$$ac_var
12033    case $ac_val in #(
12034    *${as_nl}*)
12035      case $ac_var in #(
12036      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12038      esac
12039      case $ac_var in #(
12040      _ | IFS | as_nl) ;; #(
12041      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12042      *) { eval $ac_var=; unset $ac_var;} ;;
12043      esac ;;
12044    esac
12045  done
12046
12047  (set) 2>&1 |
12048    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12049    *${as_nl}ac_space=\ *)
12050      # `set' does not quote correctly, so add quotes: double-quote
12051      # substitution turns \\\\ into \\, and sed turns \\ into \.
12052      sed -n \
12053	"s/'/'\\\\''/g;
12054	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12055      ;; #(
12056    *)
12057      # `set' quotes correctly as required by POSIX, so do not add quotes.
12058      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12059      ;;
12060    esac |
12061    sort
12062) |
12063  sed '
12064     /^ac_cv_env_/b end
12065     t clear
12066     :clear
12067     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12068     t end
12069     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12070     :end' >>confcache
12071if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12072  if test -w "$cache_file"; then
12073    test "x$cache_file" != "x/dev/null" &&
12074      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12075$as_echo "$as_me: updating cache $cache_file" >&6;}
12076    cat confcache >$cache_file
12077  else
12078    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12079$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12080  fi
12081fi
12082rm -f confcache
12083
12084test "x$prefix" = xNONE && prefix=$ac_default_prefix
12085# Let make expand exec_prefix.
12086test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12087
12088DEFS=-DHAVE_CONFIG_H
12089
12090ac_libobjs=
12091ac_ltlibobjs=
12092for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12093  # 1. Remove the extension, and $U if already installed.
12094  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12095  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12096  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12097  #    will be set to the directory where LIBOBJS objects are built.
12098  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12099  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12100done
12101LIBOBJS=$ac_libobjs
12102
12103LTLIBOBJS=$ac_ltlibobjs
12104
12105
12106 if test -n "$EXEEXT"; then
12107  am__EXEEXT_TRUE=
12108  am__EXEEXT_FALSE='#'
12109else
12110  am__EXEEXT_TRUE='#'
12111  am__EXEEXT_FALSE=
12112fi
12113
12114if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12115  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12116Usually this means the macro was only invoked conditionally." "$LINENO" 5
12117fi
12118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12119  as_fn_error "conditional \"AMDEP\" was never defined.
12120Usually this means the macro was only invoked conditionally." "$LINENO" 5
12121fi
12122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12123  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12124Usually this means the macro was only invoked conditionally." "$LINENO" 5
12125fi
12126if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12127  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12128Usually this means the macro was only invoked conditionally." "$LINENO" 5
12129fi
12130if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
12131  as_fn_error "conditional \"HAVE_DOCTOOLS\" was never defined.
12132Usually this means the macro was only invoked conditionally." "$LINENO" 5
12133fi
12134if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
12135  as_fn_error "conditional \"INSTALL_MANPAGES\" was never defined.
12136Usually this means the macro was only invoked conditionally." "$LINENO" 5
12137fi
12138
12139: ${CONFIG_STATUS=./config.status}
12140ac_write_fail=0
12141ac_clean_files_save=$ac_clean_files
12142ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12144$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12145as_write_fail=0
12146cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12147#! $SHELL
12148# Generated by $as_me.
12149# Run this file to recreate the current configuration.
12150# Compiler output produced by configure, useful for debugging
12151# configure, is in config.log if it exists.
12152
12153debug=false
12154ac_cs_recheck=false
12155ac_cs_silent=false
12156
12157SHELL=\${CONFIG_SHELL-$SHELL}
12158export SHELL
12159_ASEOF
12160cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12161## -------------------- ##
12162## M4sh Initialization. ##
12163## -------------------- ##
12164
12165# Be more Bourne compatible
12166DUALCASE=1; export DUALCASE # for MKS sh
12167if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12168  emulate sh
12169  NULLCMD=:
12170  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12171  # is contrary to our usage.  Disable this feature.
12172  alias -g '${1+"$@"}'='"$@"'
12173  setopt NO_GLOB_SUBST
12174else
12175  case `(set -o) 2>/dev/null` in #(
12176  *posix*) :
12177    set -o posix ;; #(
12178  *) :
12179     ;;
12180esac
12181fi
12182
12183
12184as_nl='
12185'
12186export as_nl
12187# Printing a long string crashes Solaris 7 /usr/bin/printf.
12188as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12189as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12191# Prefer a ksh shell builtin over an external printf program on Solaris,
12192# but without wasting forks for bash or zsh.
12193if test -z "$BASH_VERSION$ZSH_VERSION" \
12194    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12195  as_echo='print -r --'
12196  as_echo_n='print -rn --'
12197elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12198  as_echo='printf %s\n'
12199  as_echo_n='printf %s'
12200else
12201  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12202    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12203    as_echo_n='/usr/ucb/echo -n'
12204  else
12205    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12206    as_echo_n_body='eval
12207      arg=$1;
12208      case $arg in #(
12209      *"$as_nl"*)
12210	expr "X$arg" : "X\\(.*\\)$as_nl";
12211	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12212      esac;
12213      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12214    '
12215    export as_echo_n_body
12216    as_echo_n='sh -c $as_echo_n_body as_echo'
12217  fi
12218  export as_echo_body
12219  as_echo='sh -c $as_echo_body as_echo'
12220fi
12221
12222# The user is always right.
12223if test "${PATH_SEPARATOR+set}" != set; then
12224  PATH_SEPARATOR=:
12225  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12226    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12227      PATH_SEPARATOR=';'
12228  }
12229fi
12230
12231
12232# IFS
12233# We need space, tab and new line, in precisely that order.  Quoting is
12234# there to prevent editors from complaining about space-tab.
12235# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12236# splitting by setting IFS to empty value.)
12237IFS=" ""	$as_nl"
12238
12239# Find who we are.  Look in the path if we contain no directory separator.
12240case $0 in #((
12241  *[\\/]* ) as_myself=$0 ;;
12242  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245  IFS=$as_save_IFS
12246  test -z "$as_dir" && as_dir=.
12247    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12248  done
12249IFS=$as_save_IFS
12250
12251     ;;
12252esac
12253# We did not find ourselves, most probably we were run as `sh COMMAND'
12254# in which case we are not to be found in the path.
12255if test "x$as_myself" = x; then
12256  as_myself=$0
12257fi
12258if test ! -f "$as_myself"; then
12259  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12260  exit 1
12261fi
12262
12263# Unset variables that we do not need and which cause bugs (e.g. in
12264# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12265# suppresses any "Segmentation fault" message there.  '((' could
12266# trigger a bug in pdksh 5.2.14.
12267for as_var in BASH_ENV ENV MAIL MAILPATH
12268do eval test x\${$as_var+set} = xset \
12269  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12270done
12271PS1='$ '
12272PS2='> '
12273PS4='+ '
12274
12275# NLS nuisances.
12276LC_ALL=C
12277export LC_ALL
12278LANGUAGE=C
12279export LANGUAGE
12280
12281# CDPATH.
12282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12283
12284
12285# as_fn_error ERROR [LINENO LOG_FD]
12286# ---------------------------------
12287# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12288# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12289# script with status $?, using 1 if that was 0.
12290as_fn_error ()
12291{
12292  as_status=$?; test $as_status -eq 0 && as_status=1
12293  if test "$3"; then
12294    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12295    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12296  fi
12297  $as_echo "$as_me: error: $1" >&2
12298  as_fn_exit $as_status
12299} # as_fn_error
12300
12301
12302# as_fn_set_status STATUS
12303# -----------------------
12304# Set $? to STATUS, without forking.
12305as_fn_set_status ()
12306{
12307  return $1
12308} # as_fn_set_status
12309
12310# as_fn_exit STATUS
12311# -----------------
12312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12313as_fn_exit ()
12314{
12315  set +e
12316  as_fn_set_status $1
12317  exit $1
12318} # as_fn_exit
12319
12320# as_fn_unset VAR
12321# ---------------
12322# Portably unset VAR.
12323as_fn_unset ()
12324{
12325  { eval $1=; unset $1;}
12326}
12327as_unset=as_fn_unset
12328# as_fn_append VAR VALUE
12329# ----------------------
12330# Append the text in VALUE to the end of the definition contained in VAR. Take
12331# advantage of any shell optimizations that allow amortized linear growth over
12332# repeated appends, instead of the typical quadratic growth present in naive
12333# implementations.
12334if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12335  eval 'as_fn_append ()
12336  {
12337    eval $1+=\$2
12338  }'
12339else
12340  as_fn_append ()
12341  {
12342    eval $1=\$$1\$2
12343  }
12344fi # as_fn_append
12345
12346# as_fn_arith ARG...
12347# ------------------
12348# Perform arithmetic evaluation on the ARGs, and store the result in the
12349# global $as_val. Take advantage of shells that can avoid forks. The arguments
12350# must be portable across $(()) and expr.
12351if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12352  eval 'as_fn_arith ()
12353  {
12354    as_val=$(( $* ))
12355  }'
12356else
12357  as_fn_arith ()
12358  {
12359    as_val=`expr "$@" || test $? -eq 1`
12360  }
12361fi # as_fn_arith
12362
12363
12364if expr a : '\(a\)' >/dev/null 2>&1 &&
12365   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12366  as_expr=expr
12367else
12368  as_expr=false
12369fi
12370
12371if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12372  as_basename=basename
12373else
12374  as_basename=false
12375fi
12376
12377if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12378  as_dirname=dirname
12379else
12380  as_dirname=false
12381fi
12382
12383as_me=`$as_basename -- "$0" ||
12384$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12385	 X"$0" : 'X\(//\)$' \| \
12386	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12387$as_echo X/"$0" |
12388    sed '/^.*\/\([^/][^/]*\)\/*$/{
12389	    s//\1/
12390	    q
12391	  }
12392	  /^X\/\(\/\/\)$/{
12393	    s//\1/
12394	    q
12395	  }
12396	  /^X\/\(\/\).*/{
12397	    s//\1/
12398	    q
12399	  }
12400	  s/.*/./; q'`
12401
12402# Avoid depending upon Character Ranges.
12403as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12404as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12405as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12406as_cr_digits='0123456789'
12407as_cr_alnum=$as_cr_Letters$as_cr_digits
12408
12409ECHO_C= ECHO_N= ECHO_T=
12410case `echo -n x` in #(((((
12411-n*)
12412  case `echo 'xy\c'` in
12413  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12414  xy)  ECHO_C='\c';;
12415  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12416       ECHO_T='	';;
12417  esac;;
12418*)
12419  ECHO_N='-n';;
12420esac
12421
12422rm -f conf$$ conf$$.exe conf$$.file
12423if test -d conf$$.dir; then
12424  rm -f conf$$.dir/conf$$.file
12425else
12426  rm -f conf$$.dir
12427  mkdir conf$$.dir 2>/dev/null
12428fi
12429if (echo >conf$$.file) 2>/dev/null; then
12430  if ln -s conf$$.file conf$$ 2>/dev/null; then
12431    as_ln_s='ln -s'
12432    # ... but there are two gotchas:
12433    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12434    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12435    # In both cases, we have to default to `cp -p'.
12436    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12437      as_ln_s='cp -p'
12438  elif ln conf$$.file conf$$ 2>/dev/null; then
12439    as_ln_s=ln
12440  else
12441    as_ln_s='cp -p'
12442  fi
12443else
12444  as_ln_s='cp -p'
12445fi
12446rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12447rmdir conf$$.dir 2>/dev/null
12448
12449
12450# as_fn_mkdir_p
12451# -------------
12452# Create "$as_dir" as a directory, including parents if necessary.
12453as_fn_mkdir_p ()
12454{
12455
12456  case $as_dir in #(
12457  -*) as_dir=./$as_dir;;
12458  esac
12459  test -d "$as_dir" || eval $as_mkdir_p || {
12460    as_dirs=
12461    while :; do
12462      case $as_dir in #(
12463      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12464      *) as_qdir=$as_dir;;
12465      esac
12466      as_dirs="'$as_qdir' $as_dirs"
12467      as_dir=`$as_dirname -- "$as_dir" ||
12468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12469	 X"$as_dir" : 'X\(//\)[^/]' \| \
12470	 X"$as_dir" : 'X\(//\)$' \| \
12471	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12472$as_echo X"$as_dir" |
12473    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12474	    s//\1/
12475	    q
12476	  }
12477	  /^X\(\/\/\)[^/].*/{
12478	    s//\1/
12479	    q
12480	  }
12481	  /^X\(\/\/\)$/{
12482	    s//\1/
12483	    q
12484	  }
12485	  /^X\(\/\).*/{
12486	    s//\1/
12487	    q
12488	  }
12489	  s/.*/./; q'`
12490      test -d "$as_dir" && break
12491    done
12492    test -z "$as_dirs" || eval "mkdir $as_dirs"
12493  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12494
12495
12496} # as_fn_mkdir_p
12497if mkdir -p . 2>/dev/null; then
12498  as_mkdir_p='mkdir -p "$as_dir"'
12499else
12500  test -d ./-p && rmdir ./-p
12501  as_mkdir_p=false
12502fi
12503
12504if test -x / >/dev/null 2>&1; then
12505  as_test_x='test -x'
12506else
12507  if ls -dL / >/dev/null 2>&1; then
12508    as_ls_L_option=L
12509  else
12510    as_ls_L_option=
12511  fi
12512  as_test_x='
12513    eval sh -c '\''
12514      if test -d "$1"; then
12515	test -d "$1/.";
12516      else
12517	case $1 in #(
12518	-*)set "./$1";;
12519	esac;
12520	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12521	???[sx]*):;;*)false;;esac;fi
12522    '\'' sh
12523  '
12524fi
12525as_executable_p=$as_test_x
12526
12527# Sed expression to map a string onto a valid CPP name.
12528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12529
12530# Sed expression to map a string onto a valid variable name.
12531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12532
12533
12534exec 6>&1
12535## ----------------------------------- ##
12536## Main body of $CONFIG_STATUS script. ##
12537## ----------------------------------- ##
12538_ASEOF
12539test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12540
12541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12542# Save the log message, to keep $0 and so on meaningful, and to
12543# report actual input values of CONFIG_FILES etc. instead of their
12544# values after options handling.
12545ac_log="
12546This file was extended by libXi $as_me 1.3.2, which was
12547generated by GNU Autoconf 2.65.  Invocation command line was
12548
12549  CONFIG_FILES    = $CONFIG_FILES
12550  CONFIG_HEADERS  = $CONFIG_HEADERS
12551  CONFIG_LINKS    = $CONFIG_LINKS
12552  CONFIG_COMMANDS = $CONFIG_COMMANDS
12553  $ $0 $@
12554
12555on `(hostname || uname -n) 2>/dev/null | sed 1q`
12556"
12557
12558_ACEOF
12559
12560case $ac_config_files in *"
12561"*) set x $ac_config_files; shift; ac_config_files=$*;;
12562esac
12563
12564case $ac_config_headers in *"
12565"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12566esac
12567
12568
12569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12570# Files that config.status was made for.
12571config_files="$ac_config_files"
12572config_headers="$ac_config_headers"
12573config_commands="$ac_config_commands"
12574
12575_ACEOF
12576
12577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12578ac_cs_usage="\
12579\`$as_me' instantiates files and other configuration actions
12580from templates according to the current configuration.  Unless the files
12581and actions are specified as TAGs, all are instantiated by default.
12582
12583Usage: $0 [OPTION]... [TAG]...
12584
12585  -h, --help       print this help, then exit
12586  -V, --version    print version number and configuration settings, then exit
12587      --config     print configuration, then exit
12588  -q, --quiet, --silent
12589                   do not print progress messages
12590  -d, --debug      don't remove temporary files
12591      --recheck    update $as_me by reconfiguring in the same conditions
12592      --file=FILE[:TEMPLATE]
12593                   instantiate the configuration file FILE
12594      --header=FILE[:TEMPLATE]
12595                   instantiate the configuration header FILE
12596
12597Configuration files:
12598$config_files
12599
12600Configuration headers:
12601$config_headers
12602
12603Configuration commands:
12604$config_commands
12605
12606Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12607
12608_ACEOF
12609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12610ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12611ac_cs_version="\\
12612libXi config.status 1.3.2
12613configured by $0, generated by GNU Autoconf 2.65,
12614  with options \\"\$ac_cs_config\\"
12615
12616Copyright (C) 2009 Free Software Foundation, Inc.
12617This config.status script is free software; the Free Software Foundation
12618gives unlimited permission to copy, distribute and modify it."
12619
12620ac_pwd='$ac_pwd'
12621srcdir='$srcdir'
12622INSTALL='$INSTALL'
12623MKDIR_P='$MKDIR_P'
12624AWK='$AWK'
12625test -n "\$AWK" || AWK=awk
12626_ACEOF
12627
12628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12629# The default lists apply if the user does not specify any file.
12630ac_need_defaults=:
12631while test $# != 0
12632do
12633  case $1 in
12634  --*=*)
12635    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12636    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12637    ac_shift=:
12638    ;;
12639  *)
12640    ac_option=$1
12641    ac_optarg=$2
12642    ac_shift=shift
12643    ;;
12644  esac
12645
12646  case $ac_option in
12647  # Handling of the options.
12648  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12649    ac_cs_recheck=: ;;
12650  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12651    $as_echo "$ac_cs_version"; exit ;;
12652  --config | --confi | --conf | --con | --co | --c )
12653    $as_echo "$ac_cs_config"; exit ;;
12654  --debug | --debu | --deb | --de | --d | -d )
12655    debug=: ;;
12656  --file | --fil | --fi | --f )
12657    $ac_shift
12658    case $ac_optarg in
12659    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12660    esac
12661    as_fn_append CONFIG_FILES " '$ac_optarg'"
12662    ac_need_defaults=false;;
12663  --header | --heade | --head | --hea )
12664    $ac_shift
12665    case $ac_optarg in
12666    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12667    esac
12668    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12669    ac_need_defaults=false;;
12670  --he | --h)
12671    # Conflict between --help and --header
12672    as_fn_error "ambiguous option: \`$1'
12673Try \`$0 --help' for more information.";;
12674  --help | --hel | -h )
12675    $as_echo "$ac_cs_usage"; exit ;;
12676  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12677  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12678    ac_cs_silent=: ;;
12679
12680  # This is an error.
12681  -*) as_fn_error "unrecognized option: \`$1'
12682Try \`$0 --help' for more information." ;;
12683
12684  *) as_fn_append ac_config_targets " $1"
12685     ac_need_defaults=false ;;
12686
12687  esac
12688  shift
12689done
12690
12691ac_configure_extra_args=
12692
12693if $ac_cs_silent; then
12694  exec 6>/dev/null
12695  ac_configure_extra_args="$ac_configure_extra_args --silent"
12696fi
12697
12698_ACEOF
12699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12700if \$ac_cs_recheck; then
12701  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12702  shift
12703  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12704  CONFIG_SHELL='$SHELL'
12705  export CONFIG_SHELL
12706  exec "\$@"
12707fi
12708
12709_ACEOF
12710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12711exec 5>>config.log
12712{
12713  echo
12714  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12715## Running $as_me. ##
12716_ASBOX
12717  $as_echo "$ac_log"
12718} >&5
12719
12720_ACEOF
12721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12722#
12723# INIT-COMMANDS
12724#
12725AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12726
12727
12728# The HP-UX ksh and POSIX shell print the target directory to stdout
12729# if CDPATH is set.
12730(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12731
12732sed_quote_subst='$sed_quote_subst'
12733double_quote_subst='$double_quote_subst'
12734delay_variable_subst='$delay_variable_subst'
12735macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12736macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12737enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12738enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12739pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12740enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12741host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12742host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12743host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12744build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12745build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12746build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12747SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12748Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12749GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12750EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12751FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12752LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12753NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12754LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12755max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12756ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12757exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12758lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12759lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12760lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12761reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12762reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12763OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12764deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12765file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12766AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12767AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12768STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12769RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12770old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12771old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12772old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12773CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12774CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12775compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12776GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12777lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12778lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12779lt_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"`'
12780lt_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"`'
12781objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12782SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12783ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12784MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12785lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12786lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12787lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12788lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12789lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12790need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12791DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12792NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12793LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12794OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12795OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12796libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12797shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12798extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12799archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12800enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12801export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12802whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12803compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12804old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12805old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12806archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12807archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12808module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12809module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12810with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12811allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12812no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12813hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12814hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12815hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12816hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12817hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12818hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12819hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12820hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12821inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12822link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12823fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12824always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12825export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12826exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12827include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12828prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12829file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12830variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12831need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12832need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12833version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12834runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12835shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12836shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12837libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12838library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12839soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12840postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12841postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12842finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12843finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12844hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12845sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12846sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12847hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12848enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12849enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12850enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12851old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12852striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12853
12854LTCC='$LTCC'
12855LTCFLAGS='$LTCFLAGS'
12856compiler='$compiler_DEFAULT'
12857
12858# Quote evaled strings.
12859for var in SED \
12860GREP \
12861EGREP \
12862FGREP \
12863LD \
12864NM \
12865LN_S \
12866lt_SP2NL \
12867lt_NL2SP \
12868reload_flag \
12869OBJDUMP \
12870deplibs_check_method \
12871file_magic_cmd \
12872AR \
12873AR_FLAGS \
12874STRIP \
12875RANLIB \
12876CC \
12877CFLAGS \
12878compiler \
12879lt_cv_sys_global_symbol_pipe \
12880lt_cv_sys_global_symbol_to_cdecl \
12881lt_cv_sys_global_symbol_to_c_name_address \
12882lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12883SHELL \
12884ECHO \
12885lt_prog_compiler_no_builtin_flag \
12886lt_prog_compiler_wl \
12887lt_prog_compiler_pic \
12888lt_prog_compiler_static \
12889lt_cv_prog_compiler_c_o \
12890need_locks \
12891DSYMUTIL \
12892NMEDIT \
12893LIPO \
12894OTOOL \
12895OTOOL64 \
12896shrext_cmds \
12897export_dynamic_flag_spec \
12898whole_archive_flag_spec \
12899compiler_needs_object \
12900with_gnu_ld \
12901allow_undefined_flag \
12902no_undefined_flag \
12903hardcode_libdir_flag_spec \
12904hardcode_libdir_flag_spec_ld \
12905hardcode_libdir_separator \
12906fix_srcfile_path \
12907exclude_expsyms \
12908include_expsyms \
12909file_list_spec \
12910variables_saved_for_relink \
12911libname_spec \
12912library_names_spec \
12913soname_spec \
12914finish_eval \
12915old_striplib \
12916striplib; do
12917    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12918    *[\\\\\\\`\\"\\\$]*)
12919      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12920      ;;
12921    *)
12922      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12923      ;;
12924    esac
12925done
12926
12927# Double-quote double-evaled strings.
12928for var in reload_cmds \
12929old_postinstall_cmds \
12930old_postuninstall_cmds \
12931old_archive_cmds \
12932extract_expsyms_cmds \
12933old_archive_from_new_cmds \
12934old_archive_from_expsyms_cmds \
12935archive_cmds \
12936archive_expsym_cmds \
12937module_cmds \
12938module_expsym_cmds \
12939export_symbols_cmds \
12940prelink_cmds \
12941postinstall_cmds \
12942postuninstall_cmds \
12943finish_cmds \
12944sys_lib_search_path_spec \
12945sys_lib_dlsearch_path_spec; do
12946    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12947    *[\\\\\\\`\\"\\\$]*)
12948      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12949      ;;
12950    *)
12951      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12952      ;;
12953    esac
12954done
12955
12956# Fix-up fallback echo if it was mangled by the above quoting rules.
12957case \$lt_ECHO in
12958*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12959  ;;
12960esac
12961
12962ac_aux_dir='$ac_aux_dir'
12963xsi_shell='$xsi_shell'
12964lt_shell_append='$lt_shell_append'
12965
12966# See if we are running on zsh, and set the options which allow our
12967# commands through without removal of \ escapes INIT.
12968if test -n "\${ZSH_VERSION+set}" ; then
12969   setopt NO_GLOB_SUBST
12970fi
12971
12972
12973    PACKAGE='$PACKAGE'
12974    VERSION='$VERSION'
12975    TIMESTAMP='$TIMESTAMP'
12976    RM='$RM'
12977    ofile='$ofile'
12978
12979
12980
12981
12982_ACEOF
12983
12984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12985
12986# Handling of arguments.
12987for ac_config_target in $ac_config_targets
12988do
12989  case $ac_config_target in
12990    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12991    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12992    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12993    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12994    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12995    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12996    "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
12997
12998  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12999  esac
13000done
13001
13002
13003# If the user did not use the arguments to specify the items to instantiate,
13004# then the envvar interface is used.  Set only those that are not.
13005# We use the long form for the default assignment because of an extremely
13006# bizarre bug on SunOS 4.1.3.
13007if $ac_need_defaults; then
13008  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13009  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13010  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13011fi
13012
13013# Have a temporary directory for convenience.  Make it in the build tree
13014# simply because there is no reason against having it here, and in addition,
13015# creating and moving files from /tmp can sometimes cause problems.
13016# Hook for its removal unless debugging.
13017# Note that there is a small window in which the directory will not be cleaned:
13018# after its creation but before its name has been assigned to `$tmp'.
13019$debug ||
13020{
13021  tmp=
13022  trap 'exit_status=$?
13023  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13024' 0
13025  trap 'as_fn_exit 1' 1 2 13 15
13026}
13027# Create a (secure) tmp directory for tmp files.
13028
13029{
13030  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13031  test -n "$tmp" && test -d "$tmp"
13032}  ||
13033{
13034  tmp=./conf$$-$RANDOM
13035  (umask 077 && mkdir "$tmp")
13036} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13037
13038# Set up the scripts for CONFIG_FILES section.
13039# No need to generate them if there are no CONFIG_FILES.
13040# This happens for instance with `./config.status config.h'.
13041if test -n "$CONFIG_FILES"; then
13042
13043
13044ac_cr=`echo X | tr X '\015'`
13045# On cygwin, bash can eat \r inside `` if the user requested igncr.
13046# But we know of no other shell where ac_cr would be empty at this
13047# point, so we can use a bashism as a fallback.
13048if test "x$ac_cr" = x; then
13049  eval ac_cr=\$\'\\r\'
13050fi
13051ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13052if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13053  ac_cs_awk_cr='\r'
13054else
13055  ac_cs_awk_cr=$ac_cr
13056fi
13057
13058echo 'BEGIN {' >"$tmp/subs1.awk" &&
13059_ACEOF
13060
13061
13062{
13063  echo "cat >conf$$subs.awk <<_ACEOF" &&
13064  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13065  echo "_ACEOF"
13066} >conf$$subs.sh ||
13067  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13068ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13069ac_delim='%!_!# '
13070for ac_last_try in false false false false false :; do
13071  . ./conf$$subs.sh ||
13072    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13073
13074  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13075  if test $ac_delim_n = $ac_delim_num; then
13076    break
13077  elif $ac_last_try; then
13078    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13079  else
13080    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13081  fi
13082done
13083rm -f conf$$subs.sh
13084
13085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13086cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13087_ACEOF
13088sed -n '
13089h
13090s/^/S["/; s/!.*/"]=/
13091p
13092g
13093s/^[^!]*!//
13094:repl
13095t repl
13096s/'"$ac_delim"'$//
13097t delim
13098:nl
13099h
13100s/\(.\{148\}\)..*/\1/
13101t more1
13102s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13103p
13104n
13105b repl
13106:more1
13107s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13108p
13109g
13110s/.\{148\}//
13111t nl
13112:delim
13113h
13114s/\(.\{148\}\)..*/\1/
13115t more2
13116s/["\\]/\\&/g; s/^/"/; s/$/"/
13117p
13118b
13119:more2
13120s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13121p
13122g
13123s/.\{148\}//
13124t delim
13125' <conf$$subs.awk | sed '
13126/^[^""]/{
13127  N
13128  s/\n//
13129}
13130' >>$CONFIG_STATUS || ac_write_fail=1
13131rm -f conf$$subs.awk
13132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13133_ACAWK
13134cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13135  for (key in S) S_is_set[key] = 1
13136  FS = ""
13137
13138}
13139{
13140  line = $ 0
13141  nfields = split(line, field, "@")
13142  substed = 0
13143  len = length(field[1])
13144  for (i = 2; i < nfields; i++) {
13145    key = field[i]
13146    keylen = length(key)
13147    if (S_is_set[key]) {
13148      value = S[key]
13149      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13150      len += length(value) + length(field[++i])
13151      substed = 1
13152    } else
13153      len += 1 + keylen
13154  }
13155
13156  print line
13157}
13158
13159_ACAWK
13160_ACEOF
13161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13162if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13163  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13164else
13165  cat
13166fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13167  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13168_ACEOF
13169
13170# VPATH may cause trouble with some makes, so we remove $(srcdir),
13171# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13172# trailing colons and then remove the whole line if VPATH becomes empty
13173# (actually we leave an empty line to preserve line numbers).
13174if test "x$srcdir" = x.; then
13175  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13176s/:*\$(srcdir):*/:/
13177s/:*\${srcdir}:*/:/
13178s/:*@srcdir@:*/:/
13179s/^\([^=]*=[	 ]*\):*/\1/
13180s/:*$//
13181s/^[^=]*=[	 ]*$//
13182}'
13183fi
13184
13185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13186fi # test -n "$CONFIG_FILES"
13187
13188# Set up the scripts for CONFIG_HEADERS section.
13189# No need to generate them if there are no CONFIG_HEADERS.
13190# This happens for instance with `./config.status Makefile'.
13191if test -n "$CONFIG_HEADERS"; then
13192cat >"$tmp/defines.awk" <<\_ACAWK ||
13193BEGIN {
13194_ACEOF
13195
13196# Transform confdefs.h into an awk script `defines.awk', embedded as
13197# here-document in config.status, that substitutes the proper values into
13198# config.h.in to produce config.h.
13199
13200# Create a delimiter string that does not exist in confdefs.h, to ease
13201# handling of long lines.
13202ac_delim='%!_!# '
13203for ac_last_try in false false :; do
13204  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13205  if test -z "$ac_t"; then
13206    break
13207  elif $ac_last_try; then
13208    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13209  else
13210    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13211  fi
13212done
13213
13214# For the awk script, D is an array of macro values keyed by name,
13215# likewise P contains macro parameters if any.  Preserve backslash
13216# newline sequences.
13217
13218ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13219sed -n '
13220s/.\{148\}/&'"$ac_delim"'/g
13221t rset
13222:rset
13223s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13224t def
13225d
13226:def
13227s/\\$//
13228t bsnl
13229s/["\\]/\\&/g
13230s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13231D["\1"]=" \3"/p
13232s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13233d
13234:bsnl
13235s/["\\]/\\&/g
13236s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13237D["\1"]=" \3\\\\\\n"\\/p
13238t cont
13239s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13240t cont
13241d
13242:cont
13243n
13244s/.\{148\}/&'"$ac_delim"'/g
13245t clear
13246:clear
13247s/\\$//
13248t bsnlc
13249s/["\\]/\\&/g; s/^/"/; s/$/"/p
13250d
13251:bsnlc
13252s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13253b cont
13254' <confdefs.h | sed '
13255s/'"$ac_delim"'/"\\\
13256"/g' >>$CONFIG_STATUS || ac_write_fail=1
13257
13258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13259  for (key in D) D_is_set[key] = 1
13260  FS = ""
13261}
13262/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13263  line = \$ 0
13264  split(line, arg, " ")
13265  if (arg[1] == "#") {
13266    defundef = arg[2]
13267    mac1 = arg[3]
13268  } else {
13269    defundef = substr(arg[1], 2)
13270    mac1 = arg[2]
13271  }
13272  split(mac1, mac2, "(") #)
13273  macro = mac2[1]
13274  prefix = substr(line, 1, index(line, defundef) - 1)
13275  if (D_is_set[macro]) {
13276    # Preserve the white space surrounding the "#".
13277    print prefix "define", macro P[macro] D[macro]
13278    next
13279  } else {
13280    # Replace #undef with comments.  This is necessary, for example,
13281    # in the case of _POSIX_SOURCE, which is predefined and required
13282    # on some systems where configure will not decide to define it.
13283    if (defundef == "undef") {
13284      print "/*", prefix defundef, macro, "*/"
13285      next
13286    }
13287  }
13288}
13289{ print }
13290_ACAWK
13291_ACEOF
13292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13293  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13294fi # test -n "$CONFIG_HEADERS"
13295
13296
13297eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13298shift
13299for ac_tag
13300do
13301  case $ac_tag in
13302  :[FHLC]) ac_mode=$ac_tag; continue;;
13303  esac
13304  case $ac_mode$ac_tag in
13305  :[FHL]*:*);;
13306  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13307  :[FH]-) ac_tag=-:-;;
13308  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13309  esac
13310  ac_save_IFS=$IFS
13311  IFS=:
13312  set x $ac_tag
13313  IFS=$ac_save_IFS
13314  shift
13315  ac_file=$1
13316  shift
13317
13318  case $ac_mode in
13319  :L) ac_source=$1;;
13320  :[FH])
13321    ac_file_inputs=
13322    for ac_f
13323    do
13324      case $ac_f in
13325      -) ac_f="$tmp/stdin";;
13326      *) # Look for the file first in the build tree, then in the source tree
13327	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13328	 # because $ac_f cannot contain `:'.
13329	 test -f "$ac_f" ||
13330	   case $ac_f in
13331	   [\\/$]*) false;;
13332	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13333	   esac ||
13334	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13335      esac
13336      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13337      as_fn_append ac_file_inputs " '$ac_f'"
13338    done
13339
13340    # Let's still pretend it is `configure' which instantiates (i.e., don't
13341    # use $as_me), people would be surprised to read:
13342    #    /* config.h.  Generated by config.status.  */
13343    configure_input='Generated from '`
13344	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13345	`' by configure.'
13346    if test x"$ac_file" != x-; then
13347      configure_input="$ac_file.  $configure_input"
13348      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13349$as_echo "$as_me: creating $ac_file" >&6;}
13350    fi
13351    # Neutralize special characters interpreted by sed in replacement strings.
13352    case $configure_input in #(
13353    *\&* | *\|* | *\\* )
13354       ac_sed_conf_input=`$as_echo "$configure_input" |
13355       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13356    *) ac_sed_conf_input=$configure_input;;
13357    esac
13358
13359    case $ac_tag in
13360    *:-:* | *:-) cat >"$tmp/stdin" \
13361      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13362    esac
13363    ;;
13364  esac
13365
13366  ac_dir=`$as_dirname -- "$ac_file" ||
13367$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13368	 X"$ac_file" : 'X\(//\)[^/]' \| \
13369	 X"$ac_file" : 'X\(//\)$' \| \
13370	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13371$as_echo X"$ac_file" |
13372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13373	    s//\1/
13374	    q
13375	  }
13376	  /^X\(\/\/\)[^/].*/{
13377	    s//\1/
13378	    q
13379	  }
13380	  /^X\(\/\/\)$/{
13381	    s//\1/
13382	    q
13383	  }
13384	  /^X\(\/\).*/{
13385	    s//\1/
13386	    q
13387	  }
13388	  s/.*/./; q'`
13389  as_dir="$ac_dir"; as_fn_mkdir_p
13390  ac_builddir=.
13391
13392case "$ac_dir" in
13393.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13394*)
13395  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13396  # A ".." for each directory in $ac_dir_suffix.
13397  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13398  case $ac_top_builddir_sub in
13399  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13400  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13401  esac ;;
13402esac
13403ac_abs_top_builddir=$ac_pwd
13404ac_abs_builddir=$ac_pwd$ac_dir_suffix
13405# for backward compatibility:
13406ac_top_builddir=$ac_top_build_prefix
13407
13408case $srcdir in
13409  .)  # We are building in place.
13410    ac_srcdir=.
13411    ac_top_srcdir=$ac_top_builddir_sub
13412    ac_abs_top_srcdir=$ac_pwd ;;
13413  [\\/]* | ?:[\\/]* )  # Absolute name.
13414    ac_srcdir=$srcdir$ac_dir_suffix;
13415    ac_top_srcdir=$srcdir
13416    ac_abs_top_srcdir=$srcdir ;;
13417  *) # Relative name.
13418    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13419    ac_top_srcdir=$ac_top_build_prefix$srcdir
13420    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13421esac
13422ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13423
13424
13425  case $ac_mode in
13426  :F)
13427  #
13428  # CONFIG_FILE
13429  #
13430
13431  case $INSTALL in
13432  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13433  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13434  esac
13435  ac_MKDIR_P=$MKDIR_P
13436  case $MKDIR_P in
13437  [\\/$]* | ?:[\\/]* ) ;;
13438  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13439  esac
13440_ACEOF
13441
13442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13443# If the template does not know about datarootdir, expand it.
13444# FIXME: This hack should be removed a few years after 2.60.
13445ac_datarootdir_hack=; ac_datarootdir_seen=
13446ac_sed_dataroot='
13447/datarootdir/ {
13448  p
13449  q
13450}
13451/@datadir@/p
13452/@docdir@/p
13453/@infodir@/p
13454/@localedir@/p
13455/@mandir@/p'
13456case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13457*datarootdir*) ac_datarootdir_seen=yes;;
13458*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13459  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13460$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13461_ACEOF
13462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13463  ac_datarootdir_hack='
13464  s&@datadir@&$datadir&g
13465  s&@docdir@&$docdir&g
13466  s&@infodir@&$infodir&g
13467  s&@localedir@&$localedir&g
13468  s&@mandir@&$mandir&g
13469  s&\\\${datarootdir}&$datarootdir&g' ;;
13470esac
13471_ACEOF
13472
13473# Neutralize VPATH when `$srcdir' = `.'.
13474# Shell code in configure.ac might set extrasub.
13475# FIXME: do we really want to maintain this feature?
13476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13477ac_sed_extra="$ac_vpsub
13478$extrasub
13479_ACEOF
13480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13481:t
13482/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13483s|@configure_input@|$ac_sed_conf_input|;t t
13484s&@top_builddir@&$ac_top_builddir_sub&;t t
13485s&@top_build_prefix@&$ac_top_build_prefix&;t t
13486s&@srcdir@&$ac_srcdir&;t t
13487s&@abs_srcdir@&$ac_abs_srcdir&;t t
13488s&@top_srcdir@&$ac_top_srcdir&;t t
13489s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13490s&@builddir@&$ac_builddir&;t t
13491s&@abs_builddir@&$ac_abs_builddir&;t t
13492s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13493s&@INSTALL@&$ac_INSTALL&;t t
13494s&@MKDIR_P@&$ac_MKDIR_P&;t t
13495$ac_datarootdir_hack
13496"
13497eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13498  || as_fn_error "could not create $ac_file" "$LINENO" 5
13499
13500test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13501  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13502  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13504which seems to be undefined.  Please make sure it is defined." >&5
13505$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13506which seems to be undefined.  Please make sure it is defined." >&2;}
13507
13508  rm -f "$tmp/stdin"
13509  case $ac_file in
13510  -) cat "$tmp/out" && rm -f "$tmp/out";;
13511  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13512  esac \
13513  || as_fn_error "could not create $ac_file" "$LINENO" 5
13514 ;;
13515  :H)
13516  #
13517  # CONFIG_HEADER
13518  #
13519  if test x"$ac_file" != x-; then
13520    {
13521      $as_echo "/* $configure_input  */" \
13522      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13523    } >"$tmp/config.h" \
13524      || as_fn_error "could not create $ac_file" "$LINENO" 5
13525    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13526      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13527$as_echo "$as_me: $ac_file is unchanged" >&6;}
13528    else
13529      rm -f "$ac_file"
13530      mv "$tmp/config.h" "$ac_file" \
13531	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13532    fi
13533  else
13534    $as_echo "/* $configure_input  */" \
13535      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13536      || as_fn_error "could not create -" "$LINENO" 5
13537  fi
13538# Compute "$ac_file"'s index in $config_headers.
13539_am_arg="$ac_file"
13540_am_stamp_count=1
13541for _am_header in $config_headers :; do
13542  case $_am_header in
13543    $_am_arg | $_am_arg:* )
13544      break ;;
13545    * )
13546      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13547  esac
13548done
13549echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13550$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13551	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13552	 X"$_am_arg" : 'X\(//\)$' \| \
13553	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13554$as_echo X"$_am_arg" |
13555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13556	    s//\1/
13557	    q
13558	  }
13559	  /^X\(\/\/\)[^/].*/{
13560	    s//\1/
13561	    q
13562	  }
13563	  /^X\(\/\/\)$/{
13564	    s//\1/
13565	    q
13566	  }
13567	  /^X\(\/\).*/{
13568	    s//\1/
13569	    q
13570	  }
13571	  s/.*/./; q'`/stamp-h$_am_stamp_count
13572 ;;
13573
13574  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13575$as_echo "$as_me: executing $ac_file commands" >&6;}
13576 ;;
13577  esac
13578
13579
13580  case $ac_file$ac_mode in
13581    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13582  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13583  # are listed without --file.  Let's play safe and only enable the eval
13584  # if we detect the quoting.
13585  case $CONFIG_FILES in
13586  *\'*) eval set x "$CONFIG_FILES" ;;
13587  *)   set x $CONFIG_FILES ;;
13588  esac
13589  shift
13590  for mf
13591  do
13592    # Strip MF so we end up with the name of the file.
13593    mf=`echo "$mf" | sed -e 's/:.*$//'`
13594    # Check whether this is an Automake generated Makefile or not.
13595    # We used to match only the files named `Makefile.in', but
13596    # some people rename them; so instead we look at the file content.
13597    # Grep'ing the first line is not enough: some people post-process
13598    # each Makefile.in and add a new line on top of each file to say so.
13599    # Grep'ing the whole file is not good either: AIX grep has a line
13600    # limit of 2048, but all sed's we know have understand at least 4000.
13601    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13602      dirpart=`$as_dirname -- "$mf" ||
13603$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13604	 X"$mf" : 'X\(//\)[^/]' \| \
13605	 X"$mf" : 'X\(//\)$' \| \
13606	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13607$as_echo X"$mf" |
13608    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13609	    s//\1/
13610	    q
13611	  }
13612	  /^X\(\/\/\)[^/].*/{
13613	    s//\1/
13614	    q
13615	  }
13616	  /^X\(\/\/\)$/{
13617	    s//\1/
13618	    q
13619	  }
13620	  /^X\(\/\).*/{
13621	    s//\1/
13622	    q
13623	  }
13624	  s/.*/./; q'`
13625    else
13626      continue
13627    fi
13628    # Extract the definition of DEPDIR, am__include, and am__quote
13629    # from the Makefile without running `make'.
13630    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13631    test -z "$DEPDIR" && continue
13632    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13633    test -z "am__include" && continue
13634    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13635    # When using ansi2knr, U may be empty or an underscore; expand it
13636    U=`sed -n 's/^U = //p' < "$mf"`
13637    # Find all dependency output files, they are included files with
13638    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13639    # simplest approach to changing $(DEPDIR) to its actual value in the
13640    # expansion.
13641    for file in `sed -n "
13642      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13643	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13644      # Make sure the directory exists.
13645      test -f "$dirpart/$file" && continue
13646      fdir=`$as_dirname -- "$file" ||
13647$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13648	 X"$file" : 'X\(//\)[^/]' \| \
13649	 X"$file" : 'X\(//\)$' \| \
13650	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13651$as_echo X"$file" |
13652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13653	    s//\1/
13654	    q
13655	  }
13656	  /^X\(\/\/\)[^/].*/{
13657	    s//\1/
13658	    q
13659	  }
13660	  /^X\(\/\/\)$/{
13661	    s//\1/
13662	    q
13663	  }
13664	  /^X\(\/\).*/{
13665	    s//\1/
13666	    q
13667	  }
13668	  s/.*/./; q'`
13669      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13670      # echo "creating $dirpart/$file"
13671      echo '# dummy' > "$dirpart/$file"
13672    done
13673  done
13674}
13675 ;;
13676    "libtool":C)
13677
13678    # See if we are running on zsh, and set the options which allow our
13679    # commands through without removal of \ escapes.
13680    if test -n "${ZSH_VERSION+set}" ; then
13681      setopt NO_GLOB_SUBST
13682    fi
13683
13684    cfgfile="${ofile}T"
13685    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13686    $RM "$cfgfile"
13687
13688    cat <<_LT_EOF >> "$cfgfile"
13689#! $SHELL
13690
13691# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13692# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13693# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13694# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13695#
13696#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13697#                 2006, 2007, 2008 Free Software Foundation, Inc.
13698#   Written by Gordon Matzigkeit, 1996
13699#
13700#   This file is part of GNU Libtool.
13701#
13702# GNU Libtool is free software; you can redistribute it and/or
13703# modify it under the terms of the GNU General Public License as
13704# published by the Free Software Foundation; either version 2 of
13705# the License, or (at your option) any later version.
13706#
13707# As a special exception to the GNU General Public License,
13708# if you distribute this file as part of a program or library that
13709# is built using GNU Libtool, you may include this file under the
13710# same distribution terms that you use for the rest of that program.
13711#
13712# GNU Libtool is distributed in the hope that it will be useful,
13713# but WITHOUT ANY WARRANTY; without even the implied warranty of
13714# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13715# GNU General Public License for more details.
13716#
13717# You should have received a copy of the GNU General Public License
13718# along with GNU Libtool; see the file COPYING.  If not, a copy
13719# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13720# obtained by writing to the Free Software Foundation, Inc.,
13721# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13722
13723
13724# The names of the tagged configurations supported by this script.
13725available_tags=""
13726
13727# ### BEGIN LIBTOOL CONFIG
13728
13729# Which release of libtool.m4 was used?
13730macro_version=$macro_version
13731macro_revision=$macro_revision
13732
13733# Whether or not to build shared libraries.
13734build_libtool_libs=$enable_shared
13735
13736# Whether or not to build static libraries.
13737build_old_libs=$enable_static
13738
13739# What type of objects to build.
13740pic_mode=$pic_mode
13741
13742# Whether or not to optimize for fast installation.
13743fast_install=$enable_fast_install
13744
13745# The host system.
13746host_alias=$host_alias
13747host=$host
13748host_os=$host_os
13749
13750# The build system.
13751build_alias=$build_alias
13752build=$build
13753build_os=$build_os
13754
13755# A sed program that does not truncate output.
13756SED=$lt_SED
13757
13758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13759Xsed="\$SED -e 1s/^X//"
13760
13761# A grep program that handles long lines.
13762GREP=$lt_GREP
13763
13764# An ERE matcher.
13765EGREP=$lt_EGREP
13766
13767# A literal string matcher.
13768FGREP=$lt_FGREP
13769
13770# A BSD- or MS-compatible name lister.
13771NM=$lt_NM
13772
13773# Whether we need soft or hard links.
13774LN_S=$lt_LN_S
13775
13776# What is the maximum length of a command?
13777max_cmd_len=$max_cmd_len
13778
13779# Object file suffix (normally "o").
13780objext=$ac_objext
13781
13782# Executable file suffix (normally "").
13783exeext=$exeext
13784
13785# whether the shell understands "unset".
13786lt_unset=$lt_unset
13787
13788# turn spaces into newlines.
13789SP2NL=$lt_lt_SP2NL
13790
13791# turn newlines into spaces.
13792NL2SP=$lt_lt_NL2SP
13793
13794# How to create reloadable object files.
13795reload_flag=$lt_reload_flag
13796reload_cmds=$lt_reload_cmds
13797
13798# An object symbol dumper.
13799OBJDUMP=$lt_OBJDUMP
13800
13801# Method to check whether dependent libraries are shared objects.
13802deplibs_check_method=$lt_deplibs_check_method
13803
13804# Command to use when deplibs_check_method == "file_magic".
13805file_magic_cmd=$lt_file_magic_cmd
13806
13807# The archiver.
13808AR=$lt_AR
13809AR_FLAGS=$lt_AR_FLAGS
13810
13811# A symbol stripping program.
13812STRIP=$lt_STRIP
13813
13814# Commands used to install an old-style archive.
13815RANLIB=$lt_RANLIB
13816old_postinstall_cmds=$lt_old_postinstall_cmds
13817old_postuninstall_cmds=$lt_old_postuninstall_cmds
13818
13819# A C compiler.
13820LTCC=$lt_CC
13821
13822# LTCC compiler flags.
13823LTCFLAGS=$lt_CFLAGS
13824
13825# Take the output of nm and produce a listing of raw symbols and C names.
13826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13827
13828# Transform the output of nm in a proper C declaration.
13829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13830
13831# Transform the output of nm in a C name address pair.
13832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13833
13834# Transform the output of nm in a C name address pair when lib prefix is needed.
13835global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13836
13837# The name of the directory that contains temporary libtool files.
13838objdir=$objdir
13839
13840# Shell to use when invoking shell scripts.
13841SHELL=$lt_SHELL
13842
13843# An echo program that does not interpret backslashes.
13844ECHO=$lt_ECHO
13845
13846# Used to examine libraries when file_magic_cmd begins with "file".
13847MAGIC_CMD=$MAGIC_CMD
13848
13849# Must we lock files when doing compilation?
13850need_locks=$lt_need_locks
13851
13852# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13853DSYMUTIL=$lt_DSYMUTIL
13854
13855# Tool to change global to local symbols on Mac OS X.
13856NMEDIT=$lt_NMEDIT
13857
13858# Tool to manipulate fat objects and archives on Mac OS X.
13859LIPO=$lt_LIPO
13860
13861# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13862OTOOL=$lt_OTOOL
13863
13864# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13865OTOOL64=$lt_OTOOL64
13866
13867# Old archive suffix (normally "a").
13868libext=$libext
13869
13870# Shared library suffix (normally ".so").
13871shrext_cmds=$lt_shrext_cmds
13872
13873# The commands to extract the exported symbol list from a shared archive.
13874extract_expsyms_cmds=$lt_extract_expsyms_cmds
13875
13876# Variables whose values should be saved in libtool wrapper scripts and
13877# restored at link time.
13878variables_saved_for_relink=$lt_variables_saved_for_relink
13879
13880# Do we need the "lib" prefix for modules?
13881need_lib_prefix=$need_lib_prefix
13882
13883# Do we need a version for libraries?
13884need_version=$need_version
13885
13886# Library versioning type.
13887version_type=$version_type
13888
13889# Shared library runtime path variable.
13890runpath_var=$runpath_var
13891
13892# Shared library path variable.
13893shlibpath_var=$shlibpath_var
13894
13895# Is shlibpath searched before the hard-coded library search path?
13896shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13897
13898# Format of library name prefix.
13899libname_spec=$lt_libname_spec
13900
13901# List of archive names.  First name is the real one, the rest are links.
13902# The last name is the one that the linker finds with -lNAME
13903library_names_spec=$lt_library_names_spec
13904
13905# The coded name of the library, if different from the real name.
13906soname_spec=$lt_soname_spec
13907
13908# Command to use after installation of a shared archive.
13909postinstall_cmds=$lt_postinstall_cmds
13910
13911# Command to use after uninstallation of a shared archive.
13912postuninstall_cmds=$lt_postuninstall_cmds
13913
13914# Commands used to finish a libtool library installation in a directory.
13915finish_cmds=$lt_finish_cmds
13916
13917# As "finish_cmds", except a single script fragment to be evaled but
13918# not shown.
13919finish_eval=$lt_finish_eval
13920
13921# Whether we should hardcode library paths into libraries.
13922hardcode_into_libs=$hardcode_into_libs
13923
13924# Compile-time system search path for libraries.
13925sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13926
13927# Run-time system search path for libraries.
13928sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13929
13930# Whether dlopen is supported.
13931dlopen_support=$enable_dlopen
13932
13933# Whether dlopen of programs is supported.
13934dlopen_self=$enable_dlopen_self
13935
13936# Whether dlopen of statically linked programs is supported.
13937dlopen_self_static=$enable_dlopen_self_static
13938
13939# Commands to strip libraries.
13940old_striplib=$lt_old_striplib
13941striplib=$lt_striplib
13942
13943
13944# The linker used to build libraries.
13945LD=$lt_LD
13946
13947# Commands used to build an old-style archive.
13948old_archive_cmds=$lt_old_archive_cmds
13949
13950# A language specific compiler.
13951CC=$lt_compiler
13952
13953# Is the compiler the GNU compiler?
13954with_gcc=$GCC
13955
13956# Compiler flag to turn off builtin functions.
13957no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13958
13959# How to pass a linker flag through the compiler.
13960wl=$lt_lt_prog_compiler_wl
13961
13962# Additional compiler flags for building library objects.
13963pic_flag=$lt_lt_prog_compiler_pic
13964
13965# Compiler flag to prevent dynamic linking.
13966link_static_flag=$lt_lt_prog_compiler_static
13967
13968# Does compiler simultaneously support -c and -o options?
13969compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13970
13971# Whether or not to add -lc for building shared libraries.
13972build_libtool_need_lc=$archive_cmds_need_lc
13973
13974# Whether or not to disallow shared libs when runtime libs are static.
13975allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13976
13977# Compiler flag to allow reflexive dlopens.
13978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13979
13980# Compiler flag to generate shared objects directly from archives.
13981whole_archive_flag_spec=$lt_whole_archive_flag_spec
13982
13983# Whether the compiler copes with passing no objects directly.
13984compiler_needs_object=$lt_compiler_needs_object
13985
13986# Create an old-style archive from a shared archive.
13987old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13988
13989# Create a temporary old-style archive to link instead of a shared archive.
13990old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13991
13992# Commands used to build a shared archive.
13993archive_cmds=$lt_archive_cmds
13994archive_expsym_cmds=$lt_archive_expsym_cmds
13995
13996# Commands used to build a loadable module if different from building
13997# a shared archive.
13998module_cmds=$lt_module_cmds
13999module_expsym_cmds=$lt_module_expsym_cmds
14000
14001# Whether we are building with GNU ld or not.
14002with_gnu_ld=$lt_with_gnu_ld
14003
14004# Flag that allows shared libraries with undefined symbols to be built.
14005allow_undefined_flag=$lt_allow_undefined_flag
14006
14007# Flag that enforces no undefined symbols.
14008no_undefined_flag=$lt_no_undefined_flag
14009
14010# Flag to hardcode \$libdir into a binary during linking.
14011# This must work even if \$libdir does not exist
14012hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14013
14014# If ld is used when linking, flag to hardcode \$libdir into a binary
14015# during linking.  This must work even if \$libdir does not exist.
14016hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14017
14018# Whether we need a single "-rpath" flag with a separated argument.
14019hardcode_libdir_separator=$lt_hardcode_libdir_separator
14020
14021# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14022# DIR into the resulting binary.
14023hardcode_direct=$hardcode_direct
14024
14025# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14026# DIR into the resulting binary and the resulting library dependency is
14027# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14028# library is relocated.
14029hardcode_direct_absolute=$hardcode_direct_absolute
14030
14031# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14032# into the resulting binary.
14033hardcode_minus_L=$hardcode_minus_L
14034
14035# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14036# into the resulting binary.
14037hardcode_shlibpath_var=$hardcode_shlibpath_var
14038
14039# Set to "yes" if building a shared library automatically hardcodes DIR
14040# into the library and all subsequent libraries and executables linked
14041# against it.
14042hardcode_automatic=$hardcode_automatic
14043
14044# Set to yes if linker adds runtime paths of dependent libraries
14045# to runtime path list.
14046inherit_rpath=$inherit_rpath
14047
14048# Whether libtool must link a program against all its dependency libraries.
14049link_all_deplibs=$link_all_deplibs
14050
14051# Fix the shell variable \$srcfile for the compiler.
14052fix_srcfile_path=$lt_fix_srcfile_path
14053
14054# Set to "yes" if exported symbols are required.
14055always_export_symbols=$always_export_symbols
14056
14057# The commands to list exported symbols.
14058export_symbols_cmds=$lt_export_symbols_cmds
14059
14060# Symbols that should not be listed in the preloaded symbols.
14061exclude_expsyms=$lt_exclude_expsyms
14062
14063# Symbols that must always be exported.
14064include_expsyms=$lt_include_expsyms
14065
14066# Commands necessary for linking programs (against libraries) with templates.
14067prelink_cmds=$lt_prelink_cmds
14068
14069# Specify filename containing input files.
14070file_list_spec=$lt_file_list_spec
14071
14072# How to hardcode a shared library path into an executable.
14073hardcode_action=$hardcode_action
14074
14075# ### END LIBTOOL CONFIG
14076
14077_LT_EOF
14078
14079  case $host_os in
14080  aix3*)
14081    cat <<\_LT_EOF >> "$cfgfile"
14082# AIX sometimes has problems with the GCC collect2 program.  For some
14083# reason, if we set the COLLECT_NAMES environment variable, the problems
14084# vanish in a puff of smoke.
14085if test "X${COLLECT_NAMES+set}" != Xset; then
14086  COLLECT_NAMES=
14087  export COLLECT_NAMES
14088fi
14089_LT_EOF
14090    ;;
14091  esac
14092
14093
14094ltmain="$ac_aux_dir/ltmain.sh"
14095
14096
14097  # We use sed instead of cat because bash on DJGPP gets confused if
14098  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14099  # text mode, it properly converts lines to CR/LF.  This bash problem
14100  # is reportedly fixed, but why not run on old versions too?
14101  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14102    || (rm -f "$cfgfile"; exit 1)
14103
14104  case $xsi_shell in
14105  yes)
14106    cat << \_LT_EOF >> "$cfgfile"
14107
14108# func_dirname file append nondir_replacement
14109# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14110# otherwise set result to NONDIR_REPLACEMENT.
14111func_dirname ()
14112{
14113  case ${1} in
14114    */*) func_dirname_result="${1%/*}${2}" ;;
14115    *  ) func_dirname_result="${3}" ;;
14116  esac
14117}
14118
14119# func_basename file
14120func_basename ()
14121{
14122  func_basename_result="${1##*/}"
14123}
14124
14125# func_dirname_and_basename file append nondir_replacement
14126# perform func_basename and func_dirname in a single function
14127# call:
14128#   dirname:  Compute the dirname of FILE.  If nonempty,
14129#             add APPEND to the result, otherwise set result
14130#             to NONDIR_REPLACEMENT.
14131#             value returned in "$func_dirname_result"
14132#   basename: Compute filename of FILE.
14133#             value retuned in "$func_basename_result"
14134# Implementation must be kept synchronized with func_dirname
14135# and func_basename. For efficiency, we do not delegate to
14136# those functions but instead duplicate the functionality here.
14137func_dirname_and_basename ()
14138{
14139  case ${1} in
14140    */*) func_dirname_result="${1%/*}${2}" ;;
14141    *  ) func_dirname_result="${3}" ;;
14142  esac
14143  func_basename_result="${1##*/}"
14144}
14145
14146# func_stripname prefix suffix name
14147# strip PREFIX and SUFFIX off of NAME.
14148# PREFIX and SUFFIX must not contain globbing or regex special
14149# characters, hashes, percent signs, but SUFFIX may contain a leading
14150# dot (in which case that matches only a dot).
14151func_stripname ()
14152{
14153  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14154  # positional parameters, so assign one to ordinary parameter first.
14155  func_stripname_result=${3}
14156  func_stripname_result=${func_stripname_result#"${1}"}
14157  func_stripname_result=${func_stripname_result%"${2}"}
14158}
14159
14160# func_opt_split
14161func_opt_split ()
14162{
14163  func_opt_split_opt=${1%%=*}
14164  func_opt_split_arg=${1#*=}
14165}
14166
14167# func_lo2o object
14168func_lo2o ()
14169{
14170  case ${1} in
14171    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14172    *)    func_lo2o_result=${1} ;;
14173  esac
14174}
14175
14176# func_xform libobj-or-source
14177func_xform ()
14178{
14179  func_xform_result=${1%.*}.lo
14180}
14181
14182# func_arith arithmetic-term...
14183func_arith ()
14184{
14185  func_arith_result=$(( $* ))
14186}
14187
14188# func_len string
14189# STRING may not start with a hyphen.
14190func_len ()
14191{
14192  func_len_result=${#1}
14193}
14194
14195_LT_EOF
14196    ;;
14197  *) # Bourne compatible functions.
14198    cat << \_LT_EOF >> "$cfgfile"
14199
14200# func_dirname file append nondir_replacement
14201# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14202# otherwise set result to NONDIR_REPLACEMENT.
14203func_dirname ()
14204{
14205  # Extract subdirectory from the argument.
14206  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14207  if test "X$func_dirname_result" = "X${1}"; then
14208    func_dirname_result="${3}"
14209  else
14210    func_dirname_result="$func_dirname_result${2}"
14211  fi
14212}
14213
14214# func_basename file
14215func_basename ()
14216{
14217  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14218}
14219
14220
14221# func_stripname prefix suffix name
14222# strip PREFIX and SUFFIX off of NAME.
14223# PREFIX and SUFFIX must not contain globbing or regex special
14224# characters, hashes, percent signs, but SUFFIX may contain a leading
14225# dot (in which case that matches only a dot).
14226# func_strip_suffix prefix name
14227func_stripname ()
14228{
14229  case ${2} in
14230    .*) func_stripname_result=`$ECHO "X${3}" \
14231           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14232    *)  func_stripname_result=`$ECHO "X${3}" \
14233           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14234  esac
14235}
14236
14237# sed scripts:
14238my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14239my_sed_long_arg='1s/^-[^=]*=//'
14240
14241# func_opt_split
14242func_opt_split ()
14243{
14244  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14245  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14246}
14247
14248# func_lo2o object
14249func_lo2o ()
14250{
14251  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14252}
14253
14254# func_xform libobj-or-source
14255func_xform ()
14256{
14257  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14258}
14259
14260# func_arith arithmetic-term...
14261func_arith ()
14262{
14263  func_arith_result=`expr "$@"`
14264}
14265
14266# func_len string
14267# STRING may not start with a hyphen.
14268func_len ()
14269{
14270  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14271}
14272
14273_LT_EOF
14274esac
14275
14276case $lt_shell_append in
14277  yes)
14278    cat << \_LT_EOF >> "$cfgfile"
14279
14280# func_append var value
14281# Append VALUE to the end of shell variable VAR.
14282func_append ()
14283{
14284  eval "$1+=\$2"
14285}
14286_LT_EOF
14287    ;;
14288  *)
14289    cat << \_LT_EOF >> "$cfgfile"
14290
14291# func_append var value
14292# Append VALUE to the end of shell variable VAR.
14293func_append ()
14294{
14295  eval "$1=\$$1\$2"
14296}
14297
14298_LT_EOF
14299    ;;
14300  esac
14301
14302
14303  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14304    || (rm -f "$cfgfile"; exit 1)
14305
14306  mv -f "$cfgfile" "$ofile" ||
14307    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14308  chmod +x "$ofile"
14309
14310 ;;
14311
14312  esac
14313done # for ac_tag
14314
14315
14316as_fn_exit 0
14317_ACEOF
14318ac_clean_files=$ac_clean_files_save
14319
14320test $ac_write_fail = 0 ||
14321  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14322
14323
14324# configure is writing to config.log, and then calls config.status.
14325# config.status does its own redirection, appending to config.log.
14326# Unfortunately, on DOS this fails, as config.log is still kept open
14327# by configure, so config.status won't be able to write to it; its
14328# output is simply discarded.  So we exec the FD to /dev/null,
14329# effectively closing config.log, so it can be properly (re)opened and
14330# appended to by config.status.  When coming back to configure, we
14331# need to make the FD available again.
14332if test "$no_create" != yes; then
14333  ac_cs_success=:
14334  ac_config_status_args=
14335  test "$silent" = yes &&
14336    ac_config_status_args="$ac_config_status_args --quiet"
14337  exec 5>/dev/null
14338  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14339  exec 5>>config.log
14340  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14341  # would make configure fail if this is the last instruction.
14342  $ac_cs_success || as_fn_exit $?
14343fi
14344if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14345  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14346$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14347fi
14348
14349
14350