configure revision 2e9c7c8c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libX11 1.2.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='libX11'
747PACKAGE_TARNAME='libX11'
748PACKAGE_VERSION='1.2.2'
749PACKAGE_STRING='libX11 1.2.2'
750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752ac_unique_file="Makefile.am"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
793distcleancheck_listfiles
794CHANGELOG_CMD
795XTMALLOC_ZERO_CFLAGS
796XMALLOC_ZERO_CFLAGS
797MALLOC_ZERO_CFLAGS
798XERRORDB
799XKEYSYMDB
800X11_LOCALEDIR
801XLOCALEDIR
802X11_LOCALELIBDIR
803XLOCALELIBDIR
804X11_LOCALEDATADIR
805XLOCALEDATADIR
806X11_LIBDIR
807X11_DATADIR
808MAKE_LINT_LIB_FALSE
809MAKE_LINT_LIB_TRUE
810LINTLIB
811LINT_FALSE
812LINT_TRUE
813LINT_FLAGS
814LINT
815XKBPROTO_REQUIRES
816XKBPROTO_LIBS
817XKBPROTO_CFLAGS
818XKB_FALSE
819XKB_TRUE
820MANPAGES_FALSE
821MANPAGES_TRUE
822ADMIN_MAN_DIR
823DRIVER_MAN_DIR
824MISC_MAN_DIR
825FILE_MAN_DIR
826LIB_MAN_DIR
827APP_MAN_DIR
828ADMIN_MAN_SUFFIX
829DRIVER_MAN_SUFFIX
830MISC_MAN_SUFFIX
831FILE_MAN_SUFFIX
832LIB_MAN_SUFFIX
833APP_MAN_SUFFIX
834BIGFONT_LIBS
835BIGFONT_CFLAGS
836XLOCALE_FALSE
837XLOCALE_TRUE
838XCMS_FALSE
839XCMS_TRUE
840UDC_FALSE
841UDC_TRUE
842KEYSYMDEF
843XTHREAD_CFLAGS
844XTHREADLIB
845THRSTUBS_FALSE
846THRSTUBS_TRUE
847LAUNCHD
848OS2_FALSE
849OS2_TRUE
850WCHAR32
851XLIB_LOADABLE_I18N_FALSE
852XLIB_LOADABLE_I18N_TRUE
853I18N_MODULE_LIBS
854X11_LIBS
855X11_CFLAGS
856X11_EXTRA_DEPS
857XDMCP_LIBS
858XDMCP_CFLAGS
859XPROTO_LIBS
860XPROTO_CFLAGS
861PKG_CONFIG
862XCB_FALSE
863XCB_TRUE
864RAWCPPFLAGS
865RAWCPP
866CC_FOR_BUILD
867CWARNFLAGS
868LTCXXCOMPILE
869LTCOMPILE
870DOLT_BASH
871OTOOL64
872OTOOL
873LIPO
874NMEDIT
875DSYMUTIL
876lt_ECHO
877RANLIB
878AR
879OBJDUMP
880LN_S
881NM
882ac_ct_DUMPBIN
883DUMPBIN
884LD
885FGREP
886SED
887host_os
888host_vendor
889host_cpu
890host
891build_os
892build_vendor
893build_cpu
894build
895LIBTOOL
896EGREP
897GREP
898CPP
899am__fastdepCC_FALSE
900am__fastdepCC_TRUE
901CCDEPMODE
902AMDEPBACKSLASH
903AMDEP_FALSE
904AMDEP_TRUE
905am__quote
906am__include
907DEPDIR
908OBJEXT
909EXEEXT
910ac_ct_CC
911CPPFLAGS
912LDFLAGS
913CFLAGS
914CC
915MAINT
916MAINTAINER_MODE_FALSE
917MAINTAINER_MODE_TRUE
918am__untar
919am__tar
920AMTAR
921am__leading_dot
922SET_MAKE
923AWK
924mkdir_p
925MKDIR_P
926INSTALL_STRIP_PROGRAM
927STRIP
928install_sh
929MAKEINFO
930AUTOHEADER
931AUTOMAKE
932AUTOCONF
933ACLOCAL
934VERSION
935PACKAGE
936CYGPATH_W
937am__isrc
938INSTALL_DATA
939INSTALL_SCRIPT
940INSTALL_PROGRAM
941target_alias
942host_alias
943build_alias
944LIBS
945ECHO_T
946ECHO_N
947ECHO_C
948DEFS
949mandir
950localedir
951libdir
952psdir
953pdfdir
954dvidir
955htmldir
956infodir
957docdir
958oldincludedir
959includedir
960localstatedir
961sharedstatedir
962sysconfdir
963datadir
964datarootdir
965libexecdir
966sbindir
967bindir
968program_transform_name
969prefix
970exec_prefix
971PACKAGE_BUGREPORT
972PACKAGE_STRING
973PACKAGE_VERSION
974PACKAGE_TARNAME
975PACKAGE_NAME
976PATH_SEPARATOR
977SHELL'
978ac_subst_files=''
979ac_user_opts='
980enable_option_checking
981enable_maintainer_mode
982enable_dependency_tracking
983enable_shared
984enable_static
985with_pic
986enable_fast_install
987with_gnu_ld
988enable_libtool_lock
989with_xcb
990enable_unix_transport
991enable_tcp_transport
992enable_ipv6
993enable_local_transport
994enable_secure_rpc
995with_local_transport_order
996enable_loadable_i18n
997enable_loadable_xcursor
998with_launchd
999enable_xthreads
1000enable_xcms
1001enable_xlocale
1002enable_xlocaledir
1003enable_xf86bigfont
1004enable_xkb
1005enable_man_pages
1006enable_composecache
1007with_lint
1008enable_lint_library
1009with_locale_lib_dir
1010enable_malloc0returnsnull
1011with_release_version
1012'
1013      ac_precious_vars='build_alias
1014host_alias
1015target_alias
1016CC
1017CFLAGS
1018LDFLAGS
1019LIBS
1020CPPFLAGS
1021CPP
1022PKG_CONFIG
1023XPROTO_CFLAGS
1024XPROTO_LIBS
1025XDMCP_CFLAGS
1026XDMCP_LIBS
1027X11_CFLAGS
1028X11_LIBS
1029BIGFONT_CFLAGS
1030BIGFONT_LIBS
1031XKBPROTO_CFLAGS
1032XKBPROTO_LIBS'
1033
1034
1035# Initialize some variables set by options.
1036ac_init_help=
1037ac_init_version=false
1038ac_unrecognized_opts=
1039ac_unrecognized_sep=
1040# The variables have the same names as the options, with
1041# dashes changed to underlines.
1042cache_file=/dev/null
1043exec_prefix=NONE
1044no_create=
1045no_recursion=
1046prefix=NONE
1047program_prefix=NONE
1048program_suffix=NONE
1049program_transform_name=s,x,x,
1050silent=
1051site=
1052srcdir=
1053verbose=
1054x_includes=NONE
1055x_libraries=NONE
1056
1057# Installation directory options.
1058# These are left unexpanded so users can "make install exec_prefix=/foo"
1059# and all the variables that are supposed to be based on exec_prefix
1060# by default will actually change.
1061# Use braces instead of parens because sh, perl, etc. also accept them.
1062# (The list follows the same order as the GNU Coding Standards.)
1063bindir='${exec_prefix}/bin'
1064sbindir='${exec_prefix}/sbin'
1065libexecdir='${exec_prefix}/libexec'
1066datarootdir='${prefix}/share'
1067datadir='${datarootdir}'
1068sysconfdir='${prefix}/etc'
1069sharedstatedir='${prefix}/com'
1070localstatedir='${prefix}/var'
1071includedir='${prefix}/include'
1072oldincludedir='/usr/include'
1073docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1074infodir='${datarootdir}/info'
1075htmldir='${docdir}'
1076dvidir='${docdir}'
1077pdfdir='${docdir}'
1078psdir='${docdir}'
1079libdir='${exec_prefix}/lib'
1080localedir='${datarootdir}/locale'
1081mandir='${datarootdir}/man'
1082
1083ac_prev=
1084ac_dashdash=
1085for ac_option
1086do
1087  # If the previous option needs an argument, assign it.
1088  if test -n "$ac_prev"; then
1089    eval $ac_prev=\$ac_option
1090    ac_prev=
1091    continue
1092  fi
1093
1094  case $ac_option in
1095  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1096  *)	ac_optarg=yes ;;
1097  esac
1098
1099  # Accept the important Cygnus configure options, so we can diagnose typos.
1100
1101  case $ac_dashdash$ac_option in
1102  --)
1103    ac_dashdash=yes ;;
1104
1105  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1106    ac_prev=bindir ;;
1107  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1108    bindir=$ac_optarg ;;
1109
1110  -build | --build | --buil | --bui | --bu)
1111    ac_prev=build_alias ;;
1112  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1113    build_alias=$ac_optarg ;;
1114
1115  -cache-file | --cache-file | --cache-fil | --cache-fi \
1116  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1117    ac_prev=cache_file ;;
1118  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1119  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1120    cache_file=$ac_optarg ;;
1121
1122  --config-cache | -C)
1123    cache_file=config.cache ;;
1124
1125  -datadir | --datadir | --datadi | --datad)
1126    ac_prev=datadir ;;
1127  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1128    datadir=$ac_optarg ;;
1129
1130  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1131  | --dataroo | --dataro | --datar)
1132    ac_prev=datarootdir ;;
1133  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1134  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1135    datarootdir=$ac_optarg ;;
1136
1137  -disable-* | --disable-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1142   { (exit 1); exit 1; }; }
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"enable_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval enable_$ac_useropt=no ;;
1153
1154  -docdir | --docdir | --docdi | --doc | --do)
1155    ac_prev=docdir ;;
1156  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1157    docdir=$ac_optarg ;;
1158
1159  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1160    ac_prev=dvidir ;;
1161  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1162    dvidir=$ac_optarg ;;
1163
1164  -enable-* | --enable-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1169   { (exit 1); exit 1; }; }
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"enable_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval enable_$ac_useropt=\$ac_optarg ;;
1180
1181  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1182  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1183  | --exec | --exe | --ex)
1184    ac_prev=exec_prefix ;;
1185  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1186  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1187  | --exec=* | --exe=* | --ex=*)
1188    exec_prefix=$ac_optarg ;;
1189
1190  -gas | --gas | --ga | --g)
1191    # Obsolete; use --with-gas.
1192    with_gas=yes ;;
1193
1194  -help | --help | --hel | --he | -h)
1195    ac_init_help=long ;;
1196  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1197    ac_init_help=recursive ;;
1198  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1199    ac_init_help=short ;;
1200
1201  -host | --host | --hos | --ho)
1202    ac_prev=host_alias ;;
1203  -host=* | --host=* | --hos=* | --ho=*)
1204    host_alias=$ac_optarg ;;
1205
1206  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1207    ac_prev=htmldir ;;
1208  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1209  | --ht=*)
1210    htmldir=$ac_optarg ;;
1211
1212  -includedir | --includedir | --includedi | --included | --include \
1213  | --includ | --inclu | --incl | --inc)
1214    ac_prev=includedir ;;
1215  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1216  | --includ=* | --inclu=* | --incl=* | --inc=*)
1217    includedir=$ac_optarg ;;
1218
1219  -infodir | --infodir | --infodi | --infod | --info | --inf)
1220    ac_prev=infodir ;;
1221  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1222    infodir=$ac_optarg ;;
1223
1224  -libdir | --libdir | --libdi | --libd)
1225    ac_prev=libdir ;;
1226  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1227    libdir=$ac_optarg ;;
1228
1229  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1230  | --libexe | --libex | --libe)
1231    ac_prev=libexecdir ;;
1232  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1233  | --libexe=* | --libex=* | --libe=*)
1234    libexecdir=$ac_optarg ;;
1235
1236  -localedir | --localedir | --localedi | --localed | --locale)
1237    ac_prev=localedir ;;
1238  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1239    localedir=$ac_optarg ;;
1240
1241  -localstatedir | --localstatedir | --localstatedi | --localstated \
1242  | --localstate | --localstat | --localsta | --localst | --locals)
1243    ac_prev=localstatedir ;;
1244  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1245  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246    localstatedir=$ac_optarg ;;
1247
1248  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1249    ac_prev=mandir ;;
1250  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1251    mandir=$ac_optarg ;;
1252
1253  -nfp | --nfp | --nf)
1254    # Obsolete; use --without-fp.
1255    with_fp=no ;;
1256
1257  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1258  | --no-cr | --no-c | -n)
1259    no_create=yes ;;
1260
1261  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1262  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1263    no_recursion=yes ;;
1264
1265  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1266  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1267  | --oldin | --oldi | --old | --ol | --o)
1268    ac_prev=oldincludedir ;;
1269  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1270  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1271  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1272    oldincludedir=$ac_optarg ;;
1273
1274  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1275    ac_prev=prefix ;;
1276  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1277    prefix=$ac_optarg ;;
1278
1279  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1280  | --program-pre | --program-pr | --program-p)
1281    ac_prev=program_prefix ;;
1282  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1283  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1284    program_prefix=$ac_optarg ;;
1285
1286  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1287  | --program-suf | --program-su | --program-s)
1288    ac_prev=program_suffix ;;
1289  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1290  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1291    program_suffix=$ac_optarg ;;
1292
1293  -program-transform-name | --program-transform-name \
1294  | --program-transform-nam | --program-transform-na \
1295  | --program-transform-n | --program-transform- \
1296  | --program-transform | --program-transfor \
1297  | --program-transfo | --program-transf \
1298  | --program-trans | --program-tran \
1299  | --progr-tra | --program-tr | --program-t)
1300    ac_prev=program_transform_name ;;
1301  -program-transform-name=* | --program-transform-name=* \
1302  | --program-transform-nam=* | --program-transform-na=* \
1303  | --program-transform-n=* | --program-transform-=* \
1304  | --program-transform=* | --program-transfor=* \
1305  | --program-transfo=* | --program-transf=* \
1306  | --program-trans=* | --program-tran=* \
1307  | --progr-tra=* | --program-tr=* | --program-t=*)
1308    program_transform_name=$ac_optarg ;;
1309
1310  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1311    ac_prev=pdfdir ;;
1312  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1313    pdfdir=$ac_optarg ;;
1314
1315  -psdir | --psdir | --psdi | --psd | --ps)
1316    ac_prev=psdir ;;
1317  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1318    psdir=$ac_optarg ;;
1319
1320  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321  | -silent | --silent | --silen | --sile | --sil)
1322    silent=yes ;;
1323
1324  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1325    ac_prev=sbindir ;;
1326  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1327  | --sbi=* | --sb=*)
1328    sbindir=$ac_optarg ;;
1329
1330  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1331  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1332  | --sharedst | --shareds | --shared | --share | --shar \
1333  | --sha | --sh)
1334    ac_prev=sharedstatedir ;;
1335  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1336  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1337  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1338  | --sha=* | --sh=*)
1339    sharedstatedir=$ac_optarg ;;
1340
1341  -site | --site | --sit)
1342    ac_prev=site ;;
1343  -site=* | --site=* | --sit=*)
1344    site=$ac_optarg ;;
1345
1346  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1347    ac_prev=srcdir ;;
1348  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1349    srcdir=$ac_optarg ;;
1350
1351  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1352  | --syscon | --sysco | --sysc | --sys | --sy)
1353    ac_prev=sysconfdir ;;
1354  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1355  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1356    sysconfdir=$ac_optarg ;;
1357
1358  -target | --target | --targe | --targ | --tar | --ta | --t)
1359    ac_prev=target_alias ;;
1360  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1361    target_alias=$ac_optarg ;;
1362
1363  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1364    verbose=yes ;;
1365
1366  -version | --version | --versio | --versi | --vers | -V)
1367    ac_init_version=: ;;
1368
1369  -with-* | --with-*)
1370    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1371    # Reject names that are not valid shell variable names.
1372    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1373      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1374   { (exit 1); exit 1; }; }
1375    ac_useropt_orig=$ac_useropt
1376    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377    case $ac_user_opts in
1378      *"
1379"with_$ac_useropt"
1380"*) ;;
1381      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1382	 ac_unrecognized_sep=', ';;
1383    esac
1384    eval with_$ac_useropt=\$ac_optarg ;;
1385
1386  -without-* | --without-*)
1387    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1388    # Reject names that are not valid shell variable names.
1389    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1390      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1391   { (exit 1); exit 1; }; }
1392    ac_useropt_orig=$ac_useropt
1393    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394    case $ac_user_opts in
1395      *"
1396"with_$ac_useropt"
1397"*) ;;
1398      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1399	 ac_unrecognized_sep=', ';;
1400    esac
1401    eval with_$ac_useropt=no ;;
1402
1403  --x)
1404    # Obsolete; use --with-x.
1405    with_x=yes ;;
1406
1407  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1408  | --x-incl | --x-inc | --x-in | --x-i)
1409    ac_prev=x_includes ;;
1410  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1411  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1412    x_includes=$ac_optarg ;;
1413
1414  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1415  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1416    ac_prev=x_libraries ;;
1417  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1418  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1419    x_libraries=$ac_optarg ;;
1420
1421  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1422Try \`$0 --help' for more information." >&2
1423   { (exit 1); exit 1; }; }
1424    ;;
1425
1426  *=*)
1427    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1428    # Reject names that are not valid shell variable names.
1429    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1430      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1431   { (exit 1); exit 1; }; }
1432    eval $ac_envvar=\$ac_optarg
1433    export $ac_envvar ;;
1434
1435  *)
1436    # FIXME: should be removed in autoconf 3.0.
1437    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1438    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1439      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1440    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1441    ;;
1442
1443  esac
1444done
1445
1446if test -n "$ac_prev"; then
1447  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1448  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1449   { (exit 1); exit 1; }; }
1450fi
1451
1452if test -n "$ac_unrecognized_opts"; then
1453  case $enable_option_checking in
1454    no) ;;
1455    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1456   { (exit 1); exit 1; }; } ;;
1457    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458  esac
1459fi
1460
1461# Check all directory arguments for consistency.
1462for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463		datadir sysconfdir sharedstatedir localstatedir includedir \
1464		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465		libdir localedir mandir
1466do
1467  eval ac_val=\$$ac_var
1468  # Remove trailing slashes.
1469  case $ac_val in
1470    */ )
1471      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472      eval $ac_var=\$ac_val;;
1473  esac
1474  # Be sure to have absolute directory names.
1475  case $ac_val in
1476    [\\/$]* | ?:[\\/]* )  continue;;
1477    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478  esac
1479  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1480   { (exit 1); exit 1; }; }
1481done
1482
1483# There might be people who depend on the old broken behavior: `$host'
1484# used to hold the argument of --host etc.
1485# FIXME: To remove some day.
1486build=$build_alias
1487host=$host_alias
1488target=$target_alias
1489
1490# FIXME: To remove some day.
1491if test "x$host_alias" != x; then
1492  if test "x$build_alias" = x; then
1493    cross_compiling=maybe
1494    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1495    If a cross compiler is detected then cross compile mode will be used." >&2
1496  elif test "x$build_alias" != "x$host_alias"; then
1497    cross_compiling=yes
1498  fi
1499fi
1500
1501ac_tool_prefix=
1502test -n "$host_alias" && ac_tool_prefix=$host_alias-
1503
1504test "$silent" = yes && exec 6>/dev/null
1505
1506
1507ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508ac_ls_di=`ls -di .` &&
1509ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1511   { (exit 1); exit 1; }; }
1512test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1514   { (exit 1); exit 1; }; }
1515
1516
1517# Find the source files, if location was not specified.
1518if test -z "$srcdir"; then
1519  ac_srcdir_defaulted=yes
1520  # Try the directory containing this script, then the parent directory.
1521  ac_confdir=`$as_dirname -- "$as_myself" ||
1522$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523	 X"$as_myself" : 'X\(//\)[^/]' \| \
1524	 X"$as_myself" : 'X\(//\)$' \| \
1525	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526$as_echo X"$as_myself" |
1527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528	    s//\1/
1529	    q
1530	  }
1531	  /^X\(\/\/\)[^/].*/{
1532	    s//\1/
1533	    q
1534	  }
1535	  /^X\(\/\/\)$/{
1536	    s//\1/
1537	    q
1538	  }
1539	  /^X\(\/\).*/{
1540	    s//\1/
1541	    q
1542	  }
1543	  s/.*/./; q'`
1544  srcdir=$ac_confdir
1545  if test ! -r "$srcdir/$ac_unique_file"; then
1546    srcdir=..
1547  fi
1548else
1549  ac_srcdir_defaulted=no
1550fi
1551if test ! -r "$srcdir/$ac_unique_file"; then
1552  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1554   { (exit 1); exit 1; }; }
1555fi
1556ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1557ac_abs_confdir=`(
1558	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1559   { (exit 1); exit 1; }; }
1560	pwd)`
1561# When building in place, set srcdir=.
1562if test "$ac_abs_confdir" = "$ac_pwd"; then
1563  srcdir=.
1564fi
1565# Remove unnecessary trailing slashes from srcdir.
1566# Double slashes in file names in object file debugging info
1567# mess up M-x gdb in Emacs.
1568case $srcdir in
1569*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1570esac
1571for ac_var in $ac_precious_vars; do
1572  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1573  eval ac_env_${ac_var}_value=\$${ac_var}
1574  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1575  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1576done
1577
1578#
1579# Report the --help message.
1580#
1581if test "$ac_init_help" = "long"; then
1582  # Omit some internal or obsolete options to make the list less imposing.
1583  # This message is too long to be a string in the A/UX 3.1 sh.
1584  cat <<_ACEOF
1585\`configure' configures libX11 1.2.2 to adapt to many kinds of systems.
1586
1587Usage: $0 [OPTION]... [VAR=VALUE]...
1588
1589To assign environment variables (e.g., CC, CFLAGS...), specify them as
1590VAR=VALUE.  See below for descriptions of some of the useful variables.
1591
1592Defaults for the options are specified in brackets.
1593
1594Configuration:
1595  -h, --help              display this help and exit
1596      --help=short        display options specific to this package
1597      --help=recursive    display the short help of all the included packages
1598  -V, --version           display version information and exit
1599  -q, --quiet, --silent   do not print \`checking...' messages
1600      --cache-file=FILE   cache test results in FILE [disabled]
1601  -C, --config-cache      alias for \`--cache-file=config.cache'
1602  -n, --no-create         do not create output files
1603      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1604
1605Installation directories:
1606  --prefix=PREFIX         install architecture-independent files in PREFIX
1607                          [$ac_default_prefix]
1608  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1609                          [PREFIX]
1610
1611By default, \`make install' will install all the files in
1612\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1613an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1614for instance \`--prefix=\$HOME'.
1615
1616For better control, use the options below.
1617
1618Fine tuning of the installation directories:
1619  --bindir=DIR            user executables [EPREFIX/bin]
1620  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1621  --libexecdir=DIR        program executables [EPREFIX/libexec]
1622  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1623  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1624  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1625  --libdir=DIR            object code libraries [EPREFIX/lib]
1626  --includedir=DIR        C header files [PREFIX/include]
1627  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1628  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1629  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1630  --infodir=DIR           info documentation [DATAROOTDIR/info]
1631  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1632  --mandir=DIR            man documentation [DATAROOTDIR/man]
1633  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1634  --htmldir=DIR           html documentation [DOCDIR]
1635  --dvidir=DIR            dvi documentation [DOCDIR]
1636  --pdfdir=DIR            pdf documentation [DOCDIR]
1637  --psdir=DIR             ps documentation [DOCDIR]
1638_ACEOF
1639
1640  cat <<\_ACEOF
1641
1642Program names:
1643  --program-prefix=PREFIX            prepend PREFIX to installed program names
1644  --program-suffix=SUFFIX            append SUFFIX to installed program names
1645  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1646
1647System types:
1648  --build=BUILD     configure for building on BUILD [guessed]
1649  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1650_ACEOF
1651fi
1652
1653if test -n "$ac_init_help"; then
1654  case $ac_init_help in
1655     short | recursive ) echo "Configuration of libX11 1.2.2:";;
1656   esac
1657  cat <<\_ACEOF
1658
1659Optional Features:
1660  --disable-option-checking  ignore unrecognized --enable/--with options
1661  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1662  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1663  --enable-maintainer-mode  enable make rules and dependencies not useful
1664			  (and sometimes confusing) to the casual installer
1665  --disable-dependency-tracking  speeds up one-time build
1666  --enable-dependency-tracking   do not reject slow dependency extractors
1667  --enable-shared[=PKGS]  build shared libraries [default=yes]
1668  --enable-static[=PKGS]  build static libraries [default=yes]
1669  --enable-fast-install[=PKGS]
1670                          optimize for fast installation [default=yes]
1671  --disable-libtool-lock  avoid locking (might break parallel builds)
1672  --enable-secure-rpc     Enable Secure RPC
1673  --enable-loadable-i18n  Controls loadable i18n module support
1674  --disable-loadable-xcursor
1675                          Controls loadable xcursor library support
1676  --disable-xthreads      Disable Xlib support for Multithreading
1677  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1678  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1679  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1680  --disable-xf86bigfont   Disable XF86BigFont extension support
1681  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1682  --enable-man-pages=section
1683                          Choose manual section for installing man pages
1684  --disable-composecache  Disable compose table cache support
1685  --enable-lint-library   Create lint library (default: disabled)
1686  --enable-malloc0returnsnull
1687                          malloc(0) returns NULL (default: auto)
1688
1689Optional Packages:
1690  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1691  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1692  --with-pic              try to use only PIC/non-PIC objects [default=use
1693                          both]
1694  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1695  --with-xcb              use XCB for low-level protocol implementation
1696  --with-local-transport-order=LIST
1697                          preference sorted list of transport types to try for
1698                          local connections
1699  --with-launchd          Build with support for Apple's launchd (default:
1700                          auto)
1701  --with-lint             Use a lint-style source code checker (default:
1702                          disabled)
1703  --with-locale-lib-dir=DIR
1704                          Directory where locale libraries files are installed
1705                          (default: $libdir/X11/locale)
1706  --with-release-version=STRING
1707                          Use release version string in package name
1708
1709Some influential environment variables:
1710  CC          C compiler command
1711  CFLAGS      C compiler flags
1712  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1713              nonstandard directory <lib dir>
1714  LIBS        libraries to pass to the linker, e.g. -l<library>
1715  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1716              you have headers in a nonstandard directory <include dir>
1717  CPP         C preprocessor
1718  PKG_CONFIG  path to pkg-config utility
1719  XPROTO_CFLAGS
1720              C compiler flags for XPROTO, overriding pkg-config
1721  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1722  XDMCP_CFLAGS
1723              C compiler flags for XDMCP, overriding pkg-config
1724  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1725  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1726  X11_LIBS    linker flags for X11, overriding pkg-config
1727  BIGFONT_CFLAGS
1728              C compiler flags for BIGFONT, overriding pkg-config
1729  BIGFONT_LIBS
1730              linker flags for BIGFONT, overriding pkg-config
1731  XKBPROTO_CFLAGS
1732              C compiler flags for XKBPROTO, overriding pkg-config
1733  XKBPROTO_LIBS
1734              linker flags for XKBPROTO, overriding pkg-config
1735
1736Use these variables to override the choices made by `configure' or to help
1737it to find libraries and programs with nonstandard names/locations.
1738
1739Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1740_ACEOF
1741ac_status=$?
1742fi
1743
1744if test "$ac_init_help" = "recursive"; then
1745  # If there are subdirs, report their specific --help.
1746  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1747    test -d "$ac_dir" ||
1748      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1749      continue
1750    ac_builddir=.
1751
1752case "$ac_dir" in
1753.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754*)
1755  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1756  # A ".." for each directory in $ac_dir_suffix.
1757  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1758  case $ac_top_builddir_sub in
1759  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1761  esac ;;
1762esac
1763ac_abs_top_builddir=$ac_pwd
1764ac_abs_builddir=$ac_pwd$ac_dir_suffix
1765# for backward compatibility:
1766ac_top_builddir=$ac_top_build_prefix
1767
1768case $srcdir in
1769  .)  # We are building in place.
1770    ac_srcdir=.
1771    ac_top_srcdir=$ac_top_builddir_sub
1772    ac_abs_top_srcdir=$ac_pwd ;;
1773  [\\/]* | ?:[\\/]* )  # Absolute name.
1774    ac_srcdir=$srcdir$ac_dir_suffix;
1775    ac_top_srcdir=$srcdir
1776    ac_abs_top_srcdir=$srcdir ;;
1777  *) # Relative name.
1778    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1779    ac_top_srcdir=$ac_top_build_prefix$srcdir
1780    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781esac
1782ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783
1784    cd "$ac_dir" || { ac_status=$?; continue; }
1785    # Check for guested configure.
1786    if test -f "$ac_srcdir/configure.gnu"; then
1787      echo &&
1788      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1789    elif test -f "$ac_srcdir/configure"; then
1790      echo &&
1791      $SHELL "$ac_srcdir/configure" --help=recursive
1792    else
1793      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794    fi || ac_status=$?
1795    cd "$ac_pwd" || { ac_status=$?; break; }
1796  done
1797fi
1798
1799test -n "$ac_init_help" && exit $ac_status
1800if $ac_init_version; then
1801  cat <<\_ACEOF
1802libX11 configure 1.2.2
1803generated by GNU Autoconf 2.63
1804
1805Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18062002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1807This configure script is free software; the Free Software Foundation
1808gives unlimited permission to copy, distribute and modify it.
1809_ACEOF
1810  exit
1811fi
1812cat >config.log <<_ACEOF
1813This file contains any messages produced by compilers while
1814running configure, to aid debugging if configure makes a mistake.
1815
1816It was created by libX11 $as_me 1.2.2, which was
1817generated by GNU Autoconf 2.63.  Invocation command line was
1818
1819  $ $0 $@
1820
1821_ACEOF
1822exec 5>>config.log
1823{
1824cat <<_ASUNAME
1825## --------- ##
1826## Platform. ##
1827## --------- ##
1828
1829hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1830uname -m = `(uname -m) 2>/dev/null || echo unknown`
1831uname -r = `(uname -r) 2>/dev/null || echo unknown`
1832uname -s = `(uname -s) 2>/dev/null || echo unknown`
1833uname -v = `(uname -v) 2>/dev/null || echo unknown`
1834
1835/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1836/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1837
1838/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1839/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1840/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1841/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1842/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1843/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1844/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1845
1846_ASUNAME
1847
1848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849for as_dir in $PATH
1850do
1851  IFS=$as_save_IFS
1852  test -z "$as_dir" && as_dir=.
1853  $as_echo "PATH: $as_dir"
1854done
1855IFS=$as_save_IFS
1856
1857} >&5
1858
1859cat >&5 <<_ACEOF
1860
1861
1862## ----------- ##
1863## Core tests. ##
1864## ----------- ##
1865
1866_ACEOF
1867
1868
1869# Keep a trace of the command line.
1870# Strip out --no-create and --no-recursion so they do not pile up.
1871# Strip out --silent because we don't want to record it for future runs.
1872# Also quote any args containing shell meta-characters.
1873# Make two passes to allow for proper duplicate-argument suppression.
1874ac_configure_args=
1875ac_configure_args0=
1876ac_configure_args1=
1877ac_must_keep_next=false
1878for ac_pass in 1 2
1879do
1880  for ac_arg
1881  do
1882    case $ac_arg in
1883    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1884    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1885    | -silent | --silent | --silen | --sile | --sil)
1886      continue ;;
1887    *\'*)
1888      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1889    esac
1890    case $ac_pass in
1891    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1892    2)
1893      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1894      if test $ac_must_keep_next = true; then
1895	ac_must_keep_next=false # Got value, back to normal.
1896      else
1897	case $ac_arg in
1898	  *=* | --config-cache | -C | -disable-* | --disable-* \
1899	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1900	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1901	  | -with-* | --with-* | -without-* | --without-* | --x)
1902	    case "$ac_configure_args0 " in
1903	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1904	    esac
1905	    ;;
1906	  -* ) ac_must_keep_next=true ;;
1907	esac
1908      fi
1909      ac_configure_args="$ac_configure_args '$ac_arg'"
1910      ;;
1911    esac
1912  done
1913done
1914$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1915$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1916
1917# When interrupted or exit'd, cleanup temporary files, and complete
1918# config.log.  We remove comments because anyway the quotes in there
1919# would cause problems or look ugly.
1920# WARNING: Use '\'' to represent an apostrophe within the trap.
1921# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1922trap 'exit_status=$?
1923  # Save into config.log some information that might help in debugging.
1924  {
1925    echo
1926
1927    cat <<\_ASBOX
1928## ---------------- ##
1929## Cache variables. ##
1930## ---------------- ##
1931_ASBOX
1932    echo
1933    # The following way of writing the cache mishandles newlines in values,
1934(
1935  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1936    eval ac_val=\$$ac_var
1937    case $ac_val in #(
1938    *${as_nl}*)
1939      case $ac_var in #(
1940      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1941$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1942      esac
1943      case $ac_var in #(
1944      _ | IFS | as_nl) ;; #(
1945      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1946      *) $as_unset $ac_var ;;
1947      esac ;;
1948    esac
1949  done
1950  (set) 2>&1 |
1951    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1952    *${as_nl}ac_space=\ *)
1953      sed -n \
1954	"s/'\''/'\''\\\\'\'''\''/g;
1955	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1956      ;; #(
1957    *)
1958      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1959      ;;
1960    esac |
1961    sort
1962)
1963    echo
1964
1965    cat <<\_ASBOX
1966## ----------------- ##
1967## Output variables. ##
1968## ----------------- ##
1969_ASBOX
1970    echo
1971    for ac_var in $ac_subst_vars
1972    do
1973      eval ac_val=\$$ac_var
1974      case $ac_val in
1975      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976      esac
1977      $as_echo "$ac_var='\''$ac_val'\''"
1978    done | sort
1979    echo
1980
1981    if test -n "$ac_subst_files"; then
1982      cat <<\_ASBOX
1983## ------------------- ##
1984## File substitutions. ##
1985## ------------------- ##
1986_ASBOX
1987      echo
1988      for ac_var in $ac_subst_files
1989      do
1990	eval ac_val=\$$ac_var
1991	case $ac_val in
1992	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993	esac
1994	$as_echo "$ac_var='\''$ac_val'\''"
1995      done | sort
1996      echo
1997    fi
1998
1999    if test -s confdefs.h; then
2000      cat <<\_ASBOX
2001## ----------- ##
2002## confdefs.h. ##
2003## ----------- ##
2004_ASBOX
2005      echo
2006      cat confdefs.h
2007      echo
2008    fi
2009    test "$ac_signal" != 0 &&
2010      $as_echo "$as_me: caught signal $ac_signal"
2011    $as_echo "$as_me: exit $exit_status"
2012  } >&5
2013  rm -f core *.core core.conftest.* &&
2014    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2015    exit $exit_status
2016' 0
2017for ac_signal in 1 2 13 15; do
2018  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2019done
2020ac_signal=0
2021
2022# confdefs.h avoids OS command line length limits that DEFS can exceed.
2023rm -f -r conftest* confdefs.h
2024
2025# Predefined preprocessor variables.
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_NAME "$PACKAGE_NAME"
2029_ACEOF
2030
2031
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2034_ACEOF
2035
2036
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_VERSION "$PACKAGE_VERSION"
2039_ACEOF
2040
2041
2042cat >>confdefs.h <<_ACEOF
2043#define PACKAGE_STRING "$PACKAGE_STRING"
2044_ACEOF
2045
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2049_ACEOF
2050
2051
2052# Let the site file select an alternate cache file if it wants to.
2053# Prefer an explicitly selected file to automatically selected ones.
2054ac_site_file1=NONE
2055ac_site_file2=NONE
2056if test -n "$CONFIG_SITE"; then
2057  ac_site_file1=$CONFIG_SITE
2058elif test "x$prefix" != xNONE; then
2059  ac_site_file1=$prefix/share/config.site
2060  ac_site_file2=$prefix/etc/config.site
2061else
2062  ac_site_file1=$ac_default_prefix/share/config.site
2063  ac_site_file2=$ac_default_prefix/etc/config.site
2064fi
2065for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2066do
2067  test "x$ac_site_file" = xNONE && continue
2068  if test -r "$ac_site_file"; then
2069    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2070$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2071    sed 's/^/| /' "$ac_site_file" >&5
2072    . "$ac_site_file"
2073  fi
2074done
2075
2076if test -r "$cache_file"; then
2077  # Some versions of bash will fail to source /dev/null (special
2078  # files actually), so we avoid doing that.
2079  if test -f "$cache_file"; then
2080    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2081$as_echo "$as_me: loading cache $cache_file" >&6;}
2082    case $cache_file in
2083      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2084      *)                      . "./$cache_file";;
2085    esac
2086  fi
2087else
2088  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2089$as_echo "$as_me: creating cache $cache_file" >&6;}
2090  >$cache_file
2091fi
2092
2093# Check that the precious variables saved in the cache have kept the same
2094# value.
2095ac_cache_corrupted=false
2096for ac_var in $ac_precious_vars; do
2097  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2098  eval ac_new_set=\$ac_env_${ac_var}_set
2099  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2100  eval ac_new_val=\$ac_env_${ac_var}_value
2101  case $ac_old_set,$ac_new_set in
2102    set,)
2103      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2104$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2105      ac_cache_corrupted=: ;;
2106    ,set)
2107      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2108$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2109      ac_cache_corrupted=: ;;
2110    ,);;
2111    *)
2112      if test "x$ac_old_val" != "x$ac_new_val"; then
2113	# differences in whitespace do not lead to failure.
2114	ac_old_val_w=`echo x $ac_old_val`
2115	ac_new_val_w=`echo x $ac_new_val`
2116	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2117	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2118$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2119	  ac_cache_corrupted=:
2120	else
2121	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2122$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2123	  eval $ac_var=\$ac_old_val
2124	fi
2125	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2126$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2127	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2128$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2129      fi;;
2130  esac
2131  # Pass precious variables to config.status.
2132  if test "$ac_new_set" = set; then
2133    case $ac_new_val in
2134    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2135    *) ac_arg=$ac_var=$ac_new_val ;;
2136    esac
2137    case " $ac_configure_args " in
2138      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2139      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2140    esac
2141  fi
2142done
2143if $ac_cache_corrupted; then
2144  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2147$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2148  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2149$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2150   { (exit 1); exit 1; }; }
2151fi
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177ac_ext=c
2178ac_cpp='$CPP $CPPFLAGS'
2179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182
2183
2184
2185am__api_version='1.11'
2186
2187ac_aux_dir=
2188for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189  if test -f "$ac_dir/install-sh"; then
2190    ac_aux_dir=$ac_dir
2191    ac_install_sh="$ac_aux_dir/install-sh -c"
2192    break
2193  elif test -f "$ac_dir/install.sh"; then
2194    ac_aux_dir=$ac_dir
2195    ac_install_sh="$ac_aux_dir/install.sh -c"
2196    break
2197  elif test -f "$ac_dir/shtool"; then
2198    ac_aux_dir=$ac_dir
2199    ac_install_sh="$ac_aux_dir/shtool install -c"
2200    break
2201  fi
2202done
2203if test -z "$ac_aux_dir"; then
2204  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2205$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2206   { (exit 1); exit 1; }; }
2207fi
2208
2209# These three variables are undocumented and unsupported,
2210# and are intended to be withdrawn in a future Autoconf release.
2211# They can cause serious problems if a builder's source tree is in a directory
2212# whose full name contains unusual characters.
2213ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2214ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2215ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2216
2217
2218# Find a good install program.  We prefer a C program (faster),
2219# so one script is as good as another.  But avoid the broken or
2220# incompatible versions:
2221# SysV /etc/install, /usr/sbin/install
2222# SunOS /usr/etc/install
2223# IRIX /sbin/install
2224# AIX /bin/install
2225# AmigaOS /C/install, which installs bootblocks on floppy discs
2226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2227# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2229# OS/2's system install, which has a completely different semantic
2230# ./install, which can be erroneously created by make from ./install.sh.
2231# Reject install programs that cannot install multiple files.
2232{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2233$as_echo_n "checking for a BSD-compatible install... " >&6; }
2234if test -z "$INSTALL"; then
2235if test "${ac_cv_path_install+set}" = set; then
2236  $as_echo_n "(cached) " >&6
2237else
2238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241  IFS=$as_save_IFS
2242  test -z "$as_dir" && as_dir=.
2243  # Account for people who put trailing slashes in PATH elements.
2244case $as_dir/ in
2245  ./ | .// | /cC/* | \
2246  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2247  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2248  /usr/ucb/* ) ;;
2249  *)
2250    # OSF1 and SCO ODT 3.0 have their own names for install.
2251    # Don't use installbsd from OSF since it installs stuff as root
2252    # by default.
2253    for ac_prog in ginstall scoinst install; do
2254      for ac_exec_ext in '' $ac_executable_extensions; do
2255	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2256	  if test $ac_prog = install &&
2257	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2258	    # AIX install.  It has an incompatible calling convention.
2259	    :
2260	  elif test $ac_prog = install &&
2261	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262	    # program-specific install script used by HP pwplus--don't use.
2263	    :
2264	  else
2265	    rm -rf conftest.one conftest.two conftest.dir
2266	    echo one > conftest.one
2267	    echo two > conftest.two
2268	    mkdir conftest.dir
2269	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2270	      test -s conftest.one && test -s conftest.two &&
2271	      test -s conftest.dir/conftest.one &&
2272	      test -s conftest.dir/conftest.two
2273	    then
2274	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2275	      break 3
2276	    fi
2277	  fi
2278	fi
2279      done
2280    done
2281    ;;
2282esac
2283
2284done
2285IFS=$as_save_IFS
2286
2287rm -rf conftest.one conftest.two conftest.dir
2288
2289fi
2290  if test "${ac_cv_path_install+set}" = set; then
2291    INSTALL=$ac_cv_path_install
2292  else
2293    # As a last resort, use the slow shell script.  Don't cache a
2294    # value for INSTALL within a source directory, because that will
2295    # break other packages using the cache if that directory is
2296    # removed, or if the value is a relative name.
2297    INSTALL=$ac_install_sh
2298  fi
2299fi
2300{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2301$as_echo "$INSTALL" >&6; }
2302
2303# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2304# It thinks the first close brace ends the variable substitution.
2305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2306
2307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2308
2309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2310
2311{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2312$as_echo_n "checking whether build environment is sane... " >&6; }
2313# Just in case
2314sleep 1
2315echo timestamp > conftest.file
2316# Reject unsafe characters in $srcdir or the absolute working directory
2317# name.  Accept space and tab only in the latter.
2318am_lf='
2319'
2320case `pwd` in
2321  *[\\\"\#\$\&\'\`$am_lf]*)
2322    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2323$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2324   { (exit 1); exit 1; }; };;
2325esac
2326case $srcdir in
2327  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2328    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2329$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2330   { (exit 1); exit 1; }; };;
2331esac
2332
2333# Do `set' in a subshell so we don't clobber the current shell's
2334# arguments.  Must try -L first in case configure is actually a
2335# symlink; some systems play weird games with the mod time of symlinks
2336# (eg FreeBSD returns the mod time of the symlink's containing
2337# directory).
2338if (
2339   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340   if test "$*" = "X"; then
2341      # -L didn't work.
2342      set X `ls -t "$srcdir/configure" conftest.file`
2343   fi
2344   rm -f conftest.file
2345   if test "$*" != "X $srcdir/configure conftest.file" \
2346      && test "$*" != "X conftest.file $srcdir/configure"; then
2347
2348      # If neither matched, then we have a broken ls.  This can happen
2349      # if, for instance, CONFIG_SHELL is bash and it inherits a
2350      # broken ls alias from the environment.  This has actually
2351      # happened.  Such a system could not be considered "sane".
2352      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2353alias in your environment" >&5
2354$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2355alias in your environment" >&2;}
2356   { (exit 1); exit 1; }; }
2357   fi
2358
2359   test "$2" = conftest.file
2360   )
2361then
2362   # Ok.
2363   :
2364else
2365   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2366Check your system clock" >&5
2367$as_echo "$as_me: error: newly created file is older than distributed files!
2368Check your system clock" >&2;}
2369   { (exit 1); exit 1; }; }
2370fi
2371{ $as_echo "$as_me:$LINENO: result: yes" >&5
2372$as_echo "yes" >&6; }
2373test "$program_prefix" != NONE &&
2374  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2375# Use a double $ so make ignores it.
2376test "$program_suffix" != NONE &&
2377  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2378# Double any \ or $.
2379# By default was `s,x,x', remove it if useless.
2380ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2381program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2382
2383# expand $ac_aux_dir to an absolute path
2384am_aux_dir=`cd $ac_aux_dir && pwd`
2385
2386if test x"${MISSING+set}" != xset; then
2387  case $am_aux_dir in
2388  *\ * | *\	*)
2389    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2390  *)
2391    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2392  esac
2393fi
2394# Use eval to expand $SHELL
2395if eval "$MISSING --run true"; then
2396  am_missing_run="$MISSING --run "
2397else
2398  am_missing_run=
2399  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2400$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2401fi
2402
2403if test x"${install_sh}" != xset; then
2404  case $am_aux_dir in
2405  *\ * | *\	*)
2406    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2407  *)
2408    install_sh="\${SHELL} $am_aux_dir/install-sh"
2409  esac
2410fi
2411
2412# Installed binaries are usually stripped using `strip' when the user
2413# run `make install-strip'.  However `strip' might not be the right
2414# tool to use in cross-compilation environments, therefore Automake
2415# will honor the `STRIP' environment variable to overrule this program.
2416if test "$cross_compiling" != no; then
2417  if test -n "$ac_tool_prefix"; then
2418  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2419set dummy ${ac_tool_prefix}strip; ac_word=$2
2420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
2422if test "${ac_cv_prog_STRIP+set}" = set; then
2423  $as_echo_n "(cached) " >&6
2424else
2425  if test -n "$STRIP"; then
2426  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431  IFS=$as_save_IFS
2432  test -z "$as_dir" && as_dir=.
2433  for ac_exec_ext in '' $ac_executable_extensions; do
2434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2436    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437    break 2
2438  fi
2439done
2440done
2441IFS=$as_save_IFS
2442
2443fi
2444fi
2445STRIP=$ac_cv_prog_STRIP
2446if test -n "$STRIP"; then
2447  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2448$as_echo "$STRIP" >&6; }
2449else
2450  { $as_echo "$as_me:$LINENO: result: no" >&5
2451$as_echo "no" >&6; }
2452fi
2453
2454
2455fi
2456if test -z "$ac_cv_prog_STRIP"; then
2457  ac_ct_STRIP=$STRIP
2458  # Extract the first word of "strip", so it can be a program name with args.
2459set dummy strip; ac_word=$2
2460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
2462if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2463  $as_echo_n "(cached) " >&6
2464else
2465  if test -n "$ac_ct_STRIP"; then
2466  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471  IFS=$as_save_IFS
2472  test -z "$as_dir" && as_dir=.
2473  for ac_exec_ext in '' $ac_executable_extensions; do
2474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475    ac_cv_prog_ac_ct_STRIP="strip"
2476    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477    break 2
2478  fi
2479done
2480done
2481IFS=$as_save_IFS
2482
2483fi
2484fi
2485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2486if test -n "$ac_ct_STRIP"; then
2487  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2488$as_echo "$ac_ct_STRIP" >&6; }
2489else
2490  { $as_echo "$as_me:$LINENO: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494  if test "x$ac_ct_STRIP" = x; then
2495    STRIP=":"
2496  else
2497    case $cross_compiling:$ac_tool_warned in
2498yes:)
2499{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2501ac_tool_warned=yes ;;
2502esac
2503    STRIP=$ac_ct_STRIP
2504  fi
2505else
2506  STRIP="$ac_cv_prog_STRIP"
2507fi
2508
2509fi
2510INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2511
2512{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2513$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2514if test -z "$MKDIR_P"; then
2515  if test "${ac_cv_path_mkdir+set}" = set; then
2516  $as_echo_n "(cached) " >&6
2517else
2518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523  for ac_prog in mkdir gmkdir; do
2524	 for ac_exec_ext in '' $ac_executable_extensions; do
2525	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2526	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2527	     'mkdir (GNU coreutils) '* | \
2528	     'mkdir (coreutils) '* | \
2529	     'mkdir (fileutils) '4.1*)
2530	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2531	       break 3;;
2532	   esac
2533	 done
2534       done
2535done
2536IFS=$as_save_IFS
2537
2538fi
2539
2540  if test "${ac_cv_path_mkdir+set}" = set; then
2541    MKDIR_P="$ac_cv_path_mkdir -p"
2542  else
2543    # As a last resort, use the slow shell script.  Don't cache a
2544    # value for MKDIR_P within a source directory, because that will
2545    # break other packages using the cache if that directory is
2546    # removed, or if the value is a relative name.
2547    test -d ./--version && rmdir ./--version
2548    MKDIR_P="$ac_install_sh -d"
2549  fi
2550fi
2551{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2552$as_echo "$MKDIR_P" >&6; }
2553
2554mkdir_p="$MKDIR_P"
2555case $mkdir_p in
2556  [\\/$]* | ?:[\\/]*) ;;
2557  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2558esac
2559
2560for ac_prog in gawk mawk nawk awk
2561do
2562  # Extract the first word of "$ac_prog", so it can be a program name with args.
2563set dummy $ac_prog; ac_word=$2
2564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
2566if test "${ac_cv_prog_AWK+set}" = set; then
2567  $as_echo_n "(cached) " >&6
2568else
2569  if test -n "$AWK"; then
2570  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577  for ac_exec_ext in '' $ac_executable_extensions; do
2578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579    ac_cv_prog_AWK="$ac_prog"
2580    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581    break 2
2582  fi
2583done
2584done
2585IFS=$as_save_IFS
2586
2587fi
2588fi
2589AWK=$ac_cv_prog_AWK
2590if test -n "$AWK"; then
2591  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2592$as_echo "$AWK" >&6; }
2593else
2594  { $as_echo "$as_me:$LINENO: result: no" >&5
2595$as_echo "no" >&6; }
2596fi
2597
2598
2599  test -n "$AWK" && break
2600done
2601
2602{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2603$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2604set x ${MAKE-make}
2605ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2606if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2607  $as_echo_n "(cached) " >&6
2608else
2609  cat >conftest.make <<\_ACEOF
2610SHELL = /bin/sh
2611all:
2612	@echo '@@@%%%=$(MAKE)=@@@%%%'
2613_ACEOF
2614# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2615case `${MAKE-make} -f conftest.make 2>/dev/null` in
2616  *@@@%%%=?*=@@@%%%*)
2617    eval ac_cv_prog_make_${ac_make}_set=yes;;
2618  *)
2619    eval ac_cv_prog_make_${ac_make}_set=no;;
2620esac
2621rm -f conftest.make
2622fi
2623if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2624  { $as_echo "$as_me:$LINENO: result: yes" >&5
2625$as_echo "yes" >&6; }
2626  SET_MAKE=
2627else
2628  { $as_echo "$as_me:$LINENO: result: no" >&5
2629$as_echo "no" >&6; }
2630  SET_MAKE="MAKE=${MAKE-make}"
2631fi
2632
2633rm -rf .tst 2>/dev/null
2634mkdir .tst 2>/dev/null
2635if test -d .tst; then
2636  am__leading_dot=.
2637else
2638  am__leading_dot=_
2639fi
2640rmdir .tst 2>/dev/null
2641
2642if test "`cd $srcdir && pwd`" != "`pwd`"; then
2643  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2644  # is not polluted with repeated "-I."
2645  am__isrc=' -I$(srcdir)'
2646  # test to see if srcdir already configured
2647  if test -f $srcdir/config.status; then
2648    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2649$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2650   { (exit 1); exit 1; }; }
2651  fi
2652fi
2653
2654# test whether we have cygpath
2655if test -z "$CYGPATH_W"; then
2656  if (cygpath --version) >/dev/null 2>/dev/null; then
2657    CYGPATH_W='cygpath -w'
2658  else
2659    CYGPATH_W=echo
2660  fi
2661fi
2662
2663
2664# Define the identity of the package.
2665 PACKAGE='libX11'
2666 VERSION='1.2.2'
2667
2668
2669cat >>confdefs.h <<_ACEOF
2670#define PACKAGE "$PACKAGE"
2671_ACEOF
2672
2673
2674cat >>confdefs.h <<_ACEOF
2675#define VERSION "$VERSION"
2676_ACEOF
2677
2678# Some tools Automake needs.
2679
2680ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2681
2682
2683AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2684
2685
2686AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2687
2688
2689AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2690
2691
2692MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2693
2694# We need awk for the "check" target.  The system "awk" is bad on
2695# some platforms.
2696# Always define AMTAR for backward compatibility.
2697
2698AMTAR=${AMTAR-"${am_missing_run}tar"}
2699
2700am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701
2702
2703
2704
2705
2706
2707
2708{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2709$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2710    # Check whether --enable-maintainer-mode was given.
2711if test "${enable_maintainer_mode+set}" = set; then
2712  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2713else
2714  USE_MAINTAINER_MODE=no
2715fi
2716
2717  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2718$as_echo "$USE_MAINTAINER_MODE" >&6; }
2719   if test $USE_MAINTAINER_MODE = yes; then
2720  MAINTAINER_MODE_TRUE=
2721  MAINTAINER_MODE_FALSE='#'
2722else
2723  MAINTAINER_MODE_TRUE='#'
2724  MAINTAINER_MODE_FALSE=
2725fi
2726
2727  MAINT=$MAINTAINER_MODE_TRUE
2728
2729
2730
2731ac_config_headers="$ac_config_headers src/config.h"
2732
2733ac_config_headers="$ac_config_headers include/X11/XlibConf.h"
2734
2735
2736# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT
2737
2738
2739	XORG_MACROS_needed_version=1.2
2740	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2741	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2742	{ $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2743$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2744	XORG_MACROS_version=1.2.1
2745	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2746	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2747	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2748		{ { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2749$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2750   { (exit 1); exit 1; }; }
2751	fi
2752	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2753		{ { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2754$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2755   { (exit 1); exit 1; }; }
2756	fi
2757	{ $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2758$as_echo "yes, $XORG_MACROS_version" >&6; }
2759
2760
2761# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2762# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2763# to avoid autoconf errors.
2764DEPDIR="${am__leading_dot}deps"
2765
2766ac_config_commands="$ac_config_commands depfiles"
2767
2768
2769am_make=${MAKE-make}
2770cat > confinc << 'END'
2771am__doit:
2772	@echo this is the am__doit target
2773.PHONY: am__doit
2774END
2775# If we don't find an include directive, just comment out the code.
2776{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2777$as_echo_n "checking for style of include used by $am_make... " >&6; }
2778am__include="#"
2779am__quote=
2780_am_result=none
2781# First try GNU make style include.
2782echo "include confinc" > confmf
2783# Ignore all kinds of additional output from `make'.
2784case `$am_make -s -f confmf 2> /dev/null` in #(
2785*the\ am__doit\ target*)
2786  am__include=include
2787  am__quote=
2788  _am_result=GNU
2789  ;;
2790esac
2791# Now try BSD make style include.
2792if test "$am__include" = "#"; then
2793   echo '.include "confinc"' > confmf
2794   case `$am_make -s -f confmf 2> /dev/null` in #(
2795   *the\ am__doit\ target*)
2796     am__include=.include
2797     am__quote="\""
2798     _am_result=BSD
2799     ;;
2800   esac
2801fi
2802
2803
2804{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2805$as_echo "$_am_result" >&6; }
2806rm -f confinc confmf
2807
2808# Check whether --enable-dependency-tracking was given.
2809if test "${enable_dependency_tracking+set}" = set; then
2810  enableval=$enable_dependency_tracking;
2811fi
2812
2813if test "x$enable_dependency_tracking" != xno; then
2814  am_depcomp="$ac_aux_dir/depcomp"
2815  AMDEPBACKSLASH='\'
2816fi
2817 if test "x$enable_dependency_tracking" != xno; then
2818  AMDEP_TRUE=
2819  AMDEP_FALSE='#'
2820else
2821  AMDEP_TRUE='#'
2822  AMDEP_FALSE=
2823fi
2824
2825
2826ac_ext=c
2827ac_cpp='$CPP $CPPFLAGS'
2828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831if test -n "$ac_tool_prefix"; then
2832  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2833set dummy ${ac_tool_prefix}gcc; ac_word=$2
2834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if test "${ac_cv_prog_CC+set}" = set; then
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$CC"; then
2840  ac_cv_prog_CC="$CC" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847  for ac_exec_ext in '' $ac_executable_extensions; do
2848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2850    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851    break 2
2852  fi
2853done
2854done
2855IFS=$as_save_IFS
2856
2857fi
2858fi
2859CC=$ac_cv_prog_CC
2860if test -n "$CC"; then
2861  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2862$as_echo "$CC" >&6; }
2863else
2864  { $as_echo "$as_me:$LINENO: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869fi
2870if test -z "$ac_cv_prog_CC"; then
2871  ac_ct_CC=$CC
2872  # Extract the first word of "gcc", so it can be a program name with args.
2873set dummy gcc; ac_word=$2
2874{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$ac_ct_CC"; then
2880  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887  for ac_exec_ext in '' $ac_executable_extensions; do
2888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889    ac_cv_prog_ac_ct_CC="gcc"
2890    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900if test -n "$ac_ct_CC"; then
2901  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902$as_echo "$ac_ct_CC" >&6; }
2903else
2904  { $as_echo "$as_me:$LINENO: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908  if test "x$ac_ct_CC" = x; then
2909    CC=""
2910  else
2911    case $cross_compiling:$ac_tool_warned in
2912yes:)
2913{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915ac_tool_warned=yes ;;
2916esac
2917    CC=$ac_ct_CC
2918  fi
2919else
2920  CC="$ac_cv_prog_CC"
2921fi
2922
2923if test -z "$CC"; then
2924          if test -n "$ac_tool_prefix"; then
2925    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2926set dummy ${ac_tool_prefix}cc; ac_word=$2
2927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_CC+set}" = set; then
2930  $as_echo_n "(cached) " >&6
2931else
2932  if test -n "$CC"; then
2933  ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940  for ac_exec_ext in '' $ac_executable_extensions; do
2941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942    ac_cv_prog_CC="${ac_tool_prefix}cc"
2943    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944    break 2
2945  fi
2946done
2947done
2948IFS=$as_save_IFS
2949
2950fi
2951fi
2952CC=$ac_cv_prog_CC
2953if test -n "$CC"; then
2954  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2955$as_echo "$CC" >&6; }
2956else
2957  { $as_echo "$as_me:$LINENO: result: no" >&5
2958$as_echo "no" >&6; }
2959fi
2960
2961
2962  fi
2963fi
2964if test -z "$CC"; then
2965  # Extract the first word of "cc", so it can be a program name with args.
2966set dummy cc; ac_word=$2
2967{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
2969if test "${ac_cv_prog_CC+set}" = set; then
2970  $as_echo_n "(cached) " >&6
2971else
2972  if test -n "$CC"; then
2973  ac_cv_prog_CC="$CC" # Let the user override the test.
2974else
2975  ac_prog_rejected=no
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979  IFS=$as_save_IFS
2980  test -z "$as_dir" && as_dir=.
2981  for ac_exec_ext in '' $ac_executable_extensions; do
2982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2984       ac_prog_rejected=yes
2985       continue
2986     fi
2987    ac_cv_prog_CC="cc"
2988    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992done
2993IFS=$as_save_IFS
2994
2995if test $ac_prog_rejected = yes; then
2996  # We found a bogon in the path, so make sure we never use it.
2997  set dummy $ac_cv_prog_CC
2998  shift
2999  if test $# != 0; then
3000    # We chose a different compiler from the bogus one.
3001    # However, it has the same basename, so the bogon will be chosen
3002    # first if we set CC to just the basename; use the full file name.
3003    shift
3004    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3005  fi
3006fi
3007fi
3008fi
3009CC=$ac_cv_prog_CC
3010if test -n "$CC"; then
3011  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3012$as_echo "$CC" >&6; }
3013else
3014  { $as_echo "$as_me:$LINENO: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019fi
3020if test -z "$CC"; then
3021  if test -n "$ac_tool_prefix"; then
3022  for ac_prog in cl.exe
3023  do
3024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3026{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3027$as_echo_n "checking for $ac_word... " >&6; }
3028if test "${ac_cv_prog_CC+set}" = set; then
3029  $as_echo_n "(cached) " >&6
3030else
3031  if test -n "$CC"; then
3032  ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037  IFS=$as_save_IFS
3038  test -z "$as_dir" && as_dir=.
3039  for ac_exec_ext in '' $ac_executable_extensions; do
3040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3042    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043    break 2
3044  fi
3045done
3046done
3047IFS=$as_save_IFS
3048
3049fi
3050fi
3051CC=$ac_cv_prog_CC
3052if test -n "$CC"; then
3053  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3054$as_echo "$CC" >&6; }
3055else
3056  { $as_echo "$as_me:$LINENO: result: no" >&5
3057$as_echo "no" >&6; }
3058fi
3059
3060
3061    test -n "$CC" && break
3062  done
3063fi
3064if test -z "$CC"; then
3065  ac_ct_CC=$CC
3066  for ac_prog in cl.exe
3067do
3068  # Extract the first word of "$ac_prog", so it can be a program name with args.
3069set dummy $ac_prog; ac_word=$2
3070{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3073  $as_echo_n "(cached) " >&6
3074else
3075  if test -n "$ac_ct_CC"; then
3076  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081  IFS=$as_save_IFS
3082  test -z "$as_dir" && as_dir=.
3083  for ac_exec_ext in '' $ac_executable_extensions; do
3084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085    ac_cv_prog_ac_ct_CC="$ac_prog"
3086    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090done
3091IFS=$as_save_IFS
3092
3093fi
3094fi
3095ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096if test -n "$ac_ct_CC"; then
3097  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098$as_echo "$ac_ct_CC" >&6; }
3099else
3100  { $as_echo "$as_me:$LINENO: result: no" >&5
3101$as_echo "no" >&6; }
3102fi
3103
3104
3105  test -n "$ac_ct_CC" && break
3106done
3107
3108  if test "x$ac_ct_CC" = x; then
3109    CC=""
3110  else
3111    case $cross_compiling:$ac_tool_warned in
3112yes:)
3113{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115ac_tool_warned=yes ;;
3116esac
3117    CC=$ac_ct_CC
3118  fi
3119fi
3120
3121fi
3122
3123
3124test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3127See \`config.log' for more details." >&5
3128$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3129See \`config.log' for more details." >&2;}
3130   { (exit 1); exit 1; }; }; }
3131
3132# Provide some information about the compiler.
3133$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3134set X $ac_compile
3135ac_compiler=$2
3136{ (ac_try="$ac_compiler --version >&5"
3137case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142$as_echo "$ac_try_echo") >&5
3143  (eval "$ac_compiler --version >&5") 2>&5
3144  ac_status=$?
3145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }
3147{ (ac_try="$ac_compiler -v >&5"
3148case "(($ac_try" in
3149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150  *) ac_try_echo=$ac_try;;
3151esac
3152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153$as_echo "$ac_try_echo") >&5
3154  (eval "$ac_compiler -v >&5") 2>&5
3155  ac_status=$?
3156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); }
3158{ (ac_try="$ac_compiler -V >&5"
3159case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164$as_echo "$ac_try_echo") >&5
3165  (eval "$ac_compiler -V >&5") 2>&5
3166  ac_status=$?
3167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }
3169
3170cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h.  */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h.  */
3176
3177int
3178main ()
3179{
3180
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185ac_clean_files_save=$ac_clean_files
3186ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3187# Try to create an executable without -o first, disregard a.out.
3188# It will help us diagnose broken compilers, and finding out an intuition
3189# of exeext.
3190{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3191$as_echo_n "checking for C compiler default output file name... " >&6; }
3192ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3193
3194# The possible output files:
3195ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3196
3197ac_rmfiles=
3198for ac_file in $ac_files
3199do
3200  case $ac_file in
3201    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203  esac
3204done
3205rm -f $ac_rmfiles
3206
3207if { (ac_try="$ac_link_default"
3208case "(($ac_try" in
3209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210  *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213$as_echo "$ac_try_echo") >&5
3214  (eval "$ac_link_default") 2>&5
3215  ac_status=$?
3216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); }; then
3218  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3221# so that the user can short-circuit this test for compilers unknown to
3222# Autoconf.
3223for ac_file in $ac_files ''
3224do
3225  test -f "$ac_file" || continue
3226  case $ac_file in
3227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3228	;;
3229    [ab].out )
3230	# We found the default executable, but exeext='' is most
3231	# certainly right.
3232	break;;
3233    *.* )
3234        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235	then :; else
3236	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237	fi
3238	# We set ac_cv_exeext here because the later test for it is not
3239	# safe: cross compilers may not add the suffix if given an `-o'
3240	# argument, so we may need to know it at that point already.
3241	# Even if this section looks crufty: it has the advantage of
3242	# actually working.
3243	break;;
3244    * )
3245	break;;
3246  esac
3247done
3248test "$ac_cv_exeext" = no && ac_cv_exeext=
3249
3250else
3251  ac_file=''
3252fi
3253
3254{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3255$as_echo "$ac_file" >&6; }
3256if test -z "$ac_file"; then
3257  $as_echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3263See \`config.log' for more details." >&5
3264$as_echo "$as_me: error: C compiler cannot create executables
3265See \`config.log' for more details." >&2;}
3266   { (exit 77); exit 77; }; }; }
3267fi
3268
3269ac_exeext=$ac_cv_exeext
3270
3271# Check that the compiler produces executables we can run.  If not, either
3272# the compiler is broken, or we cross compile.
3273{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3274$as_echo_n "checking whether the C compiler works... " >&6; }
3275# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3276# If not cross compiling, check that we can run a simple program.
3277if test "$cross_compiling" != yes; then
3278  if { ac_try='./$ac_file'
3279  { (case "(($ac_try" in
3280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281  *) ac_try_echo=$ac_try;;
3282esac
3283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284$as_echo "$ac_try_echo") >&5
3285  (eval "$ac_try") 2>&5
3286  ac_status=$?
3287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; }; then
3289    cross_compiling=no
3290  else
3291    if test "$cross_compiling" = maybe; then
3292	cross_compiling=yes
3293    else
3294	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3297If you meant to cross compile, use \`--host'.
3298See \`config.log' for more details." >&5
3299$as_echo "$as_me: error: cannot run C compiled programs.
3300If you meant to cross compile, use \`--host'.
3301See \`config.log' for more details." >&2;}
3302   { (exit 1); exit 1; }; }; }
3303    fi
3304  fi
3305fi
3306{ $as_echo "$as_me:$LINENO: result: yes" >&5
3307$as_echo "yes" >&6; }
3308
3309rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3310ac_clean_files=$ac_clean_files_save
3311# Check that the compiler produces executables we can run.  If not, either
3312# the compiler is broken, or we cross compile.
3313{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3314$as_echo_n "checking whether we are cross compiling... " >&6; }
3315{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3316$as_echo "$cross_compiling" >&6; }
3317
3318{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3319$as_echo_n "checking for suffix of executables... " >&6; }
3320if { (ac_try="$ac_link"
3321case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326$as_echo "$ac_try_echo") >&5
3327  (eval "$ac_link") 2>&5
3328  ac_status=$?
3329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); }; then
3331  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3333# work properly (i.e., refer to `conftest.exe'), while it won't with
3334# `rm'.
3335for ac_file in conftest.exe conftest conftest.*; do
3336  test -f "$ac_file" || continue
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3339    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340	  break;;
3341    * ) break;;
3342  esac
3343done
3344else
3345  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3348See \`config.log' for more details." >&5
3349$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3350See \`config.log' for more details." >&2;}
3351   { (exit 1); exit 1; }; }; }
3352fi
3353
3354rm -f conftest$ac_cv_exeext
3355{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3356$as_echo "$ac_cv_exeext" >&6; }
3357
3358rm -f conftest.$ac_ext
3359EXEEXT=$ac_cv_exeext
3360ac_exeext=$EXEEXT
3361{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3362$as_echo_n "checking for suffix of object files... " >&6; }
3363if test "${ac_cv_objext+set}" = set; then
3364  $as_echo_n "(cached) " >&6
3365else
3366  cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h.  */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.o conftest.obj
3382if { (ac_try="$ac_compile"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388$as_echo "$ac_try_echo") >&5
3389  (eval "$ac_compile") 2>&5
3390  ac_status=$?
3391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }; then
3393  for ac_file in conftest.o conftest.obj conftest.*; do
3394  test -f "$ac_file" || continue;
3395  case $ac_file in
3396    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3397    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3398       break;;
3399  esac
3400done
3401else
3402  $as_echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3408See \`config.log' for more details." >&5
3409$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3410See \`config.log' for more details." >&2;}
3411   { (exit 1); exit 1; }; }; }
3412fi
3413
3414rm -f conftest.$ac_cv_objext conftest.$ac_ext
3415fi
3416{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3417$as_echo "$ac_cv_objext" >&6; }
3418OBJEXT=$ac_cv_objext
3419ac_objext=$OBJEXT
3420{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3421$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422if test "${ac_cv_c_compiler_gnu+set}" = set; then
3423  $as_echo_n "(cached) " >&6
3424else
3425  cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h.  */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h.  */
3431
3432int
3433main ()
3434{
3435#ifndef __GNUC__
3436       choke me
3437#endif
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (ac_try="$ac_compile"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450$as_echo "$ac_try_echo") >&5
3451  (eval "$ac_compile") 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } && {
3458	 test -z "$ac_c_werror_flag" ||
3459	 test ! -s conftest.err
3460       } && test -s conftest.$ac_objext; then
3461  ac_compiler_gnu=yes
3462else
3463  $as_echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466	ac_compiler_gnu=no
3467fi
3468
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470ac_cv_c_compiler_gnu=$ac_compiler_gnu
3471
3472fi
3473{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3474$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3475if test $ac_compiler_gnu = yes; then
3476  GCC=yes
3477else
3478  GCC=
3479fi
3480ac_test_CFLAGS=${CFLAGS+set}
3481ac_save_CFLAGS=$CFLAGS
3482{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3483$as_echo_n "checking whether $CC accepts -g... " >&6; }
3484if test "${ac_cv_prog_cc_g+set}" = set; then
3485  $as_echo_n "(cached) " >&6
3486else
3487  ac_save_c_werror_flag=$ac_c_werror_flag
3488   ac_c_werror_flag=yes
3489   ac_cv_prog_cc_g=no
3490   CFLAGS="-g"
3491   cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497
3498int
3499main ()
3500{
3501
3502  ;
3503  return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (ac_try="$ac_compile"
3508case "(($ac_try" in
3509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510  *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513$as_echo "$ac_try_echo") >&5
3514  (eval "$ac_compile") 2>conftest.er1
3515  ac_status=$?
3516  grep -v '^ *+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } && {
3521	 test -z "$ac_c_werror_flag" ||
3522	 test ! -s conftest.err
3523       } && test -s conftest.$ac_objext; then
3524  ac_cv_prog_cc_g=yes
3525else
3526  $as_echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529	CFLAGS=""
3530      cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545rm -f conftest.$ac_objext
3546if { (ac_try="$ac_compile"
3547case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552$as_echo "$ac_try_echo") >&5
3553  (eval "$ac_compile") 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } && {
3560	 test -z "$ac_c_werror_flag" ||
3561	 test ! -s conftest.err
3562       } && test -s conftest.$ac_objext; then
3563  :
3564else
3565  $as_echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568	ac_c_werror_flag=$ac_save_c_werror_flag
3569	 CFLAGS="-g"
3570	 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h.  */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585rm -f conftest.$ac_objext
3586if { (ac_try="$ac_compile"
3587case "(($ac_try" in
3588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589  *) ac_try_echo=$ac_try;;
3590esac
3591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592$as_echo "$ac_try_echo") >&5
3593  (eval "$ac_compile") 2>conftest.er1
3594  ac_status=$?
3595  grep -v '^ *+' conftest.er1 >conftest.err
3596  rm -f conftest.er1
3597  cat conftest.err >&5
3598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); } && {
3600	 test -z "$ac_c_werror_flag" ||
3601	 test ! -s conftest.err
3602       } && test -s conftest.$ac_objext; then
3603  ac_cv_prog_cc_g=yes
3604else
3605  $as_echo "$as_me: failed program was:" >&5
3606sed 's/^/| /' conftest.$ac_ext >&5
3607
3608
3609fi
3610
3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612fi
3613
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615fi
3616
3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618   ac_c_werror_flag=$ac_save_c_werror_flag
3619fi
3620{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3621$as_echo "$ac_cv_prog_cc_g" >&6; }
3622if test "$ac_test_CFLAGS" = set; then
3623  CFLAGS=$ac_save_CFLAGS
3624elif test $ac_cv_prog_cc_g = yes; then
3625  if test "$GCC" = yes; then
3626    CFLAGS="-g -O2"
3627  else
3628    CFLAGS="-g"
3629  fi
3630else
3631  if test "$GCC" = yes; then
3632    CFLAGS="-O2"
3633  else
3634    CFLAGS=
3635  fi
3636fi
3637{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3638$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3639if test "${ac_cv_prog_cc_c89+set}" = set; then
3640  $as_echo_n "(cached) " >&6
3641else
3642  ac_cv_prog_cc_c89=no
3643ac_save_CC=$CC
3644cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h.  */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h.  */
3650#include <stdarg.h>
3651#include <stdio.h>
3652#include <sys/types.h>
3653#include <sys/stat.h>
3654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3655struct buf { int x; };
3656FILE * (*rcsopen) (struct buf *, struct stat *, int);
3657static char *e (p, i)
3658     char **p;
3659     int i;
3660{
3661  return p[i];
3662}
3663static char *f (char * (*g) (char **, int), char **p, ...)
3664{
3665  char *s;
3666  va_list v;
3667  va_start (v,p);
3668  s = g (p, va_arg (v,int));
3669  va_end (v);
3670  return s;
3671}
3672
3673/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3674   function prototypes and stuff, but not '\xHH' hex character constants.
3675   These don't provoke an error unfortunately, instead are silently treated
3676   as 'x'.  The following induces an error, until -std is added to get
3677   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3678   array size at least.  It's necessary to write '\x00'==0 to get something
3679   that's true only with -std.  */
3680int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3681
3682/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3683   inside strings and character constants.  */
3684#define FOO(x) 'x'
3685int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3686
3687int test (int i, double x);
3688struct s1 {int (*f) (int a);};
3689struct s2 {int (*f) (double a);};
3690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691int argc;
3692char **argv;
3693int
3694main ()
3695{
3696return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3702	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3703do
3704  CC="$ac_save_CC $ac_arg"
3705  rm -f conftest.$ac_objext
3706if { (ac_try="$ac_compile"
3707case "(($ac_try" in
3708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709  *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3712$as_echo "$ac_try_echo") >&5
3713  (eval "$ac_compile") 2>conftest.er1
3714  ac_status=$?
3715  grep -v '^ *+' conftest.er1 >conftest.err
3716  rm -f conftest.er1
3717  cat conftest.err >&5
3718  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); } && {
3720	 test -z "$ac_c_werror_flag" ||
3721	 test ! -s conftest.err
3722       } && test -s conftest.$ac_objext; then
3723  ac_cv_prog_cc_c89=$ac_arg
3724else
3725  $as_echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728
3729fi
3730
3731rm -f core conftest.err conftest.$ac_objext
3732  test "x$ac_cv_prog_cc_c89" != "xno" && break
3733done
3734rm -f conftest.$ac_ext
3735CC=$ac_save_CC
3736
3737fi
3738# AC_CACHE_VAL
3739case "x$ac_cv_prog_cc_c89" in
3740  x)
3741    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3742$as_echo "none needed" >&6; } ;;
3743  xno)
3744    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3745$as_echo "unsupported" >&6; } ;;
3746  *)
3747    CC="$CC $ac_cv_prog_cc_c89"
3748    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3749$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3750esac
3751
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759depcc="$CC"   am_compiler_list=
3760
3761{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3762$as_echo_n "checking dependency style of $depcc... " >&6; }
3763if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3764  $as_echo_n "(cached) " >&6
3765else
3766  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3767  # We make a subdir and do the tests there.  Otherwise we can end up
3768  # making bogus files that we don't know about and never remove.  For
3769  # instance it was reported that on HP-UX the gcc test will end up
3770  # making a dummy file named `D' -- because `-MD' means `put the output
3771  # in D'.
3772  mkdir conftest.dir
3773  # Copy depcomp to subdir because otherwise we won't find it if we're
3774  # using a relative directory.
3775  cp "$am_depcomp" conftest.dir
3776  cd conftest.dir
3777  # We will build objects and dependencies in a subdirectory because
3778  # it helps to detect inapplicable dependency modes.  For instance
3779  # both Tru64's cc and ICC support -MD to output dependencies as a
3780  # side effect of compilation, but ICC will put the dependencies in
3781  # the current directory while Tru64 will put them in the object
3782  # directory.
3783  mkdir sub
3784
3785  am_cv_CC_dependencies_compiler_type=none
3786  if test "$am_compiler_list" = ""; then
3787     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3788  fi
3789  am__universal=false
3790  case " $depcc " in #(
3791     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3792     esac
3793
3794  for depmode in $am_compiler_list; do
3795    # Setup a source with many dependencies, because some compilers
3796    # like to wrap large dependency lists on column 80 (with \), and
3797    # we should not choose a depcomp mode which is confused by this.
3798    #
3799    # We need to recreate these files for each test, as the compiler may
3800    # overwrite some of them when testing with obscure command lines.
3801    # This happens at least with the AIX C compiler.
3802    : > sub/conftest.c
3803    for i in 1 2 3 4 5 6; do
3804      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3805      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3806      # Solaris 8's {/usr,}/bin/sh.
3807      touch sub/conftst$i.h
3808    done
3809    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3810
3811    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3812    # mode.  It turns out that the SunPro C++ compiler does not properly
3813    # handle `-M -o', and we need to detect this.  Also, some Intel
3814    # versions had trouble with output in subdirs
3815    am__obj=sub/conftest.${OBJEXT-o}
3816    am__minus_obj="-o $am__obj"
3817    case $depmode in
3818    gcc)
3819      # This depmode causes a compiler race in universal mode.
3820      test "$am__universal" = false || continue
3821      ;;
3822    nosideeffect)
3823      # after this tag, mechanisms are not by side-effect, so they'll
3824      # only be used when explicitly requested
3825      if test "x$enable_dependency_tracking" = xyes; then
3826	continue
3827      else
3828	break
3829      fi
3830      ;;
3831    msvisualcpp | msvcmsys)
3832      # This compiler won't grok `-c -o', but also, the minuso test has
3833      # not run yet.  These depmodes are late enough in the game, and
3834      # so weak that their functioning should not be impacted.
3835      am__obj=conftest.${OBJEXT-o}
3836      am__minus_obj=
3837      ;;
3838    none) break ;;
3839    esac
3840    if depmode=$depmode \
3841       source=sub/conftest.c object=$am__obj \
3842       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3843       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3844         >/dev/null 2>conftest.err &&
3845       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3846       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3847       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3848       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3849      # icc doesn't choke on unknown options, it will just issue warnings
3850      # or remarks (even with -Werror).  So we grep stderr for any message
3851      # that says an option was ignored or not supported.
3852      # When given -MP, icc 7.0 and 7.1 complain thusly:
3853      #   icc: Command line warning: ignoring option '-M'; no argument required
3854      # The diagnosis changed in icc 8.0:
3855      #   icc: Command line remark: option '-MP' not supported
3856      if (grep 'ignoring option' conftest.err ||
3857          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3858        am_cv_CC_dependencies_compiler_type=$depmode
3859        break
3860      fi
3861    fi
3862  done
3863
3864  cd ..
3865  rm -rf conftest.dir
3866else
3867  am_cv_CC_dependencies_compiler_type=none
3868fi
3869
3870fi
3871{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3872$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3873CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3874
3875 if
3876  test "x$enable_dependency_tracking" != xno \
3877  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3878  am__fastdepCC_TRUE=
3879  am__fastdepCC_FALSE='#'
3880else
3881  am__fastdepCC_TRUE='#'
3882  am__fastdepCC_FALSE=
3883fi
3884
3885
3886
3887ac_ext=c
3888ac_cpp='$CPP $CPPFLAGS'
3889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3893$as_echo_n "checking how to run the C preprocessor... " >&6; }
3894# On Suns, sometimes $CPP names a directory.
3895if test -n "$CPP" && test -d "$CPP"; then
3896  CPP=
3897fi
3898if test -z "$CPP"; then
3899  if test "${ac_cv_prog_CPP+set}" = set; then
3900  $as_echo_n "(cached) " >&6
3901else
3902      # Double quotes because CPP needs to be expanded
3903    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3904    do
3905      ac_preproc_ok=false
3906for ac_c_preproc_warn_flag in '' yes
3907do
3908  # Use a header file that comes with gcc, so configuring glibc
3909  # with a fresh cross-compiler works.
3910  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911  # <limits.h> exists even on freestanding compilers.
3912  # On the NeXT, cc -E runs the code through the compiler's parser,
3913  # not just through cpp. "Syntax error" is here to catch this case.
3914  cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h.  */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h.  */
3920#ifdef __STDC__
3921# include <limits.h>
3922#else
3923# include <assert.h>
3924#endif
3925		     Syntax error
3926_ACEOF
3927if { (ac_try="$ac_cpp conftest.$ac_ext"
3928case "(($ac_try" in
3929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930  *) ac_try_echo=$ac_try;;
3931esac
3932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933$as_echo "$ac_try_echo") >&5
3934  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935  ac_status=$?
3936  grep -v '^ *+' conftest.er1 >conftest.err
3937  rm -f conftest.er1
3938  cat conftest.err >&5
3939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); } >/dev/null && {
3941	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942	 test ! -s conftest.err
3943       }; then
3944  :
3945else
3946  $as_echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949  # Broken: fails on valid input.
3950continue
3951fi
3952
3953rm -f conftest.err conftest.$ac_ext
3954
3955  # OK, works on sane cases.  Now check whether nonexistent headers
3956  # can be detected and how.
3957  cat >conftest.$ac_ext <<_ACEOF
3958/* confdefs.h.  */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
3962/* end confdefs.h.  */
3963#include <ac_nonexistent.h>
3964_ACEOF
3965if { (ac_try="$ac_cpp conftest.$ac_ext"
3966case "(($ac_try" in
3967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968  *) ac_try_echo=$ac_try;;
3969esac
3970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971$as_echo "$ac_try_echo") >&5
3972  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3973  ac_status=$?
3974  grep -v '^ *+' conftest.er1 >conftest.err
3975  rm -f conftest.er1
3976  cat conftest.err >&5
3977  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978  (exit $ac_status); } >/dev/null && {
3979	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3980	 test ! -s conftest.err
3981       }; then
3982  # Broken: success on invalid input.
3983continue
3984else
3985  $as_echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988  # Passes both tests.
3989ac_preproc_ok=:
3990break
3991fi
3992
3993rm -f conftest.err conftest.$ac_ext
3994
3995done
3996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997rm -f conftest.err conftest.$ac_ext
3998if $ac_preproc_ok; then
3999  break
4000fi
4001
4002    done
4003    ac_cv_prog_CPP=$CPP
4004
4005fi
4006  CPP=$ac_cv_prog_CPP
4007else
4008  ac_cv_prog_CPP=$CPP
4009fi
4010{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4011$as_echo "$CPP" >&6; }
4012ac_preproc_ok=false
4013for ac_c_preproc_warn_flag in '' yes
4014do
4015  # Use a header file that comes with gcc, so configuring glibc
4016  # with a fresh cross-compiler works.
4017  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018  # <limits.h> exists even on freestanding compilers.
4019  # On the NeXT, cc -E runs the code through the compiler's parser,
4020  # not just through cpp. "Syntax error" is here to catch this case.
4021  cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h.  */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h.  */
4027#ifdef __STDC__
4028# include <limits.h>
4029#else
4030# include <assert.h>
4031#endif
4032		     Syntax error
4033_ACEOF
4034if { (ac_try="$ac_cpp conftest.$ac_ext"
4035case "(($ac_try" in
4036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037  *) ac_try_echo=$ac_try;;
4038esac
4039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040$as_echo "$ac_try_echo") >&5
4041  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042  ac_status=$?
4043  grep -v '^ *+' conftest.er1 >conftest.err
4044  rm -f conftest.er1
4045  cat conftest.err >&5
4046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); } >/dev/null && {
4048	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049	 test ! -s conftest.err
4050       }; then
4051  :
4052else
4053  $as_echo "$as_me: failed program was:" >&5
4054sed 's/^/| /' conftest.$ac_ext >&5
4055
4056  # Broken: fails on valid input.
4057continue
4058fi
4059
4060rm -f conftest.err conftest.$ac_ext
4061
4062  # OK, works on sane cases.  Now check whether nonexistent headers
4063  # can be detected and how.
4064  cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070#include <ac_nonexistent.h>
4071_ACEOF
4072if { (ac_try="$ac_cpp conftest.$ac_ext"
4073case "(($ac_try" in
4074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075  *) ac_try_echo=$ac_try;;
4076esac
4077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078$as_echo "$ac_try_echo") >&5
4079  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4080  ac_status=$?
4081  grep -v '^ *+' conftest.er1 >conftest.err
4082  rm -f conftest.er1
4083  cat conftest.err >&5
4084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085  (exit $ac_status); } >/dev/null && {
4086	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087	 test ! -s conftest.err
4088       }; then
4089  # Broken: success on invalid input.
4090continue
4091else
4092  $as_echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095  # Passes both tests.
4096ac_preproc_ok=:
4097break
4098fi
4099
4100rm -f conftest.err conftest.$ac_ext
4101
4102done
4103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104rm -f conftest.err conftest.$ac_ext
4105if $ac_preproc_ok; then
4106  :
4107else
4108  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4111See \`config.log' for more details." >&5
4112$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4113See \`config.log' for more details." >&2;}
4114   { (exit 1); exit 1; }; }; }
4115fi
4116
4117ac_ext=c
4118ac_cpp='$CPP $CPPFLAGS'
4119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122
4123
4124{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4125$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4126if test "${ac_cv_path_GREP+set}" = set; then
4127  $as_echo_n "(cached) " >&6
4128else
4129  if test -z "$GREP"; then
4130  ac_path_GREP_found=false
4131  # Loop through the user's path and test for each of PROGNAME-LIST
4132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134do
4135  IFS=$as_save_IFS
4136  test -z "$as_dir" && as_dir=.
4137  for ac_prog in grep ggrep; do
4138    for ac_exec_ext in '' $ac_executable_extensions; do
4139      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4140      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4141# Check for GNU ac_path_GREP and select it if it is found.
4142  # Check for GNU $ac_path_GREP
4143case `"$ac_path_GREP" --version 2>&1` in
4144*GNU*)
4145  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4146*)
4147  ac_count=0
4148  $as_echo_n 0123456789 >"conftest.in"
4149  while :
4150  do
4151    cat "conftest.in" "conftest.in" >"conftest.tmp"
4152    mv "conftest.tmp" "conftest.in"
4153    cp "conftest.in" "conftest.nl"
4154    $as_echo 'GREP' >> "conftest.nl"
4155    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157    ac_count=`expr $ac_count + 1`
4158    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4159      # Best one so far, save it but keep looking for a better one
4160      ac_cv_path_GREP="$ac_path_GREP"
4161      ac_path_GREP_max=$ac_count
4162    fi
4163    # 10*(2^10) chars as input seems more than enough
4164    test $ac_count -gt 10 && break
4165  done
4166  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167esac
4168
4169      $ac_path_GREP_found && break 3
4170    done
4171  done
4172done
4173IFS=$as_save_IFS
4174  if test -z "$ac_cv_path_GREP"; then
4175    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4176$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4177   { (exit 1); exit 1; }; }
4178  fi
4179else
4180  ac_cv_path_GREP=$GREP
4181fi
4182
4183fi
4184{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4185$as_echo "$ac_cv_path_GREP" >&6; }
4186 GREP="$ac_cv_path_GREP"
4187
4188
4189{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4190$as_echo_n "checking for egrep... " >&6; }
4191if test "${ac_cv_path_EGREP+set}" = set; then
4192  $as_echo_n "(cached) " >&6
4193else
4194  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195   then ac_cv_path_EGREP="$GREP -E"
4196   else
4197     if test -z "$EGREP"; then
4198  ac_path_EGREP_found=false
4199  # Loop through the user's path and test for each of PROGNAME-LIST
4200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202do
4203  IFS=$as_save_IFS
4204  test -z "$as_dir" && as_dir=.
4205  for ac_prog in egrep; do
4206    for ac_exec_ext in '' $ac_executable_extensions; do
4207      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4208      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4209# Check for GNU ac_path_EGREP and select it if it is found.
4210  # Check for GNU $ac_path_EGREP
4211case `"$ac_path_EGREP" --version 2>&1` in
4212*GNU*)
4213  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4214*)
4215  ac_count=0
4216  $as_echo_n 0123456789 >"conftest.in"
4217  while :
4218  do
4219    cat "conftest.in" "conftest.in" >"conftest.tmp"
4220    mv "conftest.tmp" "conftest.in"
4221    cp "conftest.in" "conftest.nl"
4222    $as_echo 'EGREP' >> "conftest.nl"
4223    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225    ac_count=`expr $ac_count + 1`
4226    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227      # Best one so far, save it but keep looking for a better one
4228      ac_cv_path_EGREP="$ac_path_EGREP"
4229      ac_path_EGREP_max=$ac_count
4230    fi
4231    # 10*(2^10) chars as input seems more than enough
4232    test $ac_count -gt 10 && break
4233  done
4234  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235esac
4236
4237      $ac_path_EGREP_found && break 3
4238    done
4239  done
4240done
4241IFS=$as_save_IFS
4242  if test -z "$ac_cv_path_EGREP"; then
4243    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4244$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4245   { (exit 1); exit 1; }; }
4246  fi
4247else
4248  ac_cv_path_EGREP=$EGREP
4249fi
4250
4251   fi
4252fi
4253{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4254$as_echo "$ac_cv_path_EGREP" >&6; }
4255 EGREP="$ac_cv_path_EGREP"
4256
4257
4258{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259$as_echo_n "checking for ANSI C header files... " >&6; }
4260if test "${ac_cv_header_stdc+set}" = set; then
4261  $as_echo_n "(cached) " >&6
4262else
4263  cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h.  */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h.  */
4269#include <stdlib.h>
4270#include <stdarg.h>
4271#include <string.h>
4272#include <float.h>
4273
4274int
4275main ()
4276{
4277
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (ac_try="$ac_compile"
4284case "(($ac_try" in
4285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286  *) ac_try_echo=$ac_try;;
4287esac
4288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289$as_echo "$ac_try_echo") >&5
4290  (eval "$ac_compile") 2>conftest.er1
4291  ac_status=$?
4292  grep -v '^ *+' conftest.er1 >conftest.err
4293  rm -f conftest.er1
4294  cat conftest.err >&5
4295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); } && {
4297	 test -z "$ac_c_werror_flag" ||
4298	 test ! -s conftest.err
4299       } && test -s conftest.$ac_objext; then
4300  ac_cv_header_stdc=yes
4301else
4302  $as_echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
4305	ac_cv_header_stdc=no
4306fi
4307
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309
4310if test $ac_cv_header_stdc = yes; then
4311  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312  cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h.  */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h.  */
4318#include <string.h>
4319
4320_ACEOF
4321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322  $EGREP "memchr" >/dev/null 2>&1; then
4323  :
4324else
4325  ac_cv_header_stdc=no
4326fi
4327rm -f conftest*
4328
4329fi
4330
4331if test $ac_cv_header_stdc = yes; then
4332  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333  cat >conftest.$ac_ext <<_ACEOF
4334/* confdefs.h.  */
4335_ACEOF
4336cat confdefs.h >>conftest.$ac_ext
4337cat >>conftest.$ac_ext <<_ACEOF
4338/* end confdefs.h.  */
4339#include <stdlib.h>
4340
4341_ACEOF
4342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343  $EGREP "free" >/dev/null 2>&1; then
4344  :
4345else
4346  ac_cv_header_stdc=no
4347fi
4348rm -f conftest*
4349
4350fi
4351
4352if test $ac_cv_header_stdc = yes; then
4353  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354  if test "$cross_compiling" = yes; then
4355  :
4356else
4357  cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h.  */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h.  */
4363#include <ctype.h>
4364#include <stdlib.h>
4365#if ((' ' & 0x0FF) == 0x020)
4366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4368#else
4369# define ISLOWER(c) \
4370		   (('a' <= (c) && (c) <= 'i') \
4371		     || ('j' <= (c) && (c) <= 'r') \
4372		     || ('s' <= (c) && (c) <= 'z'))
4373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374#endif
4375
4376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4377int
4378main ()
4379{
4380  int i;
4381  for (i = 0; i < 256; i++)
4382    if (XOR (islower (i), ISLOWER (i))
4383	|| toupper (i) != TOUPPER (i))
4384      return 2;
4385  return 0;
4386}
4387_ACEOF
4388rm -f conftest$ac_exeext
4389if { (ac_try="$ac_link"
4390case "(($ac_try" in
4391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392  *) ac_try_echo=$ac_try;;
4393esac
4394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4395$as_echo "$ac_try_echo") >&5
4396  (eval "$ac_link") 2>&5
4397  ac_status=$?
4398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4400  { (case "(($ac_try" in
4401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402  *) ac_try_echo=$ac_try;;
4403esac
4404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4405$as_echo "$ac_try_echo") >&5
4406  (eval "$ac_try") 2>&5
4407  ac_status=$?
4408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); }; }; then
4410  :
4411else
4412  $as_echo "$as_me: program exited with status $ac_status" >&5
4413$as_echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416( exit $ac_status )
4417ac_cv_header_stdc=no
4418fi
4419rm -rf conftest.dSYM
4420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4421fi
4422
4423
4424fi
4425fi
4426{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4427$as_echo "$ac_cv_header_stdc" >&6; }
4428if test $ac_cv_header_stdc = yes; then
4429
4430cat >>confdefs.h <<\_ACEOF
4431#define STDC_HEADERS 1
4432_ACEOF
4433
4434fi
4435
4436# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4447		  inttypes.h stdint.h unistd.h
4448do
4449as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4450{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4451$as_echo_n "checking for $ac_header... " >&6; }
4452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4453  $as_echo_n "(cached) " >&6
4454else
4455  cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h.  */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h.  */
4461$ac_includes_default
4462
4463#include <$ac_header>
4464_ACEOF
4465rm -f conftest.$ac_objext
4466if { (ac_try="$ac_compile"
4467case "(($ac_try" in
4468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469  *) ac_try_echo=$ac_try;;
4470esac
4471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4472$as_echo "$ac_try_echo") >&5
4473  (eval "$ac_compile") 2>conftest.er1
4474  ac_status=$?
4475  grep -v '^ *+' conftest.er1 >conftest.err
4476  rm -f conftest.er1
4477  cat conftest.err >&5
4478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479  (exit $ac_status); } && {
4480	 test -z "$ac_c_werror_flag" ||
4481	 test ! -s conftest.err
4482       } && test -s conftest.$ac_objext; then
4483  eval "$as_ac_Header=yes"
4484else
4485  $as_echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488	eval "$as_ac_Header=no"
4489fi
4490
4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492fi
4493ac_res=`eval 'as_val=${'$as_ac_Header'}
4494		 $as_echo "$as_val"'`
4495	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4496$as_echo "$ac_res" >&6; }
4497as_val=`eval 'as_val=${'$as_ac_Header'}
4498		 $as_echo "$as_val"'`
4499   if test "x$as_val" = x""yes; then
4500  cat >>confdefs.h <<_ACEOF
4501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502_ACEOF
4503
4504fi
4505
4506done
4507
4508
4509
4510  if test "${ac_cv_header_minix_config_h+set}" = set; then
4511  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4512$as_echo_n "checking for minix/config.h... " >&6; }
4513if test "${ac_cv_header_minix_config_h+set}" = set; then
4514  $as_echo_n "(cached) " >&6
4515fi
4516{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4517$as_echo "$ac_cv_header_minix_config_h" >&6; }
4518else
4519  # Is the header compilable?
4520{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4521$as_echo_n "checking minix/config.h usability... " >&6; }
4522cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h.  */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h.  */
4528$ac_includes_default
4529#include <minix/config.h>
4530_ACEOF
4531rm -f conftest.$ac_objext
4532if { (ac_try="$ac_compile"
4533case "(($ac_try" in
4534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535  *) ac_try_echo=$ac_try;;
4536esac
4537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4538$as_echo "$ac_try_echo") >&5
4539  (eval "$ac_compile") 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } && {
4546	 test -z "$ac_c_werror_flag" ||
4547	 test ! -s conftest.err
4548       } && test -s conftest.$ac_objext; then
4549  ac_header_compiler=yes
4550else
4551  $as_echo "$as_me: failed program was:" >&5
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554	ac_header_compiler=no
4555fi
4556
4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4559$as_echo "$ac_header_compiler" >&6; }
4560
4561# Is the header present?
4562{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4563$as_echo_n "checking minix/config.h presence... " >&6; }
4564cat >conftest.$ac_ext <<_ACEOF
4565/* confdefs.h.  */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h.  */
4570#include <minix/config.h>
4571_ACEOF
4572if { (ac_try="$ac_cpp conftest.$ac_ext"
4573case "(($ac_try" in
4574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575  *) ac_try_echo=$ac_try;;
4576esac
4577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4578$as_echo "$ac_try_echo") >&5
4579  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580  ac_status=$?
4581  grep -v '^ *+' conftest.er1 >conftest.err
4582  rm -f conftest.er1
4583  cat conftest.err >&5
4584  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); } >/dev/null && {
4586	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587	 test ! -s conftest.err
4588       }; then
4589  ac_header_preproc=yes
4590else
4591  $as_echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594  ac_header_preproc=no
4595fi
4596
4597rm -f conftest.err conftest.$ac_ext
4598{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4599$as_echo "$ac_header_preproc" >&6; }
4600
4601# So?  What about this header?
4602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4603  yes:no: )
4604    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4605$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4606    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4607$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4608    ac_header_preproc=yes
4609    ;;
4610  no:yes:* )
4611    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4612$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4613    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4614$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4615    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4616$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4617    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4618$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4619    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4620$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4621    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4622$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4623    ( cat <<\_ASBOX
4624## ---------------------------------------------------------------------- ##
4625## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4626## ---------------------------------------------------------------------- ##
4627_ASBOX
4628     ) | sed "s/^/$as_me: WARNING:     /" >&2
4629    ;;
4630esac
4631{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4632$as_echo_n "checking for minix/config.h... " >&6; }
4633if test "${ac_cv_header_minix_config_h+set}" = set; then
4634  $as_echo_n "(cached) " >&6
4635else
4636  ac_cv_header_minix_config_h=$ac_header_preproc
4637fi
4638{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4639$as_echo "$ac_cv_header_minix_config_h" >&6; }
4640
4641fi
4642if test "x$ac_cv_header_minix_config_h" = x""yes; then
4643  MINIX=yes
4644else
4645  MINIX=
4646fi
4647
4648
4649  if test "$MINIX" = yes; then
4650
4651cat >>confdefs.h <<\_ACEOF
4652#define _POSIX_SOURCE 1
4653_ACEOF
4654
4655
4656cat >>confdefs.h <<\_ACEOF
4657#define _POSIX_1_SOURCE 2
4658_ACEOF
4659
4660
4661cat >>confdefs.h <<\_ACEOF
4662#define _MINIX 1
4663_ACEOF
4664
4665  fi
4666
4667
4668
4669  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4670$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4671if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4672  $as_echo_n "(cached) " >&6
4673else
4674  cat >conftest.$ac_ext <<_ACEOF
4675/* confdefs.h.  */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h.  */
4680
4681#	  define __EXTENSIONS__ 1
4682	  $ac_includes_default
4683int
4684main ()
4685{
4686
4687  ;
4688  return 0;
4689}
4690_ACEOF
4691rm -f conftest.$ac_objext
4692if { (ac_try="$ac_compile"
4693case "(($ac_try" in
4694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695  *) ac_try_echo=$ac_try;;
4696esac
4697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4698$as_echo "$ac_try_echo") >&5
4699  (eval "$ac_compile") 2>conftest.er1
4700  ac_status=$?
4701  grep -v '^ *+' conftest.er1 >conftest.err
4702  rm -f conftest.er1
4703  cat conftest.err >&5
4704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705  (exit $ac_status); } && {
4706	 test -z "$ac_c_werror_flag" ||
4707	 test ! -s conftest.err
4708       } && test -s conftest.$ac_objext; then
4709  ac_cv_safe_to_define___extensions__=yes
4710else
4711  $as_echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714	ac_cv_safe_to_define___extensions__=no
4715fi
4716
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718fi
4719{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4720$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4721  test $ac_cv_safe_to_define___extensions__ = yes &&
4722    cat >>confdefs.h <<\_ACEOF
4723#define __EXTENSIONS__ 1
4724_ACEOF
4725
4726  cat >>confdefs.h <<\_ACEOF
4727#define _ALL_SOURCE 1
4728_ACEOF
4729
4730  cat >>confdefs.h <<\_ACEOF
4731#define _GNU_SOURCE 1
4732_ACEOF
4733
4734  cat >>confdefs.h <<\_ACEOF
4735#define _POSIX_PTHREAD_SEMANTICS 1
4736_ACEOF
4737
4738  cat >>confdefs.h <<\_ACEOF
4739#define _TANDEM_SOURCE 1
4740_ACEOF
4741
4742
4743
4744# Checks for programs.
4745case `pwd` in
4746  *\ * | *\	*)
4747    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4748$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4749esac
4750
4751
4752
4753macro_version='2.2.6'
4754macro_revision='1.3012'
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768ltmain="$ac_aux_dir/ltmain.sh"
4769
4770# Make sure we can run config.sub.
4771$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4772  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4773$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4774   { (exit 1); exit 1; }; }
4775
4776{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4777$as_echo_n "checking build system type... " >&6; }
4778if test "${ac_cv_build+set}" = set; then
4779  $as_echo_n "(cached) " >&6
4780else
4781  ac_build_alias=$build_alias
4782test "x$ac_build_alias" = x &&
4783  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4784test "x$ac_build_alias" = x &&
4785  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4786$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4787   { (exit 1); exit 1; }; }
4788ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4789  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4790$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4791   { (exit 1); exit 1; }; }
4792
4793fi
4794{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4795$as_echo "$ac_cv_build" >&6; }
4796case $ac_cv_build in
4797*-*-*) ;;
4798*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4799$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4800   { (exit 1); exit 1; }; };;
4801esac
4802build=$ac_cv_build
4803ac_save_IFS=$IFS; IFS='-'
4804set x $ac_cv_build
4805shift
4806build_cpu=$1
4807build_vendor=$2
4808shift; shift
4809# Remember, the first character of IFS is used to create $*,
4810# except with old shells:
4811build_os=$*
4812IFS=$ac_save_IFS
4813case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4814
4815
4816{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4817$as_echo_n "checking host system type... " >&6; }
4818if test "${ac_cv_host+set}" = set; then
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test "x$host_alias" = x; then
4822  ac_cv_host=$ac_cv_build
4823else
4824  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4825    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4826$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4827   { (exit 1); exit 1; }; }
4828fi
4829
4830fi
4831{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4832$as_echo "$ac_cv_host" >&6; }
4833case $ac_cv_host in
4834*-*-*) ;;
4835*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4836$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4837   { (exit 1); exit 1; }; };;
4838esac
4839host=$ac_cv_host
4840ac_save_IFS=$IFS; IFS='-'
4841set x $ac_cv_host
4842shift
4843host_cpu=$1
4844host_vendor=$2
4845shift; shift
4846# Remember, the first character of IFS is used to create $*,
4847# except with old shells:
4848host_os=$*
4849IFS=$ac_save_IFS
4850case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4851
4852
4853{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4854$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4855if test "${ac_cv_path_SED+set}" = set; then
4856  $as_echo_n "(cached) " >&6
4857else
4858            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4859     for ac_i in 1 2 3 4 5 6 7; do
4860       ac_script="$ac_script$as_nl$ac_script"
4861     done
4862     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4863     $as_unset ac_script || ac_script=
4864     if test -z "$SED"; then
4865  ac_path_SED_found=false
4866  # Loop through the user's path and test for each of PROGNAME-LIST
4867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870  IFS=$as_save_IFS
4871  test -z "$as_dir" && as_dir=.
4872  for ac_prog in sed gsed; do
4873    for ac_exec_ext in '' $ac_executable_extensions; do
4874      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4875      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4876# Check for GNU ac_path_SED and select it if it is found.
4877  # Check for GNU $ac_path_SED
4878case `"$ac_path_SED" --version 2>&1` in
4879*GNU*)
4880  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4881*)
4882  ac_count=0
4883  $as_echo_n 0123456789 >"conftest.in"
4884  while :
4885  do
4886    cat "conftest.in" "conftest.in" >"conftest.tmp"
4887    mv "conftest.tmp" "conftest.in"
4888    cp "conftest.in" "conftest.nl"
4889    $as_echo '' >> "conftest.nl"
4890    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892    ac_count=`expr $ac_count + 1`
4893    if test $ac_count -gt ${ac_path_SED_max-0}; then
4894      # Best one so far, save it but keep looking for a better one
4895      ac_cv_path_SED="$ac_path_SED"
4896      ac_path_SED_max=$ac_count
4897    fi
4898    # 10*(2^10) chars as input seems more than enough
4899    test $ac_count -gt 10 && break
4900  done
4901  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902esac
4903
4904      $ac_path_SED_found && break 3
4905    done
4906  done
4907done
4908IFS=$as_save_IFS
4909  if test -z "$ac_cv_path_SED"; then
4910    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4911$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4912   { (exit 1); exit 1; }; }
4913  fi
4914else
4915  ac_cv_path_SED=$SED
4916fi
4917
4918fi
4919{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4920$as_echo "$ac_cv_path_SED" >&6; }
4921 SED="$ac_cv_path_SED"
4922  rm -f conftest.sed
4923
4924test -z "$SED" && SED=sed
4925Xsed="$SED -e 1s/^X//"
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4938$as_echo_n "checking for fgrep... " >&6; }
4939if test "${ac_cv_path_FGREP+set}" = set; then
4940  $as_echo_n "(cached) " >&6
4941else
4942  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4943   then ac_cv_path_FGREP="$GREP -F"
4944   else
4945     if test -z "$FGREP"; then
4946  ac_path_FGREP_found=false
4947  # Loop through the user's path and test for each of PROGNAME-LIST
4948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4950do
4951  IFS=$as_save_IFS
4952  test -z "$as_dir" && as_dir=.
4953  for ac_prog in fgrep; do
4954    for ac_exec_ext in '' $ac_executable_extensions; do
4955      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4956      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4957# Check for GNU ac_path_FGREP and select it if it is found.
4958  # Check for GNU $ac_path_FGREP
4959case `"$ac_path_FGREP" --version 2>&1` in
4960*GNU*)
4961  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4962*)
4963  ac_count=0
4964  $as_echo_n 0123456789 >"conftest.in"
4965  while :
4966  do
4967    cat "conftest.in" "conftest.in" >"conftest.tmp"
4968    mv "conftest.tmp" "conftest.in"
4969    cp "conftest.in" "conftest.nl"
4970    $as_echo 'FGREP' >> "conftest.nl"
4971    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4972    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4973    ac_count=`expr $ac_count + 1`
4974    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4975      # Best one so far, save it but keep looking for a better one
4976      ac_cv_path_FGREP="$ac_path_FGREP"
4977      ac_path_FGREP_max=$ac_count
4978    fi
4979    # 10*(2^10) chars as input seems more than enough
4980    test $ac_count -gt 10 && break
4981  done
4982  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983esac
4984
4985      $ac_path_FGREP_found && break 3
4986    done
4987  done
4988done
4989IFS=$as_save_IFS
4990  if test -z "$ac_cv_path_FGREP"; then
4991    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4992$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4993   { (exit 1); exit 1; }; }
4994  fi
4995else
4996  ac_cv_path_FGREP=$FGREP
4997fi
4998
4999   fi
5000fi
5001{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5002$as_echo "$ac_cv_path_FGREP" >&6; }
5003 FGREP="$ac_cv_path_FGREP"
5004
5005
5006test -z "$GREP" && GREP=grep
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026# Check whether --with-gnu-ld was given.
5027if test "${with_gnu_ld+set}" = set; then
5028  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5029else
5030  with_gnu_ld=no
5031fi
5032
5033ac_prog=ld
5034if test "$GCC" = yes; then
5035  # Check if gcc -print-prog-name=ld gives a path.
5036  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5037$as_echo_n "checking for ld used by $CC... " >&6; }
5038  case $host in
5039  *-*-mingw*)
5040    # gcc leaves a trailing carriage return which upsets mingw
5041    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5042  *)
5043    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5044  esac
5045  case $ac_prog in
5046    # Accept absolute paths.
5047    [\\/]* | ?:[\\/]*)
5048      re_direlt='/[^/][^/]*/\.\./'
5049      # Canonicalize the pathname of ld
5050      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5051      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5052	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5053      done
5054      test -z "$LD" && LD="$ac_prog"
5055      ;;
5056  "")
5057    # If it fails, then pretend we aren't using GCC.
5058    ac_prog=ld
5059    ;;
5060  *)
5061    # If it is relative, then search for the first ld in PATH.
5062    with_gnu_ld=unknown
5063    ;;
5064  esac
5065elif test "$with_gnu_ld" = yes; then
5066  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5067$as_echo_n "checking for GNU ld... " >&6; }
5068else
5069  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5070$as_echo_n "checking for non-GNU ld... " >&6; }
5071fi
5072if test "${lt_cv_path_LD+set}" = set; then
5073  $as_echo_n "(cached) " >&6
5074else
5075  if test -z "$LD"; then
5076  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5077  for ac_dir in $PATH; do
5078    IFS="$lt_save_ifs"
5079    test -z "$ac_dir" && ac_dir=.
5080    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5081      lt_cv_path_LD="$ac_dir/$ac_prog"
5082      # Check to see if the program is GNU ld.  I'd rather use --version,
5083      # but apparently some variants of GNU ld only accept -v.
5084      # Break only if it was the GNU/non-GNU ld that we prefer.
5085      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5086      *GNU* | *'with BFD'*)
5087	test "$with_gnu_ld" != no && break
5088	;;
5089      *)
5090	test "$with_gnu_ld" != yes && break
5091	;;
5092      esac
5093    fi
5094  done
5095  IFS="$lt_save_ifs"
5096else
5097  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5098fi
5099fi
5100
5101LD="$lt_cv_path_LD"
5102if test -n "$LD"; then
5103  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5104$as_echo "$LD" >&6; }
5105else
5106  { $as_echo "$as_me:$LINENO: result: no" >&5
5107$as_echo "no" >&6; }
5108fi
5109test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5110$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5111   { (exit 1); exit 1; }; }
5112{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5113$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5114if test "${lt_cv_prog_gnu_ld+set}" = set; then
5115  $as_echo_n "(cached) " >&6
5116else
5117  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5118case `$LD -v 2>&1 </dev/null` in
5119*GNU* | *'with BFD'*)
5120  lt_cv_prog_gnu_ld=yes
5121  ;;
5122*)
5123  lt_cv_prog_gnu_ld=no
5124  ;;
5125esac
5126fi
5127{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5128$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5129with_gnu_ld=$lt_cv_prog_gnu_ld
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5140$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5141if test "${lt_cv_path_NM+set}" = set; then
5142  $as_echo_n "(cached) " >&6
5143else
5144  if test -n "$NM"; then
5145  # Let the user override the test.
5146  lt_cv_path_NM="$NM"
5147else
5148  lt_nm_to_check="${ac_tool_prefix}nm"
5149  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5150    lt_nm_to_check="$lt_nm_to_check nm"
5151  fi
5152  for lt_tmp_nm in $lt_nm_to_check; do
5153    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5154    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5155      IFS="$lt_save_ifs"
5156      test -z "$ac_dir" && ac_dir=.
5157      tmp_nm="$ac_dir/$lt_tmp_nm"
5158      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5159	# Check to see if the nm accepts a BSD-compat flag.
5160	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5161	#   nm: unknown option "B" ignored
5162	# Tru64's nm complains that /dev/null is an invalid object file
5163	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5164	*/dev/null* | *'Invalid file or object type'*)
5165	  lt_cv_path_NM="$tmp_nm -B"
5166	  break
5167	  ;;
5168	*)
5169	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5170	  */dev/null*)
5171	    lt_cv_path_NM="$tmp_nm -p"
5172	    break
5173	    ;;
5174	  *)
5175	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5176	    continue # so that we can try to find one that supports BSD flags
5177	    ;;
5178	  esac
5179	  ;;
5180	esac
5181      fi
5182    done
5183    IFS="$lt_save_ifs"
5184  done
5185  : ${lt_cv_path_NM=no}
5186fi
5187fi
5188{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5189$as_echo "$lt_cv_path_NM" >&6; }
5190if test "$lt_cv_path_NM" != "no"; then
5191  NM="$lt_cv_path_NM"
5192else
5193  # Didn't find any BSD compatible name lister, look for dumpbin.
5194  if test -n "$ac_tool_prefix"; then
5195  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5196  do
5197    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
5201if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5202  $as_echo_n "(cached) " >&6
5203else
5204  if test -n "$DUMPBIN"; then
5205  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212  for ac_exec_ext in '' $ac_executable_extensions; do
5213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5215    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219done
5220IFS=$as_save_IFS
5221
5222fi
5223fi
5224DUMPBIN=$ac_cv_prog_DUMPBIN
5225if test -n "$DUMPBIN"; then
5226  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5227$as_echo "$DUMPBIN" >&6; }
5228else
5229  { $as_echo "$as_me:$LINENO: result: no" >&5
5230$as_echo "no" >&6; }
5231fi
5232
5233
5234    test -n "$DUMPBIN" && break
5235  done
5236fi
5237if test -z "$DUMPBIN"; then
5238  ac_ct_DUMPBIN=$DUMPBIN
5239  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5240do
5241  # Extract the first word of "$ac_prog", so it can be a program name with args.
5242set dummy $ac_prog; ac_word=$2
5243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5246  $as_echo_n "(cached) " >&6
5247else
5248  if test -n "$ac_ct_DUMPBIN"; then
5249  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254  IFS=$as_save_IFS
5255  test -z "$as_dir" && as_dir=.
5256  for ac_exec_ext in '' $ac_executable_extensions; do
5257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5259    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260    break 2
5261  fi
5262done
5263done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5269if test -n "$ac_ct_DUMPBIN"; then
5270  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5271$as_echo "$ac_ct_DUMPBIN" >&6; }
5272else
5273  { $as_echo "$as_me:$LINENO: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277
5278  test -n "$ac_ct_DUMPBIN" && break
5279done
5280
5281  if test "x$ac_ct_DUMPBIN" = x; then
5282    DUMPBIN=":"
5283  else
5284    case $cross_compiling:$ac_tool_warned in
5285yes:)
5286{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288ac_tool_warned=yes ;;
5289esac
5290    DUMPBIN=$ac_ct_DUMPBIN
5291  fi
5292fi
5293
5294
5295  if test "$DUMPBIN" != ":"; then
5296    NM="$DUMPBIN"
5297  fi
5298fi
5299test -z "$NM" && NM=nm
5300
5301
5302
5303
5304
5305
5306{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5307$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5308if test "${lt_cv_nm_interface+set}" = set; then
5309  $as_echo_n "(cached) " >&6
5310else
5311  lt_cv_nm_interface="BSD nm"
5312  echo "int some_variable = 0;" > conftest.$ac_ext
5313  (eval echo "\"\$as_me:5313: $ac_compile\"" >&5)
5314  (eval "$ac_compile" 2>conftest.err)
5315  cat conftest.err >&5
5316  (eval echo "\"\$as_me:5316: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5317  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5318  cat conftest.err >&5
5319  (eval echo "\"\$as_me:5319: output\"" >&5)
5320  cat conftest.out >&5
5321  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5322    lt_cv_nm_interface="MS dumpbin"
5323  fi
5324  rm -f conftest*
5325fi
5326{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5327$as_echo "$lt_cv_nm_interface" >&6; }
5328
5329{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5330$as_echo_n "checking whether ln -s works... " >&6; }
5331LN_S=$as_ln_s
5332if test "$LN_S" = "ln -s"; then
5333  { $as_echo "$as_me:$LINENO: result: yes" >&5
5334$as_echo "yes" >&6; }
5335else
5336  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5337$as_echo "no, using $LN_S" >&6; }
5338fi
5339
5340# find the maximum length of command line arguments
5341{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5342$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5343if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5344  $as_echo_n "(cached) " >&6
5345else
5346    i=0
5347  teststring="ABCD"
5348
5349  case $build_os in
5350  msdosdjgpp*)
5351    # On DJGPP, this test can blow up pretty badly due to problems in libc
5352    # (any single argument exceeding 2000 bytes causes a buffer overrun
5353    # during glob expansion).  Even if it were fixed, the result of this
5354    # check would be larger than it should be.
5355    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5356    ;;
5357
5358  gnu*)
5359    # Under GNU Hurd, this test is not required because there is
5360    # no limit to the length of command line arguments.
5361    # Libtool will interpret -1 as no limit whatsoever
5362    lt_cv_sys_max_cmd_len=-1;
5363    ;;
5364
5365  cygwin* | mingw* | cegcc*)
5366    # On Win9x/ME, this test blows up -- it succeeds, but takes
5367    # about 5 minutes as the teststring grows exponentially.
5368    # Worse, since 9x/ME are not pre-emptively multitasking,
5369    # you end up with a "frozen" computer, even though with patience
5370    # the test eventually succeeds (with a max line length of 256k).
5371    # Instead, let's just punt: use the minimum linelength reported by
5372    # all of the supported platforms: 8192 (on NT/2K/XP).
5373    lt_cv_sys_max_cmd_len=8192;
5374    ;;
5375
5376  amigaos*)
5377    # On AmigaOS with pdksh, this test takes hours, literally.
5378    # So we just punt and use a minimum line length of 8192.
5379    lt_cv_sys_max_cmd_len=8192;
5380    ;;
5381
5382  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5383    # This has been around since 386BSD, at least.  Likely further.
5384    if test -x /sbin/sysctl; then
5385      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5386    elif test -x /usr/sbin/sysctl; then
5387      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5388    else
5389      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5390    fi
5391    # And add a safety zone
5392    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394    ;;
5395
5396  interix*)
5397    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5398    lt_cv_sys_max_cmd_len=196608
5399    ;;
5400
5401  osf*)
5402    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5403    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5404    # nice to cause kernel panics so lets avoid the loop below.
5405    # First set a reasonable default.
5406    lt_cv_sys_max_cmd_len=16384
5407    #
5408    if test -x /sbin/sysconfig; then
5409      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5410        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5411      esac
5412    fi
5413    ;;
5414  sco3.2v5*)
5415    lt_cv_sys_max_cmd_len=102400
5416    ;;
5417  sysv5* | sco5v6* | sysv4.2uw2*)
5418    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5419    if test -n "$kargmax"; then
5420      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5421    else
5422      lt_cv_sys_max_cmd_len=32768
5423    fi
5424    ;;
5425  *)
5426    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5427    if test -n "$lt_cv_sys_max_cmd_len"; then
5428      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430    else
5431      # Make teststring a little bigger before we do anything with it.
5432      # a 1K string should be a reasonable start.
5433      for i in 1 2 3 4 5 6 7 8 ; do
5434        teststring=$teststring$teststring
5435      done
5436      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437      # If test is not a shell built-in, we'll probably end up computing a
5438      # maximum length that is only half of the actual maximum length, but
5439      # we can't tell.
5440      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5441	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5442	      test $i != 17 # 1/2 MB should be enough
5443      do
5444        i=`expr $i + 1`
5445        teststring=$teststring$teststring
5446      done
5447      # Only check the string length outside the loop.
5448      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5449      teststring=
5450      # Add a significant safety factor because C++ compilers can tack on
5451      # massive amounts of additional arguments before passing them to the
5452      # linker.  It appears as though 1/2 is a usable value.
5453      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454    fi
5455    ;;
5456  esac
5457
5458fi
5459
5460if test -n $lt_cv_sys_max_cmd_len ; then
5461  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5462$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5463else
5464  { $as_echo "$as_me:$LINENO: result: none" >&5
5465$as_echo "none" >&6; }
5466fi
5467max_cmd_len=$lt_cv_sys_max_cmd_len
5468
5469
5470
5471
5472
5473
5474: ${CP="cp -f"}
5475: ${MV="mv -f"}
5476: ${RM="rm -f"}
5477
5478{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5479$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5480# Try some XSI features
5481xsi_shell=no
5482( _lt_dummy="a/b/c"
5483  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5484      = c,a/b,, \
5485    && eval 'test $(( 1 + 1 )) -eq 2 \
5486    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5487  && xsi_shell=yes
5488{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5489$as_echo "$xsi_shell" >&6; }
5490
5491
5492{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5493$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5494lt_shell_append=no
5495( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5496    >/dev/null 2>&1 \
5497  && lt_shell_append=yes
5498{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5499$as_echo "$lt_shell_append" >&6; }
5500
5501
5502if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5503  lt_unset=unset
5504else
5505  lt_unset=false
5506fi
5507
5508
5509
5510
5511
5512# test EBCDIC or ASCII
5513case `echo X|tr X '\101'` in
5514 A) # ASCII based system
5515    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5516  lt_SP2NL='tr \040 \012'
5517  lt_NL2SP='tr \015\012 \040\040'
5518  ;;
5519 *) # EBCDIC based system
5520  lt_SP2NL='tr \100 \n'
5521  lt_NL2SP='tr \r\n \100\100'
5522  ;;
5523esac
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5534$as_echo_n "checking for $LD option to reload object files... " >&6; }
5535if test "${lt_cv_ld_reload_flag+set}" = set; then
5536  $as_echo_n "(cached) " >&6
5537else
5538  lt_cv_ld_reload_flag='-r'
5539fi
5540{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5541$as_echo "$lt_cv_ld_reload_flag" >&6; }
5542reload_flag=$lt_cv_ld_reload_flag
5543case $reload_flag in
5544"" | " "*) ;;
5545*) reload_flag=" $reload_flag" ;;
5546esac
5547reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548case $host_os in
5549  darwin*)
5550    if test "$GCC" = yes; then
5551      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5552    else
5553      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554    fi
5555    ;;
5556esac
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566if test -n "$ac_tool_prefix"; then
5567  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5568set dummy ${ac_tool_prefix}objdump; ac_word=$2
5569{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5570$as_echo_n "checking for $ac_word... " >&6; }
5571if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5572  $as_echo_n "(cached) " >&6
5573else
5574  if test -n "$OBJDUMP"; then
5575  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5576else
5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580  IFS=$as_save_IFS
5581  test -z "$as_dir" && as_dir=.
5582  for ac_exec_ext in '' $ac_executable_extensions; do
5583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5585    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586    break 2
5587  fi
5588done
5589done
5590IFS=$as_save_IFS
5591
5592fi
5593fi
5594OBJDUMP=$ac_cv_prog_OBJDUMP
5595if test -n "$OBJDUMP"; then
5596  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5597$as_echo "$OBJDUMP" >&6; }
5598else
5599  { $as_echo "$as_me:$LINENO: result: no" >&5
5600$as_echo "no" >&6; }
5601fi
5602
5603
5604fi
5605if test -z "$ac_cv_prog_OBJDUMP"; then
5606  ac_ct_OBJDUMP=$OBJDUMP
5607  # Extract the first word of "objdump", so it can be a program name with args.
5608set dummy objdump; ac_word=$2
5609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5610$as_echo_n "checking for $ac_word... " >&6; }
5611if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5612  $as_echo_n "(cached) " >&6
5613else
5614  if test -n "$ac_ct_OBJDUMP"; then
5615  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620  IFS=$as_save_IFS
5621  test -z "$as_dir" && as_dir=.
5622  for ac_exec_ext in '' $ac_executable_extensions; do
5623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5625    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626    break 2
5627  fi
5628done
5629done
5630IFS=$as_save_IFS
5631
5632fi
5633fi
5634ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5635if test -n "$ac_ct_OBJDUMP"; then
5636  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5637$as_echo "$ac_ct_OBJDUMP" >&6; }
5638else
5639  { $as_echo "$as_me:$LINENO: result: no" >&5
5640$as_echo "no" >&6; }
5641fi
5642
5643  if test "x$ac_ct_OBJDUMP" = x; then
5644    OBJDUMP="false"
5645  else
5646    case $cross_compiling:$ac_tool_warned in
5647yes:)
5648{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650ac_tool_warned=yes ;;
5651esac
5652    OBJDUMP=$ac_ct_OBJDUMP
5653  fi
5654else
5655  OBJDUMP="$ac_cv_prog_OBJDUMP"
5656fi
5657
5658test -z "$OBJDUMP" && OBJDUMP=objdump
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5669$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5670if test "${lt_cv_deplibs_check_method+set}" = set; then
5671  $as_echo_n "(cached) " >&6
5672else
5673  lt_cv_file_magic_cmd='$MAGIC_CMD'
5674lt_cv_file_magic_test_file=
5675lt_cv_deplibs_check_method='unknown'
5676# Need to set the preceding variable on all platforms that support
5677# interlibrary dependencies.
5678# 'none' -- dependencies not supported.
5679# `unknown' -- same as none, but documents that we really don't know.
5680# 'pass_all' -- all dependencies passed with no checks.
5681# 'test_compile' -- check by making test program.
5682# 'file_magic [[regex]]' -- check by looking for files in library path
5683# which responds to the $file_magic_cmd with a given extended regex.
5684# If you have `file' or equivalent on your system and you're not sure
5685# whether `pass_all' will *always* work, you probably want this one.
5686
5687case $host_os in
5688aix[4-9]*)
5689  lt_cv_deplibs_check_method=pass_all
5690  ;;
5691
5692beos*)
5693  lt_cv_deplibs_check_method=pass_all
5694  ;;
5695
5696bsdi[45]*)
5697  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5698  lt_cv_file_magic_cmd='/usr/bin/file -L'
5699  lt_cv_file_magic_test_file=/shlib/libc.so
5700  ;;
5701
5702cygwin*)
5703  # func_win32_libid is a shell function defined in ltmain.sh
5704  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5705  lt_cv_file_magic_cmd='func_win32_libid'
5706  ;;
5707
5708mingw* | pw32*)
5709  # Base MSYS/MinGW do not provide the 'file' command needed by
5710  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5711  # unless we find 'file', for example because we are cross-compiling.
5712  if ( file / ) >/dev/null 2>&1; then
5713    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5714    lt_cv_file_magic_cmd='func_win32_libid'
5715  else
5716    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5717    lt_cv_file_magic_cmd='$OBJDUMP -f'
5718  fi
5719  ;;
5720
5721cegcc)
5722  # use the weaker test based on 'objdump'. See mingw*.
5723  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5724  lt_cv_file_magic_cmd='$OBJDUMP -f'
5725  ;;
5726
5727darwin* | rhapsody*)
5728  lt_cv_deplibs_check_method=pass_all
5729  ;;
5730
5731freebsd* | dragonfly*)
5732  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5733    case $host_cpu in
5734    i*86 )
5735      # Not sure whether the presence of OpenBSD here was a mistake.
5736      # Let's accept both of them until this is cleared up.
5737      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5738      lt_cv_file_magic_cmd=/usr/bin/file
5739      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5740      ;;
5741    esac
5742  else
5743    lt_cv_deplibs_check_method=pass_all
5744  fi
5745  ;;
5746
5747gnu*)
5748  lt_cv_deplibs_check_method=pass_all
5749  ;;
5750
5751hpux10.20* | hpux11*)
5752  lt_cv_file_magic_cmd=/usr/bin/file
5753  case $host_cpu in
5754  ia64*)
5755    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5756    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5757    ;;
5758  hppa*64*)
5759    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]'
5760    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5761    ;;
5762  *)
5763    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5764    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5765    ;;
5766  esac
5767  ;;
5768
5769interix[3-9]*)
5770  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5771  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5772  ;;
5773
5774irix5* | irix6* | nonstopux*)
5775  case $LD in
5776  *-32|*"-32 ") libmagic=32-bit;;
5777  *-n32|*"-n32 ") libmagic=N32;;
5778  *-64|*"-64 ") libmagic=64-bit;;
5779  *) libmagic=never-match;;
5780  esac
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783
5784# This must be Linux ELF.
5785linux* | k*bsd*-gnu)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789netbsd*)
5790  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5792  else
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5794  fi
5795  ;;
5796
5797newos6*)
5798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5799  lt_cv_file_magic_cmd=/usr/bin/file
5800  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5801  ;;
5802
5803*nto* | *qnx*)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807openbsd*)
5808  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5810  else
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5812  fi
5813  ;;
5814
5815osf3* | osf4* | osf5*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818
5819rdos*)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823solaris*)
5824  lt_cv_deplibs_check_method=pass_all
5825  ;;
5826
5827sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5828  lt_cv_deplibs_check_method=pass_all
5829  ;;
5830
5831sysv4 | sysv4.3*)
5832  case $host_vendor in
5833  motorola)
5834    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]'
5835    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5836    ;;
5837  ncr)
5838    lt_cv_deplibs_check_method=pass_all
5839    ;;
5840  sequent)
5841    lt_cv_file_magic_cmd='/bin/file'
5842    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5843    ;;
5844  sni)
5845    lt_cv_file_magic_cmd='/bin/file'
5846    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5847    lt_cv_file_magic_test_file=/lib/libc.so
5848    ;;
5849  siemens)
5850    lt_cv_deplibs_check_method=pass_all
5851    ;;
5852  pc)
5853    lt_cv_deplibs_check_method=pass_all
5854    ;;
5855  esac
5856  ;;
5857
5858tpf*)
5859  lt_cv_deplibs_check_method=pass_all
5860  ;;
5861esac
5862
5863fi
5864{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5865$as_echo "$lt_cv_deplibs_check_method" >&6; }
5866file_magic_cmd=$lt_cv_file_magic_cmd
5867deplibs_check_method=$lt_cv_deplibs_check_method
5868test -z "$deplibs_check_method" && deplibs_check_method=unknown
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881if test -n "$ac_tool_prefix"; then
5882  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}ar; ac_word=$2
5884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5885$as_echo_n "checking for $ac_word... " >&6; }
5886if test "${ac_cv_prog_AR+set}" = set; then
5887  $as_echo_n "(cached) " >&6
5888else
5889  if test -n "$AR"; then
5890  ac_cv_prog_AR="$AR" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897  for ac_exec_ext in '' $ac_executable_extensions; do
5898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899    ac_cv_prog_AR="${ac_tool_prefix}ar"
5900    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904done
5905IFS=$as_save_IFS
5906
5907fi
5908fi
5909AR=$ac_cv_prog_AR
5910if test -n "$AR"; then
5911  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5912$as_echo "$AR" >&6; }
5913else
5914  { $as_echo "$as_me:$LINENO: result: no" >&5
5915$as_echo "no" >&6; }
5916fi
5917
5918
5919fi
5920if test -z "$ac_cv_prog_AR"; then
5921  ac_ct_AR=$AR
5922  # Extract the first word of "ar", so it can be a program name with args.
5923set dummy ar; ac_word=$2
5924{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5927  $as_echo_n "(cached) " >&6
5928else
5929  if test -n "$ac_ct_AR"; then
5930  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937  for ac_exec_ext in '' $ac_executable_extensions; do
5938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939    ac_cv_prog_ac_ct_AR="ar"
5940    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_AR=$ac_cv_prog_ac_ct_AR
5950if test -n "$ac_ct_AR"; then
5951  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5952$as_echo "$ac_ct_AR" >&6; }
5953else
5954  { $as_echo "$as_me:$LINENO: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958  if test "x$ac_ct_AR" = x; then
5959    AR="false"
5960  else
5961    case $cross_compiling:$ac_tool_warned in
5962yes:)
5963{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965ac_tool_warned=yes ;;
5966esac
5967    AR=$ac_ct_AR
5968  fi
5969else
5970  AR="$ac_cv_prog_AR"
5971fi
5972
5973test -z "$AR" && AR=ar
5974test -z "$AR_FLAGS" && AR_FLAGS=cru
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986if test -n "$ac_tool_prefix"; then
5987  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5988set dummy ${ac_tool_prefix}strip; ac_word=$2
5989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5990$as_echo_n "checking for $ac_word... " >&6; }
5991if test "${ac_cv_prog_STRIP+set}" = set; then
5992  $as_echo_n "(cached) " >&6
5993else
5994  if test -n "$STRIP"; then
5995  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000  IFS=$as_save_IFS
6001  test -z "$as_dir" && as_dir=.
6002  for ac_exec_ext in '' $ac_executable_extensions; do
6003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6005    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006    break 2
6007  fi
6008done
6009done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014STRIP=$ac_cv_prog_STRIP
6015if test -n "$STRIP"; then
6016  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6017$as_echo "$STRIP" >&6; }
6018else
6019  { $as_echo "$as_me:$LINENO: result: no" >&5
6020$as_echo "no" >&6; }
6021fi
6022
6023
6024fi
6025if test -z "$ac_cv_prog_STRIP"; then
6026  ac_ct_STRIP=$STRIP
6027  # Extract the first word of "strip", so it can be a program name with args.
6028set dummy strip; ac_word=$2
6029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6030$as_echo_n "checking for $ac_word... " >&6; }
6031if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6032  $as_echo_n "(cached) " >&6
6033else
6034  if test -n "$ac_ct_STRIP"; then
6035  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040  IFS=$as_save_IFS
6041  test -z "$as_dir" && as_dir=.
6042  for ac_exec_ext in '' $ac_executable_extensions; do
6043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044    ac_cv_prog_ac_ct_STRIP="strip"
6045    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046    break 2
6047  fi
6048done
6049done
6050IFS=$as_save_IFS
6051
6052fi
6053fi
6054ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055if test -n "$ac_ct_STRIP"; then
6056  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6057$as_echo "$ac_ct_STRIP" >&6; }
6058else
6059  { $as_echo "$as_me:$LINENO: result: no" >&5
6060$as_echo "no" >&6; }
6061fi
6062
6063  if test "x$ac_ct_STRIP" = x; then
6064    STRIP=":"
6065  else
6066    case $cross_compiling:$ac_tool_warned in
6067yes:)
6068{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070ac_tool_warned=yes ;;
6071esac
6072    STRIP=$ac_ct_STRIP
6073  fi
6074else
6075  STRIP="$ac_cv_prog_STRIP"
6076fi
6077
6078test -z "$STRIP" && STRIP=:
6079
6080
6081
6082
6083
6084
6085if test -n "$ac_tool_prefix"; then
6086  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_RANLIB+set}" = set; then
6091  $as_echo_n "(cached) " >&6
6092else
6093  if test -n "$RANLIB"; then
6094  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099  IFS=$as_save_IFS
6100  test -z "$as_dir" && as_dir=.
6101  for ac_exec_ext in '' $ac_executable_extensions; do
6102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6104    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105    break 2
6106  fi
6107done
6108done
6109IFS=$as_save_IFS
6110
6111fi
6112fi
6113RANLIB=$ac_cv_prog_RANLIB
6114if test -n "$RANLIB"; then
6115  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6116$as_echo "$RANLIB" >&6; }
6117else
6118  { $as_echo "$as_me:$LINENO: result: no" >&5
6119$as_echo "no" >&6; }
6120fi
6121
6122
6123fi
6124if test -z "$ac_cv_prog_RANLIB"; then
6125  ac_ct_RANLIB=$RANLIB
6126  # Extract the first word of "ranlib", so it can be a program name with args.
6127set dummy ranlib; ac_word=$2
6128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6131  $as_echo_n "(cached) " >&6
6132else
6133  if test -n "$ac_ct_RANLIB"; then
6134  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139  IFS=$as_save_IFS
6140  test -z "$as_dir" && as_dir=.
6141  for ac_exec_ext in '' $ac_executable_extensions; do
6142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143    ac_cv_prog_ac_ct_RANLIB="ranlib"
6144    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145    break 2
6146  fi
6147done
6148done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154if test -n "$ac_ct_RANLIB"; then
6155  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6156$as_echo "$ac_ct_RANLIB" >&6; }
6157else
6158  { $as_echo "$as_me:$LINENO: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162  if test "x$ac_ct_RANLIB" = x; then
6163    RANLIB=":"
6164  else
6165    case $cross_compiling:$ac_tool_warned in
6166yes:)
6167{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169ac_tool_warned=yes ;;
6170esac
6171    RANLIB=$ac_ct_RANLIB
6172  fi
6173else
6174  RANLIB="$ac_cv_prog_RANLIB"
6175fi
6176
6177test -z "$RANLIB" && RANLIB=:
6178
6179
6180
6181
6182
6183
6184# Determine commands to create old-style static archives.
6185old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6186old_postinstall_cmds='chmod 644 $oldlib'
6187old_postuninstall_cmds=
6188
6189if test -n "$RANLIB"; then
6190  case $host_os in
6191  openbsd*)
6192    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6193    ;;
6194  *)
6195    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6196    ;;
6197  esac
6198  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6199fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234# If no C compiler was specified, use CC.
6235LTCC=${LTCC-"$CC"}
6236
6237# If no C compiler flags were specified, use CFLAGS.
6238LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6239
6240# Allow CC to be a program name with arguments.
6241compiler=$CC
6242
6243
6244# Check for command to grab the raw symbol name followed by C symbol from nm.
6245{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6246$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6247if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6248  $as_echo_n "(cached) " >&6
6249else
6250
6251# These are sane defaults that work on at least a few old systems.
6252# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6253
6254# Character class describing NM global symbol codes.
6255symcode='[BCDEGRST]'
6256
6257# Regexp to match symbols that can be accessed directly from C.
6258sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6259
6260# Define system-specific variables.
6261case $host_os in
6262aix*)
6263  symcode='[BCDT]'
6264  ;;
6265cygwin* | mingw* | pw32* | cegcc*)
6266  symcode='[ABCDGISTW]'
6267  ;;
6268hpux*)
6269  if test "$host_cpu" = ia64; then
6270    symcode='[ABCDEGRST]'
6271  fi
6272  ;;
6273irix* | nonstopux*)
6274  symcode='[BCDEGRST]'
6275  ;;
6276osf*)
6277  symcode='[BCDEGQRST]'
6278  ;;
6279solaris*)
6280  symcode='[BDRT]'
6281  ;;
6282sco3.2v5*)
6283  symcode='[DT]'
6284  ;;
6285sysv4.2uw2*)
6286  symcode='[DT]'
6287  ;;
6288sysv5* | sco5v6* | unixware* | OpenUNIX*)
6289  symcode='[ABDT]'
6290  ;;
6291sysv4)
6292  symcode='[DFNSTU]'
6293  ;;
6294esac
6295
6296# If we're using GNU nm, then use its standard symbol codes.
6297case `$NM -V 2>&1` in
6298*GNU* | *'with BFD'*)
6299  symcode='[ABCDGIRSTW]' ;;
6300esac
6301
6302# Transform an extracted symbol line into a proper C declaration.
6303# Some systems (esp. on ia64) link data and code symbols differently,
6304# so use this general approach.
6305lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6306
6307# Transform an extracted symbol line into symbol name and symbol address
6308lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6309lt_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'"
6310
6311# Handle CRLF in mingw tool chain
6312opt_cr=
6313case $build_os in
6314mingw*)
6315  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6316  ;;
6317esac
6318
6319# Try without a prefix underscore, then with it.
6320for ac_symprfx in "" "_"; do
6321
6322  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6323  symxfrm="\\1 $ac_symprfx\\2 \\2"
6324
6325  # Write the raw and C identifiers.
6326  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6327    # Fake it for dumpbin and say T for any non-static function
6328    # and D for any global variable.
6329    # Also find C++ and __fastcall symbols from MSVC++,
6330    # which start with @ or ?.
6331    lt_cv_sys_global_symbol_pipe="$AWK '"\
6332"     {last_section=section; section=\$ 3};"\
6333"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6334"     \$ 0!~/External *\|/{next};"\
6335"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6336"     {if(hide[section]) next};"\
6337"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6338"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6339"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6340"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6341"     ' prfx=^$ac_symprfx"
6342  else
6343    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6344  fi
6345
6346  # Check to see that the pipe works correctly.
6347  pipe_works=no
6348
6349  rm -f conftest*
6350  cat > conftest.$ac_ext <<_LT_EOF
6351#ifdef __cplusplus
6352extern "C" {
6353#endif
6354char nm_test_var;
6355void nm_test_func(void);
6356void nm_test_func(void){}
6357#ifdef __cplusplus
6358}
6359#endif
6360int main(){nm_test_var='a';nm_test_func();return(0);}
6361_LT_EOF
6362
6363  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364  (eval $ac_compile) 2>&5
6365  ac_status=$?
6366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); }; then
6368    # Now try to grab the symbols.
6369    nlist=conftest.nm
6370    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6371  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6372  ac_status=$?
6373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); } && test -s "$nlist"; then
6375      # Try sorting and uniquifying the output.
6376      if sort "$nlist" | uniq > "$nlist"T; then
6377	mv -f "$nlist"T "$nlist"
6378      else
6379	rm -f "$nlist"T
6380      fi
6381
6382      # Make sure that we snagged all the symbols we need.
6383      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6384	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6385	  cat <<_LT_EOF > conftest.$ac_ext
6386#ifdef __cplusplus
6387extern "C" {
6388#endif
6389
6390_LT_EOF
6391	  # Now generate the symbol file.
6392	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6393
6394	  cat <<_LT_EOF >> conftest.$ac_ext
6395
6396/* The mapping between symbol names and symbols.  */
6397const struct {
6398  const char *name;
6399  void       *address;
6400}
6401lt__PROGRAM__LTX_preloaded_symbols[] =
6402{
6403  { "@PROGRAM@", (void *) 0 },
6404_LT_EOF
6405	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6406	  cat <<\_LT_EOF >> conftest.$ac_ext
6407  {0, (void *) 0}
6408};
6409
6410/* This works around a problem in FreeBSD linker */
6411#ifdef FREEBSD_WORKAROUND
6412static const void *lt_preloaded_setup() {
6413  return lt__PROGRAM__LTX_preloaded_symbols;
6414}
6415#endif
6416
6417#ifdef __cplusplus
6418}
6419#endif
6420_LT_EOF
6421	  # Now try linking the two files.
6422	  mv conftest.$ac_objext conftstm.$ac_objext
6423	  lt_save_LIBS="$LIBS"
6424	  lt_save_CFLAGS="$CFLAGS"
6425	  LIBS="conftstm.$ac_objext"
6426	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6427	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6428  (eval $ac_link) 2>&5
6429  ac_status=$?
6430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6432	    pipe_works=yes
6433	  fi
6434	  LIBS="$lt_save_LIBS"
6435	  CFLAGS="$lt_save_CFLAGS"
6436	else
6437	  echo "cannot find nm_test_func in $nlist" >&5
6438	fi
6439      else
6440	echo "cannot find nm_test_var in $nlist" >&5
6441      fi
6442    else
6443      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6444    fi
6445  else
6446    echo "$progname: failed program was:" >&5
6447    cat conftest.$ac_ext >&5
6448  fi
6449  rm -rf conftest* conftst*
6450
6451  # Do not use the global_symbol_pipe unless it works.
6452  if test "$pipe_works" = yes; then
6453    break
6454  else
6455    lt_cv_sys_global_symbol_pipe=
6456  fi
6457done
6458
6459fi
6460
6461if test -z "$lt_cv_sys_global_symbol_pipe"; then
6462  lt_cv_sys_global_symbol_to_cdecl=
6463fi
6464if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6465  { $as_echo "$as_me:$LINENO: result: failed" >&5
6466$as_echo "failed" >&6; }
6467else
6468  { $as_echo "$as_me:$LINENO: result: ok" >&5
6469$as_echo "ok" >&6; }
6470fi
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493# Check whether --enable-libtool-lock was given.
6494if test "${enable_libtool_lock+set}" = set; then
6495  enableval=$enable_libtool_lock;
6496fi
6497
6498test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6499
6500# Some flags need to be propagated to the compiler or linker for good
6501# libtool support.
6502case $host in
6503ia64-*-hpux*)
6504  # Find out which ABI we are using.
6505  echo 'int i;' > conftest.$ac_ext
6506  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507  (eval $ac_compile) 2>&5
6508  ac_status=$?
6509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); }; then
6511    case `/usr/bin/file conftest.$ac_objext` in
6512      *ELF-32*)
6513	HPUX_IA64_MODE="32"
6514	;;
6515      *ELF-64*)
6516	HPUX_IA64_MODE="64"
6517	;;
6518    esac
6519  fi
6520  rm -rf conftest*
6521  ;;
6522*-*-irix6*)
6523  # Find out which ABI we are using.
6524  echo '#line 6524 "configure"' > conftest.$ac_ext
6525  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526  (eval $ac_compile) 2>&5
6527  ac_status=$?
6528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529  (exit $ac_status); }; then
6530    if test "$lt_cv_prog_gnu_ld" = yes; then
6531      case `/usr/bin/file conftest.$ac_objext` in
6532	*32-bit*)
6533	  LD="${LD-ld} -melf32bsmip"
6534	  ;;
6535	*N32*)
6536	  LD="${LD-ld} -melf32bmipn32"
6537	  ;;
6538	*64-bit*)
6539	  LD="${LD-ld} -melf64bmip"
6540	;;
6541      esac
6542    else
6543      case `/usr/bin/file conftest.$ac_objext` in
6544	*32-bit*)
6545	  LD="${LD-ld} -32"
6546	  ;;
6547	*N32*)
6548	  LD="${LD-ld} -n32"
6549	  ;;
6550	*64-bit*)
6551	  LD="${LD-ld} -64"
6552	  ;;
6553      esac
6554    fi
6555  fi
6556  rm -rf conftest*
6557  ;;
6558
6559x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6560s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6561  # Find out which ABI we are using.
6562  echo 'int i;' > conftest.$ac_ext
6563  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564  (eval $ac_compile) 2>&5
6565  ac_status=$?
6566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567  (exit $ac_status); }; then
6568    case `/usr/bin/file conftest.o` in
6569      *32-bit*)
6570	case $host in
6571	  x86_64-*kfreebsd*-gnu)
6572	    LD="${LD-ld} -m elf_i386_fbsd"
6573	    ;;
6574	  x86_64-*linux*)
6575	    LD="${LD-ld} -m elf_i386"
6576	    ;;
6577	  ppc64-*linux*|powerpc64-*linux*)
6578	    LD="${LD-ld} -m elf32ppclinux"
6579	    ;;
6580	  s390x-*linux*)
6581	    LD="${LD-ld} -m elf_s390"
6582	    ;;
6583	  sparc64-*linux*)
6584	    LD="${LD-ld} -m elf32_sparc"
6585	    ;;
6586	esac
6587	;;
6588      *64-bit*)
6589	case $host in
6590	  x86_64-*kfreebsd*-gnu)
6591	    LD="${LD-ld} -m elf_x86_64_fbsd"
6592	    ;;
6593	  x86_64-*linux*)
6594	    LD="${LD-ld} -m elf_x86_64"
6595	    ;;
6596	  ppc*-*linux*|powerpc*-*linux*)
6597	    LD="${LD-ld} -m elf64ppc"
6598	    ;;
6599	  s390*-*linux*|s390*-*tpf*)
6600	    LD="${LD-ld} -m elf64_s390"
6601	    ;;
6602	  sparc*-*linux*)
6603	    LD="${LD-ld} -m elf64_sparc"
6604	    ;;
6605	esac
6606	;;
6607    esac
6608  fi
6609  rm -rf conftest*
6610  ;;
6611
6612*-*-sco3.2v5*)
6613  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6614  SAVE_CFLAGS="$CFLAGS"
6615  CFLAGS="$CFLAGS -belf"
6616  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6617$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6618if test "${lt_cv_cc_needs_belf+set}" = set; then
6619  $as_echo_n "(cached) " >&6
6620else
6621  ac_ext=c
6622ac_cpp='$CPP $CPPFLAGS'
6623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627     cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633
6634int
6635main ()
6636{
6637
6638  ;
6639  return 0;
6640}
6641_ACEOF
6642rm -f conftest.$ac_objext conftest$ac_exeext
6643if { (ac_try="$ac_link"
6644case "(($ac_try" in
6645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646  *) ac_try_echo=$ac_try;;
6647esac
6648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649$as_echo "$ac_try_echo") >&5
6650  (eval "$ac_link") 2>conftest.er1
6651  ac_status=$?
6652  grep -v '^ *+' conftest.er1 >conftest.err
6653  rm -f conftest.er1
6654  cat conftest.err >&5
6655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); } && {
6657	 test -z "$ac_c_werror_flag" ||
6658	 test ! -s conftest.err
6659       } && test -s conftest$ac_exeext && {
6660	 test "$cross_compiling" = yes ||
6661	 $as_test_x conftest$ac_exeext
6662       }; then
6663  lt_cv_cc_needs_belf=yes
6664else
6665  $as_echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668	lt_cv_cc_needs_belf=no
6669fi
6670
6671rm -rf conftest.dSYM
6672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6673      conftest$ac_exeext conftest.$ac_ext
6674     ac_ext=c
6675ac_cpp='$CPP $CPPFLAGS'
6676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679
6680fi
6681{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6682$as_echo "$lt_cv_cc_needs_belf" >&6; }
6683  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6684    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6685    CFLAGS="$SAVE_CFLAGS"
6686  fi
6687  ;;
6688sparc*-*solaris*)
6689  # Find out which ABI we are using.
6690  echo 'int i;' > conftest.$ac_ext
6691  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692  (eval $ac_compile) 2>&5
6693  ac_status=$?
6694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; then
6696    case `/usr/bin/file conftest.o` in
6697    *64-bit*)
6698      case $lt_cv_prog_gnu_ld in
6699      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6700      *)
6701	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6702	  LD="${LD-ld} -64"
6703	fi
6704	;;
6705      esac
6706      ;;
6707    esac
6708  fi
6709  rm -rf conftest*
6710  ;;
6711esac
6712
6713need_locks="$enable_libtool_lock"
6714
6715
6716  case $host_os in
6717    rhapsody* | darwin*)
6718    if test -n "$ac_tool_prefix"; then
6719  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6724  $as_echo_n "(cached) " >&6
6725else
6726  if test -n "$DSYMUTIL"; then
6727  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734  for ac_exec_ext in '' $ac_executable_extensions; do
6735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6737    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746DSYMUTIL=$ac_cv_prog_DSYMUTIL
6747if test -n "$DSYMUTIL"; then
6748  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6749$as_echo "$DSYMUTIL" >&6; }
6750else
6751  { $as_echo "$as_me:$LINENO: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_DSYMUTIL"; then
6758  ac_ct_DSYMUTIL=$DSYMUTIL
6759  # Extract the first word of "dsymutil", so it can be a program name with args.
6760set dummy dsymutil; ac_word=$2
6761{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6764  $as_echo_n "(cached) " >&6
6765else
6766  if test -n "$ac_ct_DSYMUTIL"; then
6767  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772  IFS=$as_save_IFS
6773  test -z "$as_dir" && as_dir=.
6774  for ac_exec_ext in '' $ac_executable_extensions; do
6775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6777    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778    break 2
6779  fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6787if test -n "$ac_ct_DSYMUTIL"; then
6788  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6789$as_echo "$ac_ct_DSYMUTIL" >&6; }
6790else
6791  { $as_echo "$as_me:$LINENO: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795  if test "x$ac_ct_DSYMUTIL" = x; then
6796    DSYMUTIL=":"
6797  else
6798    case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802ac_tool_warned=yes ;;
6803esac
6804    DSYMUTIL=$ac_ct_DSYMUTIL
6805  fi
6806else
6807  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6808fi
6809
6810    if test -n "$ac_tool_prefix"; then
6811  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if test "${ac_cv_prog_NMEDIT+set}" = set; then
6816  $as_echo_n "(cached) " >&6
6817else
6818  if test -n "$NMEDIT"; then
6819  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824  IFS=$as_save_IFS
6825  test -z "$as_dir" && as_dir=.
6826  for ac_exec_ext in '' $ac_executable_extensions; do
6827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6829    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830    break 2
6831  fi
6832done
6833done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838NMEDIT=$ac_cv_prog_NMEDIT
6839if test -n "$NMEDIT"; then
6840  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6841$as_echo "$NMEDIT" >&6; }
6842else
6843  { $as_echo "$as_me:$LINENO: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_NMEDIT"; then
6850  ac_ct_NMEDIT=$NMEDIT
6851  # Extract the first word of "nmedit", so it can be a program name with args.
6852set dummy nmedit; ac_word=$2
6853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6856  $as_echo_n "(cached) " >&6
6857else
6858  if test -n "$ac_ct_NMEDIT"; then
6859  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864  IFS=$as_save_IFS
6865  test -z "$as_dir" && as_dir=.
6866  for ac_exec_ext in '' $ac_executable_extensions; do
6867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6869    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870    break 2
6871  fi
6872done
6873done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6879if test -n "$ac_ct_NMEDIT"; then
6880  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6881$as_echo "$ac_ct_NMEDIT" >&6; }
6882else
6883  { $as_echo "$as_me:$LINENO: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887  if test "x$ac_ct_NMEDIT" = x; then
6888    NMEDIT=":"
6889  else
6890    case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896    NMEDIT=$ac_ct_NMEDIT
6897  fi
6898else
6899  NMEDIT="$ac_cv_prog_NMEDIT"
6900fi
6901
6902    if test -n "$ac_tool_prefix"; then
6903  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6904set dummy ${ac_tool_prefix}lipo; ac_word=$2
6905{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6906$as_echo_n "checking for $ac_word... " >&6; }
6907if test "${ac_cv_prog_LIPO+set}" = set; then
6908  $as_echo_n "(cached) " >&6
6909else
6910  if test -n "$LIPO"; then
6911  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6912else
6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916  IFS=$as_save_IFS
6917  test -z "$as_dir" && as_dir=.
6918  for ac_exec_ext in '' $ac_executable_extensions; do
6919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6921    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922    break 2
6923  fi
6924done
6925done
6926IFS=$as_save_IFS
6927
6928fi
6929fi
6930LIPO=$ac_cv_prog_LIPO
6931if test -n "$LIPO"; then
6932  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6933$as_echo "$LIPO" >&6; }
6934else
6935  { $as_echo "$as_me:$LINENO: result: no" >&5
6936$as_echo "no" >&6; }
6937fi
6938
6939
6940fi
6941if test -z "$ac_cv_prog_LIPO"; then
6942  ac_ct_LIPO=$LIPO
6943  # Extract the first word of "lipo", so it can be a program name with args.
6944set dummy lipo; ac_word=$2
6945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946$as_echo_n "checking for $ac_word... " >&6; }
6947if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6948  $as_echo_n "(cached) " >&6
6949else
6950  if test -n "$ac_ct_LIPO"; then
6951  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956  IFS=$as_save_IFS
6957  test -z "$as_dir" && as_dir=.
6958  for ac_exec_ext in '' $ac_executable_extensions; do
6959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960    ac_cv_prog_ac_ct_LIPO="lipo"
6961    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962    break 2
6963  fi
6964done
6965done
6966IFS=$as_save_IFS
6967
6968fi
6969fi
6970ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6971if test -n "$ac_ct_LIPO"; then
6972  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6973$as_echo "$ac_ct_LIPO" >&6; }
6974else
6975  { $as_echo "$as_me:$LINENO: result: no" >&5
6976$as_echo "no" >&6; }
6977fi
6978
6979  if test "x$ac_ct_LIPO" = x; then
6980    LIPO=":"
6981  else
6982    case $cross_compiling:$ac_tool_warned in
6983yes:)
6984{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986ac_tool_warned=yes ;;
6987esac
6988    LIPO=$ac_ct_LIPO
6989  fi
6990else
6991  LIPO="$ac_cv_prog_LIPO"
6992fi
6993
6994    if test -n "$ac_tool_prefix"; then
6995  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6996set dummy ${ac_tool_prefix}otool; ac_word=$2
6997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6998$as_echo_n "checking for $ac_word... " >&6; }
6999if test "${ac_cv_prog_OTOOL+set}" = set; then
7000  $as_echo_n "(cached) " >&6
7001else
7002  if test -n "$OTOOL"; then
7003  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008  IFS=$as_save_IFS
7009  test -z "$as_dir" && as_dir=.
7010  for ac_exec_ext in '' $ac_executable_extensions; do
7011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7013    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014    break 2
7015  fi
7016done
7017done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022OTOOL=$ac_cv_prog_OTOOL
7023if test -n "$OTOOL"; then
7024  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7025$as_echo "$OTOOL" >&6; }
7026else
7027  { $as_echo "$as_me:$LINENO: result: no" >&5
7028$as_echo "no" >&6; }
7029fi
7030
7031
7032fi
7033if test -z "$ac_cv_prog_OTOOL"; then
7034  ac_ct_OTOOL=$OTOOL
7035  # Extract the first word of "otool", so it can be a program name with args.
7036set dummy otool; ac_word=$2
7037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7040  $as_echo_n "(cached) " >&6
7041else
7042  if test -n "$ac_ct_OTOOL"; then
7043  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048  IFS=$as_save_IFS
7049  test -z "$as_dir" && as_dir=.
7050  for ac_exec_ext in '' $ac_executable_extensions; do
7051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052    ac_cv_prog_ac_ct_OTOOL="otool"
7053    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054    break 2
7055  fi
7056done
7057done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7063if test -n "$ac_ct_OTOOL"; then
7064  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7065$as_echo "$ac_ct_OTOOL" >&6; }
7066else
7067  { $as_echo "$as_me:$LINENO: result: no" >&5
7068$as_echo "no" >&6; }
7069fi
7070
7071  if test "x$ac_ct_OTOOL" = x; then
7072    OTOOL=":"
7073  else
7074    case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080    OTOOL=$ac_ct_OTOOL
7081  fi
7082else
7083  OTOOL="$ac_cv_prog_OTOOL"
7084fi
7085
7086    if test -n "$ac_tool_prefix"; then
7087  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7088set dummy ${ac_tool_prefix}otool64; ac_word=$2
7089{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if test "${ac_cv_prog_OTOOL64+set}" = set; then
7092  $as_echo_n "(cached) " >&6
7093else
7094  if test -n "$OTOOL64"; then
7095  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100  IFS=$as_save_IFS
7101  test -z "$as_dir" && as_dir=.
7102  for ac_exec_ext in '' $ac_executable_extensions; do
7103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7105    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106    break 2
7107  fi
7108done
7109done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
7114OTOOL64=$ac_cv_prog_OTOOL64
7115if test -n "$OTOOL64"; then
7116  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7117$as_echo "$OTOOL64" >&6; }
7118else
7119  { $as_echo "$as_me:$LINENO: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123
7124fi
7125if test -z "$ac_cv_prog_OTOOL64"; then
7126  ac_ct_OTOOL64=$OTOOL64
7127  # Extract the first word of "otool64", so it can be a program name with args.
7128set dummy otool64; ac_word=$2
7129{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7132  $as_echo_n "(cached) " >&6
7133else
7134  if test -n "$ac_ct_OTOOL64"; then
7135  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140  IFS=$as_save_IFS
7141  test -z "$as_dir" && as_dir=.
7142  for ac_exec_ext in '' $ac_executable_extensions; do
7143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144    ac_cv_prog_ac_ct_OTOOL64="otool64"
7145    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146    break 2
7147  fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7155if test -n "$ac_ct_OTOOL64"; then
7156  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7157$as_echo "$ac_ct_OTOOL64" >&6; }
7158else
7159  { $as_echo "$as_me:$LINENO: result: no" >&5
7160$as_echo "no" >&6; }
7161fi
7162
7163  if test "x$ac_ct_OTOOL64" = x; then
7164    OTOOL64=":"
7165  else
7166    case $cross_compiling:$ac_tool_warned in
7167yes:)
7168{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170ac_tool_warned=yes ;;
7171esac
7172    OTOOL64=$ac_ct_OTOOL64
7173  fi
7174else
7175  OTOOL64="$ac_cv_prog_OTOOL64"
7176fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7205$as_echo_n "checking for -single_module linker flag... " >&6; }
7206if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7207  $as_echo_n "(cached) " >&6
7208else
7209  lt_cv_apple_cc_single_mod=no
7210      if test -z "${LT_MULTI_MODULE}"; then
7211	# By default we will add the -single_module flag. You can override
7212	# by either setting the environment variable LT_MULTI_MODULE
7213	# non-empty at configure time, or by adding -multi_module to the
7214	# link flags.
7215	rm -rf libconftest.dylib*
7216	echo "int foo(void){return 1;}" > conftest.c
7217	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7218-dynamiclib -Wl,-single_module conftest.c" >&5
7219	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7220	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7221        _lt_result=$?
7222	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7223	  lt_cv_apple_cc_single_mod=yes
7224	else
7225	  cat conftest.err >&5
7226	fi
7227	rm -rf libconftest.dylib*
7228	rm -f conftest.*
7229      fi
7230fi
7231{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7232$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7233    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7234$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7235if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7236  $as_echo_n "(cached) " >&6
7237else
7238  lt_cv_ld_exported_symbols_list=no
7239      save_LDFLAGS=$LDFLAGS
7240      echo "_main" > conftest.sym
7241      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7242      cat >conftest.$ac_ext <<_ACEOF
7243/* confdefs.h.  */
7244_ACEOF
7245cat confdefs.h >>conftest.$ac_ext
7246cat >>conftest.$ac_ext <<_ACEOF
7247/* end confdefs.h.  */
7248
7249int
7250main ()
7251{
7252
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext conftest$ac_exeext
7258if { (ac_try="$ac_link"
7259case "(($ac_try" in
7260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261  *) ac_try_echo=$ac_try;;
7262esac
7263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7264$as_echo "$ac_try_echo") >&5
7265  (eval "$ac_link") 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } && {
7272	 test -z "$ac_c_werror_flag" ||
7273	 test ! -s conftest.err
7274       } && test -s conftest$ac_exeext && {
7275	 test "$cross_compiling" = yes ||
7276	 $as_test_x conftest$ac_exeext
7277       }; then
7278  lt_cv_ld_exported_symbols_list=yes
7279else
7280  $as_echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283	lt_cv_ld_exported_symbols_list=no
7284fi
7285
7286rm -rf conftest.dSYM
7287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7288      conftest$ac_exeext conftest.$ac_ext
7289	LDFLAGS="$save_LDFLAGS"
7290
7291fi
7292{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7293$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7294    case $host_os in
7295    rhapsody* | darwin1.[012])
7296      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7297    darwin1.*)
7298      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7299    darwin*) # darwin 5.x on
7300      # if running on 10.5 or later, the deployment target defaults
7301      # to the OS version, if on x86, and 10.4, the deployment
7302      # target defaults to 10.4. Don't you love it?
7303      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7304	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7305	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306	10.[012]*)
7307	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308	10.*)
7309	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7310      esac
7311    ;;
7312  esac
7313    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7314      _lt_dar_single_mod='$single_module'
7315    fi
7316    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7317      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7318    else
7319      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7320    fi
7321    if test "$DSYMUTIL" != ":"; then
7322      _lt_dsymutil='~$DSYMUTIL $lib || :'
7323    else
7324      _lt_dsymutil=
7325    fi
7326    ;;
7327  esac
7328
7329
7330for ac_header in dlfcn.h
7331do
7332as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7333{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7334$as_echo_n "checking for $ac_header... " >&6; }
7335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336  $as_echo_n "(cached) " >&6
7337else
7338  cat >conftest.$ac_ext <<_ACEOF
7339/* confdefs.h.  */
7340_ACEOF
7341cat confdefs.h >>conftest.$ac_ext
7342cat >>conftest.$ac_ext <<_ACEOF
7343/* end confdefs.h.  */
7344$ac_includes_default
7345
7346#include <$ac_header>
7347_ACEOF
7348rm -f conftest.$ac_objext
7349if { (ac_try="$ac_compile"
7350case "(($ac_try" in
7351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352  *) ac_try_echo=$ac_try;;
7353esac
7354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355$as_echo "$ac_try_echo") >&5
7356  (eval "$ac_compile") 2>conftest.er1
7357  ac_status=$?
7358  grep -v '^ *+' conftest.er1 >conftest.err
7359  rm -f conftest.er1
7360  cat conftest.err >&5
7361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); } && {
7363	 test -z "$ac_c_werror_flag" ||
7364	 test ! -s conftest.err
7365       } && test -s conftest.$ac_objext; then
7366  eval "$as_ac_Header=yes"
7367else
7368  $as_echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371	eval "$as_ac_Header=no"
7372fi
7373
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375fi
7376ac_res=`eval 'as_val=${'$as_ac_Header'}
7377		 $as_echo "$as_val"'`
7378	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7379$as_echo "$ac_res" >&6; }
7380as_val=`eval 'as_val=${'$as_ac_Header'}
7381		 $as_echo "$as_val"'`
7382   if test "x$as_val" = x""yes; then
7383  cat >>confdefs.h <<_ACEOF
7384#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385_ACEOF
7386
7387fi
7388
7389done
7390
7391
7392
7393# Set options
7394
7395
7396
7397        enable_dlopen=no
7398
7399
7400  enable_win32_dll=no
7401
7402
7403            # Check whether --enable-shared was given.
7404if test "${enable_shared+set}" = set; then
7405  enableval=$enable_shared; p=${PACKAGE-default}
7406    case $enableval in
7407    yes) enable_shared=yes ;;
7408    no) enable_shared=no ;;
7409    *)
7410      enable_shared=no
7411      # Look at the argument we got.  We use all the common list separators.
7412      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413      for pkg in $enableval; do
7414	IFS="$lt_save_ifs"
7415	if test "X$pkg" = "X$p"; then
7416	  enable_shared=yes
7417	fi
7418      done
7419      IFS="$lt_save_ifs"
7420      ;;
7421    esac
7422else
7423  enable_shared=yes
7424fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434  # Check whether --enable-static was given.
7435if test "${enable_static+set}" = set; then
7436  enableval=$enable_static; p=${PACKAGE-default}
7437    case $enableval in
7438    yes) enable_static=yes ;;
7439    no) enable_static=no ;;
7440    *)
7441     enable_static=no
7442      # Look at the argument we got.  We use all the common list separators.
7443      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444      for pkg in $enableval; do
7445	IFS="$lt_save_ifs"
7446	if test "X$pkg" = "X$p"; then
7447	  enable_static=yes
7448	fi
7449      done
7450      IFS="$lt_save_ifs"
7451      ;;
7452    esac
7453else
7454  enable_static=yes
7455fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466# Check whether --with-pic was given.
7467if test "${with_pic+set}" = set; then
7468  withval=$with_pic; pic_mode="$withval"
7469else
7470  pic_mode=default
7471fi
7472
7473
7474test -z "$pic_mode" && pic_mode=default
7475
7476
7477
7478
7479
7480
7481
7482  # Check whether --enable-fast-install was given.
7483if test "${enable_fast_install+set}" = set; then
7484  enableval=$enable_fast_install; p=${PACKAGE-default}
7485    case $enableval in
7486    yes) enable_fast_install=yes ;;
7487    no) enable_fast_install=no ;;
7488    *)
7489      enable_fast_install=no
7490      # Look at the argument we got.  We use all the common list separators.
7491      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492      for pkg in $enableval; do
7493	IFS="$lt_save_ifs"
7494	if test "X$pkg" = "X$p"; then
7495	  enable_fast_install=yes
7496	fi
7497      done
7498      IFS="$lt_save_ifs"
7499      ;;
7500    esac
7501else
7502  enable_fast_install=yes
7503fi
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515# This can be used to rebuild libtool when needed
7516LIBTOOL_DEPS="$ltmain"
7517
7518# Always use our own libtool.
7519LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545test -z "$LN_S" && LN_S="ln -s"
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560if test -n "${ZSH_VERSION+set}" ; then
7561   setopt NO_GLOB_SUBST
7562fi
7563
7564{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7565$as_echo_n "checking for objdir... " >&6; }
7566if test "${lt_cv_objdir+set}" = set; then
7567  $as_echo_n "(cached) " >&6
7568else
7569  rm -f .libs 2>/dev/null
7570mkdir .libs 2>/dev/null
7571if test -d .libs; then
7572  lt_cv_objdir=.libs
7573else
7574  # MS-DOS does not allow filenames that begin with a dot.
7575  lt_cv_objdir=_libs
7576fi
7577rmdir .libs 2>/dev/null
7578fi
7579{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7580$as_echo "$lt_cv_objdir" >&6; }
7581objdir=$lt_cv_objdir
7582
7583
7584
7585
7586
7587cat >>confdefs.h <<_ACEOF
7588#define LT_OBJDIR "$lt_cv_objdir/"
7589_ACEOF
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607case $host_os in
7608aix3*)
7609  # AIX sometimes has problems with the GCC collect2 program.  For some
7610  # reason, if we set the COLLECT_NAMES environment variable, the problems
7611  # vanish in a puff of smoke.
7612  if test "X${COLLECT_NAMES+set}" != Xset; then
7613    COLLECT_NAMES=
7614    export COLLECT_NAMES
7615  fi
7616  ;;
7617esac
7618
7619# Sed substitution that helps us do robust quoting.  It backslashifies
7620# metacharacters that are still active within double-quoted strings.
7621sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7622
7623# Same as above, but do not quote variable references.
7624double_quote_subst='s/\(["`\\]\)/\\\1/g'
7625
7626# Sed substitution to delay expansion of an escaped shell variable in a
7627# double_quote_subst'ed string.
7628delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7629
7630# Sed substitution to delay expansion of an escaped single quote.
7631delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7632
7633# Sed substitution to avoid accidental globbing in evaled expressions
7634no_glob_subst='s/\*/\\\*/g'
7635
7636# Global variables:
7637ofile=libtool
7638can_build_shared=yes
7639
7640# All known linkers require a `.a' archive for static linking (except MSVC,
7641# which needs '.lib').
7642libext=a
7643
7644with_gnu_ld="$lt_cv_prog_gnu_ld"
7645
7646old_CC="$CC"
7647old_CFLAGS="$CFLAGS"
7648
7649# Set sane defaults for various variables
7650test -z "$CC" && CC=cc
7651test -z "$LTCC" && LTCC=$CC
7652test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7653test -z "$LD" && LD=ld
7654test -z "$ac_objext" && ac_objext=o
7655
7656for cc_temp in $compiler""; do
7657  case $cc_temp in
7658    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7659    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7660    \-*) ;;
7661    *) break;;
7662  esac
7663done
7664cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7665
7666
7667# Only perform the check for file, if the check method requires it
7668test -z "$MAGIC_CMD" && MAGIC_CMD=file
7669case $deplibs_check_method in
7670file_magic*)
7671  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7672    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7673$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7674if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7675  $as_echo_n "(cached) " >&6
7676else
7677  case $MAGIC_CMD in
7678[\\/*] |  ?:[\\/]*)
7679  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7680  ;;
7681*)
7682  lt_save_MAGIC_CMD="$MAGIC_CMD"
7683  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685  for ac_dir in $ac_dummy; do
7686    IFS="$lt_save_ifs"
7687    test -z "$ac_dir" && ac_dir=.
7688    if test -f $ac_dir/${ac_tool_prefix}file; then
7689      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7690      if test -n "$file_magic_test_file"; then
7691	case $deplibs_check_method in
7692	"file_magic "*)
7693	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696	    $EGREP "$file_magic_regex" > /dev/null; then
7697	    :
7698	  else
7699	    cat <<_LT_EOF 1>&2
7700
7701*** Warning: the command libtool uses to detect shared libraries,
7702*** $file_magic_cmd, produces output that libtool cannot recognize.
7703*** The result is that libtool may fail to recognize shared libraries
7704*** as such.  This will affect the creation of libtool libraries that
7705*** depend on shared libraries, but programs linked with such libtool
7706*** libraries will work regardless of this problem.  Nevertheless, you
7707*** may want to report the problem to your system manager and/or to
7708*** bug-libtool@gnu.org
7709
7710_LT_EOF
7711	  fi ;;
7712	esac
7713      fi
7714      break
7715    fi
7716  done
7717  IFS="$lt_save_ifs"
7718  MAGIC_CMD="$lt_save_MAGIC_CMD"
7719  ;;
7720esac
7721fi
7722
7723MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724if test -n "$MAGIC_CMD"; then
7725  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7726$as_echo "$MAGIC_CMD" >&6; }
7727else
7728  { $as_echo "$as_me:$LINENO: result: no" >&5
7729$as_echo "no" >&6; }
7730fi
7731
7732
7733
7734
7735
7736if test -z "$lt_cv_path_MAGIC_CMD"; then
7737  if test -n "$ac_tool_prefix"; then
7738    { $as_echo "$as_me:$LINENO: checking for file" >&5
7739$as_echo_n "checking for file... " >&6; }
7740if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7741  $as_echo_n "(cached) " >&6
7742else
7743  case $MAGIC_CMD in
7744[\\/*] |  ?:[\\/]*)
7745  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7746  ;;
7747*)
7748  lt_save_MAGIC_CMD="$MAGIC_CMD"
7749  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7751  for ac_dir in $ac_dummy; do
7752    IFS="$lt_save_ifs"
7753    test -z "$ac_dir" && ac_dir=.
7754    if test -f $ac_dir/file; then
7755      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7756      if test -n "$file_magic_test_file"; then
7757	case $deplibs_check_method in
7758	"file_magic "*)
7759	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7762	    $EGREP "$file_magic_regex" > /dev/null; then
7763	    :
7764	  else
7765	    cat <<_LT_EOF 1>&2
7766
7767*** Warning: the command libtool uses to detect shared libraries,
7768*** $file_magic_cmd, produces output that libtool cannot recognize.
7769*** The result is that libtool may fail to recognize shared libraries
7770*** as such.  This will affect the creation of libtool libraries that
7771*** depend on shared libraries, but programs linked with such libtool
7772*** libraries will work regardless of this problem.  Nevertheless, you
7773*** may want to report the problem to your system manager and/or to
7774*** bug-libtool@gnu.org
7775
7776_LT_EOF
7777	  fi ;;
7778	esac
7779      fi
7780      break
7781    fi
7782  done
7783  IFS="$lt_save_ifs"
7784  MAGIC_CMD="$lt_save_MAGIC_CMD"
7785  ;;
7786esac
7787fi
7788
7789MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790if test -n "$MAGIC_CMD"; then
7791  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7792$as_echo "$MAGIC_CMD" >&6; }
7793else
7794  { $as_echo "$as_me:$LINENO: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797
7798
7799  else
7800    MAGIC_CMD=:
7801  fi
7802fi
7803
7804  fi
7805  ;;
7806esac
7807
7808# Use C for the default configuration in the libtool script
7809
7810lt_save_CC="$CC"
7811ac_ext=c
7812ac_cpp='$CPP $CPPFLAGS'
7813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815ac_compiler_gnu=$ac_cv_c_compiler_gnu
7816
7817
7818# Source file extension for C test sources.
7819ac_ext=c
7820
7821# Object file extension for compiled C test sources.
7822objext=o
7823objext=$objext
7824
7825# Code to be used in simple compile tests
7826lt_simple_compile_test_code="int some_variable = 0;"
7827
7828# Code to be used in simple link tests
7829lt_simple_link_test_code='int main(){return(0);}'
7830
7831
7832
7833
7834
7835
7836
7837# If no C compiler was specified, use CC.
7838LTCC=${LTCC-"$CC"}
7839
7840# If no C compiler flags were specified, use CFLAGS.
7841LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7842
7843# Allow CC to be a program name with arguments.
7844compiler=$CC
7845
7846# Save the default compiler, since it gets overwritten when the other
7847# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7848compiler_DEFAULT=$CC
7849
7850# save warnings/boilerplate of simple test code
7851ac_outfile=conftest.$ac_objext
7852echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7854_lt_compiler_boilerplate=`cat conftest.err`
7855$RM conftest*
7856
7857ac_outfile=conftest.$ac_objext
7858echo "$lt_simple_link_test_code" >conftest.$ac_ext
7859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860_lt_linker_boilerplate=`cat conftest.err`
7861$RM -r conftest*
7862
7863
7864if test -n "$compiler"; then
7865
7866lt_prog_compiler_no_builtin_flag=
7867
7868if test "$GCC" = yes; then
7869  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7870
7871  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7872$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7873if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7874  $as_echo_n "(cached) " >&6
7875else
7876  lt_cv_prog_compiler_rtti_exceptions=no
7877   ac_outfile=conftest.$ac_objext
7878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879   lt_compiler_flag="-fno-rtti -fno-exceptions"
7880   # Insert the option either (1) after the last *FLAGS variable, or
7881   # (2) before a word containing "conftest.", or (3) at the end.
7882   # Note that $ac_compile itself does not contain backslashes and begins
7883   # with a dollar sign (not a hyphen), so the echo should work correctly.
7884   # The option is referenced via a variable to avoid confusing sed.
7885   lt_compile=`echo "$ac_compile" | $SED \
7886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888   -e 's:$: $lt_compiler_flag:'`
7889   (eval echo "\"\$as_me:7889: $lt_compile\"" >&5)
7890   (eval "$lt_compile" 2>conftest.err)
7891   ac_status=$?
7892   cat conftest.err >&5
7893   echo "$as_me:7893: \$? = $ac_status" >&5
7894   if (exit $ac_status) && test -s "$ac_outfile"; then
7895     # The compiler can only warn and ignore the option if not recognized
7896     # So say no if there are warnings other than the usual output.
7897     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7898     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7899     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7900       lt_cv_prog_compiler_rtti_exceptions=yes
7901     fi
7902   fi
7903   $RM conftest*
7904
7905fi
7906{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7907$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7908
7909if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7910    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7911else
7912    :
7913fi
7914
7915fi
7916
7917
7918
7919
7920
7921
7922  lt_prog_compiler_wl=
7923lt_prog_compiler_pic=
7924lt_prog_compiler_static=
7925
7926{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7927$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7928
7929  if test "$GCC" = yes; then
7930    lt_prog_compiler_wl='-Wl,'
7931    lt_prog_compiler_static='-static'
7932
7933    case $host_os in
7934      aix*)
7935      # All AIX code is PIC.
7936      if test "$host_cpu" = ia64; then
7937	# AIX 5 now supports IA64 processor
7938	lt_prog_compiler_static='-Bstatic'
7939      fi
7940      ;;
7941
7942    amigaos*)
7943      case $host_cpu in
7944      powerpc)
7945            # see comment about AmigaOS4 .so support
7946            lt_prog_compiler_pic='-fPIC'
7947        ;;
7948      m68k)
7949            # FIXME: we need at least 68020 code to build shared libraries, but
7950            # adding the `-m68020' flag to GCC prevents building anything better,
7951            # like `-m68040'.
7952            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7953        ;;
7954      esac
7955      ;;
7956
7957    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7958      # PIC is the default for these OSes.
7959      ;;
7960
7961    mingw* | cygwin* | pw32* | os2* | cegcc*)
7962      # This hack is so that the source file can tell whether it is being
7963      # built for inclusion in a dll (and should export symbols for example).
7964      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7965      # (--disable-auto-import) libraries
7966      lt_prog_compiler_pic='-DDLL_EXPORT'
7967      ;;
7968
7969    darwin* | rhapsody*)
7970      # PIC is the default on this platform
7971      # Common symbols not allowed in MH_DYLIB files
7972      lt_prog_compiler_pic='-fno-common'
7973      ;;
7974
7975    hpux*)
7976      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7977      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7978      # sets the default TLS model and affects inlining.
7979      case $host_cpu in
7980      hppa*64*)
7981	# +Z the default
7982	;;
7983      *)
7984	lt_prog_compiler_pic='-fPIC'
7985	;;
7986      esac
7987      ;;
7988
7989    interix[3-9]*)
7990      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7991      # Instead, we relocate shared libraries at runtime.
7992      ;;
7993
7994    msdosdjgpp*)
7995      # Just because we use GCC doesn't mean we suddenly get shared libraries
7996      # on systems that don't support them.
7997      lt_prog_compiler_can_build_shared=no
7998      enable_shared=no
7999      ;;
8000
8001    *nto* | *qnx*)
8002      # QNX uses GNU C++, but need to define -shared option too, otherwise
8003      # it will coredump.
8004      lt_prog_compiler_pic='-fPIC -shared'
8005      ;;
8006
8007    sysv4*MP*)
8008      if test -d /usr/nec; then
8009	lt_prog_compiler_pic=-Kconform_pic
8010      fi
8011      ;;
8012
8013    *)
8014      lt_prog_compiler_pic='-fPIC'
8015      ;;
8016    esac
8017  else
8018    # PORTME Check for flag to pass linker flags through the system compiler.
8019    case $host_os in
8020    aix*)
8021      lt_prog_compiler_wl='-Wl,'
8022      if test "$host_cpu" = ia64; then
8023	# AIX 5 now supports IA64 processor
8024	lt_prog_compiler_static='-Bstatic'
8025      else
8026	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027      fi
8028      ;;
8029
8030    mingw* | cygwin* | pw32* | os2* | cegcc*)
8031      # This hack is so that the source file can tell whether it is being
8032      # built for inclusion in a dll (and should export symbols for example).
8033      lt_prog_compiler_pic='-DDLL_EXPORT'
8034      ;;
8035
8036    hpux9* | hpux10* | hpux11*)
8037      lt_prog_compiler_wl='-Wl,'
8038      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8039      # not for PA HP-UX.
8040      case $host_cpu in
8041      hppa*64*|ia64*)
8042	# +Z the default
8043	;;
8044      *)
8045	lt_prog_compiler_pic='+Z'
8046	;;
8047      esac
8048      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8049      lt_prog_compiler_static='${wl}-a ${wl}archive'
8050      ;;
8051
8052    irix5* | irix6* | nonstopux*)
8053      lt_prog_compiler_wl='-Wl,'
8054      # PIC (with -KPIC) is the default.
8055      lt_prog_compiler_static='-non_shared'
8056      ;;
8057
8058    linux* | k*bsd*-gnu)
8059      case $cc_basename in
8060      # old Intel for x86_64 which still supported -KPIC.
8061      ecc*)
8062	lt_prog_compiler_wl='-Wl,'
8063	lt_prog_compiler_pic='-KPIC'
8064	lt_prog_compiler_static='-static'
8065        ;;
8066      # icc used to be incompatible with GCC.
8067      # ICC 10 doesn't accept -KPIC any more.
8068      icc* | ifort*)
8069	lt_prog_compiler_wl='-Wl,'
8070	lt_prog_compiler_pic='-fPIC'
8071	lt_prog_compiler_static='-static'
8072        ;;
8073      # Lahey Fortran 8.1.
8074      lf95*)
8075	lt_prog_compiler_wl='-Wl,'
8076	lt_prog_compiler_pic='--shared'
8077	lt_prog_compiler_static='--static'
8078	;;
8079      pgcc* | pgf77* | pgf90* | pgf95*)
8080        # Portland Group compilers (*not* the Pentium gcc compiler,
8081	# which looks to be a dead project)
8082	lt_prog_compiler_wl='-Wl,'
8083	lt_prog_compiler_pic='-fpic'
8084	lt_prog_compiler_static='-Bstatic'
8085        ;;
8086      ccc*)
8087        lt_prog_compiler_wl='-Wl,'
8088        # All Alpha code is PIC.
8089        lt_prog_compiler_static='-non_shared'
8090        ;;
8091      xl*)
8092	# IBM XL C 8.0/Fortran 10.1 on PPC
8093	lt_prog_compiler_wl='-Wl,'
8094	lt_prog_compiler_pic='-qpic'
8095	lt_prog_compiler_static='-qstaticlink'
8096	;;
8097      *)
8098	case `$CC -V 2>&1 | sed 5q` in
8099	*Sun\ C*)
8100	  # Sun C 5.9
8101	  lt_prog_compiler_pic='-KPIC'
8102	  lt_prog_compiler_static='-Bstatic'
8103	  lt_prog_compiler_wl='-Wl,'
8104	  ;;
8105	*Sun\ F*)
8106	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8107	  lt_prog_compiler_pic='-KPIC'
8108	  lt_prog_compiler_static='-Bstatic'
8109	  lt_prog_compiler_wl=''
8110	  ;;
8111	esac
8112	;;
8113      esac
8114      ;;
8115
8116    newsos6)
8117      lt_prog_compiler_pic='-KPIC'
8118      lt_prog_compiler_static='-Bstatic'
8119      ;;
8120
8121    *nto* | *qnx*)
8122      # QNX uses GNU C++, but need to define -shared option too, otherwise
8123      # it will coredump.
8124      lt_prog_compiler_pic='-fPIC -shared'
8125      ;;
8126
8127    osf3* | osf4* | osf5*)
8128      lt_prog_compiler_wl='-Wl,'
8129      # All OSF/1 code is PIC.
8130      lt_prog_compiler_static='-non_shared'
8131      ;;
8132
8133    rdos*)
8134      lt_prog_compiler_static='-non_shared'
8135      ;;
8136
8137    solaris*)
8138      lt_prog_compiler_pic='-KPIC'
8139      lt_prog_compiler_static='-Bstatic'
8140      case $cc_basename in
8141      f77* | f90* | f95*)
8142	lt_prog_compiler_wl='-Qoption ld ';;
8143      *)
8144	lt_prog_compiler_wl='-Wl,';;
8145      esac
8146      ;;
8147
8148    sunos4*)
8149      lt_prog_compiler_wl='-Qoption ld '
8150      lt_prog_compiler_pic='-PIC'
8151      lt_prog_compiler_static='-Bstatic'
8152      ;;
8153
8154    sysv4 | sysv4.2uw2* | sysv4.3*)
8155      lt_prog_compiler_wl='-Wl,'
8156      lt_prog_compiler_pic='-KPIC'
8157      lt_prog_compiler_static='-Bstatic'
8158      ;;
8159
8160    sysv4*MP*)
8161      if test -d /usr/nec ;then
8162	lt_prog_compiler_pic='-Kconform_pic'
8163	lt_prog_compiler_static='-Bstatic'
8164      fi
8165      ;;
8166
8167    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8168      lt_prog_compiler_wl='-Wl,'
8169      lt_prog_compiler_pic='-KPIC'
8170      lt_prog_compiler_static='-Bstatic'
8171      ;;
8172
8173    unicos*)
8174      lt_prog_compiler_wl='-Wl,'
8175      lt_prog_compiler_can_build_shared=no
8176      ;;
8177
8178    uts4*)
8179      lt_prog_compiler_pic='-pic'
8180      lt_prog_compiler_static='-Bstatic'
8181      ;;
8182
8183    *)
8184      lt_prog_compiler_can_build_shared=no
8185      ;;
8186    esac
8187  fi
8188
8189case $host_os in
8190  # For platforms which do not support PIC, -DPIC is meaningless:
8191  *djgpp*)
8192    lt_prog_compiler_pic=
8193    ;;
8194  *)
8195    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8196    ;;
8197esac
8198{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8199$as_echo "$lt_prog_compiler_pic" >&6; }
8200
8201
8202
8203
8204
8205
8206#
8207# Check to make sure the PIC flag actually works.
8208#
8209if test -n "$lt_prog_compiler_pic"; then
8210  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8211$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8212if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8213  $as_echo_n "(cached) " >&6
8214else
8215  lt_cv_prog_compiler_pic_works=no
8216   ac_outfile=conftest.$ac_objext
8217   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8219   # Insert the option either (1) after the last *FLAGS variable, or
8220   # (2) before a word containing "conftest.", or (3) at the end.
8221   # Note that $ac_compile itself does not contain backslashes and begins
8222   # with a dollar sign (not a hyphen), so the echo should work correctly.
8223   # The option is referenced via a variable to avoid confusing sed.
8224   lt_compile=`echo "$ac_compile" | $SED \
8225   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227   -e 's:$: $lt_compiler_flag:'`
8228   (eval echo "\"\$as_me:8228: $lt_compile\"" >&5)
8229   (eval "$lt_compile" 2>conftest.err)
8230   ac_status=$?
8231   cat conftest.err >&5
8232   echo "$as_me:8232: \$? = $ac_status" >&5
8233   if (exit $ac_status) && test -s "$ac_outfile"; then
8234     # The compiler can only warn and ignore the option if not recognized
8235     # So say no if there are warnings other than the usual output.
8236     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8237     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8238     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8239       lt_cv_prog_compiler_pic_works=yes
8240     fi
8241   fi
8242   $RM conftest*
8243
8244fi
8245{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8246$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8247
8248if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8249    case $lt_prog_compiler_pic in
8250     "" | " "*) ;;
8251     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8252     esac
8253else
8254    lt_prog_compiler_pic=
8255     lt_prog_compiler_can_build_shared=no
8256fi
8257
8258fi
8259
8260
8261
8262
8263
8264
8265#
8266# Check to make sure the static flag actually works.
8267#
8268wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8269{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8270$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8271if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8272  $as_echo_n "(cached) " >&6
8273else
8274  lt_cv_prog_compiler_static_works=no
8275   save_LDFLAGS="$LDFLAGS"
8276   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8277   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8278   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8279     # The linker can only warn and ignore the option if not recognized
8280     # So say no if there are warnings
8281     if test -s conftest.err; then
8282       # Append any errors to the config.log.
8283       cat conftest.err 1>&5
8284       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8285       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286       if diff conftest.exp conftest.er2 >/dev/null; then
8287         lt_cv_prog_compiler_static_works=yes
8288       fi
8289     else
8290       lt_cv_prog_compiler_static_works=yes
8291     fi
8292   fi
8293   $RM -r conftest*
8294   LDFLAGS="$save_LDFLAGS"
8295
8296fi
8297{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8298$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8299
8300if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8301    :
8302else
8303    lt_prog_compiler_static=
8304fi
8305
8306
8307
8308
8309
8310
8311
8312  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8315  $as_echo_n "(cached) " >&6
8316else
8317  lt_cv_prog_compiler_c_o=no
8318   $RM -r conftest 2>/dev/null
8319   mkdir conftest
8320   cd conftest
8321   mkdir out
8322   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323
8324   lt_compiler_flag="-o out/conftest2.$ac_objext"
8325   # Insert the option either (1) after the last *FLAGS variable, or
8326   # (2) before a word containing "conftest.", or (3) at the end.
8327   # Note that $ac_compile itself does not contain backslashes and begins
8328   # with a dollar sign (not a hyphen), so the echo should work correctly.
8329   lt_compile=`echo "$ac_compile" | $SED \
8330   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332   -e 's:$: $lt_compiler_flag:'`
8333   (eval echo "\"\$as_me:8333: $lt_compile\"" >&5)
8334   (eval "$lt_compile" 2>out/conftest.err)
8335   ac_status=$?
8336   cat out/conftest.err >&5
8337   echo "$as_me:8337: \$? = $ac_status" >&5
8338   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339   then
8340     # The compiler can only warn and ignore the option if not recognized
8341     # So say no if there are warnings
8342     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8343     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345       lt_cv_prog_compiler_c_o=yes
8346     fi
8347   fi
8348   chmod u+w . 2>&5
8349   $RM conftest*
8350   # SGI C++ compiler will create directory out/ii_files/ for
8351   # template instantiation
8352   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8353   $RM out/* && rmdir out
8354   cd ..
8355   $RM -r conftest
8356   $RM conftest*
8357
8358fi
8359{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8360$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361
8362
8363
8364
8365
8366
8367  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8368$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8370  $as_echo_n "(cached) " >&6
8371else
8372  lt_cv_prog_compiler_c_o=no
8373   $RM -r conftest 2>/dev/null
8374   mkdir conftest
8375   cd conftest
8376   mkdir out
8377   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378
8379   lt_compiler_flag="-o out/conftest2.$ac_objext"
8380   # Insert the option either (1) after the last *FLAGS variable, or
8381   # (2) before a word containing "conftest.", or (3) at the end.
8382   # Note that $ac_compile itself does not contain backslashes and begins
8383   # with a dollar sign (not a hyphen), so the echo should work correctly.
8384   lt_compile=`echo "$ac_compile" | $SED \
8385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387   -e 's:$: $lt_compiler_flag:'`
8388   (eval echo "\"\$as_me:8388: $lt_compile\"" >&5)
8389   (eval "$lt_compile" 2>out/conftest.err)
8390   ac_status=$?
8391   cat out/conftest.err >&5
8392   echo "$as_me:8392: \$? = $ac_status" >&5
8393   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394   then
8395     # The compiler can only warn and ignore the option if not recognized
8396     # So say no if there are warnings
8397     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8398     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400       lt_cv_prog_compiler_c_o=yes
8401     fi
8402   fi
8403   chmod u+w . 2>&5
8404   $RM conftest*
8405   # SGI C++ compiler will create directory out/ii_files/ for
8406   # template instantiation
8407   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408   $RM out/* && rmdir out
8409   cd ..
8410   $RM -r conftest
8411   $RM conftest*
8412
8413fi
8414{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8415$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8416
8417
8418
8419
8420hard_links="nottested"
8421if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8422  # do not overwrite the value of need_locks provided by the user
8423  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8424$as_echo_n "checking if we can lock with hard links... " >&6; }
8425  hard_links=yes
8426  $RM conftest*
8427  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8428  touch conftest.a
8429  ln conftest.a conftest.b 2>&5 || hard_links=no
8430  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8431  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8432$as_echo "$hard_links" >&6; }
8433  if test "$hard_links" = no; then
8434    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8435$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8436    need_locks=warn
8437  fi
8438else
8439  need_locks=no
8440fi
8441
8442
8443
8444
8445
8446
8447  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8448$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8449
8450  runpath_var=
8451  allow_undefined_flag=
8452  always_export_symbols=no
8453  archive_cmds=
8454  archive_expsym_cmds=
8455  compiler_needs_object=no
8456  enable_shared_with_static_runtimes=no
8457  export_dynamic_flag_spec=
8458  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8459  hardcode_automatic=no
8460  hardcode_direct=no
8461  hardcode_direct_absolute=no
8462  hardcode_libdir_flag_spec=
8463  hardcode_libdir_flag_spec_ld=
8464  hardcode_libdir_separator=
8465  hardcode_minus_L=no
8466  hardcode_shlibpath_var=unsupported
8467  inherit_rpath=no
8468  link_all_deplibs=unknown
8469  module_cmds=
8470  module_expsym_cmds=
8471  old_archive_from_new_cmds=
8472  old_archive_from_expsyms_cmds=
8473  thread_safe_flag_spec=
8474  whole_archive_flag_spec=
8475  # include_expsyms should be a list of space-separated symbols to be *always*
8476  # included in the symbol list
8477  include_expsyms=
8478  # exclude_expsyms can be an extended regexp of symbols to exclude
8479  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8480  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8481  # as well as any symbol that contains `d'.
8482  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8483  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8484  # platforms (ab)use it in PIC code, but their linkers get confused if
8485  # the symbol is explicitly referenced.  Since portable code cannot
8486  # rely on this symbol name, it's probably fine to never include it in
8487  # preloaded symbol tables.
8488  # Exclude shared library initialization/finalization symbols.
8489  extract_expsyms_cmds=
8490
8491  case $host_os in
8492  cygwin* | mingw* | pw32* | cegcc*)
8493    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8494    # When not using gcc, we currently assume that we are using
8495    # Microsoft Visual C++.
8496    if test "$GCC" != yes; then
8497      with_gnu_ld=no
8498    fi
8499    ;;
8500  interix*)
8501    # we just hope/assume this is gcc and not c89 (= MSVC++)
8502    with_gnu_ld=yes
8503    ;;
8504  openbsd*)
8505    with_gnu_ld=no
8506    ;;
8507  esac
8508
8509  ld_shlibs=yes
8510  if test "$with_gnu_ld" = yes; then
8511    # If archive_cmds runs LD, not CC, wlarc should be empty
8512    wlarc='${wl}'
8513
8514    # Set some defaults for GNU ld with shared library support. These
8515    # are reset later if shared libraries are not supported. Putting them
8516    # here allows them to be overridden if necessary.
8517    runpath_var=LD_RUN_PATH
8518    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8519    export_dynamic_flag_spec='${wl}--export-dynamic'
8520    # ancient GNU ld didn't support --whole-archive et. al.
8521    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8522      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8523    else
8524      whole_archive_flag_spec=
8525    fi
8526    supports_anon_versioning=no
8527    case `$LD -v 2>&1` in
8528      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8529      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8530      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8531      *\ 2.11.*) ;; # other 2.11 versions
8532      *) supports_anon_versioning=yes ;;
8533    esac
8534
8535    # See if GNU ld supports shared libraries.
8536    case $host_os in
8537    aix[3-9]*)
8538      # On AIX/PPC, the GNU linker is very broken
8539      if test "$host_cpu" != ia64; then
8540	ld_shlibs=no
8541	cat <<_LT_EOF 1>&2
8542
8543*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8544*** to be unable to reliably create shared libraries on AIX.
8545*** Therefore, libtool is disabling shared libraries support.  If you
8546*** really care for shared libraries, you may want to modify your PATH
8547*** so that a non-GNU linker is found, and then restart.
8548
8549_LT_EOF
8550      fi
8551      ;;
8552
8553    amigaos*)
8554      case $host_cpu in
8555      powerpc)
8556            # see comment about AmigaOS4 .so support
8557            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558            archive_expsym_cmds=''
8559        ;;
8560      m68k)
8561            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)'
8562            hardcode_libdir_flag_spec='-L$libdir'
8563            hardcode_minus_L=yes
8564        ;;
8565      esac
8566      ;;
8567
8568    beos*)
8569      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570	allow_undefined_flag=unsupported
8571	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8572	# support --undefined.  This deserves some investigation.  FIXME
8573	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574      else
8575	ld_shlibs=no
8576      fi
8577      ;;
8578
8579    cygwin* | mingw* | pw32* | cegcc*)
8580      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8581      # as there is no search path for DLLs.
8582      hardcode_libdir_flag_spec='-L$libdir'
8583      allow_undefined_flag=unsupported
8584      always_export_symbols=no
8585      enable_shared_with_static_runtimes=yes
8586      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8587
8588      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8589        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590	# If the export-symbols file already is a .def file (1st line
8591	# is EXPORTS), use it as is; otherwise, prepend...
8592	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8593	  cp $export_symbols $output_objdir/$soname.def;
8594	else
8595	  echo EXPORTS > $output_objdir/$soname.def;
8596	  cat $export_symbols >> $output_objdir/$soname.def;
8597	fi~
8598	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8599      else
8600	ld_shlibs=no
8601      fi
8602      ;;
8603
8604    interix[3-9]*)
8605      hardcode_direct=no
8606      hardcode_shlibpath_var=no
8607      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8608      export_dynamic_flag_spec='${wl}-E'
8609      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8610      # Instead, shared libraries are loaded at an image base (0x10000000 by
8611      # default) and relocated if they conflict, which is a slow very memory
8612      # consuming and fragmenting process.  To avoid this, we pick a random,
8613      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8614      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8615      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8616      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'
8617      ;;
8618
8619    gnu* | linux* | tpf* | k*bsd*-gnu)
8620      tmp_diet=no
8621      if test "$host_os" = linux-dietlibc; then
8622	case $cc_basename in
8623	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8624	esac
8625      fi
8626      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8627	 && test "$tmp_diet" = no
8628      then
8629	tmp_addflag=
8630	tmp_sharedflag='-shared'
8631	case $cc_basename,$host_cpu in
8632        pgcc*)				# Portland Group C compiler
8633	  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'
8634	  tmp_addflag=' $pic_flag'
8635	  ;;
8636	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8637	  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'
8638	  tmp_addflag=' $pic_flag -Mnomain' ;;
8639	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8640	  tmp_addflag=' -i_dynamic' ;;
8641	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8642	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8643	ifc* | ifort*)			# Intel Fortran compiler
8644	  tmp_addflag=' -nofor_main' ;;
8645	lf95*)				# Lahey Fortran 8.1
8646	  whole_archive_flag_spec=
8647	  tmp_sharedflag='--shared' ;;
8648	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8649	  tmp_sharedflag='-qmkshrobj'
8650	  tmp_addflag= ;;
8651	esac
8652	case `$CC -V 2>&1 | sed 5q` in
8653	*Sun\ C*)			# Sun C 5.9
8654	  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'
8655	  compiler_needs_object=yes
8656	  tmp_sharedflag='-G' ;;
8657	*Sun\ F*)			# Sun Fortran 8.3
8658	  tmp_sharedflag='-G' ;;
8659	esac
8660	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661
8662        if test "x$supports_anon_versioning" = xyes; then
8663          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8664	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8665	    echo "local: *; };" >> $output_objdir/$libname.ver~
8666	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8667        fi
8668
8669	case $cc_basename in
8670	xlf*)
8671	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8672	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8673	  hardcode_libdir_flag_spec=
8674	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8675	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8676	  if test "x$supports_anon_versioning" = xyes; then
8677	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8678	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679	      echo "local: *; };" >> $output_objdir/$libname.ver~
8680	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8681	  fi
8682	  ;;
8683	esac
8684      else
8685        ld_shlibs=no
8686      fi
8687      ;;
8688
8689    netbsd*)
8690      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8691	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8692	wlarc=
8693      else
8694	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696      fi
8697      ;;
8698
8699    solaris*)
8700      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8701	ld_shlibs=no
8702	cat <<_LT_EOF 1>&2
8703
8704*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8705*** create shared libraries on Solaris systems.  Therefore, libtool
8706*** is disabling shared libraries support.  We urge you to upgrade GNU
8707*** binutils to release 2.9.1 or newer.  Another option is to modify
8708*** your PATH or compiler configuration so that the native linker is
8709*** used, and then restart.
8710
8711_LT_EOF
8712      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715      else
8716	ld_shlibs=no
8717      fi
8718      ;;
8719
8720    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8721      case `$LD -v 2>&1` in
8722        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8723	ld_shlibs=no
8724	cat <<_LT_EOF 1>&2
8725
8726*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8727*** reliably create shared libraries on SCO systems.  Therefore, libtool
8728*** is disabling shared libraries support.  We urge you to upgrade GNU
8729*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8730*** your PATH or compiler configuration so that the native linker is
8731*** used, and then restart.
8732
8733_LT_EOF
8734	;;
8735	*)
8736	  # For security reasons, it is highly recommended that you always
8737	  # use absolute paths for naming shared libraries, and exclude the
8738	  # DT_RUNPATH tag from executables and libraries.  But doing so
8739	  # requires that you compile everything twice, which is a pain.
8740	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8741	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744	  else
8745	    ld_shlibs=no
8746	  fi
8747	;;
8748      esac
8749      ;;
8750
8751    sunos4*)
8752      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753      wlarc=
8754      hardcode_direct=yes
8755      hardcode_shlibpath_var=no
8756      ;;
8757
8758    *)
8759      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8760	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762      else
8763	ld_shlibs=no
8764      fi
8765      ;;
8766    esac
8767
8768    if test "$ld_shlibs" = no; then
8769      runpath_var=
8770      hardcode_libdir_flag_spec=
8771      export_dynamic_flag_spec=
8772      whole_archive_flag_spec=
8773    fi
8774  else
8775    # PORTME fill in a description of your system's linker (not GNU ld)
8776    case $host_os in
8777    aix3*)
8778      allow_undefined_flag=unsupported
8779      always_export_symbols=yes
8780      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'
8781      # Note: this linker hardcodes the directories in LIBPATH if there
8782      # are no directories specified by -L.
8783      hardcode_minus_L=yes
8784      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8785	# Neither direct hardcoding nor static linking is supported with a
8786	# broken collect2.
8787	hardcode_direct=unsupported
8788      fi
8789      ;;
8790
8791    aix[4-9]*)
8792      if test "$host_cpu" = ia64; then
8793	# On IA64, the linker does run time linking by default, so we don't
8794	# have to do anything special.
8795	aix_use_runtimelinking=no
8796	exp_sym_flag='-Bexport'
8797	no_entry_flag=""
8798      else
8799	# If we're using GNU nm, then we don't want the "-C" option.
8800	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8801	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802	  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'
8803	else
8804	  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'
8805	fi
8806	aix_use_runtimelinking=no
8807
8808	# Test if we are trying to use run time linking or normal
8809	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810	# need to do runtime linking.
8811	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812	  for ld_flag in $LDFLAGS; do
8813	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814	    aix_use_runtimelinking=yes
8815	    break
8816	  fi
8817	  done
8818	  ;;
8819	esac
8820
8821	exp_sym_flag='-bexport'
8822	no_entry_flag='-bnoentry'
8823      fi
8824
8825      # When large executables or shared objects are built, AIX ld can
8826      # have problems creating the table of contents.  If linking a library
8827      # or program results in "error TOC overflow" add -mminimal-toc to
8828      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8829      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8830
8831      archive_cmds=''
8832      hardcode_direct=yes
8833      hardcode_direct_absolute=yes
8834      hardcode_libdir_separator=':'
8835      link_all_deplibs=yes
8836      file_list_spec='${wl}-f,'
8837
8838      if test "$GCC" = yes; then
8839	case $host_os in aix4.[012]|aix4.[012].*)
8840	# We only want to do this on AIX 4.2 and lower, the check
8841	# below for broken collect2 doesn't work under 4.3+
8842	  collect2name=`${CC} -print-prog-name=collect2`
8843	  if test -f "$collect2name" &&
8844	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8845	  then
8846	  # We have reworked collect2
8847	  :
8848	  else
8849	  # We have old collect2
8850	  hardcode_direct=unsupported
8851	  # It fails to find uninstalled libraries when the uninstalled
8852	  # path is not listed in the libpath.  Setting hardcode_minus_L
8853	  # to unsupported forces relinking
8854	  hardcode_minus_L=yes
8855	  hardcode_libdir_flag_spec='-L$libdir'
8856	  hardcode_libdir_separator=
8857	  fi
8858	  ;;
8859	esac
8860	shared_flag='-shared'
8861	if test "$aix_use_runtimelinking" = yes; then
8862	  shared_flag="$shared_flag "'${wl}-G'
8863	fi
8864      else
8865	# not using gcc
8866	if test "$host_cpu" = ia64; then
8867	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868	# chokes on -Wl,-G. The following line is correct:
8869	  shared_flag='-G'
8870	else
8871	  if test "$aix_use_runtimelinking" = yes; then
8872	    shared_flag='${wl}-G'
8873	  else
8874	    shared_flag='${wl}-bM:SRE'
8875	  fi
8876	fi
8877      fi
8878
8879      export_dynamic_flag_spec='${wl}-bexpall'
8880      # It seems that -bexpall does not export symbols beginning with
8881      # underscore (_), so it is better to generate a list of symbols to export.
8882      always_export_symbols=yes
8883      if test "$aix_use_runtimelinking" = yes; then
8884	# Warning - without using the other runtime loading flags (-brtl),
8885	# -berok will link without error, but may produce a broken library.
8886	allow_undefined_flag='-berok'
8887        # Determine the default libpath from the value encoded in an
8888        # empty executable.
8889        cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h.  */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h.  */
8895
8896int
8897main ()
8898{
8899
8900  ;
8901  return 0;
8902}
8903_ACEOF
8904rm -f conftest.$ac_objext conftest$ac_exeext
8905if { (ac_try="$ac_link"
8906case "(($ac_try" in
8907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908  *) ac_try_echo=$ac_try;;
8909esac
8910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8911$as_echo "$ac_try_echo") >&5
8912  (eval "$ac_link") 2>conftest.er1
8913  ac_status=$?
8914  grep -v '^ *+' conftest.er1 >conftest.err
8915  rm -f conftest.er1
8916  cat conftest.err >&5
8917  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918  (exit $ac_status); } && {
8919	 test -z "$ac_c_werror_flag" ||
8920	 test ! -s conftest.err
8921       } && test -s conftest$ac_exeext && {
8922	 test "$cross_compiling" = yes ||
8923	 $as_test_x conftest$ac_exeext
8924       }; then
8925
8926lt_aix_libpath_sed='
8927    /Import File Strings/,/^$/ {
8928	/^0/ {
8929	    s/^0  *\(.*\)$/\1/
8930	    p
8931	}
8932    }'
8933aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8934# Check for a 64-bit object if we didn't find anything.
8935if test -z "$aix_libpath"; then
8936  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937fi
8938else
8939  $as_echo "$as_me: failed program was:" >&5
8940sed 's/^/| /' conftest.$ac_ext >&5
8941
8942
8943fi
8944
8945rm -rf conftest.dSYM
8946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8947      conftest$ac_exeext conftest.$ac_ext
8948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949
8950        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951        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"
8952      else
8953	if test "$host_cpu" = ia64; then
8954	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955	  allow_undefined_flag="-z nodefs"
8956	  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"
8957	else
8958	 # Determine the default libpath from the value encoded in an
8959	 # empty executable.
8960	 cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h.  */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h.  */
8966
8967int
8968main ()
8969{
8970
8971  ;
8972  return 0;
8973}
8974_ACEOF
8975rm -f conftest.$ac_objext conftest$ac_exeext
8976if { (ac_try="$ac_link"
8977case "(($ac_try" in
8978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979  *) ac_try_echo=$ac_try;;
8980esac
8981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982$as_echo "$ac_try_echo") >&5
8983  (eval "$ac_link") 2>conftest.er1
8984  ac_status=$?
8985  grep -v '^ *+' conftest.er1 >conftest.err
8986  rm -f conftest.er1
8987  cat conftest.err >&5
8988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989  (exit $ac_status); } && {
8990	 test -z "$ac_c_werror_flag" ||
8991	 test ! -s conftest.err
8992       } && test -s conftest$ac_exeext && {
8993	 test "$cross_compiling" = yes ||
8994	 $as_test_x conftest$ac_exeext
8995       }; then
8996
8997lt_aix_libpath_sed='
8998    /Import File Strings/,/^$/ {
8999	/^0/ {
9000	    s/^0  *\(.*\)$/\1/
9001	    p
9002	}
9003    }'
9004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9005# Check for a 64-bit object if we didn't find anything.
9006if test -z "$aix_libpath"; then
9007  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9008fi
9009else
9010  $as_echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013
9014fi
9015
9016rm -rf conftest.dSYM
9017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9018      conftest$ac_exeext conftest.$ac_ext
9019if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9020
9021	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9022	  # Warning - without using the other run time loading flags,
9023	  # -berok will link without error, but may produce a broken library.
9024	  no_undefined_flag=' ${wl}-bernotok'
9025	  allow_undefined_flag=' ${wl}-berok'
9026	  # Exported symbols can be pulled into shared objects from archives
9027	  whole_archive_flag_spec='$convenience'
9028	  archive_cmds_need_lc=yes
9029	  # This is similar to how AIX traditionally builds its shared libraries.
9030	  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'
9031	fi
9032      fi
9033      ;;
9034
9035    amigaos*)
9036      case $host_cpu in
9037      powerpc)
9038            # see comment about AmigaOS4 .so support
9039            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040            archive_expsym_cmds=''
9041        ;;
9042      m68k)
9043            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)'
9044            hardcode_libdir_flag_spec='-L$libdir'
9045            hardcode_minus_L=yes
9046        ;;
9047      esac
9048      ;;
9049
9050    bsdi[45]*)
9051      export_dynamic_flag_spec=-rdynamic
9052      ;;
9053
9054    cygwin* | mingw* | pw32* | cegcc*)
9055      # When not using gcc, we currently assume that we are using
9056      # Microsoft Visual C++.
9057      # hardcode_libdir_flag_spec is actually meaningless, as there is
9058      # no search path for DLLs.
9059      hardcode_libdir_flag_spec=' '
9060      allow_undefined_flag=unsupported
9061      # Tell ltmain to make .lib files, not .a files.
9062      libext=lib
9063      # Tell ltmain to make .dll files, not .so files.
9064      shrext_cmds=".dll"
9065      # FIXME: Setting linknames here is a bad hack.
9066      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9067      # The linker will automatically build a .lib file if we build a DLL.
9068      old_archive_from_new_cmds='true'
9069      # FIXME: Should let the user specify the lib program.
9070      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9071      fix_srcfile_path='`cygpath -w "$srcfile"`'
9072      enable_shared_with_static_runtimes=yes
9073      ;;
9074
9075    darwin* | rhapsody*)
9076
9077
9078  archive_cmds_need_lc=no
9079  hardcode_direct=no
9080  hardcode_automatic=yes
9081  hardcode_shlibpath_var=unsupported
9082  whole_archive_flag_spec=''
9083  link_all_deplibs=yes
9084  allow_undefined_flag="$_lt_dar_allow_undefined"
9085  case $cc_basename in
9086     ifort*) _lt_dar_can_shared=yes ;;
9087     *) _lt_dar_can_shared=$GCC ;;
9088  esac
9089  if test "$_lt_dar_can_shared" = "yes"; then
9090    output_verbose_link_cmd=echo
9091    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9092    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9093    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}"
9094    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}"
9095
9096  else
9097  ld_shlibs=no
9098  fi
9099
9100      ;;
9101
9102    dgux*)
9103      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104      hardcode_libdir_flag_spec='-L$libdir'
9105      hardcode_shlibpath_var=no
9106      ;;
9107
9108    freebsd1*)
9109      ld_shlibs=no
9110      ;;
9111
9112    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113    # support.  Future versions do this automatically, but an explicit c++rt0.o
9114    # does not break anything, and helps significantly (at the cost of a little
9115    # extra space).
9116    freebsd2.2*)
9117      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118      hardcode_libdir_flag_spec='-R$libdir'
9119      hardcode_direct=yes
9120      hardcode_shlibpath_var=no
9121      ;;
9122
9123    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9124    freebsd2*)
9125      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126      hardcode_direct=yes
9127      hardcode_minus_L=yes
9128      hardcode_shlibpath_var=no
9129      ;;
9130
9131    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132    freebsd* | dragonfly*)
9133      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134      hardcode_libdir_flag_spec='-R$libdir'
9135      hardcode_direct=yes
9136      hardcode_shlibpath_var=no
9137      ;;
9138
9139    hpux9*)
9140      if test "$GCC" = yes; then
9141	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'
9142      else
9143	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'
9144      fi
9145      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146      hardcode_libdir_separator=:
9147      hardcode_direct=yes
9148
9149      # hardcode_minus_L: Not really in the search PATH,
9150      # but as the default location of the library.
9151      hardcode_minus_L=yes
9152      export_dynamic_flag_spec='${wl}-E'
9153      ;;
9154
9155    hpux10*)
9156      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9157	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9158      else
9159	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9160      fi
9161      if test "$with_gnu_ld" = no; then
9162	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163	hardcode_libdir_flag_spec_ld='+b $libdir'
9164	hardcode_libdir_separator=:
9165	hardcode_direct=yes
9166	hardcode_direct_absolute=yes
9167	export_dynamic_flag_spec='${wl}-E'
9168	# hardcode_minus_L: Not really in the search PATH,
9169	# but as the default location of the library.
9170	hardcode_minus_L=yes
9171      fi
9172      ;;
9173
9174    hpux11*)
9175      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9176	case $host_cpu in
9177	hppa*64*)
9178	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179	  ;;
9180	ia64*)
9181	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182	  ;;
9183	*)
9184	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9185	  ;;
9186	esac
9187      else
9188	case $host_cpu in
9189	hppa*64*)
9190	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9191	  ;;
9192	ia64*)
9193	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9194	  ;;
9195	*)
9196	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9197	  ;;
9198	esac
9199      fi
9200      if test "$with_gnu_ld" = no; then
9201	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202	hardcode_libdir_separator=:
9203
9204	case $host_cpu in
9205	hppa*64*|ia64*)
9206	  hardcode_direct=no
9207	  hardcode_shlibpath_var=no
9208	  ;;
9209	*)
9210	  hardcode_direct=yes
9211	  hardcode_direct_absolute=yes
9212	  export_dynamic_flag_spec='${wl}-E'
9213
9214	  # hardcode_minus_L: Not really in the search PATH,
9215	  # but as the default location of the library.
9216	  hardcode_minus_L=yes
9217	  ;;
9218	esac
9219      fi
9220      ;;
9221
9222    irix5* | irix6* | nonstopux*)
9223      if test "$GCC" = yes; then
9224	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'
9225	# Try to use the -exported_symbol ld option, if it does not
9226	# work, assume that -exports_file does not work either and
9227	# implicitly export all symbols.
9228        save_LDFLAGS="$LDFLAGS"
9229        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9230        cat >conftest.$ac_ext <<_ACEOF
9231int foo(void) {}
9232_ACEOF
9233rm -f conftest.$ac_objext conftest$ac_exeext
9234if { (ac_try="$ac_link"
9235case "(($ac_try" in
9236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237  *) ac_try_echo=$ac_try;;
9238esac
9239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9240$as_echo "$ac_try_echo") >&5
9241  (eval "$ac_link") 2>conftest.er1
9242  ac_status=$?
9243  grep -v '^ *+' conftest.er1 >conftest.err
9244  rm -f conftest.er1
9245  cat conftest.err >&5
9246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247  (exit $ac_status); } && {
9248	 test -z "$ac_c_werror_flag" ||
9249	 test ! -s conftest.err
9250       } && test -s conftest$ac_exeext && {
9251	 test "$cross_compiling" = yes ||
9252	 $as_test_x conftest$ac_exeext
9253       }; then
9254  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'
9255
9256else
9257  $as_echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260
9261fi
9262
9263rm -rf conftest.dSYM
9264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265      conftest$ac_exeext conftest.$ac_ext
9266        LDFLAGS="$save_LDFLAGS"
9267      else
9268	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'
9269	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'
9270      fi
9271      archive_cmds_need_lc='no'
9272      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273      hardcode_libdir_separator=:
9274      inherit_rpath=yes
9275      link_all_deplibs=yes
9276      ;;
9277
9278    netbsd*)
9279      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9280	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9281      else
9282	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9283      fi
9284      hardcode_libdir_flag_spec='-R$libdir'
9285      hardcode_direct=yes
9286      hardcode_shlibpath_var=no
9287      ;;
9288
9289    newsos6)
9290      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291      hardcode_direct=yes
9292      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293      hardcode_libdir_separator=:
9294      hardcode_shlibpath_var=no
9295      ;;
9296
9297    *nto* | *qnx*)
9298      ;;
9299
9300    openbsd*)
9301      if test -f /usr/libexec/ld.so; then
9302	hardcode_direct=yes
9303	hardcode_shlibpath_var=no
9304	hardcode_direct_absolute=yes
9305	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9306	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9307	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9308	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9309	  export_dynamic_flag_spec='${wl}-E'
9310	else
9311	  case $host_os in
9312	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9313	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9314	     hardcode_libdir_flag_spec='-R$libdir'
9315	     ;;
9316	   *)
9317	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9318	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9319	     ;;
9320	  esac
9321	fi
9322      else
9323	ld_shlibs=no
9324      fi
9325      ;;
9326
9327    os2*)
9328      hardcode_libdir_flag_spec='-L$libdir'
9329      hardcode_minus_L=yes
9330      allow_undefined_flag=unsupported
9331      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'
9332      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9333      ;;
9334
9335    osf3*)
9336      if test "$GCC" = yes; then
9337	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9338	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'
9339      else
9340	allow_undefined_flag=' -expect_unresolved \*'
9341	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'
9342      fi
9343      archive_cmds_need_lc='no'
9344      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345      hardcode_libdir_separator=:
9346      ;;
9347
9348    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9349      if test "$GCC" = yes; then
9350	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9351	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'
9352	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353      else
9354	allow_undefined_flag=' -expect_unresolved \*'
9355	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'
9356	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~
9357	$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'
9358
9359	# Both c and cxx compiler support -rpath directly
9360	hardcode_libdir_flag_spec='-rpath $libdir'
9361      fi
9362      archive_cmds_need_lc='no'
9363      hardcode_libdir_separator=:
9364      ;;
9365
9366    solaris*)
9367      no_undefined_flag=' -z defs'
9368      if test "$GCC" = yes; then
9369	wlarc='${wl}'
9370	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9372	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9373      else
9374	case `$CC -V 2>&1` in
9375	*"Compilers 5.0"*)
9376	  wlarc=''
9377	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9379	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9380	  ;;
9381	*)
9382	  wlarc='${wl}'
9383	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9385	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9386	  ;;
9387	esac
9388      fi
9389      hardcode_libdir_flag_spec='-R$libdir'
9390      hardcode_shlibpath_var=no
9391      case $host_os in
9392      solaris2.[0-5] | solaris2.[0-5].*) ;;
9393      *)
9394	# The compiler driver will combine and reorder linker options,
9395	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9396	# but is careful enough not to reorder.
9397	# Supported since Solaris 2.6 (maybe 2.5.1?)
9398	if test "$GCC" = yes; then
9399	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9400	else
9401	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9402	fi
9403	;;
9404      esac
9405      link_all_deplibs=yes
9406      ;;
9407
9408    sunos4*)
9409      if test "x$host_vendor" = xsequent; then
9410	# Use $CC to link under sequent, because it throws in some extra .o
9411	# files that make .init and .fini sections work.
9412	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9413      else
9414	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9415      fi
9416      hardcode_libdir_flag_spec='-L$libdir'
9417      hardcode_direct=yes
9418      hardcode_minus_L=yes
9419      hardcode_shlibpath_var=no
9420      ;;
9421
9422    sysv4)
9423      case $host_vendor in
9424	sni)
9425	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426	  hardcode_direct=yes # is this really true???
9427	;;
9428	siemens)
9429	  ## LD is ld it makes a PLAMLIB
9430	  ## CC just makes a GrossModule.
9431	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9432	  reload_cmds='$CC -r -o $output$reload_objs'
9433	  hardcode_direct=no
9434        ;;
9435	motorola)
9436	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9438	;;
9439      esac
9440      runpath_var='LD_RUN_PATH'
9441      hardcode_shlibpath_var=no
9442      ;;
9443
9444    sysv4.3*)
9445      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446      hardcode_shlibpath_var=no
9447      export_dynamic_flag_spec='-Bexport'
9448      ;;
9449
9450    sysv4*MP*)
9451      if test -d /usr/nec; then
9452	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453	hardcode_shlibpath_var=no
9454	runpath_var=LD_RUN_PATH
9455	hardcode_runpath_var=yes
9456	ld_shlibs=yes
9457      fi
9458      ;;
9459
9460    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9461      no_undefined_flag='${wl}-z,text'
9462      archive_cmds_need_lc=no
9463      hardcode_shlibpath_var=no
9464      runpath_var='LD_RUN_PATH'
9465
9466      if test "$GCC" = yes; then
9467	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469      else
9470	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472      fi
9473      ;;
9474
9475    sysv5* | sco3.2v5* | sco5v6*)
9476      # Note: We can NOT use -z defs as we might desire, because we do not
9477      # link with -lc, and that would cause any symbols used from libc to
9478      # always be unresolved, which means just about no library would
9479      # ever link correctly.  If we're not using GNU ld we use -z text
9480      # though, which does catch some bad symbols but isn't as heavy-handed
9481      # as -z defs.
9482      no_undefined_flag='${wl}-z,text'
9483      allow_undefined_flag='${wl}-z,nodefs'
9484      archive_cmds_need_lc=no
9485      hardcode_shlibpath_var=no
9486      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9487      hardcode_libdir_separator=':'
9488      link_all_deplibs=yes
9489      export_dynamic_flag_spec='${wl}-Bexport'
9490      runpath_var='LD_RUN_PATH'
9491
9492      if test "$GCC" = yes; then
9493	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495      else
9496	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498      fi
9499      ;;
9500
9501    uts4*)
9502      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503      hardcode_libdir_flag_spec='-L$libdir'
9504      hardcode_shlibpath_var=no
9505      ;;
9506
9507    *)
9508      ld_shlibs=no
9509      ;;
9510    esac
9511
9512    if test x$host_vendor = xsni; then
9513      case $host in
9514      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9515	export_dynamic_flag_spec='${wl}-Blargedynsym'
9516	;;
9517      esac
9518    fi
9519  fi
9520
9521{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9522$as_echo "$ld_shlibs" >&6; }
9523test "$ld_shlibs" = no && can_build_shared=no
9524
9525with_gnu_ld=$with_gnu_ld
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541#
9542# Do we need to explicitly link libc?
9543#
9544case "x$archive_cmds_need_lc" in
9545x|xyes)
9546  # Assume -lc should be added
9547  archive_cmds_need_lc=yes
9548
9549  if test "$enable_shared" = yes && test "$GCC" = yes; then
9550    case $archive_cmds in
9551    *'~'*)
9552      # FIXME: we may have to deal with multi-command sequences.
9553      ;;
9554    '$CC '*)
9555      # Test whether the compiler implicitly links with -lc since on some
9556      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9557      # to ld, don't add -lc before -lgcc.
9558      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9559$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9560      $RM conftest*
9561      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562
9563      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564  (eval $ac_compile) 2>&5
9565  ac_status=$?
9566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567  (exit $ac_status); } 2>conftest.err; then
9568        soname=conftest
9569        lib=conftest
9570        libobjs=conftest.$ac_objext
9571        deplibs=
9572        wl=$lt_prog_compiler_wl
9573	pic_flag=$lt_prog_compiler_pic
9574        compiler_flags=-v
9575        linker_flags=-v
9576        verstring=
9577        output_objdir=.
9578        libname=conftest
9579        lt_save_allow_undefined_flag=$allow_undefined_flag
9580        allow_undefined_flag=
9581        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9582  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9583  ac_status=$?
9584  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585  (exit $ac_status); }
9586        then
9587	  archive_cmds_need_lc=no
9588        else
9589	  archive_cmds_need_lc=yes
9590        fi
9591        allow_undefined_flag=$lt_save_allow_undefined_flag
9592      else
9593        cat conftest.err 1>&5
9594      fi
9595      $RM conftest*
9596      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9597$as_echo "$archive_cmds_need_lc" >&6; }
9598      ;;
9599    esac
9600  fi
9601  ;;
9602esac
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9761$as_echo_n "checking dynamic linker characteristics... " >&6; }
9762
9763if test "$GCC" = yes; then
9764  case $host_os in
9765    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9766    *) lt_awk_arg="/^libraries:/" ;;
9767  esac
9768  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9769  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9770    # if the path contains ";" then we assume it to be the separator
9771    # otherwise default to the standard path separator (i.e. ":") - it is
9772    # assumed that no part of a normal pathname contains ";" but that should
9773    # okay in the real world where ";" in dirpaths is itself problematic.
9774    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9775  else
9776    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9777  fi
9778  # Ok, now we have the path, separated by spaces, we can step through it
9779  # and add multilib dir if necessary.
9780  lt_tmp_lt_search_path_spec=
9781  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9782  for lt_sys_path in $lt_search_path_spec; do
9783    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9784      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9785    else
9786      test -d "$lt_sys_path" && \
9787	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9788    fi
9789  done
9790  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9791BEGIN {RS=" "; FS="/|\n";} {
9792  lt_foo="";
9793  lt_count=0;
9794  for (lt_i = NF; lt_i > 0; lt_i--) {
9795    if ($lt_i != "" && $lt_i != ".") {
9796      if ($lt_i == "..") {
9797        lt_count++;
9798      } else {
9799        if (lt_count == 0) {
9800          lt_foo="/" $lt_i lt_foo;
9801        } else {
9802          lt_count--;
9803        }
9804      }
9805    }
9806  }
9807  if (lt_foo != "") { lt_freq[lt_foo]++; }
9808  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9809}'`
9810  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9811else
9812  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9813fi
9814library_names_spec=
9815libname_spec='lib$name'
9816soname_spec=
9817shrext_cmds=".so"
9818postinstall_cmds=
9819postuninstall_cmds=
9820finish_cmds=
9821finish_eval=
9822shlibpath_var=
9823shlibpath_overrides_runpath=unknown
9824version_type=none
9825dynamic_linker="$host_os ld.so"
9826sys_lib_dlsearch_path_spec="/lib /usr/lib"
9827need_lib_prefix=unknown
9828hardcode_into_libs=no
9829
9830# when you set need_version to no, make sure it does not cause -set_version
9831# flags to be left without arguments
9832need_version=unknown
9833
9834case $host_os in
9835aix3*)
9836  version_type=linux
9837  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9838  shlibpath_var=LIBPATH
9839
9840  # AIX 3 has no versioning support, so we append a major version to the name.
9841  soname_spec='${libname}${release}${shared_ext}$major'
9842  ;;
9843
9844aix[4-9]*)
9845  version_type=linux
9846  need_lib_prefix=no
9847  need_version=no
9848  hardcode_into_libs=yes
9849  if test "$host_cpu" = ia64; then
9850    # AIX 5 supports IA64
9851    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9852    shlibpath_var=LD_LIBRARY_PATH
9853  else
9854    # With GCC up to 2.95.x, collect2 would create an import file
9855    # for dependence libraries.  The import file would start with
9856    # the line `#! .'.  This would cause the generated library to
9857    # depend on `.', always an invalid library.  This was fixed in
9858    # development snapshots of GCC prior to 3.0.
9859    case $host_os in
9860      aix4 | aix4.[01] | aix4.[01].*)
9861      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9862	   echo ' yes '
9863	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9864	:
9865      else
9866	can_build_shared=no
9867      fi
9868      ;;
9869    esac
9870    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9871    # soname into executable. Probably we can add versioning support to
9872    # collect2, so additional links can be useful in future.
9873    if test "$aix_use_runtimelinking" = yes; then
9874      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9875      # instead of lib<name>.a to let people know that these are not
9876      # typical AIX shared libraries.
9877      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878    else
9879      # We preserve .a as extension for shared libraries through AIX4.2
9880      # and later when we are not doing run time linking.
9881      library_names_spec='${libname}${release}.a $libname.a'
9882      soname_spec='${libname}${release}${shared_ext}$major'
9883    fi
9884    shlibpath_var=LIBPATH
9885  fi
9886  ;;
9887
9888amigaos*)
9889  case $host_cpu in
9890  powerpc)
9891    # Since July 2007 AmigaOS4 officially supports .so libraries.
9892    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9893    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894    ;;
9895  m68k)
9896    library_names_spec='$libname.ixlibrary $libname.a'
9897    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9898    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'
9899    ;;
9900  esac
9901  ;;
9902
9903beos*)
9904  library_names_spec='${libname}${shared_ext}'
9905  dynamic_linker="$host_os ld.so"
9906  shlibpath_var=LIBRARY_PATH
9907  ;;
9908
9909bsdi[45]*)
9910  version_type=linux
9911  need_version=no
9912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913  soname_spec='${libname}${release}${shared_ext}$major'
9914  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9915  shlibpath_var=LD_LIBRARY_PATH
9916  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9917  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9918  # the default ld.so.conf also contains /usr/contrib/lib and
9919  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9920  # libtool to hard-code these into programs
9921  ;;
9922
9923cygwin* | mingw* | pw32* | cegcc*)
9924  version_type=windows
9925  shrext_cmds=".dll"
9926  need_version=no
9927  need_lib_prefix=no
9928
9929  case $GCC,$host_os in
9930  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9931    library_names_spec='$libname.dll.a'
9932    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9933    postinstall_cmds='base_file=`basename \${file}`~
9934      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9935      dldir=$destdir/`dirname \$dlpath`~
9936      test -d \$dldir || mkdir -p \$dldir~
9937      $install_prog $dir/$dlname \$dldir/$dlname~
9938      chmod a+x \$dldir/$dlname~
9939      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9940        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9941      fi'
9942    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9943      dlpath=$dir/\$dldll~
9944       $RM \$dlpath'
9945    shlibpath_overrides_runpath=yes
9946
9947    case $host_os in
9948    cygwin*)
9949      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9950      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9951      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9952      ;;
9953    mingw* | cegcc*)
9954      # MinGW DLLs use traditional 'lib' prefix
9955      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9956      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9957      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9958        # It is most probably a Windows format PATH printed by
9959        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9960        # path with ; separators, and with drive letters. We can handle the
9961        # drive letters (cygwin fileutils understands them), so leave them,
9962        # especially as we might pass files found there to a mingw objdump,
9963        # which wouldn't understand a cygwinified path. Ahh.
9964        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9965      else
9966        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9967      fi
9968      ;;
9969    pw32*)
9970      # pw32 DLLs use 'pw' prefix rather than 'lib'
9971      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972      ;;
9973    esac
9974    ;;
9975
9976  *)
9977    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9978    ;;
9979  esac
9980  dynamic_linker='Win32 ld.exe'
9981  # FIXME: first we should search . and the directory the executable is in
9982  shlibpath_var=PATH
9983  ;;
9984
9985darwin* | rhapsody*)
9986  dynamic_linker="$host_os dyld"
9987  version_type=darwin
9988  need_lib_prefix=no
9989  need_version=no
9990  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9991  soname_spec='${libname}${release}${major}$shared_ext'
9992  shlibpath_overrides_runpath=yes
9993  shlibpath_var=DYLD_LIBRARY_PATH
9994  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9995
9996  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9997  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9998  ;;
9999
10000dgux*)
10001  version_type=linux
10002  need_lib_prefix=no
10003  need_version=no
10004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005  soname_spec='${libname}${release}${shared_ext}$major'
10006  shlibpath_var=LD_LIBRARY_PATH
10007  ;;
10008
10009freebsd1*)
10010  dynamic_linker=no
10011  ;;
10012
10013freebsd* | dragonfly*)
10014  # DragonFly does not have aout.  When/if they implement a new
10015  # versioning mechanism, adjust this.
10016  if test -x /usr/bin/objformat; then
10017    objformat=`/usr/bin/objformat`
10018  else
10019    case $host_os in
10020    freebsd[123]*) objformat=aout ;;
10021    *) objformat=elf ;;
10022    esac
10023  fi
10024  version_type=freebsd-$objformat
10025  case $version_type in
10026    freebsd-elf*)
10027      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10028      need_version=no
10029      need_lib_prefix=no
10030      ;;
10031    freebsd-*)
10032      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10033      need_version=yes
10034      ;;
10035  esac
10036  shlibpath_var=LD_LIBRARY_PATH
10037  case $host_os in
10038  freebsd2*)
10039    shlibpath_overrides_runpath=yes
10040    ;;
10041  freebsd3.[01]* | freebsdelf3.[01]*)
10042    shlibpath_overrides_runpath=yes
10043    hardcode_into_libs=yes
10044    ;;
10045  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10046  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10047    shlibpath_overrides_runpath=no
10048    hardcode_into_libs=yes
10049    ;;
10050  *) # from 4.6 on, and DragonFly
10051    shlibpath_overrides_runpath=yes
10052    hardcode_into_libs=yes
10053    ;;
10054  esac
10055  ;;
10056
10057gnu*)
10058  version_type=linux
10059  need_lib_prefix=no
10060  need_version=no
10061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10062  soname_spec='${libname}${release}${shared_ext}$major'
10063  shlibpath_var=LD_LIBRARY_PATH
10064  hardcode_into_libs=yes
10065  ;;
10066
10067hpux9* | hpux10* | hpux11*)
10068  # Give a soname corresponding to the major version so that dld.sl refuses to
10069  # link against other versions.
10070  version_type=sunos
10071  need_lib_prefix=no
10072  need_version=no
10073  case $host_cpu in
10074  ia64*)
10075    shrext_cmds='.so'
10076    hardcode_into_libs=yes
10077    dynamic_linker="$host_os dld.so"
10078    shlibpath_var=LD_LIBRARY_PATH
10079    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10080    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081    soname_spec='${libname}${release}${shared_ext}$major'
10082    if test "X$HPUX_IA64_MODE" = X32; then
10083      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10084    else
10085      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10086    fi
10087    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10088    ;;
10089  hppa*64*)
10090    shrext_cmds='.sl'
10091    hardcode_into_libs=yes
10092    dynamic_linker="$host_os dld.sl"
10093    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10094    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10095    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096    soname_spec='${libname}${release}${shared_ext}$major'
10097    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10098    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099    ;;
10100  *)
10101    shrext_cmds='.sl'
10102    dynamic_linker="$host_os dld.sl"
10103    shlibpath_var=SHLIB_PATH
10104    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106    soname_spec='${libname}${release}${shared_ext}$major'
10107    ;;
10108  esac
10109  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10110  postinstall_cmds='chmod 555 $lib'
10111  ;;
10112
10113interix[3-9]*)
10114  version_type=linux
10115  need_lib_prefix=no
10116  need_version=no
10117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10118  soname_spec='${libname}${release}${shared_ext}$major'
10119  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10120  shlibpath_var=LD_LIBRARY_PATH
10121  shlibpath_overrides_runpath=no
10122  hardcode_into_libs=yes
10123  ;;
10124
10125irix5* | irix6* | nonstopux*)
10126  case $host_os in
10127    nonstopux*) version_type=nonstopux ;;
10128    *)
10129	if test "$lt_cv_prog_gnu_ld" = yes; then
10130		version_type=linux
10131	else
10132		version_type=irix
10133	fi ;;
10134  esac
10135  need_lib_prefix=no
10136  need_version=no
10137  soname_spec='${libname}${release}${shared_ext}$major'
10138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10139  case $host_os in
10140  irix5* | nonstopux*)
10141    libsuff= shlibsuff=
10142    ;;
10143  *)
10144    case $LD in # libtool.m4 will add one of these switches to LD
10145    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10146      libsuff= shlibsuff= libmagic=32-bit;;
10147    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10148      libsuff=32 shlibsuff=N32 libmagic=N32;;
10149    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10150      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10151    *) libsuff= shlibsuff= libmagic=never-match;;
10152    esac
10153    ;;
10154  esac
10155  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10156  shlibpath_overrides_runpath=no
10157  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10158  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10159  hardcode_into_libs=yes
10160  ;;
10161
10162# No shared lib support for Linux oldld, aout, or coff.
10163linux*oldld* | linux*aout* | linux*coff*)
10164  dynamic_linker=no
10165  ;;
10166
10167# This must be Linux ELF.
10168linux* | k*bsd*-gnu)
10169  version_type=linux
10170  need_lib_prefix=no
10171  need_version=no
10172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173  soname_spec='${libname}${release}${shared_ext}$major'
10174  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10175  shlibpath_var=LD_LIBRARY_PATH
10176  shlibpath_overrides_runpath=no
10177  # Some binutils ld are patched to set DT_RUNPATH
10178  save_LDFLAGS=$LDFLAGS
10179  save_libdir=$libdir
10180  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10181       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10182  cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h.  */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h.  */
10188
10189int
10190main ()
10191{
10192
10193  ;
10194  return 0;
10195}
10196_ACEOF
10197rm -f conftest.$ac_objext conftest$ac_exeext
10198if { (ac_try="$ac_link"
10199case "(($ac_try" in
10200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201  *) ac_try_echo=$ac_try;;
10202esac
10203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204$as_echo "$ac_try_echo") >&5
10205  (eval "$ac_link") 2>conftest.er1
10206  ac_status=$?
10207  grep -v '^ *+' conftest.er1 >conftest.err
10208  rm -f conftest.er1
10209  cat conftest.err >&5
10210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); } && {
10212	 test -z "$ac_c_werror_flag" ||
10213	 test ! -s conftest.err
10214       } && test -s conftest$ac_exeext && {
10215	 test "$cross_compiling" = yes ||
10216	 $as_test_x conftest$ac_exeext
10217       }; then
10218  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10219  shlibpath_overrides_runpath=yes
10220fi
10221
10222else
10223  $as_echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226
10227fi
10228
10229rm -rf conftest.dSYM
10230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231      conftest$ac_exeext conftest.$ac_ext
10232  LDFLAGS=$save_LDFLAGS
10233  libdir=$save_libdir
10234
10235  # This implies no fast_install, which is unacceptable.
10236  # Some rework will be needed to allow for fast_install
10237  # before this can be enabled.
10238  hardcode_into_libs=yes
10239
10240  # Add ABI-specific directories to the system library path.
10241  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10242
10243  # Append ld.so.conf contents to the search path
10244  if test -f /etc/ld.so.conf; then
10245    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' ' '`
10246    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10247  fi
10248
10249  # We used to test for /lib/ld.so.1 and disable shared libraries on
10250  # powerpc, because MkLinux only supported shared libraries with the
10251  # GNU dynamic linker.  Since this was broken with cross compilers,
10252  # most powerpc-linux boxes support dynamic linking these days and
10253  # people can always --disable-shared, the test was removed, and we
10254  # assume the GNU/Linux dynamic linker is in use.
10255  dynamic_linker='GNU/Linux ld.so'
10256  ;;
10257
10258netbsd*)
10259  version_type=sunos
10260  need_lib_prefix=no
10261  need_version=no
10262  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10265    dynamic_linker='NetBSD (a.out) ld.so'
10266  else
10267    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268    soname_spec='${libname}${release}${shared_ext}$major'
10269    dynamic_linker='NetBSD ld.elf_so'
10270  fi
10271  shlibpath_var=LD_LIBRARY_PATH
10272  shlibpath_overrides_runpath=yes
10273  hardcode_into_libs=yes
10274  ;;
10275
10276newsos6)
10277  version_type=linux
10278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279  shlibpath_var=LD_LIBRARY_PATH
10280  shlibpath_overrides_runpath=yes
10281  ;;
10282
10283*nto* | *qnx*)
10284  version_type=qnx
10285  need_lib_prefix=no
10286  need_version=no
10287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288  soname_spec='${libname}${release}${shared_ext}$major'
10289  shlibpath_var=LD_LIBRARY_PATH
10290  shlibpath_overrides_runpath=no
10291  hardcode_into_libs=yes
10292  dynamic_linker='ldqnx.so'
10293  ;;
10294
10295openbsd*)
10296  version_type=sunos
10297  sys_lib_dlsearch_path_spec="/usr/lib"
10298  need_lib_prefix=no
10299  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10300  case $host_os in
10301    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10302    *)				need_version=no  ;;
10303  esac
10304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10306  shlibpath_var=LD_LIBRARY_PATH
10307  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10308    case $host_os in
10309      openbsd2.[89] | openbsd2.[89].*)
10310	shlibpath_overrides_runpath=no
10311	;;
10312      *)
10313	shlibpath_overrides_runpath=yes
10314	;;
10315      esac
10316  else
10317    shlibpath_overrides_runpath=yes
10318  fi
10319  ;;
10320
10321os2*)
10322  libname_spec='$name'
10323  shrext_cmds=".dll"
10324  need_lib_prefix=no
10325  library_names_spec='$libname${shared_ext} $libname.a'
10326  dynamic_linker='OS/2 ld.exe'
10327  shlibpath_var=LIBPATH
10328  ;;
10329
10330osf3* | osf4* | osf5*)
10331  version_type=osf
10332  need_lib_prefix=no
10333  need_version=no
10334  soname_spec='${libname}${release}${shared_ext}$major'
10335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336  shlibpath_var=LD_LIBRARY_PATH
10337  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10338  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10339  ;;
10340
10341rdos*)
10342  dynamic_linker=no
10343  ;;
10344
10345solaris*)
10346  version_type=linux
10347  need_lib_prefix=no
10348  need_version=no
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350  soname_spec='${libname}${release}${shared_ext}$major'
10351  shlibpath_var=LD_LIBRARY_PATH
10352  shlibpath_overrides_runpath=yes
10353  hardcode_into_libs=yes
10354  # ldd complains unless libraries are executable
10355  postinstall_cmds='chmod +x $lib'
10356  ;;
10357
10358sunos4*)
10359  version_type=sunos
10360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10361  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10362  shlibpath_var=LD_LIBRARY_PATH
10363  shlibpath_overrides_runpath=yes
10364  if test "$with_gnu_ld" = yes; then
10365    need_lib_prefix=no
10366  fi
10367  need_version=yes
10368  ;;
10369
10370sysv4 | sysv4.3*)
10371  version_type=linux
10372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373  soname_spec='${libname}${release}${shared_ext}$major'
10374  shlibpath_var=LD_LIBRARY_PATH
10375  case $host_vendor in
10376    sni)
10377      shlibpath_overrides_runpath=no
10378      need_lib_prefix=no
10379      runpath_var=LD_RUN_PATH
10380      ;;
10381    siemens)
10382      need_lib_prefix=no
10383      ;;
10384    motorola)
10385      need_lib_prefix=no
10386      need_version=no
10387      shlibpath_overrides_runpath=no
10388      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10389      ;;
10390  esac
10391  ;;
10392
10393sysv4*MP*)
10394  if test -d /usr/nec ;then
10395    version_type=linux
10396    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10397    soname_spec='$libname${shared_ext}.$major'
10398    shlibpath_var=LD_LIBRARY_PATH
10399  fi
10400  ;;
10401
10402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10403  version_type=freebsd-elf
10404  need_lib_prefix=no
10405  need_version=no
10406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10407  soname_spec='${libname}${release}${shared_ext}$major'
10408  shlibpath_var=LD_LIBRARY_PATH
10409  shlibpath_overrides_runpath=yes
10410  hardcode_into_libs=yes
10411  if test "$with_gnu_ld" = yes; then
10412    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10413  else
10414    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10415    case $host_os in
10416      sco3.2v5*)
10417        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10418	;;
10419    esac
10420  fi
10421  sys_lib_dlsearch_path_spec='/usr/lib'
10422  ;;
10423
10424tpf*)
10425  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10426  version_type=linux
10427  need_lib_prefix=no
10428  need_version=no
10429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430  shlibpath_var=LD_LIBRARY_PATH
10431  shlibpath_overrides_runpath=no
10432  hardcode_into_libs=yes
10433  ;;
10434
10435uts4*)
10436  version_type=linux
10437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438  soname_spec='${libname}${release}${shared_ext}$major'
10439  shlibpath_var=LD_LIBRARY_PATH
10440  ;;
10441
10442*)
10443  dynamic_linker=no
10444  ;;
10445esac
10446{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10447$as_echo "$dynamic_linker" >&6; }
10448test "$dynamic_linker" = no && can_build_shared=no
10449
10450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10451if test "$GCC" = yes; then
10452  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10453fi
10454
10455if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10456  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10457fi
10458if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10459  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10460fi
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10549$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10550hardcode_action=
10551if test -n "$hardcode_libdir_flag_spec" ||
10552   test -n "$runpath_var" ||
10553   test "X$hardcode_automatic" = "Xyes" ; then
10554
10555  # We can hardcode non-existent directories.
10556  if test "$hardcode_direct" != no &&
10557     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10558     # have to relink, otherwise we might link with an installed library
10559     # when we should be linking with a yet-to-be-installed one
10560     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10561     test "$hardcode_minus_L" != no; then
10562    # Linking always hardcodes the temporary library directory.
10563    hardcode_action=relink
10564  else
10565    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10566    hardcode_action=immediate
10567  fi
10568else
10569  # We cannot hardcode anything, or else we can only hardcode existing
10570  # directories.
10571  hardcode_action=unsupported
10572fi
10573{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10574$as_echo "$hardcode_action" >&6; }
10575
10576if test "$hardcode_action" = relink ||
10577   test "$inherit_rpath" = yes; then
10578  # Fast installation is not supported
10579  enable_fast_install=no
10580elif test "$shlibpath_overrides_runpath" = yes ||
10581     test "$enable_shared" = no; then
10582  # Fast installation is not necessary
10583  enable_fast_install=needless
10584fi
10585
10586
10587
10588
10589
10590
10591  if test "x$enable_dlopen" != xyes; then
10592  enable_dlopen=unknown
10593  enable_dlopen_self=unknown
10594  enable_dlopen_self_static=unknown
10595else
10596  lt_cv_dlopen=no
10597  lt_cv_dlopen_libs=
10598
10599  case $host_os in
10600  beos*)
10601    lt_cv_dlopen="load_add_on"
10602    lt_cv_dlopen_libs=
10603    lt_cv_dlopen_self=yes
10604    ;;
10605
10606  mingw* | pw32* | cegcc*)
10607    lt_cv_dlopen="LoadLibrary"
10608    lt_cv_dlopen_libs=
10609    ;;
10610
10611  cygwin*)
10612    lt_cv_dlopen="dlopen"
10613    lt_cv_dlopen_libs=
10614    ;;
10615
10616  darwin*)
10617  # if libdl is installed we need to link against it
10618    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10619$as_echo_n "checking for dlopen in -ldl... " >&6; }
10620if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10621  $as_echo_n "(cached) " >&6
10622else
10623  ac_check_lib_save_LIBS=$LIBS
10624LIBS="-ldl  $LIBS"
10625cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h.  */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h.  */
10631
10632/* Override any GCC internal prototype to avoid an error.
10633   Use char because int might match the return type of a GCC
10634   builtin and then its argument prototype would still apply.  */
10635#ifdef __cplusplus
10636extern "C"
10637#endif
10638char dlopen ();
10639int
10640main ()
10641{
10642return dlopen ();
10643  ;
10644  return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext conftest$ac_exeext
10648if { (ac_try="$ac_link"
10649case "(($ac_try" in
10650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651  *) ac_try_echo=$ac_try;;
10652esac
10653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654$as_echo "$ac_try_echo") >&5
10655  (eval "$ac_link") 2>conftest.er1
10656  ac_status=$?
10657  grep -v '^ *+' conftest.er1 >conftest.err
10658  rm -f conftest.er1
10659  cat conftest.err >&5
10660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); } && {
10662	 test -z "$ac_c_werror_flag" ||
10663	 test ! -s conftest.err
10664       } && test -s conftest$ac_exeext && {
10665	 test "$cross_compiling" = yes ||
10666	 $as_test_x conftest$ac_exeext
10667       }; then
10668  ac_cv_lib_dl_dlopen=yes
10669else
10670  $as_echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
10673	ac_cv_lib_dl_dlopen=no
10674fi
10675
10676rm -rf conftest.dSYM
10677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10678      conftest$ac_exeext conftest.$ac_ext
10679LIBS=$ac_check_lib_save_LIBS
10680fi
10681{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10682$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10683if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10684  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10685else
10686
10687    lt_cv_dlopen="dyld"
10688    lt_cv_dlopen_libs=
10689    lt_cv_dlopen_self=yes
10690
10691fi
10692
10693    ;;
10694
10695  *)
10696    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10697$as_echo_n "checking for shl_load... " >&6; }
10698if test "${ac_cv_func_shl_load+set}" = set; then
10699  $as_echo_n "(cached) " >&6
10700else
10701  cat >conftest.$ac_ext <<_ACEOF
10702/* confdefs.h.  */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h.  */
10707/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10708   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10709#define shl_load innocuous_shl_load
10710
10711/* System header to define __stub macros and hopefully few prototypes,
10712    which can conflict with char shl_load (); below.
10713    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10714    <limits.h> exists even on freestanding compilers.  */
10715
10716#ifdef __STDC__
10717# include <limits.h>
10718#else
10719# include <assert.h>
10720#endif
10721
10722#undef shl_load
10723
10724/* Override any GCC internal prototype to avoid an error.
10725   Use char because int might match the return type of a GCC
10726   builtin and then its argument prototype would still apply.  */
10727#ifdef __cplusplus
10728extern "C"
10729#endif
10730char shl_load ();
10731/* The GNU C library defines this for functions which it implements
10732    to always fail with ENOSYS.  Some functions are actually named
10733    something starting with __ and the normal name is an alias.  */
10734#if defined __stub_shl_load || defined __stub___shl_load
10735choke me
10736#endif
10737
10738int
10739main ()
10740{
10741return shl_load ();
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746rm -f conftest.$ac_objext conftest$ac_exeext
10747if { (ac_try="$ac_link"
10748case "(($ac_try" in
10749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750  *) ac_try_echo=$ac_try;;
10751esac
10752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753$as_echo "$ac_try_echo") >&5
10754  (eval "$ac_link") 2>conftest.er1
10755  ac_status=$?
10756  grep -v '^ *+' conftest.er1 >conftest.err
10757  rm -f conftest.er1
10758  cat conftest.err >&5
10759  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); } && {
10761	 test -z "$ac_c_werror_flag" ||
10762	 test ! -s conftest.err
10763       } && test -s conftest$ac_exeext && {
10764	 test "$cross_compiling" = yes ||
10765	 $as_test_x conftest$ac_exeext
10766       }; then
10767  ac_cv_func_shl_load=yes
10768else
10769  $as_echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772	ac_cv_func_shl_load=no
10773fi
10774
10775rm -rf conftest.dSYM
10776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10777      conftest$ac_exeext conftest.$ac_ext
10778fi
10779{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10780$as_echo "$ac_cv_func_shl_load" >&6; }
10781if test "x$ac_cv_func_shl_load" = x""yes; then
10782  lt_cv_dlopen="shl_load"
10783else
10784  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10785$as_echo_n "checking for shl_load in -ldld... " >&6; }
10786if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10787  $as_echo_n "(cached) " >&6
10788else
10789  ac_check_lib_save_LIBS=$LIBS
10790LIBS="-ldld  $LIBS"
10791cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h.  */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h.  */
10797
10798/* Override any GCC internal prototype to avoid an error.
10799   Use char because int might match the return type of a GCC
10800   builtin and then its argument prototype would still apply.  */
10801#ifdef __cplusplus
10802extern "C"
10803#endif
10804char shl_load ();
10805int
10806main ()
10807{
10808return shl_load ();
10809  ;
10810  return 0;
10811}
10812_ACEOF
10813rm -f conftest.$ac_objext conftest$ac_exeext
10814if { (ac_try="$ac_link"
10815case "(($ac_try" in
10816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817  *) ac_try_echo=$ac_try;;
10818esac
10819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10820$as_echo "$ac_try_echo") >&5
10821  (eval "$ac_link") 2>conftest.er1
10822  ac_status=$?
10823  grep -v '^ *+' conftest.er1 >conftest.err
10824  rm -f conftest.er1
10825  cat conftest.err >&5
10826  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827  (exit $ac_status); } && {
10828	 test -z "$ac_c_werror_flag" ||
10829	 test ! -s conftest.err
10830       } && test -s conftest$ac_exeext && {
10831	 test "$cross_compiling" = yes ||
10832	 $as_test_x conftest$ac_exeext
10833       }; then
10834  ac_cv_lib_dld_shl_load=yes
10835else
10836  $as_echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
10839	ac_cv_lib_dld_shl_load=no
10840fi
10841
10842rm -rf conftest.dSYM
10843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844      conftest$ac_exeext conftest.$ac_ext
10845LIBS=$ac_check_lib_save_LIBS
10846fi
10847{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10848$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10849if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10850  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10851else
10852  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10853$as_echo_n "checking for dlopen... " >&6; }
10854if test "${ac_cv_func_dlopen+set}" = set; then
10855  $as_echo_n "(cached) " >&6
10856else
10857  cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h.  */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h.  */
10863/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10864   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10865#define dlopen innocuous_dlopen
10866
10867/* System header to define __stub macros and hopefully few prototypes,
10868    which can conflict with char dlopen (); below.
10869    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870    <limits.h> exists even on freestanding compilers.  */
10871
10872#ifdef __STDC__
10873# include <limits.h>
10874#else
10875# include <assert.h>
10876#endif
10877
10878#undef dlopen
10879
10880/* Override any GCC internal prototype to avoid an error.
10881   Use char because int might match the return type of a GCC
10882   builtin and then its argument prototype would still apply.  */
10883#ifdef __cplusplus
10884extern "C"
10885#endif
10886char dlopen ();
10887/* The GNU C library defines this for functions which it implements
10888    to always fail with ENOSYS.  Some functions are actually named
10889    something starting with __ and the normal name is an alias.  */
10890#if defined __stub_dlopen || defined __stub___dlopen
10891choke me
10892#endif
10893
10894int
10895main ()
10896{
10897return dlopen ();
10898  ;
10899  return 0;
10900}
10901_ACEOF
10902rm -f conftest.$ac_objext conftest$ac_exeext
10903if { (ac_try="$ac_link"
10904case "(($ac_try" in
10905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906  *) ac_try_echo=$ac_try;;
10907esac
10908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10909$as_echo "$ac_try_echo") >&5
10910  (eval "$ac_link") 2>conftest.er1
10911  ac_status=$?
10912  grep -v '^ *+' conftest.er1 >conftest.err
10913  rm -f conftest.er1
10914  cat conftest.err >&5
10915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916  (exit $ac_status); } && {
10917	 test -z "$ac_c_werror_flag" ||
10918	 test ! -s conftest.err
10919       } && test -s conftest$ac_exeext && {
10920	 test "$cross_compiling" = yes ||
10921	 $as_test_x conftest$ac_exeext
10922       }; then
10923  ac_cv_func_dlopen=yes
10924else
10925  $as_echo "$as_me: failed program was:" >&5
10926sed 's/^/| /' conftest.$ac_ext >&5
10927
10928	ac_cv_func_dlopen=no
10929fi
10930
10931rm -rf conftest.dSYM
10932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10933      conftest$ac_exeext conftest.$ac_ext
10934fi
10935{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10936$as_echo "$ac_cv_func_dlopen" >&6; }
10937if test "x$ac_cv_func_dlopen" = x""yes; then
10938  lt_cv_dlopen="dlopen"
10939else
10940  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10941$as_echo_n "checking for dlopen in -ldl... " >&6; }
10942if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10943  $as_echo_n "(cached) " >&6
10944else
10945  ac_check_lib_save_LIBS=$LIBS
10946LIBS="-ldl  $LIBS"
10947cat >conftest.$ac_ext <<_ACEOF
10948/* confdefs.h.  */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
10952/* end confdefs.h.  */
10953
10954/* Override any GCC internal prototype to avoid an error.
10955   Use char because int might match the return type of a GCC
10956   builtin and then its argument prototype would still apply.  */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char dlopen ();
10961int
10962main ()
10963{
10964return dlopen ();
10965  ;
10966  return 0;
10967}
10968_ACEOF
10969rm -f conftest.$ac_objext conftest$ac_exeext
10970if { (ac_try="$ac_link"
10971case "(($ac_try" in
10972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973  *) ac_try_echo=$ac_try;;
10974esac
10975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10976$as_echo "$ac_try_echo") >&5
10977  (eval "$ac_link") 2>conftest.er1
10978  ac_status=$?
10979  grep -v '^ *+' conftest.er1 >conftest.err
10980  rm -f conftest.er1
10981  cat conftest.err >&5
10982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983  (exit $ac_status); } && {
10984	 test -z "$ac_c_werror_flag" ||
10985	 test ! -s conftest.err
10986       } && test -s conftest$ac_exeext && {
10987	 test "$cross_compiling" = yes ||
10988	 $as_test_x conftest$ac_exeext
10989       }; then
10990  ac_cv_lib_dl_dlopen=yes
10991else
10992  $as_echo "$as_me: failed program was:" >&5
10993sed 's/^/| /' conftest.$ac_ext >&5
10994
10995	ac_cv_lib_dl_dlopen=no
10996fi
10997
10998rm -rf conftest.dSYM
10999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11000      conftest$ac_exeext conftest.$ac_ext
11001LIBS=$ac_check_lib_save_LIBS
11002fi
11003{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11004$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11006  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007else
11008  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11009$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11010if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11011  $as_echo_n "(cached) " >&6
11012else
11013  ac_check_lib_save_LIBS=$LIBS
11014LIBS="-lsvld  $LIBS"
11015cat >conftest.$ac_ext <<_ACEOF
11016/* confdefs.h.  */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
11020/* end confdefs.h.  */
11021
11022/* Override any GCC internal prototype to avoid an error.
11023   Use char because int might match the return type of a GCC
11024   builtin and then its argument prototype would still apply.  */
11025#ifdef __cplusplus
11026extern "C"
11027#endif
11028char dlopen ();
11029int
11030main ()
11031{
11032return dlopen ();
11033  ;
11034  return 0;
11035}
11036_ACEOF
11037rm -f conftest.$ac_objext conftest$ac_exeext
11038if { (ac_try="$ac_link"
11039case "(($ac_try" in
11040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041  *) ac_try_echo=$ac_try;;
11042esac
11043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11044$as_echo "$ac_try_echo") >&5
11045  (eval "$ac_link") 2>conftest.er1
11046  ac_status=$?
11047  grep -v '^ *+' conftest.er1 >conftest.err
11048  rm -f conftest.er1
11049  cat conftest.err >&5
11050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051  (exit $ac_status); } && {
11052	 test -z "$ac_c_werror_flag" ||
11053	 test ! -s conftest.err
11054       } && test -s conftest$ac_exeext && {
11055	 test "$cross_compiling" = yes ||
11056	 $as_test_x conftest$ac_exeext
11057       }; then
11058  ac_cv_lib_svld_dlopen=yes
11059else
11060  $as_echo "$as_me: failed program was:" >&5
11061sed 's/^/| /' conftest.$ac_ext >&5
11062
11063	ac_cv_lib_svld_dlopen=no
11064fi
11065
11066rm -rf conftest.dSYM
11067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068      conftest$ac_exeext conftest.$ac_ext
11069LIBS=$ac_check_lib_save_LIBS
11070fi
11071{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11072$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11073if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11074  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11075else
11076  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11077$as_echo_n "checking for dld_link in -ldld... " >&6; }
11078if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11079  $as_echo_n "(cached) " >&6
11080else
11081  ac_check_lib_save_LIBS=$LIBS
11082LIBS="-ldld  $LIBS"
11083cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h.  */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h.  */
11089
11090/* Override any GCC internal prototype to avoid an error.
11091   Use char because int might match the return type of a GCC
11092   builtin and then its argument prototype would still apply.  */
11093#ifdef __cplusplus
11094extern "C"
11095#endif
11096char dld_link ();
11097int
11098main ()
11099{
11100return dld_link ();
11101  ;
11102  return 0;
11103}
11104_ACEOF
11105rm -f conftest.$ac_objext conftest$ac_exeext
11106if { (ac_try="$ac_link"
11107case "(($ac_try" in
11108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109  *) ac_try_echo=$ac_try;;
11110esac
11111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11112$as_echo "$ac_try_echo") >&5
11113  (eval "$ac_link") 2>conftest.er1
11114  ac_status=$?
11115  grep -v '^ *+' conftest.er1 >conftest.err
11116  rm -f conftest.er1
11117  cat conftest.err >&5
11118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119  (exit $ac_status); } && {
11120	 test -z "$ac_c_werror_flag" ||
11121	 test ! -s conftest.err
11122       } && test -s conftest$ac_exeext && {
11123	 test "$cross_compiling" = yes ||
11124	 $as_test_x conftest$ac_exeext
11125       }; then
11126  ac_cv_lib_dld_dld_link=yes
11127else
11128  $as_echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
11131	ac_cv_lib_dld_dld_link=no
11132fi
11133
11134rm -rf conftest.dSYM
11135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11136      conftest$ac_exeext conftest.$ac_ext
11137LIBS=$ac_check_lib_save_LIBS
11138fi
11139{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11140$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11141if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11142  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11143fi
11144
11145
11146fi
11147
11148
11149fi
11150
11151
11152fi
11153
11154
11155fi
11156
11157
11158fi
11159
11160    ;;
11161  esac
11162
11163  if test "x$lt_cv_dlopen" != xno; then
11164    enable_dlopen=yes
11165  else
11166    enable_dlopen=no
11167  fi
11168
11169  case $lt_cv_dlopen in
11170  dlopen)
11171    save_CPPFLAGS="$CPPFLAGS"
11172    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11173
11174    save_LDFLAGS="$LDFLAGS"
11175    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11176
11177    save_LIBS="$LIBS"
11178    LIBS="$lt_cv_dlopen_libs $LIBS"
11179
11180    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11181$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11182if test "${lt_cv_dlopen_self+set}" = set; then
11183  $as_echo_n "(cached) " >&6
11184else
11185  	  if test "$cross_compiling" = yes; then :
11186  lt_cv_dlopen_self=cross
11187else
11188  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189  lt_status=$lt_dlunknown
11190  cat > conftest.$ac_ext <<_LT_EOF
11191#line 11191 "configure"
11192#include "confdefs.h"
11193
11194#if HAVE_DLFCN_H
11195#include <dlfcn.h>
11196#endif
11197
11198#include <stdio.h>
11199
11200#ifdef RTLD_GLOBAL
11201#  define LT_DLGLOBAL		RTLD_GLOBAL
11202#else
11203#  ifdef DL_GLOBAL
11204#    define LT_DLGLOBAL		DL_GLOBAL
11205#  else
11206#    define LT_DLGLOBAL		0
11207#  endif
11208#endif
11209
11210/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211   find out it does not work in some platform. */
11212#ifndef LT_DLLAZY_OR_NOW
11213#  ifdef RTLD_LAZY
11214#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11215#  else
11216#    ifdef DL_LAZY
11217#      define LT_DLLAZY_OR_NOW		DL_LAZY
11218#    else
11219#      ifdef RTLD_NOW
11220#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11221#      else
11222#        ifdef DL_NOW
11223#          define LT_DLLAZY_OR_NOW	DL_NOW
11224#        else
11225#          define LT_DLLAZY_OR_NOW	0
11226#        endif
11227#      endif
11228#    endif
11229#  endif
11230#endif
11231
11232void fnord() { int i=42;}
11233int main ()
11234{
11235  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11236  int status = $lt_dlunknown;
11237
11238  if (self)
11239    {
11240      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11241      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11242      /* dlclose (self); */
11243    }
11244  else
11245    puts (dlerror ());
11246
11247  return status;
11248}
11249_LT_EOF
11250  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251  (eval $ac_link) 2>&5
11252  ac_status=$?
11253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11255    (./conftest; exit; ) >&5 2>/dev/null
11256    lt_status=$?
11257    case x$lt_status in
11258      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11259      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11260      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11261    esac
11262  else :
11263    # compilation failed
11264    lt_cv_dlopen_self=no
11265  fi
11266fi
11267rm -fr conftest*
11268
11269
11270fi
11271{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11272$as_echo "$lt_cv_dlopen_self" >&6; }
11273
11274    if test "x$lt_cv_dlopen_self" = xyes; then
11275      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11276      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11277$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11278if test "${lt_cv_dlopen_self_static+set}" = set; then
11279  $as_echo_n "(cached) " >&6
11280else
11281  	  if test "$cross_compiling" = yes; then :
11282  lt_cv_dlopen_self_static=cross
11283else
11284  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11285  lt_status=$lt_dlunknown
11286  cat > conftest.$ac_ext <<_LT_EOF
11287#line 11287 "configure"
11288#include "confdefs.h"
11289
11290#if HAVE_DLFCN_H
11291#include <dlfcn.h>
11292#endif
11293
11294#include <stdio.h>
11295
11296#ifdef RTLD_GLOBAL
11297#  define LT_DLGLOBAL		RTLD_GLOBAL
11298#else
11299#  ifdef DL_GLOBAL
11300#    define LT_DLGLOBAL		DL_GLOBAL
11301#  else
11302#    define LT_DLGLOBAL		0
11303#  endif
11304#endif
11305
11306/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11307   find out it does not work in some platform. */
11308#ifndef LT_DLLAZY_OR_NOW
11309#  ifdef RTLD_LAZY
11310#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11311#  else
11312#    ifdef DL_LAZY
11313#      define LT_DLLAZY_OR_NOW		DL_LAZY
11314#    else
11315#      ifdef RTLD_NOW
11316#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11317#      else
11318#        ifdef DL_NOW
11319#          define LT_DLLAZY_OR_NOW	DL_NOW
11320#        else
11321#          define LT_DLLAZY_OR_NOW	0
11322#        endif
11323#      endif
11324#    endif
11325#  endif
11326#endif
11327
11328void fnord() { int i=42;}
11329int main ()
11330{
11331  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332  int status = $lt_dlunknown;
11333
11334  if (self)
11335    {
11336      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11337      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11338      /* dlclose (self); */
11339    }
11340  else
11341    puts (dlerror ());
11342
11343  return status;
11344}
11345_LT_EOF
11346  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347  (eval $ac_link) 2>&5
11348  ac_status=$?
11349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11351    (./conftest; exit; ) >&5 2>/dev/null
11352    lt_status=$?
11353    case x$lt_status in
11354      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11355      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11356      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11357    esac
11358  else :
11359    # compilation failed
11360    lt_cv_dlopen_self_static=no
11361  fi
11362fi
11363rm -fr conftest*
11364
11365
11366fi
11367{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11368$as_echo "$lt_cv_dlopen_self_static" >&6; }
11369    fi
11370
11371    CPPFLAGS="$save_CPPFLAGS"
11372    LDFLAGS="$save_LDFLAGS"
11373    LIBS="$save_LIBS"
11374    ;;
11375  esac
11376
11377  case $lt_cv_dlopen_self in
11378  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11379  *) enable_dlopen_self=unknown ;;
11380  esac
11381
11382  case $lt_cv_dlopen_self_static in
11383  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11384  *) enable_dlopen_self_static=unknown ;;
11385  esac
11386fi
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404striplib=
11405old_striplib=
11406{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11407$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11408if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11409  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11410  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11411  { $as_echo "$as_me:$LINENO: result: yes" >&5
11412$as_echo "yes" >&6; }
11413else
11414# FIXME - insert some real tests, host_os isn't really good enough
11415  case $host_os in
11416  darwin*)
11417    if test -n "$STRIP" ; then
11418      striplib="$STRIP -x"
11419      old_striplib="$STRIP -S"
11420      { $as_echo "$as_me:$LINENO: result: yes" >&5
11421$as_echo "yes" >&6; }
11422    else
11423      { $as_echo "$as_me:$LINENO: result: no" >&5
11424$as_echo "no" >&6; }
11425    fi
11426    ;;
11427  *)
11428    { $as_echo "$as_me:$LINENO: result: no" >&5
11429$as_echo "no" >&6; }
11430    ;;
11431  esac
11432fi
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445  # Report which library types will actually be built
11446  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11447$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11448  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11449$as_echo "$can_build_shared" >&6; }
11450
11451  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11452$as_echo_n "checking whether to build shared libraries... " >&6; }
11453  test "$can_build_shared" = "no" && enable_shared=no
11454
11455  # On AIX, shared libraries and static libraries use the same namespace, and
11456  # are all built from PIC.
11457  case $host_os in
11458  aix3*)
11459    test "$enable_shared" = yes && enable_static=no
11460    if test -n "$RANLIB"; then
11461      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11462      postinstall_cmds='$RANLIB $lib'
11463    fi
11464    ;;
11465
11466  aix[4-9]*)
11467    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11468      test "$enable_shared" = yes && enable_static=no
11469    fi
11470    ;;
11471  esac
11472  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11473$as_echo "$enable_shared" >&6; }
11474
11475  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11476$as_echo_n "checking whether to build static libraries... " >&6; }
11477  # Make sure either enable_shared or enable_static is yes.
11478  test "$enable_shared" = yes || enable_static=yes
11479  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11480$as_echo "$enable_static" >&6; }
11481
11482
11483
11484
11485fi
11486ac_ext=c
11487ac_cpp='$CPP $CPPFLAGS'
11488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490ac_compiler_gnu=$ac_cv_c_compiler_gnu
11491
11492CC="$lt_save_CC"
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506        ac_config_commands="$ac_config_commands libtool"
11507
11508
11509
11510
11511# Only expand once:
11512
11513
11514
11515
11516# dolt, a replacement for libtool
11517# Josh Triplett <josh@freedesktop.org>
11518# Extract the first word of "bash", so it can be a program name with args.
11519set dummy bash; ac_word=$2
11520{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11521$as_echo_n "checking for $ac_word... " >&6; }
11522if test "${ac_cv_path_DOLT_BASH+set}" = set; then
11523  $as_echo_n "(cached) " >&6
11524else
11525  case $DOLT_BASH in
11526  [\\/]* | ?:[\\/]*)
11527  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
11528  ;;
11529  *)
11530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531for as_dir in $PATH
11532do
11533  IFS=$as_save_IFS
11534  test -z "$as_dir" && as_dir=.
11535  for ac_exec_ext in '' $ac_executable_extensions; do
11536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
11538    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11539    break 2
11540  fi
11541done
11542done
11543IFS=$as_save_IFS
11544
11545  ;;
11546esac
11547fi
11548DOLT_BASH=$ac_cv_path_DOLT_BASH
11549if test -n "$DOLT_BASH"; then
11550  { $as_echo "$as_me:$LINENO: result: $DOLT_BASH" >&5
11551$as_echo "$DOLT_BASH" >&6; }
11552else
11553  { $as_echo "$as_me:$LINENO: result: no" >&5
11554$as_echo "no" >&6; }
11555fi
11556
11557
11558{ $as_echo "$as_me:$LINENO: checking if dolt supports this host" >&5
11559$as_echo_n "checking if dolt supports this host... " >&6; }
11560dolt_supported=yes
11561if test x$DOLT_BASH = x; then
11562    dolt_supported=no
11563fi
11564if test x$GCC != xyes; then
11565    dolt_supported=no
11566fi
11567case $host in
11568i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
11569|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
11570    pic_options='-fPIC'
11571    ;;
11572i?86-apple-darwin*)
11573    pic_options='-fno-common'
11574    ;;
11575*)
11576    dolt_supported=no
11577    ;;
11578esac
11579if test x$dolt_supported = xno ; then
11580    { $as_echo "$as_me:$LINENO: result: no, falling back to libtool" >&5
11581$as_echo "no, falling back to libtool" >&6; }
11582    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
11583    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
11584else
11585    { $as_echo "$as_me:$LINENO: result: yes, replacing libtool" >&5
11586$as_echo "yes, replacing libtool" >&6; }
11587
11588    cat <<__DOLTCOMPILE__EOF__ >doltcompile
11589#!$DOLT_BASH
11590__DOLTCOMPILE__EOF__
11591    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11592args=("$@")
11593for ((arg=0; arg<${#args[@]}; arg++)) ; do
11594    if test x"${args[$arg]}" = x-o ; then
11595        objarg=$((arg+1))
11596        break
11597    fi
11598done
11599if test x$objarg = x ; then
11600    echo 'Error: no -o on compiler command line' 1>&2
11601    exit 1
11602fi
11603lo="${args[$objarg]}"
11604obj="${lo%.lo}"
11605if test x"$lo" = x"$obj" ; then
11606    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
11607    exit 1
11608fi
11609objbase="${obj##*/}"
11610__DOLTCOMPILE__EOF__
11611
11612    if test x$enable_shared = xyes; then
11613        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11614libobjdir="${obj%$objbase}.libs"
11615if test ! -d "$libobjdir" ; then
11616    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
11617    mkdir_ret=$?
11618    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
11619	echo "$mkdir_out" 1>&2
11620        exit $mkdir_ret
11621    fi
11622fi
11623pic_object="$libobjdir/$objbase.o"
11624args[$objarg]="$pic_object"
11625__DOLTCOMPILE__EOF__
11626    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
11627"\${args[@]}" $pic_options -DPIC || exit \$?
11628__DOLTCOMPILE__EOF__
11629    fi
11630
11631    if test x$enable_static = xyes; then
11632        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11633non_pic_object="$obj.o"
11634args[$objarg]="$non_pic_object"
11635__DOLTCOMPILE__EOF__
11636        if test x$enable_shared = xyes; then
11637            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11638"${args[@]}" >/dev/null 2>&1 || exit $?
11639__DOLTCOMPILE__EOF__
11640        else
11641            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11642"${args[@]}" || exit $?
11643__DOLTCOMPILE__EOF__
11644        fi
11645    fi
11646
11647    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11648{
11649echo "# $lo - a libtool object file"
11650echo "# Generated by doltcompile, not libtool"
11651__DOLTCOMPILE__EOF__
11652
11653    if test x$enable_shared = xyes; then
11654        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11655echo "pic_object='.libs/${objbase}.o'"
11656__DOLTCOMPILE__EOF__
11657    else
11658        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11659echo pic_object=none
11660__DOLTCOMPILE__EOF__
11661    fi
11662
11663    if test x$enable_static = xyes; then
11664        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11665echo "non_pic_object='${objbase}.o'"
11666__DOLTCOMPILE__EOF__
11667    else
11668        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11669echo non_pic_object=none
11670__DOLTCOMPILE__EOF__
11671    fi
11672
11673    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11674} > "$lo"
11675__DOLTCOMPILE__EOF__
11676
11677    chmod +x doltcompile
11678    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
11679    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
11680
11681    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
11682#!$DOLT_BASH
11683__DOLTLIBTOOL__EOF__
11684    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
11685top_builddir_slash="${0%%doltlibtool}"
11686: ${top_builddir_slash:=./}
11687args=()
11688modeok=false
11689tagok=false
11690for arg in "$@"; do
11691    case "$arg" in
11692        --mode=compile) modeok=true ;;
11693        --tag=CC|--tag=CXX) tagok=true ;;
11694        *) args[${#args[@]}]="$arg" ;;
11695    esac
11696done
11697if $modeok && $tagok ; then
11698    . ${top_builddir_slash}doltcompile "${args[@]}"
11699else
11700    exec ${top_builddir_slash}libtool "$@"
11701fi
11702__DOLTLIBTOOL__EOF__
11703
11704    chmod +x doltlibtool
11705    LIBTOOL='$(top_builddir)/doltlibtool'
11706fi
11707
11708
11709# end dolt
11710
11711ac_ext=c
11712ac_cpp='$CPP $CPPFLAGS'
11713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11715ac_compiler_gnu=$ac_cv_c_compiler_gnu
11716if test -n "$ac_tool_prefix"; then
11717  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11718set dummy ${ac_tool_prefix}gcc; ac_word=$2
11719{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11720$as_echo_n "checking for $ac_word... " >&6; }
11721if test "${ac_cv_prog_CC+set}" = set; then
11722  $as_echo_n "(cached) " >&6
11723else
11724  if test -n "$CC"; then
11725  ac_cv_prog_CC="$CC" # Let the user override the test.
11726else
11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728for as_dir in $PATH
11729do
11730  IFS=$as_save_IFS
11731  test -z "$as_dir" && as_dir=.
11732  for ac_exec_ext in '' $ac_executable_extensions; do
11733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11734    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11735    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11736    break 2
11737  fi
11738done
11739done
11740IFS=$as_save_IFS
11741
11742fi
11743fi
11744CC=$ac_cv_prog_CC
11745if test -n "$CC"; then
11746  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11747$as_echo "$CC" >&6; }
11748else
11749  { $as_echo "$as_me:$LINENO: result: no" >&5
11750$as_echo "no" >&6; }
11751fi
11752
11753
11754fi
11755if test -z "$ac_cv_prog_CC"; then
11756  ac_ct_CC=$CC
11757  # Extract the first word of "gcc", so it can be a program name with args.
11758set dummy gcc; ac_word=$2
11759{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11760$as_echo_n "checking for $ac_word... " >&6; }
11761if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11762  $as_echo_n "(cached) " >&6
11763else
11764  if test -n "$ac_ct_CC"; then
11765  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11766else
11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770  IFS=$as_save_IFS
11771  test -z "$as_dir" && as_dir=.
11772  for ac_exec_ext in '' $ac_executable_extensions; do
11773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11774    ac_cv_prog_ac_ct_CC="gcc"
11775    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11776    break 2
11777  fi
11778done
11779done
11780IFS=$as_save_IFS
11781
11782fi
11783fi
11784ac_ct_CC=$ac_cv_prog_ac_ct_CC
11785if test -n "$ac_ct_CC"; then
11786  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11787$as_echo "$ac_ct_CC" >&6; }
11788else
11789  { $as_echo "$as_me:$LINENO: result: no" >&5
11790$as_echo "no" >&6; }
11791fi
11792
11793  if test "x$ac_ct_CC" = x; then
11794    CC=""
11795  else
11796    case $cross_compiling:$ac_tool_warned in
11797yes:)
11798{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11800ac_tool_warned=yes ;;
11801esac
11802    CC=$ac_ct_CC
11803  fi
11804else
11805  CC="$ac_cv_prog_CC"
11806fi
11807
11808if test -z "$CC"; then
11809          if test -n "$ac_tool_prefix"; then
11810    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11811set dummy ${ac_tool_prefix}cc; ac_word=$2
11812{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
11814if test "${ac_cv_prog_CC+set}" = set; then
11815  $as_echo_n "(cached) " >&6
11816else
11817  if test -n "$CC"; then
11818  ac_cv_prog_CC="$CC" # Let the user override the test.
11819else
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823  IFS=$as_save_IFS
11824  test -z "$as_dir" && as_dir=.
11825  for ac_exec_ext in '' $ac_executable_extensions; do
11826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11827    ac_cv_prog_CC="${ac_tool_prefix}cc"
11828    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11829    break 2
11830  fi
11831done
11832done
11833IFS=$as_save_IFS
11834
11835fi
11836fi
11837CC=$ac_cv_prog_CC
11838if test -n "$CC"; then
11839  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11840$as_echo "$CC" >&6; }
11841else
11842  { $as_echo "$as_me:$LINENO: result: no" >&5
11843$as_echo "no" >&6; }
11844fi
11845
11846
11847  fi
11848fi
11849if test -z "$CC"; then
11850  # Extract the first word of "cc", so it can be a program name with args.
11851set dummy cc; ac_word=$2
11852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11853$as_echo_n "checking for $ac_word... " >&6; }
11854if test "${ac_cv_prog_CC+set}" = set; then
11855  $as_echo_n "(cached) " >&6
11856else
11857  if test -n "$CC"; then
11858  ac_cv_prog_CC="$CC" # Let the user override the test.
11859else
11860  ac_prog_rejected=no
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864  IFS=$as_save_IFS
11865  test -z "$as_dir" && as_dir=.
11866  for ac_exec_ext in '' $ac_executable_extensions; do
11867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11869       ac_prog_rejected=yes
11870       continue
11871     fi
11872    ac_cv_prog_CC="cc"
11873    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11874    break 2
11875  fi
11876done
11877done
11878IFS=$as_save_IFS
11879
11880if test $ac_prog_rejected = yes; then
11881  # We found a bogon in the path, so make sure we never use it.
11882  set dummy $ac_cv_prog_CC
11883  shift
11884  if test $# != 0; then
11885    # We chose a different compiler from the bogus one.
11886    # However, it has the same basename, so the bogon will be chosen
11887    # first if we set CC to just the basename; use the full file name.
11888    shift
11889    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11890  fi
11891fi
11892fi
11893fi
11894CC=$ac_cv_prog_CC
11895if test -n "$CC"; then
11896  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11897$as_echo "$CC" >&6; }
11898else
11899  { $as_echo "$as_me:$LINENO: result: no" >&5
11900$as_echo "no" >&6; }
11901fi
11902
11903
11904fi
11905if test -z "$CC"; then
11906  if test -n "$ac_tool_prefix"; then
11907  for ac_prog in cl.exe
11908  do
11909    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
11913if test "${ac_cv_prog_CC+set}" = set; then
11914  $as_echo_n "(cached) " >&6
11915else
11916  if test -n "$CC"; then
11917  ac_cv_prog_CC="$CC" # Let the user override the test.
11918else
11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922  IFS=$as_save_IFS
11923  test -z "$as_dir" && as_dir=.
11924  for ac_exec_ext in '' $ac_executable_extensions; do
11925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11926    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11927    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11928    break 2
11929  fi
11930done
11931done
11932IFS=$as_save_IFS
11933
11934fi
11935fi
11936CC=$ac_cv_prog_CC
11937if test -n "$CC"; then
11938  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11939$as_echo "$CC" >&6; }
11940else
11941  { $as_echo "$as_me:$LINENO: result: no" >&5
11942$as_echo "no" >&6; }
11943fi
11944
11945
11946    test -n "$CC" && break
11947  done
11948fi
11949if test -z "$CC"; then
11950  ac_ct_CC=$CC
11951  for ac_prog in cl.exe
11952do
11953  # Extract the first word of "$ac_prog", so it can be a program name with args.
11954set dummy $ac_prog; ac_word=$2
11955{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
11957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11958  $as_echo_n "(cached) " >&6
11959else
11960  if test -n "$ac_ct_CC"; then
11961  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11962else
11963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964for as_dir in $PATH
11965do
11966  IFS=$as_save_IFS
11967  test -z "$as_dir" && as_dir=.
11968  for ac_exec_ext in '' $ac_executable_extensions; do
11969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970    ac_cv_prog_ac_ct_CC="$ac_prog"
11971    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11972    break 2
11973  fi
11974done
11975done
11976IFS=$as_save_IFS
11977
11978fi
11979fi
11980ac_ct_CC=$ac_cv_prog_ac_ct_CC
11981if test -n "$ac_ct_CC"; then
11982  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11983$as_echo "$ac_ct_CC" >&6; }
11984else
11985  { $as_echo "$as_me:$LINENO: result: no" >&5
11986$as_echo "no" >&6; }
11987fi
11988
11989
11990  test -n "$ac_ct_CC" && break
11991done
11992
11993  if test "x$ac_ct_CC" = x; then
11994    CC=""
11995  else
11996    case $cross_compiling:$ac_tool_warned in
11997yes:)
11998{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12000ac_tool_warned=yes ;;
12001esac
12002    CC=$ac_ct_CC
12003  fi
12004fi
12005
12006fi
12007
12008
12009test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12011{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12012See \`config.log' for more details." >&5
12013$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
12014See \`config.log' for more details." >&2;}
12015   { (exit 1); exit 1; }; }; }
12016
12017# Provide some information about the compiler.
12018$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
12019set X $ac_compile
12020ac_compiler=$2
12021{ (ac_try="$ac_compiler --version >&5"
12022case "(($ac_try" in
12023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024  *) ac_try_echo=$ac_try;;
12025esac
12026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12027$as_echo "$ac_try_echo") >&5
12028  (eval "$ac_compiler --version >&5") 2>&5
12029  ac_status=$?
12030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031  (exit $ac_status); }
12032{ (ac_try="$ac_compiler -v >&5"
12033case "(($ac_try" in
12034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035  *) ac_try_echo=$ac_try;;
12036esac
12037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12038$as_echo "$ac_try_echo") >&5
12039  (eval "$ac_compiler -v >&5") 2>&5
12040  ac_status=$?
12041  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042  (exit $ac_status); }
12043{ (ac_try="$ac_compiler -V >&5"
12044case "(($ac_try" in
12045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046  *) ac_try_echo=$ac_try;;
12047esac
12048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12049$as_echo "$ac_try_echo") >&5
12050  (eval "$ac_compiler -V >&5") 2>&5
12051  ac_status=$?
12052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053  (exit $ac_status); }
12054
12055{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12056$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12057if test "${ac_cv_c_compiler_gnu+set}" = set; then
12058  $as_echo_n "(cached) " >&6
12059else
12060  cat >conftest.$ac_ext <<_ACEOF
12061/* confdefs.h.  */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h.  */
12066
12067int
12068main ()
12069{
12070#ifndef __GNUC__
12071       choke me
12072#endif
12073
12074  ;
12075  return 0;
12076}
12077_ACEOF
12078rm -f conftest.$ac_objext
12079if { (ac_try="$ac_compile"
12080case "(($ac_try" in
12081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082  *) ac_try_echo=$ac_try;;
12083esac
12084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12085$as_echo "$ac_try_echo") >&5
12086  (eval "$ac_compile") 2>conftest.er1
12087  ac_status=$?
12088  grep -v '^ *+' conftest.er1 >conftest.err
12089  rm -f conftest.er1
12090  cat conftest.err >&5
12091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092  (exit $ac_status); } && {
12093	 test -z "$ac_c_werror_flag" ||
12094	 test ! -s conftest.err
12095       } && test -s conftest.$ac_objext; then
12096  ac_compiler_gnu=yes
12097else
12098  $as_echo "$as_me: failed program was:" >&5
12099sed 's/^/| /' conftest.$ac_ext >&5
12100
12101	ac_compiler_gnu=no
12102fi
12103
12104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105ac_cv_c_compiler_gnu=$ac_compiler_gnu
12106
12107fi
12108{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12109$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12110if test $ac_compiler_gnu = yes; then
12111  GCC=yes
12112else
12113  GCC=
12114fi
12115ac_test_CFLAGS=${CFLAGS+set}
12116ac_save_CFLAGS=$CFLAGS
12117{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12118$as_echo_n "checking whether $CC accepts -g... " >&6; }
12119if test "${ac_cv_prog_cc_g+set}" = set; then
12120  $as_echo_n "(cached) " >&6
12121else
12122  ac_save_c_werror_flag=$ac_c_werror_flag
12123   ac_c_werror_flag=yes
12124   ac_cv_prog_cc_g=no
12125   CFLAGS="-g"
12126   cat >conftest.$ac_ext <<_ACEOF
12127/* confdefs.h.  */
12128_ACEOF
12129cat confdefs.h >>conftest.$ac_ext
12130cat >>conftest.$ac_ext <<_ACEOF
12131/* end confdefs.h.  */
12132
12133int
12134main ()
12135{
12136
12137  ;
12138  return 0;
12139}
12140_ACEOF
12141rm -f conftest.$ac_objext
12142if { (ac_try="$ac_compile"
12143case "(($ac_try" in
12144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145  *) ac_try_echo=$ac_try;;
12146esac
12147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148$as_echo "$ac_try_echo") >&5
12149  (eval "$ac_compile") 2>conftest.er1
12150  ac_status=$?
12151  grep -v '^ *+' conftest.er1 >conftest.err
12152  rm -f conftest.er1
12153  cat conftest.err >&5
12154  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155  (exit $ac_status); } && {
12156	 test -z "$ac_c_werror_flag" ||
12157	 test ! -s conftest.err
12158       } && test -s conftest.$ac_objext; then
12159  ac_cv_prog_cc_g=yes
12160else
12161  $as_echo "$as_me: failed program was:" >&5
12162sed 's/^/| /' conftest.$ac_ext >&5
12163
12164	CFLAGS=""
12165      cat >conftest.$ac_ext <<_ACEOF
12166/* confdefs.h.  */
12167_ACEOF
12168cat confdefs.h >>conftest.$ac_ext
12169cat >>conftest.$ac_ext <<_ACEOF
12170/* end confdefs.h.  */
12171
12172int
12173main ()
12174{
12175
12176  ;
12177  return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (ac_try="$ac_compile"
12182case "(($ac_try" in
12183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184  *) ac_try_echo=$ac_try;;
12185esac
12186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12187$as_echo "$ac_try_echo") >&5
12188  (eval "$ac_compile") 2>conftest.er1
12189  ac_status=$?
12190  grep -v '^ *+' conftest.er1 >conftest.err
12191  rm -f conftest.er1
12192  cat conftest.err >&5
12193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194  (exit $ac_status); } && {
12195	 test -z "$ac_c_werror_flag" ||
12196	 test ! -s conftest.err
12197       } && test -s conftest.$ac_objext; then
12198  :
12199else
12200  $as_echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203	ac_c_werror_flag=$ac_save_c_werror_flag
12204	 CFLAGS="-g"
12205	 cat >conftest.$ac_ext <<_ACEOF
12206/* confdefs.h.  */
12207_ACEOF
12208cat confdefs.h >>conftest.$ac_ext
12209cat >>conftest.$ac_ext <<_ACEOF
12210/* end confdefs.h.  */
12211
12212int
12213main ()
12214{
12215
12216  ;
12217  return 0;
12218}
12219_ACEOF
12220rm -f conftest.$ac_objext
12221if { (ac_try="$ac_compile"
12222case "(($ac_try" in
12223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224  *) ac_try_echo=$ac_try;;
12225esac
12226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12227$as_echo "$ac_try_echo") >&5
12228  (eval "$ac_compile") 2>conftest.er1
12229  ac_status=$?
12230  grep -v '^ *+' conftest.er1 >conftest.err
12231  rm -f conftest.er1
12232  cat conftest.err >&5
12233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234  (exit $ac_status); } && {
12235	 test -z "$ac_c_werror_flag" ||
12236	 test ! -s conftest.err
12237       } && test -s conftest.$ac_objext; then
12238  ac_cv_prog_cc_g=yes
12239else
12240  $as_echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243
12244fi
12245
12246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247fi
12248
12249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250fi
12251
12252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253   ac_c_werror_flag=$ac_save_c_werror_flag
12254fi
12255{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12256$as_echo "$ac_cv_prog_cc_g" >&6; }
12257if test "$ac_test_CFLAGS" = set; then
12258  CFLAGS=$ac_save_CFLAGS
12259elif test $ac_cv_prog_cc_g = yes; then
12260  if test "$GCC" = yes; then
12261    CFLAGS="-g -O2"
12262  else
12263    CFLAGS="-g"
12264  fi
12265else
12266  if test "$GCC" = yes; then
12267    CFLAGS="-O2"
12268  else
12269    CFLAGS=
12270  fi
12271fi
12272{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12273$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12274if test "${ac_cv_prog_cc_c89+set}" = set; then
12275  $as_echo_n "(cached) " >&6
12276else
12277  ac_cv_prog_cc_c89=no
12278ac_save_CC=$CC
12279cat >conftest.$ac_ext <<_ACEOF
12280/* confdefs.h.  */
12281_ACEOF
12282cat confdefs.h >>conftest.$ac_ext
12283cat >>conftest.$ac_ext <<_ACEOF
12284/* end confdefs.h.  */
12285#include <stdarg.h>
12286#include <stdio.h>
12287#include <sys/types.h>
12288#include <sys/stat.h>
12289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12290struct buf { int x; };
12291FILE * (*rcsopen) (struct buf *, struct stat *, int);
12292static char *e (p, i)
12293     char **p;
12294     int i;
12295{
12296  return p[i];
12297}
12298static char *f (char * (*g) (char **, int), char **p, ...)
12299{
12300  char *s;
12301  va_list v;
12302  va_start (v,p);
12303  s = g (p, va_arg (v,int));
12304  va_end (v);
12305  return s;
12306}
12307
12308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12309   function prototypes and stuff, but not '\xHH' hex character constants.
12310   These don't provoke an error unfortunately, instead are silently treated
12311   as 'x'.  The following induces an error, until -std is added to get
12312   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12313   array size at least.  It's necessary to write '\x00'==0 to get something
12314   that's true only with -std.  */
12315int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12316
12317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12318   inside strings and character constants.  */
12319#define FOO(x) 'x'
12320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12321
12322int test (int i, double x);
12323struct s1 {int (*f) (int a);};
12324struct s2 {int (*f) (double a);};
12325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12326int argc;
12327char **argv;
12328int
12329main ()
12330{
12331return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12332  ;
12333  return 0;
12334}
12335_ACEOF
12336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12337	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12338do
12339  CC="$ac_save_CC $ac_arg"
12340  rm -f conftest.$ac_objext
12341if { (ac_try="$ac_compile"
12342case "(($ac_try" in
12343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344  *) ac_try_echo=$ac_try;;
12345esac
12346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12347$as_echo "$ac_try_echo") >&5
12348  (eval "$ac_compile") 2>conftest.er1
12349  ac_status=$?
12350  grep -v '^ *+' conftest.er1 >conftest.err
12351  rm -f conftest.er1
12352  cat conftest.err >&5
12353  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354  (exit $ac_status); } && {
12355	 test -z "$ac_c_werror_flag" ||
12356	 test ! -s conftest.err
12357       } && test -s conftest.$ac_objext; then
12358  ac_cv_prog_cc_c89=$ac_arg
12359else
12360  $as_echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
12363
12364fi
12365
12366rm -f core conftest.err conftest.$ac_objext
12367  test "x$ac_cv_prog_cc_c89" != "xno" && break
12368done
12369rm -f conftest.$ac_ext
12370CC=$ac_save_CC
12371
12372fi
12373# AC_CACHE_VAL
12374case "x$ac_cv_prog_cc_c89" in
12375  x)
12376    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12377$as_echo "none needed" >&6; } ;;
12378  xno)
12379    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12380$as_echo "unsupported" >&6; } ;;
12381  *)
12382    CC="$CC $ac_cv_prog_cc_c89"
12383    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12384$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12385esac
12386
12387
12388ac_ext=c
12389ac_cpp='$CPP $CPPFLAGS'
12390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12392ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393
12394depcc="$CC"   am_compiler_list=
12395
12396{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12397$as_echo_n "checking dependency style of $depcc... " >&6; }
12398if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12399  $as_echo_n "(cached) " >&6
12400else
12401  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12402  # We make a subdir and do the tests there.  Otherwise we can end up
12403  # making bogus files that we don't know about and never remove.  For
12404  # instance it was reported that on HP-UX the gcc test will end up
12405  # making a dummy file named `D' -- because `-MD' means `put the output
12406  # in D'.
12407  mkdir conftest.dir
12408  # Copy depcomp to subdir because otherwise we won't find it if we're
12409  # using a relative directory.
12410  cp "$am_depcomp" conftest.dir
12411  cd conftest.dir
12412  # We will build objects and dependencies in a subdirectory because
12413  # it helps to detect inapplicable dependency modes.  For instance
12414  # both Tru64's cc and ICC support -MD to output dependencies as a
12415  # side effect of compilation, but ICC will put the dependencies in
12416  # the current directory while Tru64 will put them in the object
12417  # directory.
12418  mkdir sub
12419
12420  am_cv_CC_dependencies_compiler_type=none
12421  if test "$am_compiler_list" = ""; then
12422     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12423  fi
12424  am__universal=false
12425  case " $depcc " in #(
12426     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12427     esac
12428
12429  for depmode in $am_compiler_list; do
12430    # Setup a source with many dependencies, because some compilers
12431    # like to wrap large dependency lists on column 80 (with \), and
12432    # we should not choose a depcomp mode which is confused by this.
12433    #
12434    # We need to recreate these files for each test, as the compiler may
12435    # overwrite some of them when testing with obscure command lines.
12436    # This happens at least with the AIX C compiler.
12437    : > sub/conftest.c
12438    for i in 1 2 3 4 5 6; do
12439      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12440      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12441      # Solaris 8's {/usr,}/bin/sh.
12442      touch sub/conftst$i.h
12443    done
12444    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12445
12446    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12447    # mode.  It turns out that the SunPro C++ compiler does not properly
12448    # handle `-M -o', and we need to detect this.  Also, some Intel
12449    # versions had trouble with output in subdirs
12450    am__obj=sub/conftest.${OBJEXT-o}
12451    am__minus_obj="-o $am__obj"
12452    case $depmode in
12453    gcc)
12454      # This depmode causes a compiler race in universal mode.
12455      test "$am__universal" = false || continue
12456      ;;
12457    nosideeffect)
12458      # after this tag, mechanisms are not by side-effect, so they'll
12459      # only be used when explicitly requested
12460      if test "x$enable_dependency_tracking" = xyes; then
12461	continue
12462      else
12463	break
12464      fi
12465      ;;
12466    msvisualcpp | msvcmsys)
12467      # This compiler won't grok `-c -o', but also, the minuso test has
12468      # not run yet.  These depmodes are late enough in the game, and
12469      # so weak that their functioning should not be impacted.
12470      am__obj=conftest.${OBJEXT-o}
12471      am__minus_obj=
12472      ;;
12473    none) break ;;
12474    esac
12475    if depmode=$depmode \
12476       source=sub/conftest.c object=$am__obj \
12477       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12478       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12479         >/dev/null 2>conftest.err &&
12480       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12481       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12482       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12483       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12484      # icc doesn't choke on unknown options, it will just issue warnings
12485      # or remarks (even with -Werror).  So we grep stderr for any message
12486      # that says an option was ignored or not supported.
12487      # When given -MP, icc 7.0 and 7.1 complain thusly:
12488      #   icc: Command line warning: ignoring option '-M'; no argument required
12489      # The diagnosis changed in icc 8.0:
12490      #   icc: Command line remark: option '-MP' not supported
12491      if (grep 'ignoring option' conftest.err ||
12492          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12493        am_cv_CC_dependencies_compiler_type=$depmode
12494        break
12495      fi
12496    fi
12497  done
12498
12499  cd ..
12500  rm -rf conftest.dir
12501else
12502  am_cv_CC_dependencies_compiler_type=none
12503fi
12504
12505fi
12506{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12507$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12508CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12509
12510 if
12511  test "x$enable_dependency_tracking" != xno \
12512  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12513  am__fastdepCC_TRUE=
12514  am__fastdepCC_FALSE='#'
12515else
12516  am__fastdepCC_TRUE='#'
12517  am__fastdepCC_FALSE=
12518fi
12519
12520
12521
12522
12523if  test "x$GCC" = xyes ; then
12524    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12525-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12526-Wbad-function-cast"
12527    case `gcc -dumpversion` in
12528    3.4.* | 4.*)
12529	CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
12530	;;
12531    esac
12532else
12533    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
12534$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
12535if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
12536  $as_echo_n "(cached) " >&6
12537else
12538  cat >conftest.$ac_ext <<_ACEOF
12539/* confdefs.h.  */
12540_ACEOF
12541cat confdefs.h >>conftest.$ac_ext
12542cat >>conftest.$ac_ext <<_ACEOF
12543/* end confdefs.h.  */
12544$ac_includes_default
12545int
12546main ()
12547{
12548#ifndef __SUNPRO_C
12549  (void) __SUNPRO_C;
12550#endif
12551
12552  ;
12553  return 0;
12554}
12555_ACEOF
12556rm -f conftest.$ac_objext
12557if { (ac_try="$ac_compile"
12558case "(($ac_try" in
12559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560  *) ac_try_echo=$ac_try;;
12561esac
12562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12563$as_echo "$ac_try_echo") >&5
12564  (eval "$ac_compile") 2>conftest.er1
12565  ac_status=$?
12566  grep -v '^ *+' conftest.er1 >conftest.err
12567  rm -f conftest.er1
12568  cat conftest.err >&5
12569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570  (exit $ac_status); } && {
12571	 test -z "$ac_c_werror_flag" ||
12572	 test ! -s conftest.err
12573       } && test -s conftest.$ac_objext; then
12574  ac_cv_have_decl___SUNPRO_C=yes
12575else
12576  $as_echo "$as_me: failed program was:" >&5
12577sed 's/^/| /' conftest.$ac_ext >&5
12578
12579	ac_cv_have_decl___SUNPRO_C=no
12580fi
12581
12582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583fi
12584{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
12585$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
12586if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
12587  SUNCC="yes"
12588else
12589  SUNCC="no"
12590fi
12591
12592    if test "x$SUNCC" = "xyes"; then
12593	CWARNFLAGS="-v"
12594    fi
12595fi
12596
12597
12598
12599if test x"$CC_FOR_BUILD" = x; then
12600	if test x"$cross_compiling" = xyes; then
12601	       for ac_prog in gcc cc
12602do
12603  # Extract the first word of "$ac_prog", so it can be a program name with args.
12604set dummy $ac_prog; ac_word=$2
12605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12606$as_echo_n "checking for $ac_word... " >&6; }
12607if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
12608  $as_echo_n "(cached) " >&6
12609else
12610  if test -n "$CC_FOR_BUILD"; then
12611  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
12612else
12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616  IFS=$as_save_IFS
12617  test -z "$as_dir" && as_dir=.
12618  for ac_exec_ext in '' $ac_executable_extensions; do
12619  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
12621    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12622    break 2
12623  fi
12624done
12625done
12626IFS=$as_save_IFS
12627
12628fi
12629fi
12630CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
12631if test -n "$CC_FOR_BUILD"; then
12632  { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
12633$as_echo "$CC_FOR_BUILD" >&6; }
12634else
12635  { $as_echo "$as_me:$LINENO: result: no" >&5
12636$as_echo "no" >&6; }
12637fi
12638
12639
12640  test -n "$CC_FOR_BUILD" && break
12641done
12642
12643	else
12644	       CC_FOR_BUILD="$CC"
12645	fi
12646fi
12647
12648
12649
12650
12651for ac_prog in cpp
12652do
12653  # Extract the first word of "$ac_prog", so it can be a program name with args.
12654set dummy $ac_prog; ac_word=$2
12655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12656$as_echo_n "checking for $ac_word... " >&6; }
12657if test "${ac_cv_path_RAWCPP+set}" = set; then
12658  $as_echo_n "(cached) " >&6
12659else
12660  case $RAWCPP in
12661  [\\/]* | ?:[\\/]*)
12662  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12663  ;;
12664  *)
12665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12667for as_dir in $as_dummy
12668do
12669  IFS=$as_save_IFS
12670  test -z "$as_dir" && as_dir=.
12671  for ac_exec_ext in '' $ac_executable_extensions; do
12672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12674    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12675    break 2
12676  fi
12677done
12678done
12679IFS=$as_save_IFS
12680
12681  ;;
12682esac
12683fi
12684RAWCPP=$ac_cv_path_RAWCPP
12685if test -n "$RAWCPP"; then
12686  { $as_echo "$as_me:$LINENO: result: $RAWCPP" >&5
12687$as_echo "$RAWCPP" >&6; }
12688else
12689  { $as_echo "$as_me:$LINENO: result: no" >&5
12690$as_echo "no" >&6; }
12691fi
12692
12693
12694  test -n "$RAWCPP" && break
12695done
12696test -n "$RAWCPP" || RAWCPP="${CPP}"
12697
12698
12699# Check for flag to avoid builtin definitions - assumes unix is predefined,
12700# which is not the best choice for supporting other OS'es, but covers most
12701# of the ones we need for now.
12702{ $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
12703$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12704cat >conftest.$ac_ext <<_ACEOF
12705Does cpp redefine unix ?
12706_ACEOF
12707if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12708	{ $as_echo "$as_me:$LINENO: result: no" >&5
12709$as_echo "no" >&6; }
12710else
12711	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12712		RAWCPPFLAGS=-undef
12713		{ $as_echo "$as_me:$LINENO: result: yes" >&5
12714$as_echo "yes" >&6; }
12715	# under Cygwin unix is still defined even with -undef
12716	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12717		RAWCPPFLAGS="-undef -ansi"
12718		{ $as_echo "$as_me:$LINENO: result: yes, with -ansi" >&5
12719$as_echo "yes, with -ansi" >&6; }
12720	else
12721		{ { $as_echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
12722$as_echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
12723   { (exit 1); exit 1; }; }
12724	fi
12725fi
12726rm -f conftest.$ac_ext
12727
12728{ $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
12729$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12730cat >conftest.$ac_ext <<_ACEOF
12731Does cpp preserve   "whitespace"?
12732_ACEOF
12733if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12734	{ $as_echo "$as_me:$LINENO: result: no" >&5
12735$as_echo "no" >&6; }
12736else
12737	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
12738		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12739		{ $as_echo "$as_me:$LINENO: result: yes" >&5
12740$as_echo "yes" >&6; }
12741	else
12742		{ { $as_echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
12743$as_echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
12744   { (exit 1); exit 1; }; }
12745	fi
12746fi
12747rm -f conftest.$ac_ext
12748
12749
12750
12751# Build with XCB support?
12752
12753# Check whether --with-xcb was given.
12754if test "${with_xcb+set}" = set; then
12755  withval=$with_xcb; ac_cv_use_xcb=$withval
12756else
12757  ac_cv_use_xcb=yes
12758fi
12759
12760{ $as_echo "$as_me:$LINENO: checking whether to use XCB" >&5
12761$as_echo_n "checking whether to use XCB... " >&6; }
12762if test "${ac_cv_use_xcb+set}" = set; then
12763  $as_echo_n "(cached) " >&6
12764else
12765  ac_cv_use_xcb=yes
12766fi
12767{ $as_echo "$as_me:$LINENO: result: $ac_cv_use_xcb" >&5
12768$as_echo "$ac_cv_use_xcb" >&6; }
12769 if test x$ac_cv_use_xcb != xno; then
12770  XCB_TRUE=
12771  XCB_FALSE='#'
12772else
12773  XCB_TRUE='#'
12774  XCB_FALSE=
12775fi
12776
12777
12778# Checks for pkg-config packages
12779
12780
12781if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12782	if test -n "$ac_tool_prefix"; then
12783  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12784set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12785{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12786$as_echo_n "checking for $ac_word... " >&6; }
12787if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12788  $as_echo_n "(cached) " >&6
12789else
12790  case $PKG_CONFIG in
12791  [\\/]* | ?:[\\/]*)
12792  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12793  ;;
12794  *)
12795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796for as_dir in $PATH
12797do
12798  IFS=$as_save_IFS
12799  test -z "$as_dir" && as_dir=.
12800  for ac_exec_ext in '' $ac_executable_extensions; do
12801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12802    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12803    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12804    break 2
12805  fi
12806done
12807done
12808IFS=$as_save_IFS
12809
12810  ;;
12811esac
12812fi
12813PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12814if test -n "$PKG_CONFIG"; then
12815  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12816$as_echo "$PKG_CONFIG" >&6; }
12817else
12818  { $as_echo "$as_me:$LINENO: result: no" >&5
12819$as_echo "no" >&6; }
12820fi
12821
12822
12823fi
12824if test -z "$ac_cv_path_PKG_CONFIG"; then
12825  ac_pt_PKG_CONFIG=$PKG_CONFIG
12826  # Extract the first word of "pkg-config", so it can be a program name with args.
12827set dummy pkg-config; ac_word=$2
12828{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12829$as_echo_n "checking for $ac_word... " >&6; }
12830if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12831  $as_echo_n "(cached) " >&6
12832else
12833  case $ac_pt_PKG_CONFIG in
12834  [\\/]* | ?:[\\/]*)
12835  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12836  ;;
12837  *)
12838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839for as_dir in $PATH
12840do
12841  IFS=$as_save_IFS
12842  test -z "$as_dir" && as_dir=.
12843  for ac_exec_ext in '' $ac_executable_extensions; do
12844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12845    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12846    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12847    break 2
12848  fi
12849done
12850done
12851IFS=$as_save_IFS
12852
12853  ;;
12854esac
12855fi
12856ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12857if test -n "$ac_pt_PKG_CONFIG"; then
12858  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12859$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12860else
12861  { $as_echo "$as_me:$LINENO: result: no" >&5
12862$as_echo "no" >&6; }
12863fi
12864
12865  if test "x$ac_pt_PKG_CONFIG" = x; then
12866    PKG_CONFIG=""
12867  else
12868    case $cross_compiling:$ac_tool_warned in
12869yes:)
12870{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12872ac_tool_warned=yes ;;
12873esac
12874    PKG_CONFIG=$ac_pt_PKG_CONFIG
12875  fi
12876else
12877  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12878fi
12879
12880fi
12881if test -n "$PKG_CONFIG"; then
12882	_pkg_min_version=0.9.0
12883	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12884$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12885	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12886		{ $as_echo "$as_me:$LINENO: result: yes" >&5
12887$as_echo "yes" >&6; }
12888	else
12889		{ $as_echo "$as_me:$LINENO: result: no" >&5
12890$as_echo "no" >&6; }
12891		PKG_CONFIG=""
12892	fi
12893
12894fi
12895
12896pkg_failed=no
12897{ $as_echo "$as_me:$LINENO: checking for XPROTO" >&5
12898$as_echo_n "checking for XPROTO... " >&6; }
12899
12900if test -n "$XPROTO_CFLAGS"; then
12901    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
12902 elif test -n "$PKG_CONFIG"; then
12903    if test -n "$PKG_CONFIG" && \
12904    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13\"") >&5
12905  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13") 2>&5
12906  ac_status=$?
12907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908  (exit $ac_status); }; then
12909  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13" 2>/dev/null`
12910else
12911  pkg_failed=yes
12912fi
12913 else
12914    pkg_failed=untried
12915fi
12916if test -n "$XPROTO_LIBS"; then
12917    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
12918 elif test -n "$PKG_CONFIG"; then
12919    if test -n "$PKG_CONFIG" && \
12920    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13\"") >&5
12921  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13") 2>&5
12922  ac_status=$?
12923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924  (exit $ac_status); }; then
12925  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13" 2>/dev/null`
12926else
12927  pkg_failed=yes
12928fi
12929 else
12930    pkg_failed=untried
12931fi
12932
12933
12934
12935if test $pkg_failed = yes; then
12936
12937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12938        _pkg_short_errors_supported=yes
12939else
12940        _pkg_short_errors_supported=no
12941fi
12942        if test $_pkg_short_errors_supported = yes; then
12943	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13" 2>&1`
12944        else
12945	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13" 2>&1`
12946        fi
12947	# Put the nasty error message in config.log where it belongs
12948	echo "$XPROTO_PKG_ERRORS" >&5
12949
12950	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xproto >= 7.0.13) were not met:
12951
12952$XPROTO_PKG_ERRORS
12953
12954Consider adjusting the PKG_CONFIG_PATH environment variable if you
12955installed software in a non-standard prefix.
12956
12957Alternatively, you may set the environment variables XPROTO_CFLAGS
12958and XPROTO_LIBS to avoid the need to call pkg-config.
12959See the pkg-config man page for more details.
12960" >&5
12961$as_echo "$as_me: error: Package requirements (xproto >= 7.0.13) were not met:
12962
12963$XPROTO_PKG_ERRORS
12964
12965Consider adjusting the PKG_CONFIG_PATH environment variable if you
12966installed software in a non-standard prefix.
12967
12968Alternatively, you may set the environment variables XPROTO_CFLAGS
12969and XPROTO_LIBS to avoid the need to call pkg-config.
12970See the pkg-config man page for more details.
12971" >&2;}
12972   { (exit 1); exit 1; }; }
12973elif test $pkg_failed = untried; then
12974	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12976{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12977is in your PATH or set the PKG_CONFIG environment variable to the full
12978path to pkg-config.
12979
12980Alternatively, you may set the environment variables XPROTO_CFLAGS
12981and XPROTO_LIBS to avoid the need to call pkg-config.
12982See the pkg-config man page for more details.
12983
12984To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12985See \`config.log' for more details." >&5
12986$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12987is in your PATH or set the PKG_CONFIG environment variable to the full
12988path to pkg-config.
12989
12990Alternatively, you may set the environment variables XPROTO_CFLAGS
12991and XPROTO_LIBS to avoid the need to call pkg-config.
12992See the pkg-config man page for more details.
12993
12994To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12995See \`config.log' for more details." >&2;}
12996   { (exit 1); exit 1; }; }; }
12997else
12998	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
12999	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
13000        { $as_echo "$as_me:$LINENO: result: yes" >&5
13001$as_echo "yes" >&6; }
13002	:
13003fi
13004
13005
13006case "$ac_cv_use_xcb" in
13007no)
13008	X11_REQUIRES="xau xcmiscproto bigreqsproto"
13009	X11_EXTRA_DEPS="xau xdmcp"
13010
13011pkg_failed=no
13012{ $as_echo "$as_me:$LINENO: checking for XDMCP" >&5
13013$as_echo_n "checking for XDMCP... " >&6; }
13014
13015if test -n "$XDMCP_CFLAGS"; then
13016    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
13017 elif test -n "$PKG_CONFIG"; then
13018    if test -n "$PKG_CONFIG" && \
13019    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
13020  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
13021  ac_status=$?
13022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023  (exit $ac_status); }; then
13024  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
13025else
13026  pkg_failed=yes
13027fi
13028 else
13029    pkg_failed=untried
13030fi
13031if test -n "$XDMCP_LIBS"; then
13032    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
13033 elif test -n "$PKG_CONFIG"; then
13034    if test -n "$PKG_CONFIG" && \
13035    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
13036  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
13037  ac_status=$?
13038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039  (exit $ac_status); }; then
13040  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
13041else
13042  pkg_failed=yes
13043fi
13044 else
13045    pkg_failed=untried
13046fi
13047
13048
13049
13050if test $pkg_failed = yes; then
13051
13052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13053        _pkg_short_errors_supported=yes
13054else
13055        _pkg_short_errors_supported=no
13056fi
13057        if test $_pkg_short_errors_supported = yes; then
13058	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
13059        else
13060	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
13061        fi
13062	# Put the nasty error message in config.log where it belongs
13063	echo "$XDMCP_PKG_ERRORS" >&5
13064
13065	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xdmcp) were not met:
13066
13067$XDMCP_PKG_ERRORS
13068
13069Consider adjusting the PKG_CONFIG_PATH environment variable if you
13070installed software in a non-standard prefix.
13071
13072Alternatively, you may set the environment variables XDMCP_CFLAGS
13073and XDMCP_LIBS to avoid the need to call pkg-config.
13074See the pkg-config man page for more details.
13075" >&5
13076$as_echo "$as_me: error: Package requirements (xdmcp) were not met:
13077
13078$XDMCP_PKG_ERRORS
13079
13080Consider adjusting the PKG_CONFIG_PATH environment variable if you
13081installed software in a non-standard prefix.
13082
13083Alternatively, you may set the environment variables XDMCP_CFLAGS
13084and XDMCP_LIBS to avoid the need to call pkg-config.
13085See the pkg-config man page for more details.
13086" >&2;}
13087   { (exit 1); exit 1; }; }
13088elif test $pkg_failed = untried; then
13089	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13091{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13092is in your PATH or set the PKG_CONFIG environment variable to the full
13093path to pkg-config.
13094
13095Alternatively, you may set the environment variables XDMCP_CFLAGS
13096and XDMCP_LIBS to avoid the need to call pkg-config.
13097See the pkg-config man page for more details.
13098
13099To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13100See \`config.log' for more details." >&5
13101$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13102is in your PATH or set the PKG_CONFIG environment variable to the full
13103path to pkg-config.
13104
13105Alternatively, you may set the environment variables XDMCP_CFLAGS
13106and XDMCP_LIBS to avoid the need to call pkg-config.
13107See the pkg-config man page for more details.
13108
13109To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13110See \`config.log' for more details." >&2;}
13111   { (exit 1); exit 1; }; }; }
13112else
13113	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
13114	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
13115        { $as_echo "$as_me:$LINENO: result: yes" >&5
13116$as_echo "yes" >&6; }
13117	:
13118fi
13119	{ $as_echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
13120$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
13121if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
13122  $as_echo_n "(cached) " >&6
13123else
13124  ac_check_lib_save_LIBS=$LIBS
13125LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
13126cat >conftest.$ac_ext <<_ACEOF
13127/* confdefs.h.  */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h.  */
13132
13133/* Override any GCC internal prototype to avoid an error.
13134   Use char because int might match the return type of a GCC
13135   builtin and then its argument prototype would still apply.  */
13136#ifdef __cplusplus
13137extern "C"
13138#endif
13139char XdmcpWrap ();
13140int
13141main ()
13142{
13143return XdmcpWrap ();
13144  ;
13145  return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext conftest$ac_exeext
13149if { (ac_try="$ac_link"
13150case "(($ac_try" in
13151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152  *) ac_try_echo=$ac_try;;
13153esac
13154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13155$as_echo "$ac_try_echo") >&5
13156  (eval "$ac_link") 2>conftest.er1
13157  ac_status=$?
13158  grep -v '^ *+' conftest.er1 >conftest.err
13159  rm -f conftest.er1
13160  cat conftest.err >&5
13161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162  (exit $ac_status); } && {
13163	 test -z "$ac_c_werror_flag" ||
13164	 test ! -s conftest.err
13165       } && test -s conftest$ac_exeext && {
13166	 test "$cross_compiling" = yes ||
13167	 $as_test_x conftest$ac_exeext
13168       }; then
13169  ac_cv_lib_Xdmcp_XdmcpWrap=yes
13170else
13171  $as_echo "$as_me: failed program was:" >&5
13172sed 's/^/| /' conftest.$ac_ext >&5
13173
13174	ac_cv_lib_Xdmcp_XdmcpWrap=no
13175fi
13176
13177rm -rf conftest.dSYM
13178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179      conftest$ac_exeext conftest.$ac_ext
13180LIBS=$ac_check_lib_save_LIBS
13181fi
13182{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
13183$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
13184if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then
13185  xdmauth="yes"
13186else
13187  xdmauth="no"
13188fi
13189
13190
13191cat >>confdefs.h <<\_ACEOF
13192#define USE_XCB 0
13193_ACEOF
13194
13195	;;
13196*)
13197	X11_REQUIRES="xcb >= 1.1.92"
13198	X11_EXTRA_DEPS="xcb >= 1.1.92"
13199	xdmauth="no" # XCB handles all auth
13200
13201cat >>confdefs.h <<\_ACEOF
13202#define USE_XCB 1
13203_ACEOF
13204
13205	;;
13206esac
13207
13208
13209pkg_failed=no
13210{ $as_echo "$as_me:$LINENO: checking for X11" >&5
13211$as_echo_n "checking for X11... " >&6; }
13212
13213if test -n "$X11_CFLAGS"; then
13214    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
13215 elif test -n "$PKG_CONFIG"; then
13216    if test -n "$PKG_CONFIG" && \
13217    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto xtrans \$X11_REQUIRES\"") >&5
13218  ($PKG_CONFIG --exists --print-errors "xextproto xtrans $X11_REQUIRES") 2>&5
13219  ac_status=$?
13220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221  (exit $ac_status); }; then
13222  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xextproto xtrans $X11_REQUIRES" 2>/dev/null`
13223else
13224  pkg_failed=yes
13225fi
13226 else
13227    pkg_failed=untried
13228fi
13229if test -n "$X11_LIBS"; then
13230    pkg_cv_X11_LIBS="$X11_LIBS"
13231 elif test -n "$PKG_CONFIG"; then
13232    if test -n "$PKG_CONFIG" && \
13233    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto xtrans \$X11_REQUIRES\"") >&5
13234  ($PKG_CONFIG --exists --print-errors "xextproto xtrans $X11_REQUIRES") 2>&5
13235  ac_status=$?
13236  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237  (exit $ac_status); }; then
13238  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xextproto xtrans $X11_REQUIRES" 2>/dev/null`
13239else
13240  pkg_failed=yes
13241fi
13242 else
13243    pkg_failed=untried
13244fi
13245
13246
13247
13248if test $pkg_failed = yes; then
13249
13250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13251        _pkg_short_errors_supported=yes
13252else
13253        _pkg_short_errors_supported=no
13254fi
13255        if test $_pkg_short_errors_supported = yes; then
13256	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto xtrans $X11_REQUIRES" 2>&1`
13257        else
13258	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto xtrans $X11_REQUIRES" 2>&1`
13259        fi
13260	# Put the nasty error message in config.log where it belongs
13261	echo "$X11_PKG_ERRORS" >&5
13262
13263	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xextproto xtrans $X11_REQUIRES) were not met:
13264
13265$X11_PKG_ERRORS
13266
13267Consider adjusting the PKG_CONFIG_PATH environment variable if you
13268installed software in a non-standard prefix.
13269
13270Alternatively, you may set the environment variables X11_CFLAGS
13271and X11_LIBS to avoid the need to call pkg-config.
13272See the pkg-config man page for more details.
13273" >&5
13274$as_echo "$as_me: error: Package requirements (xextproto xtrans $X11_REQUIRES) were not met:
13275
13276$X11_PKG_ERRORS
13277
13278Consider adjusting the PKG_CONFIG_PATH environment variable if you
13279installed software in a non-standard prefix.
13280
13281Alternatively, you may set the environment variables X11_CFLAGS
13282and X11_LIBS to avoid the need to call pkg-config.
13283See the pkg-config man page for more details.
13284" >&2;}
13285   { (exit 1); exit 1; }; }
13286elif test $pkg_failed = untried; then
13287	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13289{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13290is in your PATH or set the PKG_CONFIG environment variable to the full
13291path to pkg-config.
13292
13293Alternatively, you may set the environment variables X11_CFLAGS
13294and X11_LIBS to avoid the need to call pkg-config.
13295See the pkg-config man page for more details.
13296
13297To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13298See \`config.log' for more details." >&5
13299$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13300is in your PATH or set the PKG_CONFIG environment variable to the full
13301path to pkg-config.
13302
13303Alternatively, you may set the environment variables X11_CFLAGS
13304and X11_LIBS to avoid the need to call pkg-config.
13305See the pkg-config man page for more details.
13306
13307To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13308See \`config.log' for more details." >&2;}
13309   { (exit 1); exit 1; }; }; }
13310else
13311	X11_CFLAGS=$pkg_cv_X11_CFLAGS
13312	X11_LIBS=$pkg_cv_X11_LIBS
13313        { $as_echo "$as_me:$LINENO: result: yes" >&5
13314$as_echo "yes" >&6; }
13315	:
13316fi
13317
13318
13319
13320# Transport selection macro from xtrans.m4
13321
13322
13323
13324 case $host_os in
13325	mingw*)	unixdef="no"   ;;
13326	*)	unixdef="yes"  ;;
13327 esac
13328 # Check whether --enable-unix-transport was given.
13329if test "${enable_unix_transport+set}" = set; then
13330  enableval=$enable_unix_transport; UNIXCONN=$enableval
13331else
13332  UNIXCONN=$unixdef
13333fi
13334
13335 { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
13336$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
13337 if test "$UNIXCONN" = "yes"; then
13338
13339cat >>confdefs.h <<\_ACEOF
13340#define UNIXCONN 1
13341_ACEOF
13342
13343 fi
13344 { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5
13345$as_echo "$UNIXCONN" >&6; }
13346 # Check whether --enable-tcp-transport was given.
13347if test "${enable_tcp_transport+set}" = set; then
13348  enableval=$enable_tcp_transport; TCPCONN=$enableval
13349else
13350  TCPCONN=yes
13351fi
13352
13353 { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
13354$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
13355 { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5
13356$as_echo "$TCPCONN" >&6; }
13357 if test "$TCPCONN" = "yes"; then
13358
13359cat >>confdefs.h <<\_ACEOF
13360#define TCPCONN 1
13361_ACEOF
13362
13363
13364 # SVR4 hides these in libraries other than libc
13365 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
13366$as_echo_n "checking for library containing socket... " >&6; }
13367if test "${ac_cv_search_socket+set}" = set; then
13368  $as_echo_n "(cached) " >&6
13369else
13370  ac_func_search_save_LIBS=$LIBS
13371cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h.  */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h.  */
13377
13378/* Override any GCC internal prototype to avoid an error.
13379   Use char because int might match the return type of a GCC
13380   builtin and then its argument prototype would still apply.  */
13381#ifdef __cplusplus
13382extern "C"
13383#endif
13384char socket ();
13385int
13386main ()
13387{
13388return socket ();
13389  ;
13390  return 0;
13391}
13392_ACEOF
13393for ac_lib in '' socket; do
13394  if test -z "$ac_lib"; then
13395    ac_res="none required"
13396  else
13397    ac_res=-l$ac_lib
13398    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13399  fi
13400  rm -f conftest.$ac_objext conftest$ac_exeext
13401if { (ac_try="$ac_link"
13402case "(($ac_try" in
13403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404  *) ac_try_echo=$ac_try;;
13405esac
13406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407$as_echo "$ac_try_echo") >&5
13408  (eval "$ac_link") 2>conftest.er1
13409  ac_status=$?
13410  grep -v '^ *+' conftest.er1 >conftest.err
13411  rm -f conftest.er1
13412  cat conftest.err >&5
13413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414  (exit $ac_status); } && {
13415	 test -z "$ac_c_werror_flag" ||
13416	 test ! -s conftest.err
13417       } && test -s conftest$ac_exeext && {
13418	 test "$cross_compiling" = yes ||
13419	 $as_test_x conftest$ac_exeext
13420       }; then
13421  ac_cv_search_socket=$ac_res
13422else
13423  $as_echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426
13427fi
13428
13429rm -rf conftest.dSYM
13430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431      conftest$ac_exeext
13432  if test "${ac_cv_search_socket+set}" = set; then
13433  break
13434fi
13435done
13436if test "${ac_cv_search_socket+set}" = set; then
13437  :
13438else
13439  ac_cv_search_socket=no
13440fi
13441rm conftest.$ac_ext
13442LIBS=$ac_func_search_save_LIBS
13443fi
13444{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
13445$as_echo "$ac_cv_search_socket" >&6; }
13446ac_res=$ac_cv_search_socket
13447if test "$ac_res" != no; then
13448  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13449
13450fi
13451
13452 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
13453$as_echo_n "checking for library containing gethostbyname... " >&6; }
13454if test "${ac_cv_search_gethostbyname+set}" = set; then
13455  $as_echo_n "(cached) " >&6
13456else
13457  ac_func_search_save_LIBS=$LIBS
13458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h.  */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h.  */
13464
13465/* Override any GCC internal prototype to avoid an error.
13466   Use char because int might match the return type of a GCC
13467   builtin and then its argument prototype would still apply.  */
13468#ifdef __cplusplus
13469extern "C"
13470#endif
13471char gethostbyname ();
13472int
13473main ()
13474{
13475return gethostbyname ();
13476  ;
13477  return 0;
13478}
13479_ACEOF
13480for ac_lib in '' nsl; do
13481  if test -z "$ac_lib"; then
13482    ac_res="none required"
13483  else
13484    ac_res=-l$ac_lib
13485    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13486  fi
13487  rm -f conftest.$ac_objext conftest$ac_exeext
13488if { (ac_try="$ac_link"
13489case "(($ac_try" in
13490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491  *) ac_try_echo=$ac_try;;
13492esac
13493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13494$as_echo "$ac_try_echo") >&5
13495  (eval "$ac_link") 2>conftest.er1
13496  ac_status=$?
13497  grep -v '^ *+' conftest.er1 >conftest.err
13498  rm -f conftest.er1
13499  cat conftest.err >&5
13500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501  (exit $ac_status); } && {
13502	 test -z "$ac_c_werror_flag" ||
13503	 test ! -s conftest.err
13504       } && test -s conftest$ac_exeext && {
13505	 test "$cross_compiling" = yes ||
13506	 $as_test_x conftest$ac_exeext
13507       }; then
13508  ac_cv_search_gethostbyname=$ac_res
13509else
13510  $as_echo "$as_me: failed program was:" >&5
13511sed 's/^/| /' conftest.$ac_ext >&5
13512
13513
13514fi
13515
13516rm -rf conftest.dSYM
13517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13518      conftest$ac_exeext
13519  if test "${ac_cv_search_gethostbyname+set}" = set; then
13520  break
13521fi
13522done
13523if test "${ac_cv_search_gethostbyname+set}" = set; then
13524  :
13525else
13526  ac_cv_search_gethostbyname=no
13527fi
13528rm conftest.$ac_ext
13529LIBS=$ac_func_search_save_LIBS
13530fi
13531{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
13532$as_echo "$ac_cv_search_gethostbyname" >&6; }
13533ac_res=$ac_cv_search_gethostbyname
13534if test "$ac_res" != no; then
13535  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13536
13537fi
13538
13539
13540 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13541 # Check whether --enable-ipv6 was given.
13542if test "${enable_ipv6+set}" = set; then
13543  enableval=$enable_ipv6; IPV6CONN=$enableval
13544else
13545  { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13546$as_echo_n "checking for getaddrinfo... " >&6; }
13547if test "${ac_cv_func_getaddrinfo+set}" = set; then
13548  $as_echo_n "(cached) " >&6
13549else
13550  cat >conftest.$ac_ext <<_ACEOF
13551/* confdefs.h.  */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
13555/* end confdefs.h.  */
13556/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
13557   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13558#define getaddrinfo innocuous_getaddrinfo
13559
13560/* System header to define __stub macros and hopefully few prototypes,
13561    which can conflict with char getaddrinfo (); below.
13562    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13563    <limits.h> exists even on freestanding compilers.  */
13564
13565#ifdef __STDC__
13566# include <limits.h>
13567#else
13568# include <assert.h>
13569#endif
13570
13571#undef getaddrinfo
13572
13573/* Override any GCC internal prototype to avoid an error.
13574   Use char because int might match the return type of a GCC
13575   builtin and then its argument prototype would still apply.  */
13576#ifdef __cplusplus
13577extern "C"
13578#endif
13579char getaddrinfo ();
13580/* The GNU C library defines this for functions which it implements
13581    to always fail with ENOSYS.  Some functions are actually named
13582    something starting with __ and the normal name is an alias.  */
13583#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
13584choke me
13585#endif
13586
13587int
13588main ()
13589{
13590return getaddrinfo ();
13591  ;
13592  return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext conftest$ac_exeext
13596if { (ac_try="$ac_link"
13597case "(($ac_try" in
13598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599  *) ac_try_echo=$ac_try;;
13600esac
13601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13602$as_echo "$ac_try_echo") >&5
13603  (eval "$ac_link") 2>conftest.er1
13604  ac_status=$?
13605  grep -v '^ *+' conftest.er1 >conftest.err
13606  rm -f conftest.er1
13607  cat conftest.err >&5
13608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609  (exit $ac_status); } && {
13610	 test -z "$ac_c_werror_flag" ||
13611	 test ! -s conftest.err
13612       } && test -s conftest$ac_exeext && {
13613	 test "$cross_compiling" = yes ||
13614	 $as_test_x conftest$ac_exeext
13615       }; then
13616  ac_cv_func_getaddrinfo=yes
13617else
13618  $as_echo "$as_me: failed program was:" >&5
13619sed 's/^/| /' conftest.$ac_ext >&5
13620
13621	ac_cv_func_getaddrinfo=no
13622fi
13623
13624rm -rf conftest.dSYM
13625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626      conftest$ac_exeext conftest.$ac_ext
13627fi
13628{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
13629$as_echo "$ac_cv_func_getaddrinfo" >&6; }
13630if test "x$ac_cv_func_getaddrinfo" = x""yes; then
13631  IPV6CONN=yes
13632else
13633  IPV6CONN=no
13634fi
13635
13636fi
13637
13638 { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
13639$as_echo_n "checking if IPv6 support should be built... " >&6; }
13640 if test "$IPV6CONN" = "yes"; then
13641
13642cat >>confdefs.h <<\_ACEOF
13643#define IPv6 1
13644_ACEOF
13645
13646 fi
13647 { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5
13648$as_echo "$IPV6CONN" >&6; }
13649
13650 # 4.3BSD-Reno added a new member to struct sockaddr_in
13651 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
13652$as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
13653if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
13654  $as_echo_n "(cached) " >&6
13655else
13656  cat >conftest.$ac_ext <<_ACEOF
13657/* confdefs.h.  */
13658_ACEOF
13659cat confdefs.h >>conftest.$ac_ext
13660cat >>conftest.$ac_ext <<_ACEOF
13661/* end confdefs.h.  */
13662
13663#include <sys/types.h>
13664#include <sys/socket.h>
13665#include <netinet/in.h>
13666
13667
13668int
13669main ()
13670{
13671static struct sockaddr_in ac_aggr;
13672if (ac_aggr.sin_len)
13673return 0;
13674  ;
13675  return 0;
13676}
13677_ACEOF
13678rm -f conftest.$ac_objext
13679if { (ac_try="$ac_compile"
13680case "(($ac_try" in
13681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682  *) ac_try_echo=$ac_try;;
13683esac
13684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13685$as_echo "$ac_try_echo") >&5
13686  (eval "$ac_compile") 2>conftest.er1
13687  ac_status=$?
13688  grep -v '^ *+' conftest.er1 >conftest.err
13689  rm -f conftest.er1
13690  cat conftest.err >&5
13691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692  (exit $ac_status); } && {
13693	 test -z "$ac_c_werror_flag" ||
13694	 test ! -s conftest.err
13695       } && test -s conftest.$ac_objext; then
13696  ac_cv_member_struct_sockaddr_in_sin_len=yes
13697else
13698  $as_echo "$as_me: failed program was:" >&5
13699sed 's/^/| /' conftest.$ac_ext >&5
13700
13701	cat >conftest.$ac_ext <<_ACEOF
13702/* confdefs.h.  */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h.  */
13707
13708#include <sys/types.h>
13709#include <sys/socket.h>
13710#include <netinet/in.h>
13711
13712
13713int
13714main ()
13715{
13716static struct sockaddr_in ac_aggr;
13717if (sizeof ac_aggr.sin_len)
13718return 0;
13719  ;
13720  return 0;
13721}
13722_ACEOF
13723rm -f conftest.$ac_objext
13724if { (ac_try="$ac_compile"
13725case "(($ac_try" in
13726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727  *) ac_try_echo=$ac_try;;
13728esac
13729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13730$as_echo "$ac_try_echo") >&5
13731  (eval "$ac_compile") 2>conftest.er1
13732  ac_status=$?
13733  grep -v '^ *+' conftest.er1 >conftest.err
13734  rm -f conftest.er1
13735  cat conftest.err >&5
13736  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737  (exit $ac_status); } && {
13738	 test -z "$ac_c_werror_flag" ||
13739	 test ! -s conftest.err
13740       } && test -s conftest.$ac_objext; then
13741  ac_cv_member_struct_sockaddr_in_sin_len=yes
13742else
13743  $as_echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746	ac_cv_member_struct_sockaddr_in_sin_len=no
13747fi
13748
13749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750fi
13751
13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753fi
13754{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
13755$as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
13756if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
13757
13758cat >>confdefs.h <<\_ACEOF
13759#define BSD44SOCKETS 1
13760_ACEOF
13761
13762fi
13763
13764
13765 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
13766 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
13767$as_echo_n "checking for socklen_t... " >&6; }
13768if test "${ac_cv_type_socklen_t+set}" = set; then
13769  $as_echo_n "(cached) " >&6
13770else
13771  ac_cv_type_socklen_t=no
13772cat >conftest.$ac_ext <<_ACEOF
13773/* confdefs.h.  */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h.  */
13778
13779$ac_includes_default
13780#include <sys/socket.h>
13781
13782int
13783main ()
13784{
13785if (sizeof (socklen_t))
13786       return 0;
13787  ;
13788  return 0;
13789}
13790_ACEOF
13791rm -f conftest.$ac_objext
13792if { (ac_try="$ac_compile"
13793case "(($ac_try" in
13794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795  *) ac_try_echo=$ac_try;;
13796esac
13797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13798$as_echo "$ac_try_echo") >&5
13799  (eval "$ac_compile") 2>conftest.er1
13800  ac_status=$?
13801  grep -v '^ *+' conftest.er1 >conftest.err
13802  rm -f conftest.er1
13803  cat conftest.err >&5
13804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805  (exit $ac_status); } && {
13806	 test -z "$ac_c_werror_flag" ||
13807	 test ! -s conftest.err
13808       } && test -s conftest.$ac_objext; then
13809  cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h.  */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h.  */
13815
13816$ac_includes_default
13817#include <sys/socket.h>
13818
13819int
13820main ()
13821{
13822if (sizeof ((socklen_t)))
13823	  return 0;
13824  ;
13825  return 0;
13826}
13827_ACEOF
13828rm -f conftest.$ac_objext
13829if { (ac_try="$ac_compile"
13830case "(($ac_try" in
13831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832  *) ac_try_echo=$ac_try;;
13833esac
13834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13835$as_echo "$ac_try_echo") >&5
13836  (eval "$ac_compile") 2>conftest.er1
13837  ac_status=$?
13838  grep -v '^ *+' conftest.er1 >conftest.err
13839  rm -f conftest.er1
13840  cat conftest.err >&5
13841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842  (exit $ac_status); } && {
13843	 test -z "$ac_c_werror_flag" ||
13844	 test ! -s conftest.err
13845       } && test -s conftest.$ac_objext; then
13846  :
13847else
13848  $as_echo "$as_me: failed program was:" >&5
13849sed 's/^/| /' conftest.$ac_ext >&5
13850
13851	ac_cv_type_socklen_t=yes
13852fi
13853
13854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855else
13856  $as_echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859
13860fi
13861
13862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863fi
13864{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13865$as_echo "$ac_cv_type_socklen_t" >&6; }
13866if test "x$ac_cv_type_socklen_t" = x""yes; then
13867
13868cat >>confdefs.h <<_ACEOF
13869#define HAVE_SOCKLEN_T 1
13870_ACEOF
13871
13872
13873fi
13874
13875
13876
13877 fi
13878 case $host_os in
13879	solaris*|sco*|sysv4*)	localdef="yes" ;;
13880	*)			localdef="no"  ;;
13881 esac
13882 # Check whether --enable-local-transport was given.
13883if test "${enable_local_transport+set}" = set; then
13884  enableval=$enable_local_transport; LOCALCONN=$enableval
13885else
13886  LOCALCONN=$localdef
13887fi
13888
13889 { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
13890$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
13891 { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5
13892$as_echo "$LOCALCONN" >&6; }
13893 if test "$LOCALCONN" = "yes"; then
13894
13895cat >>confdefs.h <<\_ACEOF
13896#define LOCALCONN 1
13897_ACEOF
13898
13899 fi
13900
13901
13902
13903# Secure RPC detection macro from xtrans.m4
13904
13905 # Check whether --enable-secure-rpc was given.
13906if test "${enable_secure_rpc+set}" = set; then
13907  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
13908else
13909  SECURE_RPC="try"
13910fi
13911
13912
13913 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
13914	FOUND_SECURE_RPC="no"
13915
13916
13917for ac_func in authdes_seccreate authdes_create
13918do
13919as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13920{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13921$as_echo_n "checking for $ac_func... " >&6; }
13922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13923  $as_echo_n "(cached) " >&6
13924else
13925  cat >conftest.$ac_ext <<_ACEOF
13926/* confdefs.h.  */
13927_ACEOF
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h.  */
13931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13933#define $ac_func innocuous_$ac_func
13934
13935/* System header to define __stub macros and hopefully few prototypes,
13936    which can conflict with char $ac_func (); below.
13937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13938    <limits.h> exists even on freestanding compilers.  */
13939
13940#ifdef __STDC__
13941# include <limits.h>
13942#else
13943# include <assert.h>
13944#endif
13945
13946#undef $ac_func
13947
13948/* Override any GCC internal prototype to avoid an error.
13949   Use char because int might match the return type of a GCC
13950   builtin and then its argument prototype would still apply.  */
13951#ifdef __cplusplus
13952extern "C"
13953#endif
13954char $ac_func ();
13955/* The GNU C library defines this for functions which it implements
13956    to always fail with ENOSYS.  Some functions are actually named
13957    something starting with __ and the normal name is an alias.  */
13958#if defined __stub_$ac_func || defined __stub___$ac_func
13959choke me
13960#endif
13961
13962int
13963main ()
13964{
13965return $ac_func ();
13966  ;
13967  return 0;
13968}
13969_ACEOF
13970rm -f conftest.$ac_objext conftest$ac_exeext
13971if { (ac_try="$ac_link"
13972case "(($ac_try" in
13973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974  *) ac_try_echo=$ac_try;;
13975esac
13976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13977$as_echo "$ac_try_echo") >&5
13978  (eval "$ac_link") 2>conftest.er1
13979  ac_status=$?
13980  grep -v '^ *+' conftest.er1 >conftest.err
13981  rm -f conftest.er1
13982  cat conftest.err >&5
13983  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984  (exit $ac_status); } && {
13985	 test -z "$ac_c_werror_flag" ||
13986	 test ! -s conftest.err
13987       } && test -s conftest$ac_exeext && {
13988	 test "$cross_compiling" = yes ||
13989	 $as_test_x conftest$ac_exeext
13990       }; then
13991  eval "$as_ac_var=yes"
13992else
13993  $as_echo "$as_me: failed program was:" >&5
13994sed 's/^/| /' conftest.$ac_ext >&5
13995
13996	eval "$as_ac_var=no"
13997fi
13998
13999rm -rf conftest.dSYM
14000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14001      conftest$ac_exeext conftest.$ac_ext
14002fi
14003ac_res=`eval 'as_val=${'$as_ac_var'}
14004		 $as_echo "$as_val"'`
14005	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14006$as_echo "$ac_res" >&6; }
14007as_val=`eval 'as_val=${'$as_ac_var'}
14008		 $as_echo "$as_val"'`
14009   if test "x$as_val" = x""yes; then
14010  cat >>confdefs.h <<_ACEOF
14011#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14012_ACEOF
14013 FOUND_SECURE_RPC="yes"
14014fi
14015done
14016
14017	if test "x$FOUND_SECURE_RPC" = "xno" ; then
14018		if test "x$SECURE_RPC" = "xyes" ; then
14019	{ { $as_echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5
14020$as_echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;}
14021   { (exit 1); exit 1; }; }
14022		fi
14023		SECURE_RPC="no"
14024	else
14025				{ $as_echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5
14026$as_echo_n "checking for library containing getsecretkey... " >&6; }
14027if test "${ac_cv_search_getsecretkey+set}" = set; then
14028  $as_echo_n "(cached) " >&6
14029else
14030  ac_func_search_save_LIBS=$LIBS
14031cat >conftest.$ac_ext <<_ACEOF
14032/* confdefs.h.  */
14033_ACEOF
14034cat confdefs.h >>conftest.$ac_ext
14035cat >>conftest.$ac_ext <<_ACEOF
14036/* end confdefs.h.  */
14037
14038/* Override any GCC internal prototype to avoid an error.
14039   Use char because int might match the return type of a GCC
14040   builtin and then its argument prototype would still apply.  */
14041#ifdef __cplusplus
14042extern "C"
14043#endif
14044char getsecretkey ();
14045int
14046main ()
14047{
14048return getsecretkey ();
14049  ;
14050  return 0;
14051}
14052_ACEOF
14053for ac_lib in '' rpcsvc; do
14054  if test -z "$ac_lib"; then
14055    ac_res="none required"
14056  else
14057    ac_res=-l$ac_lib
14058    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14059  fi
14060  rm -f conftest.$ac_objext conftest$ac_exeext
14061if { (ac_try="$ac_link"
14062case "(($ac_try" in
14063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064  *) ac_try_echo=$ac_try;;
14065esac
14066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14067$as_echo "$ac_try_echo") >&5
14068  (eval "$ac_link") 2>conftest.er1
14069  ac_status=$?
14070  grep -v '^ *+' conftest.er1 >conftest.err
14071  rm -f conftest.er1
14072  cat conftest.err >&5
14073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074  (exit $ac_status); } && {
14075	 test -z "$ac_c_werror_flag" ||
14076	 test ! -s conftest.err
14077       } && test -s conftest$ac_exeext && {
14078	 test "$cross_compiling" = yes ||
14079	 $as_test_x conftest$ac_exeext
14080       }; then
14081  ac_cv_search_getsecretkey=$ac_res
14082else
14083  $as_echo "$as_me: failed program was:" >&5
14084sed 's/^/| /' conftest.$ac_ext >&5
14085
14086
14087fi
14088
14089rm -rf conftest.dSYM
14090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14091      conftest$ac_exeext
14092  if test "${ac_cv_search_getsecretkey+set}" = set; then
14093  break
14094fi
14095done
14096if test "${ac_cv_search_getsecretkey+set}" = set; then
14097  :
14098else
14099  ac_cv_search_getsecretkey=no
14100fi
14101rm conftest.$ac_ext
14102LIBS=$ac_func_search_save_LIBS
14103fi
14104{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5
14105$as_echo "$ac_cv_search_getsecretkey" >&6; }
14106ac_res=$ac_cv_search_getsecretkey
14107if test "$ac_res" != no; then
14108  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14109
14110fi
14111
14112		SECURE_RPC="yes"
14113	fi
14114 fi
14115 { $as_echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
14116$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
14117 if test "x$SECURE_RPC" = "xyes" ; then
14118
14119cat >>confdefs.h <<\_ACEOF
14120#define SECURE_RPC 1
14121_ACEOF
14122
14123 fi
14124 { $as_echo "$as_me:$LINENO: result: $SECURE_RPC" >&5
14125$as_echo "$SECURE_RPC" >&6; }
14126
14127
14128# Preferred order to try transports for local connections
14129{ $as_echo "$as_me:$LINENO: checking what order to try transports in for local connections" >&5
14130$as_echo_n "checking what order to try transports in for local connections... " >&6; }
14131case $host_os in
14132	solaris*)
14133		# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
14134		# faster than Unix domain sockets, but on Solaris 10 & later,
14135		# Unix domain sockets are faster now.
14136		DEFAULT_LOCAL_TRANS="UNIX_TRANS,LOCAL_TRANS,TCP_TRANS"
14137		;;
14138	*)
14139		if test "$LOCALCONN" = "yes"; then
14140			DEFAULT_LOCAL_TRANS="LOCAL_TRANS,UNIX_TRANS,TCP_TRANS"
14141		else
14142			DEFAULT_LOCAL_TRANS="UNIX_TRANS,TCP_TRANS"
14143		fi
14144		;;
14145esac
14146
14147
14148# Check whether --with-local-transport-order was given.
14149if test "${with_local_transport_order+set}" = set; then
14150  withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval
14151else
14152  LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS
14153fi
14154
14155
14156cat >>confdefs.h <<_ACEOF
14157#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST
14158_ACEOF
14159
14160{ $as_echo "$as_me:$LINENO: result: $LOCAL_TRANSPORT_LIST" >&5
14161$as_echo "$LOCAL_TRANSPORT_LIST" >&6; }
14162
14163# Check for dlopen
14164{ $as_echo "$as_me:$LINENO: checking if run-time linking is supported" >&5
14165$as_echo_n "checking if run-time linking is supported... " >&6; }
14166{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
14167$as_echo_n "checking for library containing dlopen... " >&6; }
14168if test "${ac_cv_search_dlopen+set}" = set; then
14169  $as_echo_n "(cached) " >&6
14170else
14171  ac_func_search_save_LIBS=$LIBS
14172cat >conftest.$ac_ext <<_ACEOF
14173/* confdefs.h.  */
14174_ACEOF
14175cat confdefs.h >>conftest.$ac_ext
14176cat >>conftest.$ac_ext <<_ACEOF
14177/* end confdefs.h.  */
14178
14179/* Override any GCC internal prototype to avoid an error.
14180   Use char because int might match the return type of a GCC
14181   builtin and then its argument prototype would still apply.  */
14182#ifdef __cplusplus
14183extern "C"
14184#endif
14185char dlopen ();
14186int
14187main ()
14188{
14189return dlopen ();
14190  ;
14191  return 0;
14192}
14193_ACEOF
14194for ac_lib in '' dl svld; do
14195  if test -z "$ac_lib"; then
14196    ac_res="none required"
14197  else
14198    ac_res=-l$ac_lib
14199    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14200  fi
14201  rm -f conftest.$ac_objext conftest$ac_exeext
14202if { (ac_try="$ac_link"
14203case "(($ac_try" in
14204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205  *) ac_try_echo=$ac_try;;
14206esac
14207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14208$as_echo "$ac_try_echo") >&5
14209  (eval "$ac_link") 2>conftest.er1
14210  ac_status=$?
14211  grep -v '^ *+' conftest.er1 >conftest.err
14212  rm -f conftest.er1
14213  cat conftest.err >&5
14214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215  (exit $ac_status); } && {
14216	 test -z "$ac_c_werror_flag" ||
14217	 test ! -s conftest.err
14218       } && test -s conftest$ac_exeext && {
14219	 test "$cross_compiling" = yes ||
14220	 $as_test_x conftest$ac_exeext
14221       }; then
14222  ac_cv_search_dlopen=$ac_res
14223else
14224  $as_echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227
14228fi
14229
14230rm -rf conftest.dSYM
14231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232      conftest$ac_exeext
14233  if test "${ac_cv_search_dlopen+set}" = set; then
14234  break
14235fi
14236done
14237if test "${ac_cv_search_dlopen+set}" = set; then
14238  :
14239else
14240  ac_cv_search_dlopen=no
14241fi
14242rm conftest.$ac_ext
14243LIBS=$ac_func_search_save_LIBS
14244fi
14245{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
14246$as_echo "$ac_cv_search_dlopen" >&6; }
14247ac_res=$ac_cv_search_dlopen
14248if test "$ac_res" != no; then
14249  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14250
14251fi
14252
14253if test "x$ac_cv_search_dlopen" = xno; then
14254	{ $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
14255$as_echo_n "checking for library containing shl_load... " >&6; }
14256if test "${ac_cv_search_shl_load+set}" = set; then
14257  $as_echo_n "(cached) " >&6
14258else
14259  ac_func_search_save_LIBS=$LIBS
14260cat >conftest.$ac_ext <<_ACEOF
14261/* confdefs.h.  */
14262_ACEOF
14263cat confdefs.h >>conftest.$ac_ext
14264cat >>conftest.$ac_ext <<_ACEOF
14265/* end confdefs.h.  */
14266
14267/* Override any GCC internal prototype to avoid an error.
14268   Use char because int might match the return type of a GCC
14269   builtin and then its argument prototype would still apply.  */
14270#ifdef __cplusplus
14271extern "C"
14272#endif
14273char shl_load ();
14274int
14275main ()
14276{
14277return shl_load ();
14278  ;
14279  return 0;
14280}
14281_ACEOF
14282for ac_lib in '' dld; do
14283  if test -z "$ac_lib"; then
14284    ac_res="none required"
14285  else
14286    ac_res=-l$ac_lib
14287    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14288  fi
14289  rm -f conftest.$ac_objext conftest$ac_exeext
14290if { (ac_try="$ac_link"
14291case "(($ac_try" in
14292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293  *) ac_try_echo=$ac_try;;
14294esac
14295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14296$as_echo "$ac_try_echo") >&5
14297  (eval "$ac_link") 2>conftest.er1
14298  ac_status=$?
14299  grep -v '^ *+' conftest.er1 >conftest.err
14300  rm -f conftest.er1
14301  cat conftest.err >&5
14302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303  (exit $ac_status); } && {
14304	 test -z "$ac_c_werror_flag" ||
14305	 test ! -s conftest.err
14306       } && test -s conftest$ac_exeext && {
14307	 test "$cross_compiling" = yes ||
14308	 $as_test_x conftest$ac_exeext
14309       }; then
14310  ac_cv_search_shl_load=$ac_res
14311else
14312  $as_echo "$as_me: failed program was:" >&5
14313sed 's/^/| /' conftest.$ac_ext >&5
14314
14315
14316fi
14317
14318rm -rf conftest.dSYM
14319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320      conftest$ac_exeext
14321  if test "${ac_cv_search_shl_load+set}" = set; then
14322  break
14323fi
14324done
14325if test "${ac_cv_search_shl_load+set}" = set; then
14326  :
14327else
14328  ac_cv_search_shl_load=no
14329fi
14330rm conftest.$ac_ext
14331LIBS=$ac_func_search_save_LIBS
14332fi
14333{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
14334$as_echo "$ac_cv_search_shl_load" >&6; }
14335ac_res=$ac_cv_search_shl_load
14336if test "$ac_res" != no; then
14337  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14338
14339fi
14340
14341	if test "x$ac_cv_search_shl_load" != xno; then
14342
14343cat >>confdefs.h <<\_ACEOF
14344#define HAVE_SHL_LOAD 1
14345_ACEOF
14346
14347
14348for ac_header in dl.h
14349do
14350as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14352  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14353$as_echo_n "checking for $ac_header... " >&6; }
14354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14355  $as_echo_n "(cached) " >&6
14356fi
14357ac_res=`eval 'as_val=${'$as_ac_Header'}
14358		 $as_echo "$as_val"'`
14359	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14360$as_echo "$ac_res" >&6; }
14361else
14362  # Is the header compilable?
14363{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14364$as_echo_n "checking $ac_header usability... " >&6; }
14365cat >conftest.$ac_ext <<_ACEOF
14366/* confdefs.h.  */
14367_ACEOF
14368cat confdefs.h >>conftest.$ac_ext
14369cat >>conftest.$ac_ext <<_ACEOF
14370/* end confdefs.h.  */
14371$ac_includes_default
14372#include <$ac_header>
14373_ACEOF
14374rm -f conftest.$ac_objext
14375if { (ac_try="$ac_compile"
14376case "(($ac_try" in
14377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378  *) ac_try_echo=$ac_try;;
14379esac
14380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14381$as_echo "$ac_try_echo") >&5
14382  (eval "$ac_compile") 2>conftest.er1
14383  ac_status=$?
14384  grep -v '^ *+' conftest.er1 >conftest.err
14385  rm -f conftest.er1
14386  cat conftest.err >&5
14387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388  (exit $ac_status); } && {
14389	 test -z "$ac_c_werror_flag" ||
14390	 test ! -s conftest.err
14391       } && test -s conftest.$ac_objext; then
14392  ac_header_compiler=yes
14393else
14394  $as_echo "$as_me: failed program was:" >&5
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
14397	ac_header_compiler=no
14398fi
14399
14400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14402$as_echo "$ac_header_compiler" >&6; }
14403
14404# Is the header present?
14405{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14406$as_echo_n "checking $ac_header presence... " >&6; }
14407cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h.  */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h.  */
14413#include <$ac_header>
14414_ACEOF
14415if { (ac_try="$ac_cpp conftest.$ac_ext"
14416case "(($ac_try" in
14417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418  *) ac_try_echo=$ac_try;;
14419esac
14420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14421$as_echo "$ac_try_echo") >&5
14422  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14423  ac_status=$?
14424  grep -v '^ *+' conftest.er1 >conftest.err
14425  rm -f conftest.er1
14426  cat conftest.err >&5
14427  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428  (exit $ac_status); } >/dev/null && {
14429	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14430	 test ! -s conftest.err
14431       }; then
14432  ac_header_preproc=yes
14433else
14434  $as_echo "$as_me: failed program was:" >&5
14435sed 's/^/| /' conftest.$ac_ext >&5
14436
14437  ac_header_preproc=no
14438fi
14439
14440rm -f conftest.err conftest.$ac_ext
14441{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14442$as_echo "$ac_header_preproc" >&6; }
14443
14444# So?  What about this header?
14445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14446  yes:no: )
14447    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14448$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14449    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14450$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14451    ac_header_preproc=yes
14452    ;;
14453  no:yes:* )
14454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14455$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14456    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14457$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14458    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14459$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14460    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14461$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14462    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14463$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14464    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14465$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14466    ( cat <<\_ASBOX
14467## ---------------------------------------------------------------------- ##
14468## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
14469## ---------------------------------------------------------------------- ##
14470_ASBOX
14471     ) | sed "s/^/$as_me: WARNING:     /" >&2
14472    ;;
14473esac
14474{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14475$as_echo_n "checking for $ac_header... " >&6; }
14476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14477  $as_echo_n "(cached) " >&6
14478else
14479  eval "$as_ac_Header=\$ac_header_preproc"
14480fi
14481ac_res=`eval 'as_val=${'$as_ac_Header'}
14482		 $as_echo "$as_val"'`
14483	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14484$as_echo "$ac_res" >&6; }
14485
14486fi
14487as_val=`eval 'as_val=${'$as_ac_Header'}
14488		 $as_echo "$as_val"'`
14489   if test "x$as_val" = x""yes; then
14490  cat >>confdefs.h <<_ACEOF
14491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14492_ACEOF
14493
14494fi
14495
14496done
14497
14498	fi
14499else
14500
14501cat >>confdefs.h <<\_ACEOF
14502#define HAVE_DLOPEN 1
14503_ACEOF
14504
14505
14506for ac_header in dlfcn.h
14507do
14508as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14510  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14511$as_echo_n "checking for $ac_header... " >&6; }
14512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14513  $as_echo_n "(cached) " >&6
14514fi
14515ac_res=`eval 'as_val=${'$as_ac_Header'}
14516		 $as_echo "$as_val"'`
14517	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14518$as_echo "$ac_res" >&6; }
14519else
14520  # Is the header compilable?
14521{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14522$as_echo_n "checking $ac_header usability... " >&6; }
14523cat >conftest.$ac_ext <<_ACEOF
14524/* confdefs.h.  */
14525_ACEOF
14526cat confdefs.h >>conftest.$ac_ext
14527cat >>conftest.$ac_ext <<_ACEOF
14528/* end confdefs.h.  */
14529$ac_includes_default
14530#include <$ac_header>
14531_ACEOF
14532rm -f conftest.$ac_objext
14533if { (ac_try="$ac_compile"
14534case "(($ac_try" in
14535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536  *) ac_try_echo=$ac_try;;
14537esac
14538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14539$as_echo "$ac_try_echo") >&5
14540  (eval "$ac_compile") 2>conftest.er1
14541  ac_status=$?
14542  grep -v '^ *+' conftest.er1 >conftest.err
14543  rm -f conftest.er1
14544  cat conftest.err >&5
14545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546  (exit $ac_status); } && {
14547	 test -z "$ac_c_werror_flag" ||
14548	 test ! -s conftest.err
14549       } && test -s conftest.$ac_objext; then
14550  ac_header_compiler=yes
14551else
14552  $as_echo "$as_me: failed program was:" >&5
14553sed 's/^/| /' conftest.$ac_ext >&5
14554
14555	ac_header_compiler=no
14556fi
14557
14558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14560$as_echo "$ac_header_compiler" >&6; }
14561
14562# Is the header present?
14563{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14564$as_echo_n "checking $ac_header presence... " >&6; }
14565cat >conftest.$ac_ext <<_ACEOF
14566/* confdefs.h.  */
14567_ACEOF
14568cat confdefs.h >>conftest.$ac_ext
14569cat >>conftest.$ac_ext <<_ACEOF
14570/* end confdefs.h.  */
14571#include <$ac_header>
14572_ACEOF
14573if { (ac_try="$ac_cpp conftest.$ac_ext"
14574case "(($ac_try" in
14575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576  *) ac_try_echo=$ac_try;;
14577esac
14578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14579$as_echo "$ac_try_echo") >&5
14580  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14581  ac_status=$?
14582  grep -v '^ *+' conftest.er1 >conftest.err
14583  rm -f conftest.er1
14584  cat conftest.err >&5
14585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586  (exit $ac_status); } >/dev/null && {
14587	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14588	 test ! -s conftest.err
14589       }; then
14590  ac_header_preproc=yes
14591else
14592  $as_echo "$as_me: failed program was:" >&5
14593sed 's/^/| /' conftest.$ac_ext >&5
14594
14595  ac_header_preproc=no
14596fi
14597
14598rm -f conftest.err conftest.$ac_ext
14599{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14600$as_echo "$ac_header_preproc" >&6; }
14601
14602# So?  What about this header?
14603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14604  yes:no: )
14605    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14606$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14607    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14608$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14609    ac_header_preproc=yes
14610    ;;
14611  no:yes:* )
14612    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14613$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14615$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14616    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14617$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14618    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14619$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14620    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14621$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14622    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14623$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14624    ( cat <<\_ASBOX
14625## ---------------------------------------------------------------------- ##
14626## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
14627## ---------------------------------------------------------------------- ##
14628_ASBOX
14629     ) | sed "s/^/$as_me: WARNING:     /" >&2
14630    ;;
14631esac
14632{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14633$as_echo_n "checking for $ac_header... " >&6; }
14634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14635  $as_echo_n "(cached) " >&6
14636else
14637  eval "$as_ac_Header=\$ac_header_preproc"
14638fi
14639ac_res=`eval 'as_val=${'$as_ac_Header'}
14640		 $as_echo "$as_val"'`
14641	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14642$as_echo "$ac_res" >&6; }
14643
14644fi
14645as_val=`eval 'as_val=${'$as_ac_Header'}
14646		 $as_echo "$as_val"'`
14647   if test "x$as_val" = x""yes; then
14648  cat >>confdefs.h <<_ACEOF
14649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14650_ACEOF
14651
14652fi
14653
14654done
14655
14656fi
14657if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then
14658	HAVE_LOADABLE_MODULES=yes
14659else
14660	HAVE_LOADABLE_MODULES=no
14661fi
14662{ $as_echo "$as_me:$LINENO: result: $HAVE_LOADABLE_MODULES" >&5
14663$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
14664
14665{ $as_echo "$as_me:$LINENO: checking if loadable i18n module support should be enabled" >&5
14666$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
14667# Check whether --enable-loadable-i18n was given.
14668if test "${enable_loadable_i18n+set}" = set; then
14669  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
14670else
14671  XLIB_LOADABLE_I18N="no"
14672fi
14673
14674if test x$XLIB_LOADABLE_I18N = xyes; then
14675	if test x$HAVE_LOADABLE_MODULES = xno; then
14676		{ { $as_echo "$as_me:$LINENO: error: Loadable module support is required to enable loadable i18n module support" >&5
14677$as_echo "$as_me: error: Loadable module support is required to enable loadable i18n module support" >&2;}
14678   { (exit 1); exit 1; }; }
14679	fi
14680
14681cat >>confdefs.h <<\_ACEOF
14682#define USE_DYNAMIC_LC 1
14683_ACEOF
14684
14685	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
14686
14687fi
14688{ $as_echo "$as_me:$LINENO: result: $XLIB_LOADABLE_I18N" >&5
14689$as_echo "$XLIB_LOADABLE_I18N" >&6; }
14690
14691 if test x$XLIB_LOADABLE_I18N = xyes; then
14692  XLIB_LOADABLE_I18N_TRUE=
14693  XLIB_LOADABLE_I18N_FALSE='#'
14694else
14695  XLIB_LOADABLE_I18N_TRUE='#'
14696  XLIB_LOADABLE_I18N_FALSE=
14697fi
14698
14699
14700{ $as_echo "$as_me:$LINENO: checking if loadable Xcursor library support should be enabled" >&5
14701$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
14702# Check whether --enable-loadable-xcursor was given.
14703if test "${enable_loadable_xcursor+set}" = set; then
14704  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
14705else
14706  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
14707fi
14708
14709if test x$XLIB_LOADABLE_XCURSOR = xyes; then
14710
14711cat >>confdefs.h <<\_ACEOF
14712#define USE_DYNAMIC_XCURSOR 1
14713_ACEOF
14714
14715fi
14716{ $as_echo "$as_me:$LINENO: result: $XLIB_LOADABLE_XCURSOR" >&5
14717$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
14718
14719# Checks for header files.
14720{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14721$as_echo_n "checking for ANSI C header files... " >&6; }
14722if test "${ac_cv_header_stdc+set}" = set; then
14723  $as_echo_n "(cached) " >&6
14724else
14725  cat >conftest.$ac_ext <<_ACEOF
14726/* confdefs.h.  */
14727_ACEOF
14728cat confdefs.h >>conftest.$ac_ext
14729cat >>conftest.$ac_ext <<_ACEOF
14730/* end confdefs.h.  */
14731#include <stdlib.h>
14732#include <stdarg.h>
14733#include <string.h>
14734#include <float.h>
14735
14736int
14737main ()
14738{
14739
14740  ;
14741  return 0;
14742}
14743_ACEOF
14744rm -f conftest.$ac_objext
14745if { (ac_try="$ac_compile"
14746case "(($ac_try" in
14747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748  *) ac_try_echo=$ac_try;;
14749esac
14750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14751$as_echo "$ac_try_echo") >&5
14752  (eval "$ac_compile") 2>conftest.er1
14753  ac_status=$?
14754  grep -v '^ *+' conftest.er1 >conftest.err
14755  rm -f conftest.er1
14756  cat conftest.err >&5
14757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758  (exit $ac_status); } && {
14759	 test -z "$ac_c_werror_flag" ||
14760	 test ! -s conftest.err
14761       } && test -s conftest.$ac_objext; then
14762  ac_cv_header_stdc=yes
14763else
14764  $as_echo "$as_me: failed program was:" >&5
14765sed 's/^/| /' conftest.$ac_ext >&5
14766
14767	ac_cv_header_stdc=no
14768fi
14769
14770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771
14772if test $ac_cv_header_stdc = yes; then
14773  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14774  cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h.  */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h.  */
14780#include <string.h>
14781
14782_ACEOF
14783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14784  $EGREP "memchr" >/dev/null 2>&1; then
14785  :
14786else
14787  ac_cv_header_stdc=no
14788fi
14789rm -f conftest*
14790
14791fi
14792
14793if test $ac_cv_header_stdc = yes; then
14794  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14795  cat >conftest.$ac_ext <<_ACEOF
14796/* confdefs.h.  */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h.  */
14801#include <stdlib.h>
14802
14803_ACEOF
14804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14805  $EGREP "free" >/dev/null 2>&1; then
14806  :
14807else
14808  ac_cv_header_stdc=no
14809fi
14810rm -f conftest*
14811
14812fi
14813
14814if test $ac_cv_header_stdc = yes; then
14815  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14816  if test "$cross_compiling" = yes; then
14817  :
14818else
14819  cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h.  */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h.  */
14825#include <ctype.h>
14826#include <stdlib.h>
14827#if ((' ' & 0x0FF) == 0x020)
14828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14830#else
14831# define ISLOWER(c) \
14832		   (('a' <= (c) && (c) <= 'i') \
14833		     || ('j' <= (c) && (c) <= 'r') \
14834		     || ('s' <= (c) && (c) <= 'z'))
14835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14836#endif
14837
14838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14839int
14840main ()
14841{
14842  int i;
14843  for (i = 0; i < 256; i++)
14844    if (XOR (islower (i), ISLOWER (i))
14845	|| toupper (i) != TOUPPER (i))
14846      return 2;
14847  return 0;
14848}
14849_ACEOF
14850rm -f conftest$ac_exeext
14851if { (ac_try="$ac_link"
14852case "(($ac_try" in
14853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854  *) ac_try_echo=$ac_try;;
14855esac
14856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14857$as_echo "$ac_try_echo") >&5
14858  (eval "$ac_link") 2>&5
14859  ac_status=$?
14860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14862  { (case "(($ac_try" in
14863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864  *) ac_try_echo=$ac_try;;
14865esac
14866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14867$as_echo "$ac_try_echo") >&5
14868  (eval "$ac_try") 2>&5
14869  ac_status=$?
14870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871  (exit $ac_status); }; }; then
14872  :
14873else
14874  $as_echo "$as_me: program exited with status $ac_status" >&5
14875$as_echo "$as_me: failed program was:" >&5
14876sed 's/^/| /' conftest.$ac_ext >&5
14877
14878( exit $ac_status )
14879ac_cv_header_stdc=no
14880fi
14881rm -rf conftest.dSYM
14882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14883fi
14884
14885
14886fi
14887fi
14888{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14889$as_echo "$ac_cv_header_stdc" >&6; }
14890if test $ac_cv_header_stdc = yes; then
14891
14892cat >>confdefs.h <<\_ACEOF
14893#define STDC_HEADERS 1
14894_ACEOF
14895
14896fi
14897
14898
14899# Checks for typedefs, structures, and compiler characteristics.
14900
14901# Checks for library functions.
14902
14903for ac_func in strtol
14904do
14905as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14906{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14907$as_echo_n "checking for $ac_func... " >&6; }
14908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14909  $as_echo_n "(cached) " >&6
14910else
14911  cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h.  */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h.  */
14917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14918   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14919#define $ac_func innocuous_$ac_func
14920
14921/* System header to define __stub macros and hopefully few prototypes,
14922    which can conflict with char $ac_func (); below.
14923    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14924    <limits.h> exists even on freestanding compilers.  */
14925
14926#ifdef __STDC__
14927# include <limits.h>
14928#else
14929# include <assert.h>
14930#endif
14931
14932#undef $ac_func
14933
14934/* Override any GCC internal prototype to avoid an error.
14935   Use char because int might match the return type of a GCC
14936   builtin and then its argument prototype would still apply.  */
14937#ifdef __cplusplus
14938extern "C"
14939#endif
14940char $ac_func ();
14941/* The GNU C library defines this for functions which it implements
14942    to always fail with ENOSYS.  Some functions are actually named
14943    something starting with __ and the normal name is an alias.  */
14944#if defined __stub_$ac_func || defined __stub___$ac_func
14945choke me
14946#endif
14947
14948int
14949main ()
14950{
14951return $ac_func ();
14952  ;
14953  return 0;
14954}
14955_ACEOF
14956rm -f conftest.$ac_objext conftest$ac_exeext
14957if { (ac_try="$ac_link"
14958case "(($ac_try" in
14959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960  *) ac_try_echo=$ac_try;;
14961esac
14962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963$as_echo "$ac_try_echo") >&5
14964  (eval "$ac_link") 2>conftest.er1
14965  ac_status=$?
14966  grep -v '^ *+' conftest.er1 >conftest.err
14967  rm -f conftest.er1
14968  cat conftest.err >&5
14969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970  (exit $ac_status); } && {
14971	 test -z "$ac_c_werror_flag" ||
14972	 test ! -s conftest.err
14973       } && test -s conftest$ac_exeext && {
14974	 test "$cross_compiling" = yes ||
14975	 $as_test_x conftest$ac_exeext
14976       }; then
14977  eval "$as_ac_var=yes"
14978else
14979  $as_echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982	eval "$as_ac_var=no"
14983fi
14984
14985rm -rf conftest.dSYM
14986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14987      conftest$ac_exeext conftest.$ac_ext
14988fi
14989ac_res=`eval 'as_val=${'$as_ac_var'}
14990		 $as_echo "$as_val"'`
14991	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14992$as_echo "$ac_res" >&6; }
14993as_val=`eval 'as_val=${'$as_ac_var'}
14994		 $as_echo "$as_val"'`
14995   if test "x$as_val" = x""yes; then
14996  cat >>confdefs.h <<_ACEOF
14997#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14998_ACEOF
14999
15000fi
15001done
15002
15003# Used in lcFile.c (see also --enable-xlocaledir settings below)
15004XLOCALEDIR_IS_SAFE="no"
15005{ $as_echo "$as_me:$LINENO: checking for issetugid" >&5
15006$as_echo_n "checking for issetugid... " >&6; }
15007if test "${ac_cv_func_issetugid+set}" = set; then
15008  $as_echo_n "(cached) " >&6
15009else
15010  cat >conftest.$ac_ext <<_ACEOF
15011/* confdefs.h.  */
15012_ACEOF
15013cat confdefs.h >>conftest.$ac_ext
15014cat >>conftest.$ac_ext <<_ACEOF
15015/* end confdefs.h.  */
15016/* Define issetugid to an innocuous variant, in case <limits.h> declares issetugid.
15017   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15018#define issetugid innocuous_issetugid
15019
15020/* System header to define __stub macros and hopefully few prototypes,
15021    which can conflict with char issetugid (); below.
15022    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15023    <limits.h> exists even on freestanding compilers.  */
15024
15025#ifdef __STDC__
15026# include <limits.h>
15027#else
15028# include <assert.h>
15029#endif
15030
15031#undef issetugid
15032
15033/* Override any GCC internal prototype to avoid an error.
15034   Use char because int might match the return type of a GCC
15035   builtin and then its argument prototype would still apply.  */
15036#ifdef __cplusplus
15037extern "C"
15038#endif
15039char issetugid ();
15040/* The GNU C library defines this for functions which it implements
15041    to always fail with ENOSYS.  Some functions are actually named
15042    something starting with __ and the normal name is an alias.  */
15043#if defined __stub_issetugid || defined __stub___issetugid
15044choke me
15045#endif
15046
15047int
15048main ()
15049{
15050return issetugid ();
15051  ;
15052  return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext conftest$ac_exeext
15056if { (ac_try="$ac_link"
15057case "(($ac_try" in
15058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059  *) ac_try_echo=$ac_try;;
15060esac
15061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15062$as_echo "$ac_try_echo") >&5
15063  (eval "$ac_link") 2>conftest.er1
15064  ac_status=$?
15065  grep -v '^ *+' conftest.er1 >conftest.err
15066  rm -f conftest.er1
15067  cat conftest.err >&5
15068  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069  (exit $ac_status); } && {
15070	 test -z "$ac_c_werror_flag" ||
15071	 test ! -s conftest.err
15072       } && test -s conftest$ac_exeext && {
15073	 test "$cross_compiling" = yes ||
15074	 $as_test_x conftest$ac_exeext
15075       }; then
15076  ac_cv_func_issetugid=yes
15077else
15078  $as_echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081	ac_cv_func_issetugid=no
15082fi
15083
15084rm -rf conftest.dSYM
15085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15086      conftest$ac_exeext conftest.$ac_ext
15087fi
15088{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_issetugid" >&5
15089$as_echo "$ac_cv_func_issetugid" >&6; }
15090if test "x$ac_cv_func_issetugid" = x""yes; then
15091  XLOCALEDIR_IS_SAFE="yes"
15092
15093cat >>confdefs.h <<\_ACEOF
15094#define HASSETUGID 1
15095_ACEOF
15096
15097fi
15098
15099{ $as_echo "$as_me:$LINENO: checking for getresuid" >&5
15100$as_echo_n "checking for getresuid... " >&6; }
15101if test "${ac_cv_func_getresuid+set}" = set; then
15102  $as_echo_n "(cached) " >&6
15103else
15104  cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h.  */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h.  */
15110/* Define getresuid to an innocuous variant, in case <limits.h> declares getresuid.
15111   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15112#define getresuid innocuous_getresuid
15113
15114/* System header to define __stub macros and hopefully few prototypes,
15115    which can conflict with char getresuid (); below.
15116    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15117    <limits.h> exists even on freestanding compilers.  */
15118
15119#ifdef __STDC__
15120# include <limits.h>
15121#else
15122# include <assert.h>
15123#endif
15124
15125#undef getresuid
15126
15127/* Override any GCC internal prototype to avoid an error.
15128   Use char because int might match the return type of a GCC
15129   builtin and then its argument prototype would still apply.  */
15130#ifdef __cplusplus
15131extern "C"
15132#endif
15133char getresuid ();
15134/* The GNU C library defines this for functions which it implements
15135    to always fail with ENOSYS.  Some functions are actually named
15136    something starting with __ and the normal name is an alias.  */
15137#if defined __stub_getresuid || defined __stub___getresuid
15138choke me
15139#endif
15140
15141int
15142main ()
15143{
15144return getresuid ();
15145  ;
15146  return 0;
15147}
15148_ACEOF
15149rm -f conftest.$ac_objext conftest$ac_exeext
15150if { (ac_try="$ac_link"
15151case "(($ac_try" in
15152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153  *) ac_try_echo=$ac_try;;
15154esac
15155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156$as_echo "$ac_try_echo") >&5
15157  (eval "$ac_link") 2>conftest.er1
15158  ac_status=$?
15159  grep -v '^ *+' conftest.er1 >conftest.err
15160  rm -f conftest.er1
15161  cat conftest.err >&5
15162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163  (exit $ac_status); } && {
15164	 test -z "$ac_c_werror_flag" ||
15165	 test ! -s conftest.err
15166       } && test -s conftest$ac_exeext && {
15167	 test "$cross_compiling" = yes ||
15168	 $as_test_x conftest$ac_exeext
15169       }; then
15170  ac_cv_func_getresuid=yes
15171else
15172  $as_echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175	ac_cv_func_getresuid=no
15176fi
15177
15178rm -rf conftest.dSYM
15179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15180      conftest$ac_exeext conftest.$ac_ext
15181fi
15182{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getresuid" >&5
15183$as_echo "$ac_cv_func_getresuid" >&6; }
15184if test "x$ac_cv_func_getresuid" = x""yes; then
15185  XLOCALEDIR_IS_SAFE="yes"
15186
15187cat >>confdefs.h <<\_ACEOF
15188#define HASGETRESUID 1
15189_ACEOF
15190
15191fi
15192
15193# Used in Font.c
15194{ $as_echo "$as_me:$LINENO: checking for shmat" >&5
15195$as_echo_n "checking for shmat... " >&6; }
15196if test "${ac_cv_func_shmat+set}" = set; then
15197  $as_echo_n "(cached) " >&6
15198else
15199  cat >conftest.$ac_ext <<_ACEOF
15200/* confdefs.h.  */
15201_ACEOF
15202cat confdefs.h >>conftest.$ac_ext
15203cat >>conftest.$ac_ext <<_ACEOF
15204/* end confdefs.h.  */
15205/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
15206   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15207#define shmat innocuous_shmat
15208
15209/* System header to define __stub macros and hopefully few prototypes,
15210    which can conflict with char shmat (); below.
15211    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15212    <limits.h> exists even on freestanding compilers.  */
15213
15214#ifdef __STDC__
15215# include <limits.h>
15216#else
15217# include <assert.h>
15218#endif
15219
15220#undef shmat
15221
15222/* Override any GCC internal prototype to avoid an error.
15223   Use char because int might match the return type of a GCC
15224   builtin and then its argument prototype would still apply.  */
15225#ifdef __cplusplus
15226extern "C"
15227#endif
15228char shmat ();
15229/* The GNU C library defines this for functions which it implements
15230    to always fail with ENOSYS.  Some functions are actually named
15231    something starting with __ and the normal name is an alias.  */
15232#if defined __stub_shmat || defined __stub___shmat
15233choke me
15234#endif
15235
15236int
15237main ()
15238{
15239return shmat ();
15240  ;
15241  return 0;
15242}
15243_ACEOF
15244rm -f conftest.$ac_objext conftest$ac_exeext
15245if { (ac_try="$ac_link"
15246case "(($ac_try" in
15247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248  *) ac_try_echo=$ac_try;;
15249esac
15250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251$as_echo "$ac_try_echo") >&5
15252  (eval "$ac_link") 2>conftest.er1
15253  ac_status=$?
15254  grep -v '^ *+' conftest.er1 >conftest.err
15255  rm -f conftest.er1
15256  cat conftest.err >&5
15257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258  (exit $ac_status); } && {
15259	 test -z "$ac_c_werror_flag" ||
15260	 test ! -s conftest.err
15261       } && test -s conftest$ac_exeext && {
15262	 test "$cross_compiling" = yes ||
15263	 $as_test_x conftest$ac_exeext
15264       }; then
15265  ac_cv_func_shmat=yes
15266else
15267  $as_echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
15269
15270	ac_cv_func_shmat=no
15271fi
15272
15273rm -rf conftest.dSYM
15274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15275      conftest$ac_exeext conftest.$ac_ext
15276fi
15277{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
15278$as_echo "$ac_cv_func_shmat" >&6; }
15279if test "x$ac_cv_func_shmat" = x""yes; then
15280
15281cat >>confdefs.h <<\_ACEOF
15282#define HAS_SHM 1
15283_ACEOF
15284
15285fi
15286
15287
15288# Checks for system services
15289
15290# arch specific things
15291WCHAR32="1"
15292case $target_alias in
15293  *os2*) os2="true" ; WCHAR32="0" ;;
15294  *) ;;
15295esac
15296
15297
15298 if test x$os2 = xtrue; then
15299  OS2_TRUE=
15300  OS2_FALSE='#'
15301else
15302  OS2_TRUE='#'
15303  OS2_FALSE=
15304fi
15305
15306
15307
15308# Check whether --with-launchd was given.
15309if test "${with_launchd+set}" = set; then
15310  withval=$with_launchd; LAUNCHD=$withval
15311else
15312  LAUNCHD=auto
15313fi
15314
15315if test "x$LAUNCHD" = xauto; then
15316	unset LAUNCHD
15317	# Extract the first word of "launchd", so it can be a program name with args.
15318set dummy launchd; ac_word=$2
15319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15320$as_echo_n "checking for $ac_word... " >&6; }
15321if test "${ac_cv_prog_LAUNCHD+set}" = set; then
15322  $as_echo_n "(cached) " >&6
15323else
15324  if test -n "$LAUNCHD"; then
15325  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
15326else
15327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15328for as_dir in $PATH
15329do
15330  IFS=$as_save_IFS
15331  test -z "$as_dir" && as_dir=.
15332  for ac_exec_ext in '' $ac_executable_extensions; do
15333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15334    ac_cv_prog_LAUNCHD="yes"
15335    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15336    break 2
15337  fi
15338done
15339done
15340IFS=$as_save_IFS
15341
15342  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
15343fi
15344fi
15345LAUNCHD=$ac_cv_prog_LAUNCHD
15346if test -n "$LAUNCHD"; then
15347  { $as_echo "$as_me:$LINENO: result: $LAUNCHD" >&5
15348$as_echo "$LAUNCHD" >&6; }
15349else
15350  { $as_echo "$as_me:$LINENO: result: no" >&5
15351$as_echo "no" >&6; }
15352fi
15353
15354
15355fi
15356
15357if test "x$LAUNCHD" = xyes ; then
15358
15359cat >>confdefs.h <<\_ACEOF
15360#define HAVE_LAUNCHD 1
15361_ACEOF
15362
15363
15364cat >>confdefs.h <<\_ACEOF
15365#define TRANS_REOPEN 1
15366_ACEOF
15367
15368fi
15369
15370# Check whether --enable-xthreads was given.
15371if test "${enable_xthreads+set}" = set; then
15372  enableval=$enable_xthreads; xthreads=$enableval
15373else
15374  xthreads=yes
15375fi
15376
15377
15378{ $as_echo "$as_me:$LINENO: checking for getpwuid_r in -lc" >&5
15379$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
15380if test "${ac_cv_lib_c_getpwuid_r+set}" = set; then
15381  $as_echo_n "(cached) " >&6
15382else
15383  ac_check_lib_save_LIBS=$LIBS
15384LIBS="-lc  $LIBS"
15385cat >conftest.$ac_ext <<_ACEOF
15386/* confdefs.h.  */
15387_ACEOF
15388cat confdefs.h >>conftest.$ac_ext
15389cat >>conftest.$ac_ext <<_ACEOF
15390/* end confdefs.h.  */
15391
15392/* Override any GCC internal prototype to avoid an error.
15393   Use char because int might match the return type of a GCC
15394   builtin and then its argument prototype would still apply.  */
15395#ifdef __cplusplus
15396extern "C"
15397#endif
15398char getpwuid_r ();
15399int
15400main ()
15401{
15402return getpwuid_r ();
15403  ;
15404  return 0;
15405}
15406_ACEOF
15407rm -f conftest.$ac_objext conftest$ac_exeext
15408if { (ac_try="$ac_link"
15409case "(($ac_try" in
15410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411  *) ac_try_echo=$ac_try;;
15412esac
15413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15414$as_echo "$ac_try_echo") >&5
15415  (eval "$ac_link") 2>conftest.er1
15416  ac_status=$?
15417  grep -v '^ *+' conftest.er1 >conftest.err
15418  rm -f conftest.er1
15419  cat conftest.err >&5
15420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421  (exit $ac_status); } && {
15422	 test -z "$ac_c_werror_flag" ||
15423	 test ! -s conftest.err
15424       } && test -s conftest$ac_exeext && {
15425	 test "$cross_compiling" = yes ||
15426	 $as_test_x conftest$ac_exeext
15427       }; then
15428  ac_cv_lib_c_getpwuid_r=yes
15429else
15430  $as_echo "$as_me: failed program was:" >&5
15431sed 's/^/| /' conftest.$ac_ext >&5
15432
15433	ac_cv_lib_c_getpwuid_r=no
15434fi
15435
15436rm -rf conftest.dSYM
15437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15438      conftest$ac_exeext conftest.$ac_ext
15439LIBS=$ac_check_lib_save_LIBS
15440fi
15441{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpwuid_r" >&5
15442$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
15443if test "x$ac_cv_lib_c_getpwuid_r" = x""yes; then
15444  mtsafeapi="yes"
15445else
15446  mtsafeapi="no"
15447fi
15448
15449
15450case x$xthreads in
15451xyes)
15452
15453cat >>confdefs.h <<\_ACEOF
15454#define XTHREADS 1
15455_ACEOF
15456
15457	if test x$mtsafeapi = xyes
15458	then
15459
15460cat >>confdefs.h <<\_ACEOF
15461#define XUSE_MTSAFE_API 1
15462_ACEOF
15463
15464	fi
15465	;;
15466*)
15467	;;
15468esac
15469
15470{ $as_echo "$as_me:$LINENO: checking for pthread_self in -lc" >&5
15471$as_echo_n "checking for pthread_self in -lc... " >&6; }
15472if test "${ac_cv_lib_c_pthread_self+set}" = set; then
15473  $as_echo_n "(cached) " >&6
15474else
15475  ac_check_lib_save_LIBS=$LIBS
15476LIBS="-lc  $LIBS"
15477cat >conftest.$ac_ext <<_ACEOF
15478/* confdefs.h.  */
15479_ACEOF
15480cat confdefs.h >>conftest.$ac_ext
15481cat >>conftest.$ac_ext <<_ACEOF
15482/* end confdefs.h.  */
15483
15484/* Override any GCC internal prototype to avoid an error.
15485   Use char because int might match the return type of a GCC
15486   builtin and then its argument prototype would still apply.  */
15487#ifdef __cplusplus
15488extern "C"
15489#endif
15490char pthread_self ();
15491int
15492main ()
15493{
15494return pthread_self ();
15495  ;
15496  return 0;
15497}
15498_ACEOF
15499rm -f conftest.$ac_objext conftest$ac_exeext
15500if { (ac_try="$ac_link"
15501case "(($ac_try" in
15502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503  *) ac_try_echo=$ac_try;;
15504esac
15505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15506$as_echo "$ac_try_echo") >&5
15507  (eval "$ac_link") 2>conftest.er1
15508  ac_status=$?
15509  grep -v '^ *+' conftest.er1 >conftest.err
15510  rm -f conftest.er1
15511  cat conftest.err >&5
15512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513  (exit $ac_status); } && {
15514	 test -z "$ac_c_werror_flag" ||
15515	 test ! -s conftest.err
15516       } && test -s conftest$ac_exeext && {
15517	 test "$cross_compiling" = yes ||
15518	 $as_test_x conftest$ac_exeext
15519       }; then
15520  ac_cv_lib_c_pthread_self=yes
15521else
15522  $as_echo "$as_me: failed program was:" >&5
15523sed 's/^/| /' conftest.$ac_ext >&5
15524
15525	ac_cv_lib_c_pthread_self=no
15526fi
15527
15528rm -rf conftest.dSYM
15529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15530      conftest$ac_exeext conftest.$ac_ext
15531LIBS=$ac_check_lib_save_LIBS
15532fi
15533{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_self" >&5
15534$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
15535if test "x$ac_cv_lib_c_pthread_self" = x""yes; then
15536  thrstubs="no"
15537else
15538  thrstubs="yes"
15539fi
15540
15541 if test x$thrstubs = xyes; then
15542  THRSTUBS_TRUE=
15543  THRSTUBS_FALSE='#'
15544else
15545  THRSTUBS_TRUE='#'
15546  THRSTUBS_FALSE=
15547fi
15548
15549
15550if test x$xthreads = xyes ; then
15551    case $host_os in
15552    linux*|openbsd*|gnu*|k*bsd*-gnu)
15553        XTHREADLIB=-lpthread ;;
15554    netbsd*)
15555	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
15556	XTHREADLIB="-lpthread" ;;
15557    freebsd*)
15558        XTHREAD_CFLAGS="-D_THREAD_SAFE"
15559        XTHREADLIB="-pthread" ;;
15560    dragonfly*)
15561        XTHREADLIB="-pthread" ;;
15562    solaris*)
15563	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
15564    esac
15565fi
15566
15567
15568X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
15569
15570case x$xdmauth in
15571xyes)
15572	XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH"
15573	;;
15574xno)
15575	XDMCP_LIBS=""
15576	;;
15577esac
15578
15579
15580
15581{ $as_echo "$as_me:$LINENO: checking for poll" >&5
15582$as_echo_n "checking for poll... " >&6; }
15583if test "${ac_cv_func_poll+set}" = set; then
15584  $as_echo_n "(cached) " >&6
15585else
15586  cat >conftest.$ac_ext <<_ACEOF
15587/* confdefs.h.  */
15588_ACEOF
15589cat confdefs.h >>conftest.$ac_ext
15590cat >>conftest.$ac_ext <<_ACEOF
15591/* end confdefs.h.  */
15592/* Define poll to an innocuous variant, in case <limits.h> declares poll.
15593   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15594#define poll innocuous_poll
15595
15596/* System header to define __stub macros and hopefully few prototypes,
15597    which can conflict with char poll (); below.
15598    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15599    <limits.h> exists even on freestanding compilers.  */
15600
15601#ifdef __STDC__
15602# include <limits.h>
15603#else
15604# include <assert.h>
15605#endif
15606
15607#undef poll
15608
15609/* Override any GCC internal prototype to avoid an error.
15610   Use char because int might match the return type of a GCC
15611   builtin and then its argument prototype would still apply.  */
15612#ifdef __cplusplus
15613extern "C"
15614#endif
15615char poll ();
15616/* The GNU C library defines this for functions which it implements
15617    to always fail with ENOSYS.  Some functions are actually named
15618    something starting with __ and the normal name is an alias.  */
15619#if defined __stub_poll || defined __stub___poll
15620choke me
15621#endif
15622
15623int
15624main ()
15625{
15626return poll ();
15627  ;
15628  return 0;
15629}
15630_ACEOF
15631rm -f conftest.$ac_objext conftest$ac_exeext
15632if { (ac_try="$ac_link"
15633case "(($ac_try" in
15634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635  *) ac_try_echo=$ac_try;;
15636esac
15637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15638$as_echo "$ac_try_echo") >&5
15639  (eval "$ac_link") 2>conftest.er1
15640  ac_status=$?
15641  grep -v '^ *+' conftest.er1 >conftest.err
15642  rm -f conftest.er1
15643  cat conftest.err >&5
15644  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645  (exit $ac_status); } && {
15646	 test -z "$ac_c_werror_flag" ||
15647	 test ! -s conftest.err
15648       } && test -s conftest$ac_exeext && {
15649	 test "$cross_compiling" = yes ||
15650	 $as_test_x conftest$ac_exeext
15651       }; then
15652  ac_cv_func_poll=yes
15653else
15654  $as_echo "$as_me: failed program was:" >&5
15655sed 's/^/| /' conftest.$ac_ext >&5
15656
15657	ac_cv_func_poll=no
15658fi
15659
15660rm -rf conftest.dSYM
15661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15662      conftest$ac_exeext conftest.$ac_ext
15663fi
15664{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
15665$as_echo "$ac_cv_func_poll" >&6; }
15666if test "x$ac_cv_func_poll" = x""yes; then
15667
15668cat >>confdefs.h <<\_ACEOF
15669#define USE_POLL 1
15670_ACEOF
15671
15672fi
15673
15674
15675#
15676# Find keysymdef.h
15677#
15678{ $as_echo "$as_me:$LINENO: checking keysymdef.h" >&5
15679$as_echo_n "checking keysymdef.h... " >&6; }
15680dir=`pkg-config --variable=includedir xproto`
15681KEYSYMDEF="$dir/X11/keysymdef.h"
15682if test -f "$KEYSYMDEF"; then
15683        { $as_echo "$as_me:$LINENO: result: $KEYSYMDEF" >&5
15684$as_echo "$KEYSYMDEF" >&6; }
15685else
15686	{ { $as_echo "$as_me:$LINENO: error: Cannot find keysymdef.h" >&5
15687$as_echo "$as_me: error: Cannot find keysymdef.h" >&2;}
15688   { (exit 1); exit 1; }; }
15689fi
15690
15691
15692 if test xfalse = xtrue; then
15693  UDC_TRUE=
15694  UDC_FALSE='#'
15695else
15696  UDC_TRUE='#'
15697  UDC_FALSE=
15698fi
15699
15700
15701# Check whether --enable-xcms was given.
15702if test "${enable_xcms+set}" = set; then
15703  enableval=$enable_xcms; XCMS=$enableval
15704else
15705  XCMS=yes
15706fi
15707
15708 if test x$XCMS = xyes ; then
15709  XCMS_TRUE=
15710  XCMS_FALSE='#'
15711else
15712  XCMS_TRUE='#'
15713  XCMS_FALSE=
15714fi
15715
15716if test x"$XCMS" = "xyes"; then
15717
15718cat >>confdefs.h <<\_ACEOF
15719#define XCMS 1
15720_ACEOF
15721
15722fi
15723
15724# Check whether --enable-xlocale was given.
15725if test "${enable_xlocale+set}" = set; then
15726  enableval=$enable_xlocale; XLOCALE=$enableval
15727else
15728  XLOCALE=yes
15729fi
15730
15731
15732 if  test x$XLOCALE = xyes ; then
15733  XLOCALE_TRUE=
15734  XLOCALE_FALSE='#'
15735else
15736  XLOCALE_TRUE='#'
15737  XLOCALE_FALSE=
15738fi
15739
15740if test x"$XLOCALE" = "xyes"; then
15741
15742cat >>confdefs.h <<\_ACEOF
15743#define XLOCALE 1
15744_ACEOF
15745
15746fi
15747
15748# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
15749# don't have either issetugid() or getresuid(), and you need to protect
15750# clients that are setgid or setuid to an id other than 0.
15751{ $as_echo "$as_me:$LINENO: checking if XLOCALEDIR support should be enabled" >&5
15752$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
15753# Check whether --enable-xlocaledir was given.
15754if test "${enable_xlocaledir+set}" = set; then
15755  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
15756else
15757  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
15758fi
15759
15760if test "x$ENABLE_XLOCALEDIR" = "xno"; then
15761
15762cat >>confdefs.h <<\_ACEOF
15763#define NO_XLOCALEDIR 1
15764_ACEOF
15765
15766fi
15767{ $as_echo "$as_me:$LINENO: result: $ENABLE_XLOCALEDIR" >&5
15768$as_echo "$ENABLE_XLOCALEDIR" >&6; }
15769
15770# Check whether --enable-xf86bigfont was given.
15771if test "${enable_xf86bigfont+set}" = set; then
15772  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
15773else
15774  XF86BIGFONT="yes"
15775fi
15776
15777if test "x$XF86BIGFONT" = "xyes"; then
15778
15779pkg_failed=no
15780{ $as_echo "$as_me:$LINENO: checking for BIGFONT" >&5
15781$as_echo_n "checking for BIGFONT... " >&6; }
15782
15783if test -n "$BIGFONT_CFLAGS"; then
15784    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
15785 elif test -n "$PKG_CONFIG"; then
15786    if test -n "$PKG_CONFIG" && \
15787    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\"") >&5
15788  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
15789  ac_status=$?
15790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791  (exit $ac_status); }; then
15792  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null`
15793else
15794  pkg_failed=yes
15795fi
15796 else
15797    pkg_failed=untried
15798fi
15799if test -n "$BIGFONT_LIBS"; then
15800    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
15801 elif test -n "$PKG_CONFIG"; then
15802    if test -n "$PKG_CONFIG" && \
15803    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\"") >&5
15804  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5
15805  ac_status=$?
15806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807  (exit $ac_status); }; then
15808  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null`
15809else
15810  pkg_failed=yes
15811fi
15812 else
15813    pkg_failed=untried
15814fi
15815
15816
15817
15818if test $pkg_failed = yes; then
15819
15820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15821        _pkg_short_errors_supported=yes
15822else
15823        _pkg_short_errors_supported=no
15824fi
15825        if test $_pkg_short_errors_supported = yes; then
15826	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto" 2>&1`
15827        else
15828	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto" 2>&1`
15829        fi
15830	# Put the nasty error message in config.log where it belongs
15831	echo "$BIGFONT_PKG_ERRORS" >&5
15832
15833	{ $as_echo "$as_me:$LINENO: result: no" >&5
15834$as_echo "no" >&6; }
15835                XF86BIGFONT="no"
15836elif test $pkg_failed = untried; then
15837	XF86BIGFONT="no"
15838else
15839	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
15840	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
15841        { $as_echo "$as_me:$LINENO: result: yes" >&5
15842$as_echo "yes" >&6; }
15843
15844cat >>confdefs.h <<\_ACEOF
15845#define XF86BIGFONT 1
15846_ACEOF
15847
15848fi
15849
15850
15851fi
15852
15853# Check whether --enable-xkb was given.
15854if test "${enable_xkb+set}" = set; then
15855  enableval=$enable_xkb; XKB=$enableval
15856else
15857  XKB=yes
15858fi
15859
15860
15861
15862
15863
15864if test x$APP_MAN_SUFFIX = x    ; then
15865    APP_MAN_SUFFIX=1
15866fi
15867if test x$APP_MAN_DIR = x    ; then
15868    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
15869fi
15870
15871if test x$LIB_MAN_SUFFIX = x    ; then
15872    LIB_MAN_SUFFIX=3
15873fi
15874if test x$LIB_MAN_DIR = x    ; then
15875    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
15876fi
15877
15878if test x$FILE_MAN_SUFFIX = x    ; then
15879    case $host_os in
15880	solaris*)	FILE_MAN_SUFFIX=4  ;;
15881	*)		FILE_MAN_SUFFIX=5  ;;
15882    esac
15883fi
15884if test x$FILE_MAN_DIR = x    ; then
15885    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
15886fi
15887
15888if test x$MISC_MAN_SUFFIX = x    ; then
15889    case $host_os in
15890	solaris*)	MISC_MAN_SUFFIX=5  ;;
15891	*)		MISC_MAN_SUFFIX=7  ;;
15892    esac
15893fi
15894if test x$MISC_MAN_DIR = x    ; then
15895    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
15896fi
15897
15898if test x$DRIVER_MAN_SUFFIX = x    ; then
15899    case $host_os in
15900	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
15901	*)		DRIVER_MAN_SUFFIX=4  ;;
15902    esac
15903fi
15904if test x$DRIVER_MAN_DIR = x    ; then
15905    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
15906fi
15907
15908if test x$ADMIN_MAN_SUFFIX = x    ; then
15909    case $host_os in
15910	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
15911	*)		ADMIN_MAN_SUFFIX=8  ;;
15912    esac
15913fi
15914if test x$ADMIN_MAN_DIR = x    ; then
15915    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
15916fi
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933# Check whether --enable-man-pages was given.
15934if test "${enable_man_pages+set}" = set; then
15935  enableval=$enable_man_pages; LIBMAN=$enableval
15936else
15937  LIBMAN=yes
15938fi
15939
15940
15941if test "x$LIBMAN" != "xyes"; then
15942	LIB_MAN_SUFFIX=$LIBMAN
15943fi
15944
15945 if  test x$LIBMAN '!=' xno ; then
15946  MANPAGES_TRUE=
15947  MANPAGES_FALSE='#'
15948else
15949  MANPAGES_TRUE='#'
15950  MANPAGES_FALSE=
15951fi
15952
15953
15954 if  test x$XKB = xyes ; then
15955  XKB_TRUE=
15956  XKB_FALSE='#'
15957else
15958  XKB_TRUE='#'
15959  XKB_FALSE=
15960fi
15961
15962if test x"$XKB" = "xyes"; then
15963   XKBPROTO_REQUIRES="kbproto"
15964
15965pkg_failed=no
15966{ $as_echo "$as_me:$LINENO: checking for XKBPROTO" >&5
15967$as_echo_n "checking for XKBPROTO... " >&6; }
15968
15969if test -n "$XKBPROTO_CFLAGS"; then
15970    pkg_cv_XKBPROTO_CFLAGS="$XKBPROTO_CFLAGS"
15971 elif test -n "$PKG_CONFIG"; then
15972    if test -n "$PKG_CONFIG" && \
15973    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"kbproto inputproto\"") >&5
15974  ($PKG_CONFIG --exists --print-errors "kbproto inputproto") 2>&5
15975  ac_status=$?
15976  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977  (exit $ac_status); }; then
15978  pkg_cv_XKBPROTO_CFLAGS=`$PKG_CONFIG --cflags "kbproto inputproto" 2>/dev/null`
15979else
15980  pkg_failed=yes
15981fi
15982 else
15983    pkg_failed=untried
15984fi
15985if test -n "$XKBPROTO_LIBS"; then
15986    pkg_cv_XKBPROTO_LIBS="$XKBPROTO_LIBS"
15987 elif test -n "$PKG_CONFIG"; then
15988    if test -n "$PKG_CONFIG" && \
15989    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"kbproto inputproto\"") >&5
15990  ($PKG_CONFIG --exists --print-errors "kbproto inputproto") 2>&5
15991  ac_status=$?
15992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993  (exit $ac_status); }; then
15994  pkg_cv_XKBPROTO_LIBS=`$PKG_CONFIG --libs "kbproto inputproto" 2>/dev/null`
15995else
15996  pkg_failed=yes
15997fi
15998 else
15999    pkg_failed=untried
16000fi
16001
16002
16003
16004if test $pkg_failed = yes; then
16005
16006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16007        _pkg_short_errors_supported=yes
16008else
16009        _pkg_short_errors_supported=no
16010fi
16011        if test $_pkg_short_errors_supported = yes; then
16012	        XKBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "kbproto inputproto" 2>&1`
16013        else
16014	        XKBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "kbproto inputproto" 2>&1`
16015        fi
16016	# Put the nasty error message in config.log where it belongs
16017	echo "$XKBPROTO_PKG_ERRORS" >&5
16018
16019	{ { $as_echo "$as_me:$LINENO: error: Package requirements (kbproto inputproto) were not met:
16020
16021$XKBPROTO_PKG_ERRORS
16022
16023Consider adjusting the PKG_CONFIG_PATH environment variable if you
16024installed software in a non-standard prefix.
16025
16026Alternatively, you may set the environment variables XKBPROTO_CFLAGS
16027and XKBPROTO_LIBS to avoid the need to call pkg-config.
16028See the pkg-config man page for more details.
16029" >&5
16030$as_echo "$as_me: error: Package requirements (kbproto inputproto) were not met:
16031
16032$XKBPROTO_PKG_ERRORS
16033
16034Consider adjusting the PKG_CONFIG_PATH environment variable if you
16035installed software in a non-standard prefix.
16036
16037Alternatively, you may set the environment variables XKBPROTO_CFLAGS
16038and XKBPROTO_LIBS to avoid the need to call pkg-config.
16039See the pkg-config man page for more details.
16040" >&2;}
16041   { (exit 1); exit 1; }; }
16042elif test $pkg_failed = untried; then
16043	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16045{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
16046is in your PATH or set the PKG_CONFIG environment variable to the full
16047path to pkg-config.
16048
16049Alternatively, you may set the environment variables XKBPROTO_CFLAGS
16050and XKBPROTO_LIBS to avoid the need to call pkg-config.
16051See the pkg-config man page for more details.
16052
16053To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16054See \`config.log' for more details." >&5
16055$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
16056is in your PATH or set the PKG_CONFIG environment variable to the full
16057path to pkg-config.
16058
16059Alternatively, you may set the environment variables XKBPROTO_CFLAGS
16060and XKBPROTO_LIBS to avoid the need to call pkg-config.
16061See the pkg-config man page for more details.
16062
16063To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16064See \`config.log' for more details." >&2;}
16065   { (exit 1); exit 1; }; }; }
16066else
16067	XKBPROTO_CFLAGS=$pkg_cv_XKBPROTO_CFLAGS
16068	XKBPROTO_LIBS=$pkg_cv_XKBPROTO_LIBS
16069        { $as_echo "$as_me:$LINENO: result: yes" >&5
16070$as_echo "yes" >&6; }
16071	:
16072fi
16073
16074cat >>confdefs.h <<\_ACEOF
16075#define XKB 1
16076_ACEOF
16077
16078   X11_CFLAGS="$X11_CFLAGS $XKBPROTO_CFLAGS"
16079   X11_LIBS="$X11_LIBS $XKBPROTO_LIBS"
16080else
16081   XKBPROTO_REQUIRES=""
16082fi
16083
16084
16085
16086
16087for ac_header in stdlib.h unistd.h
16088do
16089as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16091  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16092$as_echo_n "checking for $ac_header... " >&6; }
16093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16094  $as_echo_n "(cached) " >&6
16095fi
16096ac_res=`eval 'as_val=${'$as_ac_Header'}
16097		 $as_echo "$as_val"'`
16098	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16099$as_echo "$ac_res" >&6; }
16100else
16101  # Is the header compilable?
16102{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16103$as_echo_n "checking $ac_header usability... " >&6; }
16104cat >conftest.$ac_ext <<_ACEOF
16105/* confdefs.h.  */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h.  */
16110$ac_includes_default
16111#include <$ac_header>
16112_ACEOF
16113rm -f conftest.$ac_objext
16114if { (ac_try="$ac_compile"
16115case "(($ac_try" in
16116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117  *) ac_try_echo=$ac_try;;
16118esac
16119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16120$as_echo "$ac_try_echo") >&5
16121  (eval "$ac_compile") 2>conftest.er1
16122  ac_status=$?
16123  grep -v '^ *+' conftest.er1 >conftest.err
16124  rm -f conftest.er1
16125  cat conftest.err >&5
16126  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127  (exit $ac_status); } && {
16128	 test -z "$ac_c_werror_flag" ||
16129	 test ! -s conftest.err
16130       } && test -s conftest.$ac_objext; then
16131  ac_header_compiler=yes
16132else
16133  $as_echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136	ac_header_compiler=no
16137fi
16138
16139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16141$as_echo "$ac_header_compiler" >&6; }
16142
16143# Is the header present?
16144{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16145$as_echo_n "checking $ac_header presence... " >&6; }
16146cat >conftest.$ac_ext <<_ACEOF
16147/* confdefs.h.  */
16148_ACEOF
16149cat confdefs.h >>conftest.$ac_ext
16150cat >>conftest.$ac_ext <<_ACEOF
16151/* end confdefs.h.  */
16152#include <$ac_header>
16153_ACEOF
16154if { (ac_try="$ac_cpp conftest.$ac_ext"
16155case "(($ac_try" in
16156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157  *) ac_try_echo=$ac_try;;
16158esac
16159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16160$as_echo "$ac_try_echo") >&5
16161  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16162  ac_status=$?
16163  grep -v '^ *+' conftest.er1 >conftest.err
16164  rm -f conftest.er1
16165  cat conftest.err >&5
16166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167  (exit $ac_status); } >/dev/null && {
16168	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16169	 test ! -s conftest.err
16170       }; then
16171  ac_header_preproc=yes
16172else
16173  $as_echo "$as_me: failed program was:" >&5
16174sed 's/^/| /' conftest.$ac_ext >&5
16175
16176  ac_header_preproc=no
16177fi
16178
16179rm -f conftest.err conftest.$ac_ext
16180{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16181$as_echo "$ac_header_preproc" >&6; }
16182
16183# So?  What about this header?
16184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16185  yes:no: )
16186    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16187$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16188    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16189$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16190    ac_header_preproc=yes
16191    ;;
16192  no:yes:* )
16193    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16194$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16195    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16196$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16197    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16198$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16199    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16200$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16201    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16202$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16203    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16204$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16205    ( cat <<\_ASBOX
16206## ---------------------------------------------------------------------- ##
16207## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
16208## ---------------------------------------------------------------------- ##
16209_ASBOX
16210     ) | sed "s/^/$as_me: WARNING:     /" >&2
16211    ;;
16212esac
16213{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16214$as_echo_n "checking for $ac_header... " >&6; }
16215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216  $as_echo_n "(cached) " >&6
16217else
16218  eval "$as_ac_Header=\$ac_header_preproc"
16219fi
16220ac_res=`eval 'as_val=${'$as_ac_Header'}
16221		 $as_echo "$as_val"'`
16222	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16223$as_echo "$ac_res" >&6; }
16224
16225fi
16226as_val=`eval 'as_val=${'$as_ac_Header'}
16227		 $as_echo "$as_val"'`
16228   if test "x$as_val" = x""yes; then
16229  cat >>confdefs.h <<_ACEOF
16230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16231_ACEOF
16232
16233fi
16234
16235done
16236
16237
16238for ac_func in getpagesize
16239do
16240as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16241{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16242$as_echo_n "checking for $ac_func... " >&6; }
16243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16244  $as_echo_n "(cached) " >&6
16245else
16246  cat >conftest.$ac_ext <<_ACEOF
16247/* confdefs.h.  */
16248_ACEOF
16249cat confdefs.h >>conftest.$ac_ext
16250cat >>conftest.$ac_ext <<_ACEOF
16251/* end confdefs.h.  */
16252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16253   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16254#define $ac_func innocuous_$ac_func
16255
16256/* System header to define __stub macros and hopefully few prototypes,
16257    which can conflict with char $ac_func (); below.
16258    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16259    <limits.h> exists even on freestanding compilers.  */
16260
16261#ifdef __STDC__
16262# include <limits.h>
16263#else
16264# include <assert.h>
16265#endif
16266
16267#undef $ac_func
16268
16269/* Override any GCC internal prototype to avoid an error.
16270   Use char because int might match the return type of a GCC
16271   builtin and then its argument prototype would still apply.  */
16272#ifdef __cplusplus
16273extern "C"
16274#endif
16275char $ac_func ();
16276/* The GNU C library defines this for functions which it implements
16277    to always fail with ENOSYS.  Some functions are actually named
16278    something starting with __ and the normal name is an alias.  */
16279#if defined __stub_$ac_func || defined __stub___$ac_func
16280choke me
16281#endif
16282
16283int
16284main ()
16285{
16286return $ac_func ();
16287  ;
16288  return 0;
16289}
16290_ACEOF
16291rm -f conftest.$ac_objext conftest$ac_exeext
16292if { (ac_try="$ac_link"
16293case "(($ac_try" in
16294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295  *) ac_try_echo=$ac_try;;
16296esac
16297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16298$as_echo "$ac_try_echo") >&5
16299  (eval "$ac_link") 2>conftest.er1
16300  ac_status=$?
16301  grep -v '^ *+' conftest.er1 >conftest.err
16302  rm -f conftest.er1
16303  cat conftest.err >&5
16304  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305  (exit $ac_status); } && {
16306	 test -z "$ac_c_werror_flag" ||
16307	 test ! -s conftest.err
16308       } && test -s conftest$ac_exeext && {
16309	 test "$cross_compiling" = yes ||
16310	 $as_test_x conftest$ac_exeext
16311       }; then
16312  eval "$as_ac_var=yes"
16313else
16314  $as_echo "$as_me: failed program was:" >&5
16315sed 's/^/| /' conftest.$ac_ext >&5
16316
16317	eval "$as_ac_var=no"
16318fi
16319
16320rm -rf conftest.dSYM
16321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16322      conftest$ac_exeext conftest.$ac_ext
16323fi
16324ac_res=`eval 'as_val=${'$as_ac_var'}
16325		 $as_echo "$as_val"'`
16326	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16327$as_echo "$ac_res" >&6; }
16328as_val=`eval 'as_val=${'$as_ac_var'}
16329		 $as_echo "$as_val"'`
16330   if test "x$as_val" = x""yes; then
16331  cat >>confdefs.h <<_ACEOF
16332#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16333_ACEOF
16334
16335fi
16336done
16337
16338{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16339$as_echo_n "checking for working mmap... " >&6; }
16340if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16341  $as_echo_n "(cached) " >&6
16342else
16343  if test "$cross_compiling" = yes; then
16344  ac_cv_func_mmap_fixed_mapped=no
16345else
16346  cat >conftest.$ac_ext <<_ACEOF
16347/* confdefs.h.  */
16348_ACEOF
16349cat confdefs.h >>conftest.$ac_ext
16350cat >>conftest.$ac_ext <<_ACEOF
16351/* end confdefs.h.  */
16352$ac_includes_default
16353/* malloc might have been renamed as rpl_malloc. */
16354#undef malloc
16355
16356/* Thanks to Mike Haertel and Jim Avera for this test.
16357   Here is a matrix of mmap possibilities:
16358	mmap private not fixed
16359	mmap private fixed at somewhere currently unmapped
16360	mmap private fixed at somewhere already mapped
16361	mmap shared not fixed
16362	mmap shared fixed at somewhere currently unmapped
16363	mmap shared fixed at somewhere already mapped
16364   For private mappings, we should verify that changes cannot be read()
16365   back from the file, nor mmap's back from the file at a different
16366   address.  (There have been systems where private was not correctly
16367   implemented like the infamous i386 svr4.0, and systems where the
16368   VM page cache was not coherent with the file system buffer cache
16369   like early versions of FreeBSD and possibly contemporary NetBSD.)
16370   For shared mappings, we should conversely verify that changes get
16371   propagated back to all the places they're supposed to be.
16372
16373   Grep wants private fixed already mapped.
16374   The main things grep needs to know about mmap are:
16375   * does it exist and is it safe to write into the mmap'd area
16376   * how to use it (BSD variants)  */
16377
16378#include <fcntl.h>
16379#include <sys/mman.h>
16380
16381#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16382char *malloc ();
16383#endif
16384
16385/* This mess was copied from the GNU getpagesize.h.  */
16386#ifndef HAVE_GETPAGESIZE
16387/* Assume that all systems that can run configure have sys/param.h.  */
16388# ifndef HAVE_SYS_PARAM_H
16389#  define HAVE_SYS_PARAM_H 1
16390# endif
16391
16392# ifdef _SC_PAGESIZE
16393#  define getpagesize() sysconf(_SC_PAGESIZE)
16394# else /* no _SC_PAGESIZE */
16395#  ifdef HAVE_SYS_PARAM_H
16396#   include <sys/param.h>
16397#   ifdef EXEC_PAGESIZE
16398#    define getpagesize() EXEC_PAGESIZE
16399#   else /* no EXEC_PAGESIZE */
16400#    ifdef NBPG
16401#     define getpagesize() NBPG * CLSIZE
16402#     ifndef CLSIZE
16403#      define CLSIZE 1
16404#     endif /* no CLSIZE */
16405#    else /* no NBPG */
16406#     ifdef NBPC
16407#      define getpagesize() NBPC
16408#     else /* no NBPC */
16409#      ifdef PAGESIZE
16410#       define getpagesize() PAGESIZE
16411#      endif /* PAGESIZE */
16412#     endif /* no NBPC */
16413#    endif /* no NBPG */
16414#   endif /* no EXEC_PAGESIZE */
16415#  else /* no HAVE_SYS_PARAM_H */
16416#   define getpagesize() 8192	/* punt totally */
16417#  endif /* no HAVE_SYS_PARAM_H */
16418# endif /* no _SC_PAGESIZE */
16419
16420#endif /* no HAVE_GETPAGESIZE */
16421
16422int
16423main ()
16424{
16425  char *data, *data2, *data3;
16426  int i, pagesize;
16427  int fd;
16428
16429  pagesize = getpagesize ();
16430
16431  /* First, make a file with some known garbage in it. */
16432  data = (char *) malloc (pagesize);
16433  if (!data)
16434    return 1;
16435  for (i = 0; i < pagesize; ++i)
16436    *(data + i) = rand ();
16437  umask (0);
16438  fd = creat ("conftest.mmap", 0600);
16439  if (fd < 0)
16440    return 1;
16441  if (write (fd, data, pagesize) != pagesize)
16442    return 1;
16443  close (fd);
16444
16445  /* Next, try to mmap the file at a fixed address which already has
16446     something else allocated at it.  If we can, also make sure that
16447     we see the same garbage.  */
16448  fd = open ("conftest.mmap", O_RDWR);
16449  if (fd < 0)
16450    return 1;
16451  data2 = (char *) malloc (2 * pagesize);
16452  if (!data2)
16453    return 1;
16454  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16455  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16456		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16457    return 1;
16458  for (i = 0; i < pagesize; ++i)
16459    if (*(data + i) != *(data2 + i))
16460      return 1;
16461
16462  /* Finally, make sure that changes to the mapped area do not
16463     percolate back to the file as seen by read().  (This is a bug on
16464     some variants of i386 svr4.0.)  */
16465  for (i = 0; i < pagesize; ++i)
16466    *(data2 + i) = *(data2 + i) + 1;
16467  data3 = (char *) malloc (pagesize);
16468  if (!data3)
16469    return 1;
16470  if (read (fd, data3, pagesize) != pagesize)
16471    return 1;
16472  for (i = 0; i < pagesize; ++i)
16473    if (*(data + i) != *(data3 + i))
16474      return 1;
16475  close (fd);
16476  return 0;
16477}
16478_ACEOF
16479rm -f conftest$ac_exeext
16480if { (ac_try="$ac_link"
16481case "(($ac_try" in
16482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483  *) ac_try_echo=$ac_try;;
16484esac
16485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16486$as_echo "$ac_try_echo") >&5
16487  (eval "$ac_link") 2>&5
16488  ac_status=$?
16489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16491  { (case "(($ac_try" in
16492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493  *) ac_try_echo=$ac_try;;
16494esac
16495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16496$as_echo "$ac_try_echo") >&5
16497  (eval "$ac_try") 2>&5
16498  ac_status=$?
16499  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500  (exit $ac_status); }; }; then
16501  ac_cv_func_mmap_fixed_mapped=yes
16502else
16503  $as_echo "$as_me: program exited with status $ac_status" >&5
16504$as_echo "$as_me: failed program was:" >&5
16505sed 's/^/| /' conftest.$ac_ext >&5
16506
16507( exit $ac_status )
16508ac_cv_func_mmap_fixed_mapped=no
16509fi
16510rm -rf conftest.dSYM
16511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16512fi
16513
16514
16515fi
16516{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16517$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16518if test $ac_cv_func_mmap_fixed_mapped = yes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define HAVE_MMAP 1
16522_ACEOF
16523
16524fi
16525rm -f conftest.mmap
16526
16527composecache_default=$ac_cv_func_mmap_fixed_mapped
16528{ $as_echo "$as_me:$LINENO: checking for nl_langinfo" >&5
16529$as_echo_n "checking for nl_langinfo... " >&6; }
16530if test "${ac_cv_func_nl_langinfo+set}" = set; then
16531  $as_echo_n "(cached) " >&6
16532else
16533  cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h.  */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h.  */
16539/* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo.
16540   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16541#define nl_langinfo innocuous_nl_langinfo
16542
16543/* System header to define __stub macros and hopefully few prototypes,
16544    which can conflict with char nl_langinfo (); below.
16545    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16546    <limits.h> exists even on freestanding compilers.  */
16547
16548#ifdef __STDC__
16549# include <limits.h>
16550#else
16551# include <assert.h>
16552#endif
16553
16554#undef nl_langinfo
16555
16556/* Override any GCC internal prototype to avoid an error.
16557   Use char because int might match the return type of a GCC
16558   builtin and then its argument prototype would still apply.  */
16559#ifdef __cplusplus
16560extern "C"
16561#endif
16562char nl_langinfo ();
16563/* The GNU C library defines this for functions which it implements
16564    to always fail with ENOSYS.  Some functions are actually named
16565    something starting with __ and the normal name is an alias.  */
16566#if defined __stub_nl_langinfo || defined __stub___nl_langinfo
16567choke me
16568#endif
16569
16570int
16571main ()
16572{
16573return nl_langinfo ();
16574  ;
16575  return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext conftest$ac_exeext
16579if { (ac_try="$ac_link"
16580case "(($ac_try" in
16581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582  *) ac_try_echo=$ac_try;;
16583esac
16584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16585$as_echo "$ac_try_echo") >&5
16586  (eval "$ac_link") 2>conftest.er1
16587  ac_status=$?
16588  grep -v '^ *+' conftest.er1 >conftest.err
16589  rm -f conftest.er1
16590  cat conftest.err >&5
16591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592  (exit $ac_status); } && {
16593	 test -z "$ac_c_werror_flag" ||
16594	 test ! -s conftest.err
16595       } && test -s conftest$ac_exeext && {
16596	 test "$cross_compiling" = yes ||
16597	 $as_test_x conftest$ac_exeext
16598       }; then
16599  ac_cv_func_nl_langinfo=yes
16600else
16601  $as_echo "$as_me: failed program was:" >&5
16602sed 's/^/| /' conftest.$ac_ext >&5
16603
16604	ac_cv_func_nl_langinfo=no
16605fi
16606
16607rm -rf conftest.dSYM
16608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16609      conftest$ac_exeext conftest.$ac_ext
16610fi
16611{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5
16612$as_echo "$ac_cv_func_nl_langinfo" >&6; }
16613if test "x$ac_cv_func_nl_langinfo" = x""yes; then
16614  :
16615else
16616  composecache_default=no
16617fi
16618
16619# Check whether --enable-composecache was given.
16620if test "${enable_composecache+set}" = set; then
16621  enableval=$enable_composecache; COMPOSECACHE=$enableval
16622else
16623  COMPOSECACHE=$composecache_default
16624fi
16625
16626if test x"$COMPOSECACHE" = "xyes"; then
16627
16628cat >>confdefs.h <<\_ACEOF
16629#define COMPOSECACHE 1
16630_ACEOF
16631
16632fi
16633
16634
16635
16636# Allow checking code with lint, sparse, etc.
16637
16638# Check whether --with-lint was given.
16639if test "${with_lint+set}" = set; then
16640  withval=$with_lint; use_lint=$withval
16641else
16642  use_lint=no
16643fi
16644
16645if test "x$use_lint" = "xyes" ; then
16646	LINT="lint"
16647else
16648	LINT="$use_lint"
16649fi
16650if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
16651    case $LINT in
16652	lint|*/lint)
16653	    case $host_os in
16654		solaris*)
16655			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
16656			;;
16657	    esac
16658	    ;;
16659    esac
16660fi
16661
16662
16663
16664 if test x$LINT != xno; then
16665  LINT_TRUE=
16666  LINT_FALSE='#'
16667else
16668  LINT_TRUE='#'
16669  LINT_FALSE=
16670fi
16671
16672
16673
16674
16675
16676# Build lint "library" for more indepth checks of programs calling this library
16677# Check whether --enable-lint-library was given.
16678if test "${enable_lint_library+set}" = set; then
16679  enableval=$enable_lint_library; make_lint_lib=$enableval
16680else
16681  make_lint_lib=no
16682fi
16683
16684if test "x$make_lint_lib" != "xno" ; then
16685	if test "x$LINT" = "xno" ; then
16686		{ { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
16687$as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
16688   { (exit 1); exit 1; }; }
16689	fi
16690	if test "x$make_lint_lib" = "xyes" ; then
16691		LINTLIB=llib-lX11.ln
16692	else
16693		LINTLIB=$make_lint_lib
16694	fi
16695fi
16696
16697 if test x$make_lint_lib != xno; then
16698  MAKE_LINT_LIB_TRUE=
16699  MAKE_LINT_LIB_FALSE='#'
16700else
16701  MAKE_LINT_LIB_TRUE='#'
16702  MAKE_LINT_LIB_FALSE=
16703fi
16704
16705
16706
16707LINT_FLAGS="${LINT_FLAGS} ${X11_CFLAGS} ${XPROTO_CFLAGS}"
16708
16709if test "x$GCC" = "xyes"; then
16710	GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
16711	-Wmissing-prototypes -Wmissing-declarations \
16712	-Wnested-externs -fno-strict-aliasing"
16713	X11_CFLAGS="$GCC_WARNINGS $X11_CFLAGS"
16714fi
16715
16716X11_DATADIR="${datadir}/X11"
16717
16718  prefix_NONE=
16719  exec_prefix_NONE=
16720  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
16721  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
16722  eval ac_define_dir="\"$X11_DATADIR\""
16723  eval ac_define_dir="\"$ac_define_dir\""
16724  X11_DATADIR="$ac_define_dir"
16725
16726
16727cat >>confdefs.h <<_ACEOF
16728#define X11_DATADIR "$ac_define_dir"
16729_ACEOF
16730
16731  test "$prefix_NONE" && prefix=NONE
16732  test "$exec_prefix_NONE" && exec_prefix=NONE
16733
16734
16735
16736X11_LIBDIR="${libdir}/X11"
16737
16738  prefix_NONE=
16739  exec_prefix_NONE=
16740  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
16741  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
16742  eval ac_define_dir="\"$X11_LIBDIR\""
16743  eval ac_define_dir="\"$ac_define_dir\""
16744  X11_LIBDIR="$ac_define_dir"
16745
16746
16747cat >>confdefs.h <<_ACEOF
16748#define X11_LIBDIR "$ac_define_dir"
16749_ACEOF
16750
16751  test "$prefix_NONE" && prefix=NONE
16752  test "$exec_prefix_NONE" && exec_prefix=NONE
16753
16754
16755
16756X11_CFLAGS="$CWARNFLAGS $X11_CFLAGS $XPROTO_CFLAGS"
16757
16758
16759
16760#
16761# Yes, it would be nice to put the locale data in
16762# /usr/share, but the locale stuff includes loadable
16763# libraries which must be located in the same directory
16764# as the other locale data, so for now, everything lives
16765# in ${libdir}
16766#
16767
16768X11_LOCALEDATADIR="${X11_DATADIR}/locale"
16769
16770  prefix_NONE=
16771  exec_prefix_NONE=
16772  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
16773  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
16774  eval ac_define_dir="\"$X11_LOCALEDATADIR\""
16775  eval ac_define_dir="\"$ac_define_dir\""
16776  XLOCALEDATADIR="$ac_define_dir"
16777
16778
16779cat >>confdefs.h <<_ACEOF
16780#define XLOCALEDATADIR "$ac_define_dir"
16781_ACEOF
16782
16783  test "$prefix_NONE" && prefix=NONE
16784  test "$exec_prefix_NONE" && exec_prefix=NONE
16785
16786
16787
16788
16789# Check whether --with-locale-lib-dir was given.
16790if test "${with_locale_lib_dir+set}" = set; then
16791  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
16792else
16793   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
16794fi
16795
16796
16797  prefix_NONE=
16798  exec_prefix_NONE=
16799  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
16800  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
16801  eval ac_define_dir="\"$X11_LOCALELIBDIR\""
16802  eval ac_define_dir="\"$ac_define_dir\""
16803  XLOCALELIBDIR="$ac_define_dir"
16804
16805
16806cat >>confdefs.h <<_ACEOF
16807#define XLOCALELIBDIR "$ac_define_dir"
16808_ACEOF
16809
16810  test "$prefix_NONE" && prefix=NONE
16811  test "$exec_prefix_NONE" && exec_prefix=NONE
16812
16813
16814
16815X11_LOCALEDIR="${X11_LOCALEDATADIR}"
16816
16817  prefix_NONE=
16818  exec_prefix_NONE=
16819  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
16820  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
16821  eval ac_define_dir="\"$X11_LOCALEDIR\""
16822  eval ac_define_dir="\"$ac_define_dir\""
16823  XLOCALEDIR="$ac_define_dir"
16824
16825
16826cat >>confdefs.h <<_ACEOF
16827#define XLOCALEDIR "$ac_define_dir"
16828_ACEOF
16829
16830  test "$prefix_NONE" && prefix=NONE
16831  test "$exec_prefix_NONE" && exec_prefix=NONE
16832
16833
16834
16835XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
16836
16837  prefix_NONE=
16838  exec_prefix_NONE=
16839  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
16840  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
16841  eval ac_define_dir="\"$XKEYSYMDB\""
16842  eval ac_define_dir="\"$ac_define_dir\""
16843  XKEYSYMDB="$ac_define_dir"
16844
16845
16846cat >>confdefs.h <<_ACEOF
16847#define XKEYSYMDB "$ac_define_dir"
16848_ACEOF
16849
16850  test "$prefix_NONE" && prefix=NONE
16851  test "$exec_prefix_NONE" && exec_prefix=NONE
16852
16853
16854XERRORDB="${X11_DATADIR}/XErrorDB"
16855
16856  prefix_NONE=
16857  exec_prefix_NONE=
16858  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
16859  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
16860  eval ac_define_dir="\"$XERRORDB\""
16861  eval ac_define_dir="\"$ac_define_dir\""
16862  XERRORDB="$ac_define_dir"
16863
16864
16865cat >>confdefs.h <<_ACEOF
16866#define XERRORDB "$ac_define_dir"
16867_ACEOF
16868
16869  test "$prefix_NONE" && prefix=NONE
16870  test "$exec_prefix_NONE" && exec_prefix=NONE
16871
16872
16873
16874
16875# Check whether --enable-malloc0returnsnull was given.
16876if test "${enable_malloc0returnsnull+set}" = set; then
16877  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
16878else
16879  MALLOC_ZERO_RETURNS_NULL=auto
16880fi
16881
16882
16883{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
16884$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
16885if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
16886	if test "$cross_compiling" = yes; then
16887  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16889{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16890See \`config.log' for more details." >&5
16891$as_echo "$as_me: error: cannot run test program while cross compiling
16892See \`config.log' for more details." >&2;}
16893   { (exit 1); exit 1; }; }; }
16894else
16895  cat >conftest.$ac_ext <<_ACEOF
16896
16897char *malloc();
16898char *realloc();
16899char *calloc();
16900main() {
16901    char *m0, *r0, *c0, *p;
16902    m0 = malloc(0);
16903    p = malloc(10);
16904    r0 = realloc(p,0);
16905    c0 = calloc(0);
16906    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
16907}
16908_ACEOF
16909rm -f conftest$ac_exeext
16910if { (ac_try="$ac_link"
16911case "(($ac_try" in
16912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913  *) ac_try_echo=$ac_try;;
16914esac
16915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16916$as_echo "$ac_try_echo") >&5
16917  (eval "$ac_link") 2>&5
16918  ac_status=$?
16919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16921  { (case "(($ac_try" in
16922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923  *) ac_try_echo=$ac_try;;
16924esac
16925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16926$as_echo "$ac_try_echo") >&5
16927  (eval "$ac_try") 2>&5
16928  ac_status=$?
16929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930  (exit $ac_status); }; }; then
16931  MALLOC_ZERO_RETURNS_NULL=yes
16932else
16933  $as_echo "$as_me: program exited with status $ac_status" >&5
16934$as_echo "$as_me: failed program was:" >&5
16935sed 's/^/| /' conftest.$ac_ext >&5
16936
16937( exit $ac_status )
16938MALLOC_ZERO_RETURNS_NULL=no
16939fi
16940rm -rf conftest.dSYM
16941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16942fi
16943
16944
16945fi
16946{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
16947$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
16948
16949if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
16950	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
16951	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
16952	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
16953else
16954	MALLOC_ZERO_CFLAGS=""
16955	XMALLOC_ZERO_CFLAGS=""
16956	XTMALLOC_ZERO_CFLAGS=""
16957fi
16958
16959
16960
16961
16962
16963
16964
16965# Check whether --with-release-version was given.
16966if test "${with_release_version+set}" = set; then
16967  withval=$with_release_version; RELEASE_VERSION="$withval"
16968else
16969  RELEASE_VERSION=""
16970fi
16971
16972	if test "x$RELEASE_VERSION" != "x"; then
16973		PACKAGE="$PACKAGE-$RELEASE_VERSION"
16974		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
16975		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
16976$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
16977	fi
16978
16979cat >>confdefs.h <<_ACEOF
16980#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
16981_ACEOF
16982
16983	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
16984	if test "x$PVM" = "x"; then
16985		PVM="0"
16986	fi
16987
16988cat >>confdefs.h <<_ACEOF
16989#define PACKAGE_VERSION_MINOR $PVM
16990_ACEOF
16991
16992	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
16993	if test "x$PVP" = "x"; then
16994		PVP="0"
16995	fi
16996
16997cat >>confdefs.h <<_ACEOF
16998#define PACKAGE_VERSION_PATCHLEVEL $PVP
16999_ACEOF
17000
17001
17002
17003CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
17004mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
17005echo 'git directory not found: installing possibly empty changelog.' >&2)"
17006
17007distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
17008
17009
17010
17011ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/fi_FI.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/ru_RU.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile x11.pc x11-xcb.pc"
17012
17013cat >confcache <<\_ACEOF
17014# This file is a shell script that caches the results of configure
17015# tests run on this system so they can be shared between configure
17016# scripts and configure runs, see configure's option --config-cache.
17017# It is not useful on other systems.  If it contains results you don't
17018# want to keep, you may remove or edit it.
17019#
17020# config.status only pays attention to the cache file if you give it
17021# the --recheck option to rerun configure.
17022#
17023# `ac_cv_env_foo' variables (set or unset) will be overridden when
17024# loading this file, other *unset* `ac_cv_foo' will be assigned the
17025# following values.
17026
17027_ACEOF
17028
17029# The following way of writing the cache mishandles newlines in values,
17030# but we know of no workaround that is simple, portable, and efficient.
17031# So, we kill variables containing newlines.
17032# Ultrix sh set writes to stderr and can't be redirected directly,
17033# and sets the high bit in the cache file unless we assign to the vars.
17034(
17035  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17036    eval ac_val=\$$ac_var
17037    case $ac_val in #(
17038    *${as_nl}*)
17039      case $ac_var in #(
17040      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17042      esac
17043      case $ac_var in #(
17044      _ | IFS | as_nl) ;; #(
17045      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17046      *) $as_unset $ac_var ;;
17047      esac ;;
17048    esac
17049  done
17050
17051  (set) 2>&1 |
17052    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17053    *${as_nl}ac_space=\ *)
17054      # `set' does not quote correctly, so add quotes (double-quote
17055      # substitution turns \\\\ into \\, and sed turns \\ into \).
17056      sed -n \
17057	"s/'/'\\\\''/g;
17058	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17059      ;; #(
17060    *)
17061      # `set' quotes correctly as required by POSIX, so do not add quotes.
17062      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17063      ;;
17064    esac |
17065    sort
17066) |
17067  sed '
17068     /^ac_cv_env_/b end
17069     t clear
17070     :clear
17071     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17072     t end
17073     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17074     :end' >>confcache
17075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17076  if test -w "$cache_file"; then
17077    test "x$cache_file" != "x/dev/null" &&
17078      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17079$as_echo "$as_me: updating cache $cache_file" >&6;}
17080    cat confcache >$cache_file
17081  else
17082    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17083$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17084  fi
17085fi
17086rm -f confcache
17087
17088test "x$prefix" = xNONE && prefix=$ac_default_prefix
17089# Let make expand exec_prefix.
17090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17091
17092DEFS=-DHAVE_CONFIG_H
17093
17094ac_libobjs=
17095ac_ltlibobjs=
17096for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17097  # 1. Remove the extension, and $U if already installed.
17098  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17099  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17100  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17101  #    will be set to the directory where LIBOBJS objects are built.
17102  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17103  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17104done
17105LIBOBJS=$ac_libobjs
17106
17107LTLIBOBJS=$ac_ltlibobjs
17108
17109
17110 if test -n "$EXEEXT"; then
17111  am__EXEEXT_TRUE=
17112  am__EXEEXT_FALSE='#'
17113else
17114  am__EXEEXT_TRUE='#'
17115  am__EXEEXT_FALSE=
17116fi
17117
17118if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17119  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17120Usually this means the macro was only invoked conditionally." >&5
17121$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17122Usually this means the macro was only invoked conditionally." >&2;}
17123   { (exit 1); exit 1; }; }
17124fi
17125if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17126  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17127Usually this means the macro was only invoked conditionally." >&5
17128$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17129Usually this means the macro was only invoked conditionally." >&2;}
17130   { (exit 1); exit 1; }; }
17131fi
17132if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17133  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17134Usually this means the macro was only invoked conditionally." >&5
17135$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17136Usually this means the macro was only invoked conditionally." >&2;}
17137   { (exit 1); exit 1; }; }
17138fi
17139if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17140  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17141Usually this means the macro was only invoked conditionally." >&5
17142$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17143Usually this means the macro was only invoked conditionally." >&2;}
17144   { (exit 1); exit 1; }; }
17145fi
17146if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then
17147  { { $as_echo "$as_me:$LINENO: error: conditional \"XCB\" was never defined.
17148Usually this means the macro was only invoked conditionally." >&5
17149$as_echo "$as_me: error: conditional \"XCB\" was never defined.
17150Usually this means the macro was only invoked conditionally." >&2;}
17151   { (exit 1); exit 1; }; }
17152fi
17153if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
17154  { { $as_echo "$as_me:$LINENO: error: conditional \"XLIB_LOADABLE_I18N\" was never defined.
17155Usually this means the macro was only invoked conditionally." >&5
17156$as_echo "$as_me: error: conditional \"XLIB_LOADABLE_I18N\" was never defined.
17157Usually this means the macro was only invoked conditionally." >&2;}
17158   { (exit 1); exit 1; }; }
17159fi
17160if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
17161  { { $as_echo "$as_me:$LINENO: error: conditional \"OS2\" was never defined.
17162Usually this means the macro was only invoked conditionally." >&5
17163$as_echo "$as_me: error: conditional \"OS2\" was never defined.
17164Usually this means the macro was only invoked conditionally." >&2;}
17165   { (exit 1); exit 1; }; }
17166fi
17167if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
17168  { { $as_echo "$as_me:$LINENO: error: conditional \"THRSTUBS\" was never defined.
17169Usually this means the macro was only invoked conditionally." >&5
17170$as_echo "$as_me: error: conditional \"THRSTUBS\" was never defined.
17171Usually this means the macro was only invoked conditionally." >&2;}
17172   { (exit 1); exit 1; }; }
17173fi
17174if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then
17175  { { $as_echo "$as_me:$LINENO: error: conditional \"UDC\" was never defined.
17176Usually this means the macro was only invoked conditionally." >&5
17177$as_echo "$as_me: error: conditional \"UDC\" was never defined.
17178Usually this means the macro was only invoked conditionally." >&2;}
17179   { (exit 1); exit 1; }; }
17180fi
17181if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
17182  { { $as_echo "$as_me:$LINENO: error: conditional \"XCMS\" was never defined.
17183Usually this means the macro was only invoked conditionally." >&5
17184$as_echo "$as_me: error: conditional \"XCMS\" was never defined.
17185Usually this means the macro was only invoked conditionally." >&2;}
17186   { (exit 1); exit 1; }; }
17187fi
17188if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
17189  { { $as_echo "$as_me:$LINENO: error: conditional \"XLOCALE\" was never defined.
17190Usually this means the macro was only invoked conditionally." >&5
17191$as_echo "$as_me: error: conditional \"XLOCALE\" was never defined.
17192Usually this means the macro was only invoked conditionally." >&2;}
17193   { (exit 1); exit 1; }; }
17194fi
17195if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then
17196  { { $as_echo "$as_me:$LINENO: error: conditional \"MANPAGES\" was never defined.
17197Usually this means the macro was only invoked conditionally." >&5
17198$as_echo "$as_me: error: conditional \"MANPAGES\" was never defined.
17199Usually this means the macro was only invoked conditionally." >&2;}
17200   { (exit 1); exit 1; }; }
17201fi
17202if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
17203  { { $as_echo "$as_me:$LINENO: error: conditional \"XKB\" was never defined.
17204Usually this means the macro was only invoked conditionally." >&5
17205$as_echo "$as_me: error: conditional \"XKB\" was never defined.
17206Usually this means the macro was only invoked conditionally." >&2;}
17207   { (exit 1); exit 1; }; }
17208fi
17209if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17210  { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
17211Usually this means the macro was only invoked conditionally." >&5
17212$as_echo "$as_me: error: conditional \"LINT\" was never defined.
17213Usually this means the macro was only invoked conditionally." >&2;}
17214   { (exit 1); exit 1; }; }
17215fi
17216if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
17217  { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
17218Usually this means the macro was only invoked conditionally." >&5
17219$as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
17220Usually this means the macro was only invoked conditionally." >&2;}
17221   { (exit 1); exit 1; }; }
17222fi
17223
17224: ${CONFIG_STATUS=./config.status}
17225ac_write_fail=0
17226ac_clean_files_save=$ac_clean_files
17227ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17228{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17229$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17230cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17231#! $SHELL
17232# Generated by $as_me.
17233# Run this file to recreate the current configuration.
17234# Compiler output produced by configure, useful for debugging
17235# configure, is in config.log if it exists.
17236
17237debug=false
17238ac_cs_recheck=false
17239ac_cs_silent=false
17240SHELL=\${CONFIG_SHELL-$SHELL}
17241_ACEOF
17242
17243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17244## --------------------- ##
17245## M4sh Initialization.  ##
17246## --------------------- ##
17247
17248# Be more Bourne compatible
17249DUALCASE=1; export DUALCASE # for MKS sh
17250if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17251  emulate sh
17252  NULLCMD=:
17253  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17254  # is contrary to our usage.  Disable this feature.
17255  alias -g '${1+"$@"}'='"$@"'
17256  setopt NO_GLOB_SUBST
17257else
17258  case `(set -o) 2>/dev/null` in
17259  *posix*) set -o posix ;;
17260esac
17261
17262fi
17263
17264
17265
17266
17267# PATH needs CR
17268# Avoid depending upon Character Ranges.
17269as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17270as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17271as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17272as_cr_digits='0123456789'
17273as_cr_alnum=$as_cr_Letters$as_cr_digits
17274
17275as_nl='
17276'
17277export as_nl
17278# Printing a long string crashes Solaris 7 /usr/bin/printf.
17279as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17280as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17281as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17282if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17283  as_echo='printf %s\n'
17284  as_echo_n='printf %s'
17285else
17286  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17287    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17288    as_echo_n='/usr/ucb/echo -n'
17289  else
17290    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17291    as_echo_n_body='eval
17292      arg=$1;
17293      case $arg in
17294      *"$as_nl"*)
17295	expr "X$arg" : "X\\(.*\\)$as_nl";
17296	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17297      esac;
17298      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17299    '
17300    export as_echo_n_body
17301    as_echo_n='sh -c $as_echo_n_body as_echo'
17302  fi
17303  export as_echo_body
17304  as_echo='sh -c $as_echo_body as_echo'
17305fi
17306
17307# The user is always right.
17308if test "${PATH_SEPARATOR+set}" != set; then
17309  PATH_SEPARATOR=:
17310  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17311    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17312      PATH_SEPARATOR=';'
17313  }
17314fi
17315
17316# Support unset when possible.
17317if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17318  as_unset=unset
17319else
17320  as_unset=false
17321fi
17322
17323
17324# IFS
17325# We need space, tab and new line, in precisely that order.  Quoting is
17326# there to prevent editors from complaining about space-tab.
17327# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17328# splitting by setting IFS to empty value.)
17329IFS=" ""	$as_nl"
17330
17331# Find who we are.  Look in the path if we contain no directory separator.
17332case $0 in
17333  *[\\/]* ) as_myself=$0 ;;
17334  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17335for as_dir in $PATH
17336do
17337  IFS=$as_save_IFS
17338  test -z "$as_dir" && as_dir=.
17339  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17340done
17341IFS=$as_save_IFS
17342
17343     ;;
17344esac
17345# We did not find ourselves, most probably we were run as `sh COMMAND'
17346# in which case we are not to be found in the path.
17347if test "x$as_myself" = x; then
17348  as_myself=$0
17349fi
17350if test ! -f "$as_myself"; then
17351  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17352  { (exit 1); exit 1; }
17353fi
17354
17355# Work around bugs in pre-3.0 UWIN ksh.
17356for as_var in ENV MAIL MAILPATH
17357do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17358done
17359PS1='$ '
17360PS2='> '
17361PS4='+ '
17362
17363# NLS nuisances.
17364LC_ALL=C
17365export LC_ALL
17366LANGUAGE=C
17367export LANGUAGE
17368
17369# Required to use basename.
17370if expr a : '\(a\)' >/dev/null 2>&1 &&
17371   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17372  as_expr=expr
17373else
17374  as_expr=false
17375fi
17376
17377if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17378  as_basename=basename
17379else
17380  as_basename=false
17381fi
17382
17383
17384# Name of the executable.
17385as_me=`$as_basename -- "$0" ||
17386$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17387	 X"$0" : 'X\(//\)$' \| \
17388	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17389$as_echo X/"$0" |
17390    sed '/^.*\/\([^/][^/]*\)\/*$/{
17391	    s//\1/
17392	    q
17393	  }
17394	  /^X\/\(\/\/\)$/{
17395	    s//\1/
17396	    q
17397	  }
17398	  /^X\/\(\/\).*/{
17399	    s//\1/
17400	    q
17401	  }
17402	  s/.*/./; q'`
17403
17404# CDPATH.
17405$as_unset CDPATH
17406
17407
17408
17409  as_lineno_1=$LINENO
17410  as_lineno_2=$LINENO
17411  test "x$as_lineno_1" != "x$as_lineno_2" &&
17412  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17413
17414  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17415  # uniformly replaced by the line number.  The first 'sed' inserts a
17416  # line-number line after each line using $LINENO; the second 'sed'
17417  # does the real work.  The second script uses 'N' to pair each
17418  # line-number line with the line containing $LINENO, and appends
17419  # trailing '-' during substitution so that $LINENO is not a special
17420  # case at line end.
17421  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17422  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17423  # E. McMahon (1931-1989) for sed's syntax.  :-)
17424  sed -n '
17425    p
17426    /[$]LINENO/=
17427  ' <$as_myself |
17428    sed '
17429      s/[$]LINENO.*/&-/
17430      t lineno
17431      b
17432      :lineno
17433      N
17434      :loop
17435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17436      t loop
17437      s/-\n.*//
17438    ' >$as_me.lineno &&
17439  chmod +x "$as_me.lineno" ||
17440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17441   { (exit 1); exit 1; }; }
17442
17443  # Don't try to exec as it changes $[0], causing all sort of problems
17444  # (the dirname of $[0] is not the place where we might find the
17445  # original and so on.  Autoconf is especially sensitive to this).
17446  . "./$as_me.lineno"
17447  # Exit status is that of the last command.
17448  exit
17449}
17450
17451
17452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17453  as_dirname=dirname
17454else
17455  as_dirname=false
17456fi
17457
17458ECHO_C= ECHO_N= ECHO_T=
17459case `echo -n x` in
17460-n*)
17461  case `echo 'x\c'` in
17462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17463  *)   ECHO_C='\c';;
17464  esac;;
17465*)
17466  ECHO_N='-n';;
17467esac
17468if expr a : '\(a\)' >/dev/null 2>&1 &&
17469   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17470  as_expr=expr
17471else
17472  as_expr=false
17473fi
17474
17475rm -f conf$$ conf$$.exe conf$$.file
17476if test -d conf$$.dir; then
17477  rm -f conf$$.dir/conf$$.file
17478else
17479  rm -f conf$$.dir
17480  mkdir conf$$.dir 2>/dev/null
17481fi
17482if (echo >conf$$.file) 2>/dev/null; then
17483  if ln -s conf$$.file conf$$ 2>/dev/null; then
17484    as_ln_s='ln -s'
17485    # ... but there are two gotchas:
17486    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17487    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17488    # In both cases, we have to default to `cp -p'.
17489    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17490      as_ln_s='cp -p'
17491  elif ln conf$$.file conf$$ 2>/dev/null; then
17492    as_ln_s=ln
17493  else
17494    as_ln_s='cp -p'
17495  fi
17496else
17497  as_ln_s='cp -p'
17498fi
17499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17500rmdir conf$$.dir 2>/dev/null
17501
17502if mkdir -p . 2>/dev/null; then
17503  as_mkdir_p=:
17504else
17505  test -d ./-p && rmdir ./-p
17506  as_mkdir_p=false
17507fi
17508
17509if test -x / >/dev/null 2>&1; then
17510  as_test_x='test -x'
17511else
17512  if ls -dL / >/dev/null 2>&1; then
17513    as_ls_L_option=L
17514  else
17515    as_ls_L_option=
17516  fi
17517  as_test_x='
17518    eval sh -c '\''
17519      if test -d "$1"; then
17520	test -d "$1/.";
17521      else
17522	case $1 in
17523	-*)set "./$1";;
17524	esac;
17525	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17526	???[sx]*):;;*)false;;esac;fi
17527    '\'' sh
17528  '
17529fi
17530as_executable_p=$as_test_x
17531
17532# Sed expression to map a string onto a valid CPP name.
17533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17534
17535# Sed expression to map a string onto a valid variable name.
17536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17537
17538
17539exec 6>&1
17540
17541# Save the log message, to keep $[0] and so on meaningful, and to
17542# report actual input values of CONFIG_FILES etc. instead of their
17543# values after options handling.
17544ac_log="
17545This file was extended by libX11 $as_me 1.2.2, which was
17546generated by GNU Autoconf 2.63.  Invocation command line was
17547
17548  CONFIG_FILES    = $CONFIG_FILES
17549  CONFIG_HEADERS  = $CONFIG_HEADERS
17550  CONFIG_LINKS    = $CONFIG_LINKS
17551  CONFIG_COMMANDS = $CONFIG_COMMANDS
17552  $ $0 $@
17553
17554on `(hostname || uname -n) 2>/dev/null | sed 1q`
17555"
17556
17557_ACEOF
17558
17559case $ac_config_files in *"
17560"*) set x $ac_config_files; shift; ac_config_files=$*;;
17561esac
17562
17563case $ac_config_headers in *"
17564"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17565esac
17566
17567
17568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569# Files that config.status was made for.
17570config_files="$ac_config_files"
17571config_headers="$ac_config_headers"
17572config_commands="$ac_config_commands"
17573
17574_ACEOF
17575
17576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17577ac_cs_usage="\
17578\`$as_me' instantiates files from templates according to the
17579current configuration.
17580
17581Usage: $0 [OPTION]... [FILE]...
17582
17583  -h, --help       print this help, then exit
17584  -V, --version    print version number and configuration settings, then exit
17585  -q, --quiet, --silent
17586                   do not print progress messages
17587  -d, --debug      don't remove temporary files
17588      --recheck    update $as_me by reconfiguring in the same conditions
17589      --file=FILE[:TEMPLATE]
17590                   instantiate the configuration file FILE
17591      --header=FILE[:TEMPLATE]
17592                   instantiate the configuration header FILE
17593
17594Configuration files:
17595$config_files
17596
17597Configuration headers:
17598$config_headers
17599
17600Configuration commands:
17601$config_commands
17602
17603Report bugs to <bug-autoconf@gnu.org>."
17604
17605_ACEOF
17606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17607ac_cs_version="\\
17608libX11 config.status 1.2.2
17609configured by $0, generated by GNU Autoconf 2.63,
17610  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17611
17612Copyright (C) 2008 Free Software Foundation, Inc.
17613This config.status script is free software; the Free Software Foundation
17614gives unlimited permission to copy, distribute and modify it."
17615
17616ac_pwd='$ac_pwd'
17617srcdir='$srcdir'
17618INSTALL='$INSTALL'
17619MKDIR_P='$MKDIR_P'
17620AWK='$AWK'
17621test -n "\$AWK" || AWK=awk
17622_ACEOF
17623
17624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625# The default lists apply if the user does not specify any file.
17626ac_need_defaults=:
17627while test $# != 0
17628do
17629  case $1 in
17630  --*=*)
17631    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17632    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17633    ac_shift=:
17634    ;;
17635  *)
17636    ac_option=$1
17637    ac_optarg=$2
17638    ac_shift=shift
17639    ;;
17640  esac
17641
17642  case $ac_option in
17643  # Handling of the options.
17644  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17645    ac_cs_recheck=: ;;
17646  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17647    $as_echo "$ac_cs_version"; exit ;;
17648  --debug | --debu | --deb | --de | --d | -d )
17649    debug=: ;;
17650  --file | --fil | --fi | --f )
17651    $ac_shift
17652    case $ac_optarg in
17653    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17654    esac
17655    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17656    ac_need_defaults=false;;
17657  --header | --heade | --head | --hea )
17658    $ac_shift
17659    case $ac_optarg in
17660    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17661    esac
17662    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17663    ac_need_defaults=false;;
17664  --he | --h)
17665    # Conflict between --help and --header
17666    { $as_echo "$as_me: error: ambiguous option: $1
17667Try \`$0 --help' for more information." >&2
17668   { (exit 1); exit 1; }; };;
17669  --help | --hel | -h )
17670    $as_echo "$ac_cs_usage"; exit ;;
17671  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17672  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17673    ac_cs_silent=: ;;
17674
17675  # This is an error.
17676  -*) { $as_echo "$as_me: error: unrecognized option: $1
17677Try \`$0 --help' for more information." >&2
17678   { (exit 1); exit 1; }; } ;;
17679
17680  *) ac_config_targets="$ac_config_targets $1"
17681     ac_need_defaults=false ;;
17682
17683  esac
17684  shift
17685done
17686
17687ac_configure_extra_args=
17688
17689if $ac_cs_silent; then
17690  exec 6>/dev/null
17691  ac_configure_extra_args="$ac_configure_extra_args --silent"
17692fi
17693
17694_ACEOF
17695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17696if \$ac_cs_recheck; then
17697  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17698  shift
17699  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17700  CONFIG_SHELL='$SHELL'
17701  export CONFIG_SHELL
17702  exec "\$@"
17703fi
17704
17705_ACEOF
17706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17707exec 5>>config.log
17708{
17709  echo
17710  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17711## Running $as_me. ##
17712_ASBOX
17713  $as_echo "$ac_log"
17714} >&5
17715
17716_ACEOF
17717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17718#
17719# INIT-COMMANDS
17720#
17721AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17722
17723
17724# The HP-UX ksh and POSIX shell print the target directory to stdout
17725# if CDPATH is set.
17726(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17727
17728sed_quote_subst='$sed_quote_subst'
17729double_quote_subst='$double_quote_subst'
17730delay_variable_subst='$delay_variable_subst'
17731macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17732macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17733enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17734enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17735pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17736enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17737host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17738host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17739host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17740build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17741build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17742build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17743SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17744Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17745GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17746EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17747FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17748LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17749NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17750LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17751max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17752ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17753exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17754lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17755lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17756lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17757reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17758reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17759OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17760deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17761file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17762AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17763AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17764STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17765RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17766old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17767old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17768old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17769CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17770CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17771compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17772GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17773lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17774lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17775lt_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"`'
17776lt_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"`'
17777objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17778SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17779ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17780MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17781lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17782lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17783lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17784lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17785lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17786need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17787DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17788NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17789LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17790OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17791OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17792libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17793shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17794extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17795archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17796enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17797export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17798whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17799compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17800old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17801old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17802archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17803archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17804module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17805module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17806with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17807allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17808no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17809hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17810hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17811hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17812hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17813hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17814hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17815hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17816hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17817inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17818link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17819fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17820always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17821export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17822exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17823include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17824prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17825file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17826variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17827need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17828need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17829version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17830runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17831shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17832shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17833libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17834library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17835soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17836postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17837postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17838finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17839finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17840hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17841sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17842sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17843hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17844enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17845enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17846enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17847old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17848striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17849
17850LTCC='$LTCC'
17851LTCFLAGS='$LTCFLAGS'
17852compiler='$compiler_DEFAULT'
17853
17854# Quote evaled strings.
17855for var in SED \
17856GREP \
17857EGREP \
17858FGREP \
17859LD \
17860NM \
17861LN_S \
17862lt_SP2NL \
17863lt_NL2SP \
17864reload_flag \
17865OBJDUMP \
17866deplibs_check_method \
17867file_magic_cmd \
17868AR \
17869AR_FLAGS \
17870STRIP \
17871RANLIB \
17872CC \
17873CFLAGS \
17874compiler \
17875lt_cv_sys_global_symbol_pipe \
17876lt_cv_sys_global_symbol_to_cdecl \
17877lt_cv_sys_global_symbol_to_c_name_address \
17878lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17879SHELL \
17880ECHO \
17881lt_prog_compiler_no_builtin_flag \
17882lt_prog_compiler_wl \
17883lt_prog_compiler_pic \
17884lt_prog_compiler_static \
17885lt_cv_prog_compiler_c_o \
17886need_locks \
17887DSYMUTIL \
17888NMEDIT \
17889LIPO \
17890OTOOL \
17891OTOOL64 \
17892shrext_cmds \
17893export_dynamic_flag_spec \
17894whole_archive_flag_spec \
17895compiler_needs_object \
17896with_gnu_ld \
17897allow_undefined_flag \
17898no_undefined_flag \
17899hardcode_libdir_flag_spec \
17900hardcode_libdir_flag_spec_ld \
17901hardcode_libdir_separator \
17902fix_srcfile_path \
17903exclude_expsyms \
17904include_expsyms \
17905file_list_spec \
17906variables_saved_for_relink \
17907libname_spec \
17908library_names_spec \
17909soname_spec \
17910finish_eval \
17911old_striplib \
17912striplib; do
17913    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17914    *[\\\\\\\`\\"\\\$]*)
17915      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17916      ;;
17917    *)
17918      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17919      ;;
17920    esac
17921done
17922
17923# Double-quote double-evaled strings.
17924for var in reload_cmds \
17925old_postinstall_cmds \
17926old_postuninstall_cmds \
17927old_archive_cmds \
17928extract_expsyms_cmds \
17929old_archive_from_new_cmds \
17930old_archive_from_expsyms_cmds \
17931archive_cmds \
17932archive_expsym_cmds \
17933module_cmds \
17934module_expsym_cmds \
17935export_symbols_cmds \
17936prelink_cmds \
17937postinstall_cmds \
17938postuninstall_cmds \
17939finish_cmds \
17940sys_lib_search_path_spec \
17941sys_lib_dlsearch_path_spec; do
17942    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17943    *[\\\\\\\`\\"\\\$]*)
17944      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17945      ;;
17946    *)
17947      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17948      ;;
17949    esac
17950done
17951
17952# Fix-up fallback echo if it was mangled by the above quoting rules.
17953case \$lt_ECHO in
17954*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17955  ;;
17956esac
17957
17958ac_aux_dir='$ac_aux_dir'
17959xsi_shell='$xsi_shell'
17960lt_shell_append='$lt_shell_append'
17961
17962# See if we are running on zsh, and set the options which allow our
17963# commands through without removal of \ escapes INIT.
17964if test -n "\${ZSH_VERSION+set}" ; then
17965   setopt NO_GLOB_SUBST
17966fi
17967
17968
17969    PACKAGE='$PACKAGE'
17970    VERSION='$VERSION'
17971    TIMESTAMP='$TIMESTAMP'
17972    RM='$RM'
17973    ofile='$ofile'
17974
17975
17976
17977
17978_ACEOF
17979
17980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17981
17982# Handling of arguments.
17983for ac_config_target in $ac_config_targets
17984do
17985  case $ac_config_target in
17986    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17987    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
17988    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17989    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17990    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17991    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17992    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17993    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
17994    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17995    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
17996    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
17997    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
17998    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
17999    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
18000    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
18001    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
18002    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
18003    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
18004    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
18005    "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;;
18006    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
18007    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
18008    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
18009    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
18010    "nls/am_ET.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/am_ET.UTF-8/Makefile" ;;
18011    "nls/armscii-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/armscii-8/Makefile" ;;
18012    "nls/C/Makefile") CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;;
18013    "nls/el_GR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/el_GR.UTF-8/Makefile" ;;
18014    "nls/en_US.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/en_US.UTF-8/Makefile" ;;
18015    "nls/fi_FI.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/fi_FI.UTF-8/Makefile" ;;
18016    "nls/georgian-academy/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-academy/Makefile" ;;
18017    "nls/georgian-ps/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-ps/Makefile" ;;
18018    "nls/ibm-cp1133/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ibm-cp1133/Makefile" ;;
18019    "nls/iscii-dev/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iscii-dev/Makefile" ;;
18020    "nls/isiri-3342/Makefile") CONFIG_FILES="$CONFIG_FILES nls/isiri-3342/Makefile" ;;
18021    "nls/iso8859-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-1/Makefile" ;;
18022    "nls/iso8859-10/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-10/Makefile" ;;
18023    "nls/iso8859-11/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-11/Makefile" ;;
18024    "nls/iso8859-13/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-13/Makefile" ;;
18025    "nls/iso8859-14/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-14/Makefile" ;;
18026    "nls/iso8859-15/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-15/Makefile" ;;
18027    "nls/iso8859-2/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-2/Makefile" ;;
18028    "nls/iso8859-3/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-3/Makefile" ;;
18029    "nls/iso8859-4/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-4/Makefile" ;;
18030    "nls/iso8859-5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-5/Makefile" ;;
18031    "nls/iso8859-6/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-6/Makefile" ;;
18032    "nls/iso8859-7/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-7/Makefile" ;;
18033    "nls/iso8859-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-8/Makefile" ;;
18034    "nls/iso8859-9/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9/Makefile" ;;
18035    "nls/iso8859-9e/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9e/Makefile" ;;
18036    "nls/ja/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja/Makefile" ;;
18037    "nls/ja.JIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.JIS/Makefile" ;;
18038    "nls/ja_JP.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja_JP.UTF-8/Makefile" ;;
18039    "nls/ja.S90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.S90/Makefile" ;;
18040    "nls/ja.SJIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.SJIS/Makefile" ;;
18041    "nls/ja.U90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.U90/Makefile" ;;
18042    "nls/ko/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko/Makefile" ;;
18043    "nls/koi8-c/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-c/Makefile" ;;
18044    "nls/koi8-r/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-r/Makefile" ;;
18045    "nls/koi8-u/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-u/Makefile" ;;
18046    "nls/ko_KR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko_KR.UTF-8/Makefile" ;;
18047    "nls/microsoft-cp1251/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1251/Makefile" ;;
18048    "nls/microsoft-cp1255/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1255/Makefile" ;;
18049    "nls/microsoft-cp1256/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1256/Makefile" ;;
18050    "nls/mulelao-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/mulelao-1/Makefile" ;;
18051    "nls/nokhchi-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/nokhchi-1/Makefile" ;;
18052    "nls/pt_BR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/pt_BR.UTF-8/Makefile" ;;
18053    "nls/ru_RU.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ru_RU.UTF-8/Makefile" ;;
18054    "nls/tatar-cyr/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tatar-cyr/Makefile" ;;
18055    "nls/th_TH/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH/Makefile" ;;
18056    "nls/th_TH.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH.UTF-8/Makefile" ;;
18057    "nls/tscii-0/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tscii-0/Makefile" ;;
18058    "nls/vi_VN.tcvn/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.tcvn/Makefile" ;;
18059    "nls/vi_VN.viscii/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.viscii/Makefile" ;;
18060    "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;;
18061    "nls/zh_CN.gb18030/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gb18030/Makefile" ;;
18062    "nls/zh_CN.gbk/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gbk/Makefile" ;;
18063    "nls/zh_CN.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.UTF-8/Makefile" ;;
18064    "nls/zh_HK.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5/Makefile" ;;
18065    "nls/zh_HK.big5hkscs/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5hkscs/Makefile" ;;
18066    "nls/zh_HK.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.UTF-8/Makefile" ;;
18067    "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;;
18068    "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;;
18069    "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;;
18070    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
18071    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
18072
18073  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18074$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18075   { (exit 1); exit 1; }; };;
18076  esac
18077done
18078
18079
18080# If the user did not use the arguments to specify the items to instantiate,
18081# then the envvar interface is used.  Set only those that are not.
18082# We use the long form for the default assignment because of an extremely
18083# bizarre bug on SunOS 4.1.3.
18084if $ac_need_defaults; then
18085  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18086  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18087  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18088fi
18089
18090# Have a temporary directory for convenience.  Make it in the build tree
18091# simply because there is no reason against having it here, and in addition,
18092# creating and moving files from /tmp can sometimes cause problems.
18093# Hook for its removal unless debugging.
18094# Note that there is a small window in which the directory will not be cleaned:
18095# after its creation but before its name has been assigned to `$tmp'.
18096$debug ||
18097{
18098  tmp=
18099  trap 'exit_status=$?
18100  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18101' 0
18102  trap '{ (exit 1); exit 1; }' 1 2 13 15
18103}
18104# Create a (secure) tmp directory for tmp files.
18105
18106{
18107  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18108  test -n "$tmp" && test -d "$tmp"
18109}  ||
18110{
18111  tmp=./conf$$-$RANDOM
18112  (umask 077 && mkdir "$tmp")
18113} ||
18114{
18115   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18116   { (exit 1); exit 1; }
18117}
18118
18119# Set up the scripts for CONFIG_FILES section.
18120# No need to generate them if there are no CONFIG_FILES.
18121# This happens for instance with `./config.status config.h'.
18122if test -n "$CONFIG_FILES"; then
18123
18124
18125ac_cr='
18126'
18127ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18128if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18129  ac_cs_awk_cr='\\r'
18130else
18131  ac_cs_awk_cr=$ac_cr
18132fi
18133
18134echo 'BEGIN {' >"$tmp/subs1.awk" &&
18135_ACEOF
18136
18137
18138{
18139  echo "cat >conf$$subs.awk <<_ACEOF" &&
18140  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18141  echo "_ACEOF"
18142} >conf$$subs.sh ||
18143  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18144$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18145   { (exit 1); exit 1; }; }
18146ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18147ac_delim='%!_!# '
18148for ac_last_try in false false false false false :; do
18149  . ./conf$$subs.sh ||
18150    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18151$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18152   { (exit 1); exit 1; }; }
18153
18154  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18155  if test $ac_delim_n = $ac_delim_num; then
18156    break
18157  elif $ac_last_try; then
18158    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18159$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18160   { (exit 1); exit 1; }; }
18161  else
18162    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18163  fi
18164done
18165rm -f conf$$subs.sh
18166
18167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18168cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18169_ACEOF
18170sed -n '
18171h
18172s/^/S["/; s/!.*/"]=/
18173p
18174g
18175s/^[^!]*!//
18176:repl
18177t repl
18178s/'"$ac_delim"'$//
18179t delim
18180:nl
18181h
18182s/\(.\{148\}\).*/\1/
18183t more1
18184s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18185p
18186n
18187b repl
18188:more1
18189s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18190p
18191g
18192s/.\{148\}//
18193t nl
18194:delim
18195h
18196s/\(.\{148\}\).*/\1/
18197t more2
18198s/["\\]/\\&/g; s/^/"/; s/$/"/
18199p
18200b
18201:more2
18202s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18203p
18204g
18205s/.\{148\}//
18206t delim
18207' <conf$$subs.awk | sed '
18208/^[^""]/{
18209  N
18210  s/\n//
18211}
18212' >>$CONFIG_STATUS || ac_write_fail=1
18213rm -f conf$$subs.awk
18214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18215_ACAWK
18216cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18217  for (key in S) S_is_set[key] = 1
18218  FS = ""
18219
18220}
18221{
18222  line = $ 0
18223  nfields = split(line, field, "@")
18224  substed = 0
18225  len = length(field[1])
18226  for (i = 2; i < nfields; i++) {
18227    key = field[i]
18228    keylen = length(key)
18229    if (S_is_set[key]) {
18230      value = S[key]
18231      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18232      len += length(value) + length(field[++i])
18233      substed = 1
18234    } else
18235      len += 1 + keylen
18236  }
18237
18238  print line
18239}
18240
18241_ACAWK
18242_ACEOF
18243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18244if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18245  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18246else
18247  cat
18248fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18249  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18250$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18251   { (exit 1); exit 1; }; }
18252_ACEOF
18253
18254# VPATH may cause trouble with some makes, so we remove $(srcdir),
18255# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18256# trailing colons and then remove the whole line if VPATH becomes empty
18257# (actually we leave an empty line to preserve line numbers).
18258if test "x$srcdir" = x.; then
18259  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18260s/:*\$(srcdir):*/:/
18261s/:*\${srcdir}:*/:/
18262s/:*@srcdir@:*/:/
18263s/^\([^=]*=[	 ]*\):*/\1/
18264s/:*$//
18265s/^[^=]*=[	 ]*$//
18266}'
18267fi
18268
18269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18270fi # test -n "$CONFIG_FILES"
18271
18272# Set up the scripts for CONFIG_HEADERS section.
18273# No need to generate them if there are no CONFIG_HEADERS.
18274# This happens for instance with `./config.status Makefile'.
18275if test -n "$CONFIG_HEADERS"; then
18276cat >"$tmp/defines.awk" <<\_ACAWK ||
18277BEGIN {
18278_ACEOF
18279
18280# Transform confdefs.h into an awk script `defines.awk', embedded as
18281# here-document in config.status, that substitutes the proper values into
18282# config.h.in to produce config.h.
18283
18284# Create a delimiter string that does not exist in confdefs.h, to ease
18285# handling of long lines.
18286ac_delim='%!_!# '
18287for ac_last_try in false false :; do
18288  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18289  if test -z "$ac_t"; then
18290    break
18291  elif $ac_last_try; then
18292    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18293$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18294   { (exit 1); exit 1; }; }
18295  else
18296    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18297  fi
18298done
18299
18300# For the awk script, D is an array of macro values keyed by name,
18301# likewise P contains macro parameters if any.  Preserve backslash
18302# newline sequences.
18303
18304ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18305sed -n '
18306s/.\{148\}/&'"$ac_delim"'/g
18307t rset
18308:rset
18309s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18310t def
18311d
18312:def
18313s/\\$//
18314t bsnl
18315s/["\\]/\\&/g
18316s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18317D["\1"]=" \3"/p
18318s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18319d
18320:bsnl
18321s/["\\]/\\&/g
18322s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18323D["\1"]=" \3\\\\\\n"\\/p
18324t cont
18325s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18326t cont
18327d
18328:cont
18329n
18330s/.\{148\}/&'"$ac_delim"'/g
18331t clear
18332:clear
18333s/\\$//
18334t bsnlc
18335s/["\\]/\\&/g; s/^/"/; s/$/"/p
18336d
18337:bsnlc
18338s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18339b cont
18340' <confdefs.h | sed '
18341s/'"$ac_delim"'/"\\\
18342"/g' >>$CONFIG_STATUS || ac_write_fail=1
18343
18344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18345  for (key in D) D_is_set[key] = 1
18346  FS = ""
18347}
18348/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18349  line = \$ 0
18350  split(line, arg, " ")
18351  if (arg[1] == "#") {
18352    defundef = arg[2]
18353    mac1 = arg[3]
18354  } else {
18355    defundef = substr(arg[1], 2)
18356    mac1 = arg[2]
18357  }
18358  split(mac1, mac2, "(") #)
18359  macro = mac2[1]
18360  prefix = substr(line, 1, index(line, defundef) - 1)
18361  if (D_is_set[macro]) {
18362    # Preserve the white space surrounding the "#".
18363    print prefix "define", macro P[macro] D[macro]
18364    next
18365  } else {
18366    # Replace #undef with comments.  This is necessary, for example,
18367    # in the case of _POSIX_SOURCE, which is predefined and required
18368    # on some systems where configure will not decide to define it.
18369    if (defundef == "undef") {
18370      print "/*", prefix defundef, macro, "*/"
18371      next
18372    }
18373  }
18374}
18375{ print }
18376_ACAWK
18377_ACEOF
18378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18379  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18380$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18381   { (exit 1); exit 1; }; }
18382fi # test -n "$CONFIG_HEADERS"
18383
18384
18385eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18386shift
18387for ac_tag
18388do
18389  case $ac_tag in
18390  :[FHLC]) ac_mode=$ac_tag; continue;;
18391  esac
18392  case $ac_mode$ac_tag in
18393  :[FHL]*:*);;
18394  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18395$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18396   { (exit 1); exit 1; }; };;
18397  :[FH]-) ac_tag=-:-;;
18398  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18399  esac
18400  ac_save_IFS=$IFS
18401  IFS=:
18402  set x $ac_tag
18403  IFS=$ac_save_IFS
18404  shift
18405  ac_file=$1
18406  shift
18407
18408  case $ac_mode in
18409  :L) ac_source=$1;;
18410  :[FH])
18411    ac_file_inputs=
18412    for ac_f
18413    do
18414      case $ac_f in
18415      -) ac_f="$tmp/stdin";;
18416      *) # Look for the file first in the build tree, then in the source tree
18417	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18418	 # because $ac_f cannot contain `:'.
18419	 test -f "$ac_f" ||
18420	   case $ac_f in
18421	   [\\/$]*) false;;
18422	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18423	   esac ||
18424	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18425$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18426   { (exit 1); exit 1; }; };;
18427      esac
18428      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18429      ac_file_inputs="$ac_file_inputs '$ac_f'"
18430    done
18431
18432    # Let's still pretend it is `configure' which instantiates (i.e., don't
18433    # use $as_me), people would be surprised to read:
18434    #    /* config.h.  Generated by config.status.  */
18435    configure_input='Generated from '`
18436	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18437	`' by configure.'
18438    if test x"$ac_file" != x-; then
18439      configure_input="$ac_file.  $configure_input"
18440      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18441$as_echo "$as_me: creating $ac_file" >&6;}
18442    fi
18443    # Neutralize special characters interpreted by sed in replacement strings.
18444    case $configure_input in #(
18445    *\&* | *\|* | *\\* )
18446       ac_sed_conf_input=`$as_echo "$configure_input" |
18447       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18448    *) ac_sed_conf_input=$configure_input;;
18449    esac
18450
18451    case $ac_tag in
18452    *:-:* | *:-) cat >"$tmp/stdin" \
18453      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18454$as_echo "$as_me: error: could not create $ac_file" >&2;}
18455   { (exit 1); exit 1; }; } ;;
18456    esac
18457    ;;
18458  esac
18459
18460  ac_dir=`$as_dirname -- "$ac_file" ||
18461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18462	 X"$ac_file" : 'X\(//\)[^/]' \| \
18463	 X"$ac_file" : 'X\(//\)$' \| \
18464	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18465$as_echo X"$ac_file" |
18466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18467	    s//\1/
18468	    q
18469	  }
18470	  /^X\(\/\/\)[^/].*/{
18471	    s//\1/
18472	    q
18473	  }
18474	  /^X\(\/\/\)$/{
18475	    s//\1/
18476	    q
18477	  }
18478	  /^X\(\/\).*/{
18479	    s//\1/
18480	    q
18481	  }
18482	  s/.*/./; q'`
18483  { as_dir="$ac_dir"
18484  case $as_dir in #(
18485  -*) as_dir=./$as_dir;;
18486  esac
18487  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18488    as_dirs=
18489    while :; do
18490      case $as_dir in #(
18491      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18492      *) as_qdir=$as_dir;;
18493      esac
18494      as_dirs="'$as_qdir' $as_dirs"
18495      as_dir=`$as_dirname -- "$as_dir" ||
18496$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18497	 X"$as_dir" : 'X\(//\)[^/]' \| \
18498	 X"$as_dir" : 'X\(//\)$' \| \
18499	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18500$as_echo X"$as_dir" |
18501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18502	    s//\1/
18503	    q
18504	  }
18505	  /^X\(\/\/\)[^/].*/{
18506	    s//\1/
18507	    q
18508	  }
18509	  /^X\(\/\/\)$/{
18510	    s//\1/
18511	    q
18512	  }
18513	  /^X\(\/\).*/{
18514	    s//\1/
18515	    q
18516	  }
18517	  s/.*/./; q'`
18518      test -d "$as_dir" && break
18519    done
18520    test -z "$as_dirs" || eval "mkdir $as_dirs"
18521  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18522$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18523   { (exit 1); exit 1; }; }; }
18524  ac_builddir=.
18525
18526case "$ac_dir" in
18527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18528*)
18529  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18530  # A ".." for each directory in $ac_dir_suffix.
18531  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18532  case $ac_top_builddir_sub in
18533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18535  esac ;;
18536esac
18537ac_abs_top_builddir=$ac_pwd
18538ac_abs_builddir=$ac_pwd$ac_dir_suffix
18539# for backward compatibility:
18540ac_top_builddir=$ac_top_build_prefix
18541
18542case $srcdir in
18543  .)  # We are building in place.
18544    ac_srcdir=.
18545    ac_top_srcdir=$ac_top_builddir_sub
18546    ac_abs_top_srcdir=$ac_pwd ;;
18547  [\\/]* | ?:[\\/]* )  # Absolute name.
18548    ac_srcdir=$srcdir$ac_dir_suffix;
18549    ac_top_srcdir=$srcdir
18550    ac_abs_top_srcdir=$srcdir ;;
18551  *) # Relative name.
18552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18553    ac_top_srcdir=$ac_top_build_prefix$srcdir
18554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18555esac
18556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18557
18558
18559  case $ac_mode in
18560  :F)
18561  #
18562  # CONFIG_FILE
18563  #
18564
18565  case $INSTALL in
18566  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18567  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18568  esac
18569  ac_MKDIR_P=$MKDIR_P
18570  case $MKDIR_P in
18571  [\\/$]* | ?:[\\/]* ) ;;
18572  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18573  esac
18574_ACEOF
18575
18576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18577# If the template does not know about datarootdir, expand it.
18578# FIXME: This hack should be removed a few years after 2.60.
18579ac_datarootdir_hack=; ac_datarootdir_seen=
18580
18581ac_sed_dataroot='
18582/datarootdir/ {
18583  p
18584  q
18585}
18586/@datadir@/p
18587/@docdir@/p
18588/@infodir@/p
18589/@localedir@/p
18590/@mandir@/p
18591'
18592case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18593*datarootdir*) ac_datarootdir_seen=yes;;
18594*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18595  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18596$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18597_ACEOF
18598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18599  ac_datarootdir_hack='
18600  s&@datadir@&$datadir&g
18601  s&@docdir@&$docdir&g
18602  s&@infodir@&$infodir&g
18603  s&@localedir@&$localedir&g
18604  s&@mandir@&$mandir&g
18605    s&\\\${datarootdir}&$datarootdir&g' ;;
18606esac
18607_ACEOF
18608
18609# Neutralize VPATH when `$srcdir' = `.'.
18610# Shell code in configure.ac might set extrasub.
18611# FIXME: do we really want to maintain this feature?
18612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18613ac_sed_extra="$ac_vpsub
18614$extrasub
18615_ACEOF
18616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18617:t
18618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18619s|@configure_input@|$ac_sed_conf_input|;t t
18620s&@top_builddir@&$ac_top_builddir_sub&;t t
18621s&@top_build_prefix@&$ac_top_build_prefix&;t t
18622s&@srcdir@&$ac_srcdir&;t t
18623s&@abs_srcdir@&$ac_abs_srcdir&;t t
18624s&@top_srcdir@&$ac_top_srcdir&;t t
18625s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18626s&@builddir@&$ac_builddir&;t t
18627s&@abs_builddir@&$ac_abs_builddir&;t t
18628s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18629s&@INSTALL@&$ac_INSTALL&;t t
18630s&@MKDIR_P@&$ac_MKDIR_P&;t t
18631$ac_datarootdir_hack
18632"
18633eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18634  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18635$as_echo "$as_me: error: could not create $ac_file" >&2;}
18636   { (exit 1); exit 1; }; }
18637
18638test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18639  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18640  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18641  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18642which seems to be undefined.  Please make sure it is defined." >&5
18643$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18644which seems to be undefined.  Please make sure it is defined." >&2;}
18645
18646  rm -f "$tmp/stdin"
18647  case $ac_file in
18648  -) cat "$tmp/out" && rm -f "$tmp/out";;
18649  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18650  esac \
18651  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18652$as_echo "$as_me: error: could not create $ac_file" >&2;}
18653   { (exit 1); exit 1; }; }
18654 ;;
18655  :H)
18656  #
18657  # CONFIG_HEADER
18658  #
18659  if test x"$ac_file" != x-; then
18660    {
18661      $as_echo "/* $configure_input  */" \
18662      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18663    } >"$tmp/config.h" \
18664      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18665$as_echo "$as_me: error: could not create $ac_file" >&2;}
18666   { (exit 1); exit 1; }; }
18667    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18668      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18669$as_echo "$as_me: $ac_file is unchanged" >&6;}
18670    else
18671      rm -f "$ac_file"
18672      mv "$tmp/config.h" "$ac_file" \
18673	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18674$as_echo "$as_me: error: could not create $ac_file" >&2;}
18675   { (exit 1); exit 1; }; }
18676    fi
18677  else
18678    $as_echo "/* $configure_input  */" \
18679      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18680      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18681$as_echo "$as_me: error: could not create -" >&2;}
18682   { (exit 1); exit 1; }; }
18683  fi
18684# Compute "$ac_file"'s index in $config_headers.
18685_am_arg="$ac_file"
18686_am_stamp_count=1
18687for _am_header in $config_headers :; do
18688  case $_am_header in
18689    $_am_arg | $_am_arg:* )
18690      break ;;
18691    * )
18692      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18693  esac
18694done
18695echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18696$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18698	 X"$_am_arg" : 'X\(//\)$' \| \
18699	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18700$as_echo X"$_am_arg" |
18701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18702	    s//\1/
18703	    q
18704	  }
18705	  /^X\(\/\/\)[^/].*/{
18706	    s//\1/
18707	    q
18708	  }
18709	  /^X\(\/\/\)$/{
18710	    s//\1/
18711	    q
18712	  }
18713	  /^X\(\/\).*/{
18714	    s//\1/
18715	    q
18716	  }
18717	  s/.*/./; q'`/stamp-h$_am_stamp_count
18718 ;;
18719
18720  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18721$as_echo "$as_me: executing $ac_file commands" >&6;}
18722 ;;
18723  esac
18724
18725
18726  case $ac_file$ac_mode in
18727    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18728  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18729  # are listed without --file.  Let's play safe and only enable the eval
18730  # if we detect the quoting.
18731  case $CONFIG_FILES in
18732  *\'*) eval set x "$CONFIG_FILES" ;;
18733  *)   set x $CONFIG_FILES ;;
18734  esac
18735  shift
18736  for mf
18737  do
18738    # Strip MF so we end up with the name of the file.
18739    mf=`echo "$mf" | sed -e 's/:.*$//'`
18740    # Check whether this is an Automake generated Makefile or not.
18741    # We used to match only the files named `Makefile.in', but
18742    # some people rename them; so instead we look at the file content.
18743    # Grep'ing the first line is not enough: some people post-process
18744    # each Makefile.in and add a new line on top of each file to say so.
18745    # Grep'ing the whole file is not good either: AIX grep has a line
18746    # limit of 2048, but all sed's we know have understand at least 4000.
18747    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18748      dirpart=`$as_dirname -- "$mf" ||
18749$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18750	 X"$mf" : 'X\(//\)[^/]' \| \
18751	 X"$mf" : 'X\(//\)$' \| \
18752	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18753$as_echo X"$mf" |
18754    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18755	    s//\1/
18756	    q
18757	  }
18758	  /^X\(\/\/\)[^/].*/{
18759	    s//\1/
18760	    q
18761	  }
18762	  /^X\(\/\/\)$/{
18763	    s//\1/
18764	    q
18765	  }
18766	  /^X\(\/\).*/{
18767	    s//\1/
18768	    q
18769	  }
18770	  s/.*/./; q'`
18771    else
18772      continue
18773    fi
18774    # Extract the definition of DEPDIR, am__include, and am__quote
18775    # from the Makefile without running `make'.
18776    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18777    test -z "$DEPDIR" && continue
18778    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18779    test -z "am__include" && continue
18780    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18781    # When using ansi2knr, U may be empty or an underscore; expand it
18782    U=`sed -n 's/^U = //p' < "$mf"`
18783    # Find all dependency output files, they are included files with
18784    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18785    # simplest approach to changing $(DEPDIR) to its actual value in the
18786    # expansion.
18787    for file in `sed -n "
18788      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18789	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18790      # Make sure the directory exists.
18791      test -f "$dirpart/$file" && continue
18792      fdir=`$as_dirname -- "$file" ||
18793$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18794	 X"$file" : 'X\(//\)[^/]' \| \
18795	 X"$file" : 'X\(//\)$' \| \
18796	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18797$as_echo X"$file" |
18798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18799	    s//\1/
18800	    q
18801	  }
18802	  /^X\(\/\/\)[^/].*/{
18803	    s//\1/
18804	    q
18805	  }
18806	  /^X\(\/\/\)$/{
18807	    s//\1/
18808	    q
18809	  }
18810	  /^X\(\/\).*/{
18811	    s//\1/
18812	    q
18813	  }
18814	  s/.*/./; q'`
18815      { as_dir=$dirpart/$fdir
18816  case $as_dir in #(
18817  -*) as_dir=./$as_dir;;
18818  esac
18819  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18820    as_dirs=
18821    while :; do
18822      case $as_dir in #(
18823      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18824      *) as_qdir=$as_dir;;
18825      esac
18826      as_dirs="'$as_qdir' $as_dirs"
18827      as_dir=`$as_dirname -- "$as_dir" ||
18828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18829	 X"$as_dir" : 'X\(//\)[^/]' \| \
18830	 X"$as_dir" : 'X\(//\)$' \| \
18831	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18832$as_echo X"$as_dir" |
18833    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18834	    s//\1/
18835	    q
18836	  }
18837	  /^X\(\/\/\)[^/].*/{
18838	    s//\1/
18839	    q
18840	  }
18841	  /^X\(\/\/\)$/{
18842	    s//\1/
18843	    q
18844	  }
18845	  /^X\(\/\).*/{
18846	    s//\1/
18847	    q
18848	  }
18849	  s/.*/./; q'`
18850      test -d "$as_dir" && break
18851    done
18852    test -z "$as_dirs" || eval "mkdir $as_dirs"
18853  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18854$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18855   { (exit 1); exit 1; }; }; }
18856      # echo "creating $dirpart/$file"
18857      echo '# dummy' > "$dirpart/$file"
18858    done
18859  done
18860}
18861 ;;
18862    "libtool":C)
18863
18864    # See if we are running on zsh, and set the options which allow our
18865    # commands through without removal of \ escapes.
18866    if test -n "${ZSH_VERSION+set}" ; then
18867      setopt NO_GLOB_SUBST
18868    fi
18869
18870    cfgfile="${ofile}T"
18871    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18872    $RM "$cfgfile"
18873
18874    cat <<_LT_EOF >> "$cfgfile"
18875#! $SHELL
18876
18877# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18878# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18879# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18880# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18881#
18882#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18883#                 2006, 2007, 2008 Free Software Foundation, Inc.
18884#   Written by Gordon Matzigkeit, 1996
18885#
18886#   This file is part of GNU Libtool.
18887#
18888# GNU Libtool is free software; you can redistribute it and/or
18889# modify it under the terms of the GNU General Public License as
18890# published by the Free Software Foundation; either version 2 of
18891# the License, or (at your option) any later version.
18892#
18893# As a special exception to the GNU General Public License,
18894# if you distribute this file as part of a program or library that
18895# is built using GNU Libtool, you may include this file under the
18896# same distribution terms that you use for the rest of that program.
18897#
18898# GNU Libtool is distributed in the hope that it will be useful,
18899# but WITHOUT ANY WARRANTY; without even the implied warranty of
18900# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18901# GNU General Public License for more details.
18902#
18903# You should have received a copy of the GNU General Public License
18904# along with GNU Libtool; see the file COPYING.  If not, a copy
18905# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18906# obtained by writing to the Free Software Foundation, Inc.,
18907# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18908
18909
18910# The names of the tagged configurations supported by this script.
18911available_tags=""
18912
18913# ### BEGIN LIBTOOL CONFIG
18914
18915# Which release of libtool.m4 was used?
18916macro_version=$macro_version
18917macro_revision=$macro_revision
18918
18919# Whether or not to build shared libraries.
18920build_libtool_libs=$enable_shared
18921
18922# Whether or not to build static libraries.
18923build_old_libs=$enable_static
18924
18925# What type of objects to build.
18926pic_mode=$pic_mode
18927
18928# Whether or not to optimize for fast installation.
18929fast_install=$enable_fast_install
18930
18931# The host system.
18932host_alias=$host_alias
18933host=$host
18934host_os=$host_os
18935
18936# The build system.
18937build_alias=$build_alias
18938build=$build
18939build_os=$build_os
18940
18941# A sed program that does not truncate output.
18942SED=$lt_SED
18943
18944# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18945Xsed="\$SED -e 1s/^X//"
18946
18947# A grep program that handles long lines.
18948GREP=$lt_GREP
18949
18950# An ERE matcher.
18951EGREP=$lt_EGREP
18952
18953# A literal string matcher.
18954FGREP=$lt_FGREP
18955
18956# A BSD- or MS-compatible name lister.
18957NM=$lt_NM
18958
18959# Whether we need soft or hard links.
18960LN_S=$lt_LN_S
18961
18962# What is the maximum length of a command?
18963max_cmd_len=$max_cmd_len
18964
18965# Object file suffix (normally "o").
18966objext=$ac_objext
18967
18968# Executable file suffix (normally "").
18969exeext=$exeext
18970
18971# whether the shell understands "unset".
18972lt_unset=$lt_unset
18973
18974# turn spaces into newlines.
18975SP2NL=$lt_lt_SP2NL
18976
18977# turn newlines into spaces.
18978NL2SP=$lt_lt_NL2SP
18979
18980# How to create reloadable object files.
18981reload_flag=$lt_reload_flag
18982reload_cmds=$lt_reload_cmds
18983
18984# An object symbol dumper.
18985OBJDUMP=$lt_OBJDUMP
18986
18987# Method to check whether dependent libraries are shared objects.
18988deplibs_check_method=$lt_deplibs_check_method
18989
18990# Command to use when deplibs_check_method == "file_magic".
18991file_magic_cmd=$lt_file_magic_cmd
18992
18993# The archiver.
18994AR=$lt_AR
18995AR_FLAGS=$lt_AR_FLAGS
18996
18997# A symbol stripping program.
18998STRIP=$lt_STRIP
18999
19000# Commands used to install an old-style archive.
19001RANLIB=$lt_RANLIB
19002old_postinstall_cmds=$lt_old_postinstall_cmds
19003old_postuninstall_cmds=$lt_old_postuninstall_cmds
19004
19005# A C compiler.
19006LTCC=$lt_CC
19007
19008# LTCC compiler flags.
19009LTCFLAGS=$lt_CFLAGS
19010
19011# Take the output of nm and produce a listing of raw symbols and C names.
19012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19013
19014# Transform the output of nm in a proper C declaration.
19015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19016
19017# Transform the output of nm in a C name address pair.
19018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19019
19020# Transform the output of nm in a C name address pair when lib prefix is needed.
19021global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19022
19023# The name of the directory that contains temporary libtool files.
19024objdir=$objdir
19025
19026# Shell to use when invoking shell scripts.
19027SHELL=$lt_SHELL
19028
19029# An echo program that does not interpret backslashes.
19030ECHO=$lt_ECHO
19031
19032# Used to examine libraries when file_magic_cmd begins with "file".
19033MAGIC_CMD=$MAGIC_CMD
19034
19035# Must we lock files when doing compilation?
19036need_locks=$lt_need_locks
19037
19038# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19039DSYMUTIL=$lt_DSYMUTIL
19040
19041# Tool to change global to local symbols on Mac OS X.
19042NMEDIT=$lt_NMEDIT
19043
19044# Tool to manipulate fat objects and archives on Mac OS X.
19045LIPO=$lt_LIPO
19046
19047# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19048OTOOL=$lt_OTOOL
19049
19050# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19051OTOOL64=$lt_OTOOL64
19052
19053# Old archive suffix (normally "a").
19054libext=$libext
19055
19056# Shared library suffix (normally ".so").
19057shrext_cmds=$lt_shrext_cmds
19058
19059# The commands to extract the exported symbol list from a shared archive.
19060extract_expsyms_cmds=$lt_extract_expsyms_cmds
19061
19062# Variables whose values should be saved in libtool wrapper scripts and
19063# restored at link time.
19064variables_saved_for_relink=$lt_variables_saved_for_relink
19065
19066# Do we need the "lib" prefix for modules?
19067need_lib_prefix=$need_lib_prefix
19068
19069# Do we need a version for libraries?
19070need_version=$need_version
19071
19072# Library versioning type.
19073version_type=$version_type
19074
19075# Shared library runtime path variable.
19076runpath_var=$runpath_var
19077
19078# Shared library path variable.
19079shlibpath_var=$shlibpath_var
19080
19081# Is shlibpath searched before the hard-coded library search path?
19082shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19083
19084# Format of library name prefix.
19085libname_spec=$lt_libname_spec
19086
19087# List of archive names.  First name is the real one, the rest are links.
19088# The last name is the one that the linker finds with -lNAME
19089library_names_spec=$lt_library_names_spec
19090
19091# The coded name of the library, if different from the real name.
19092soname_spec=$lt_soname_spec
19093
19094# Command to use after installation of a shared archive.
19095postinstall_cmds=$lt_postinstall_cmds
19096
19097# Command to use after uninstallation of a shared archive.
19098postuninstall_cmds=$lt_postuninstall_cmds
19099
19100# Commands used to finish a libtool library installation in a directory.
19101finish_cmds=$lt_finish_cmds
19102
19103# As "finish_cmds", except a single script fragment to be evaled but
19104# not shown.
19105finish_eval=$lt_finish_eval
19106
19107# Whether we should hardcode library paths into libraries.
19108hardcode_into_libs=$hardcode_into_libs
19109
19110# Compile-time system search path for libraries.
19111sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19112
19113# Run-time system search path for libraries.
19114sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19115
19116# Whether dlopen is supported.
19117dlopen_support=$enable_dlopen
19118
19119# Whether dlopen of programs is supported.
19120dlopen_self=$enable_dlopen_self
19121
19122# Whether dlopen of statically linked programs is supported.
19123dlopen_self_static=$enable_dlopen_self_static
19124
19125# Commands to strip libraries.
19126old_striplib=$lt_old_striplib
19127striplib=$lt_striplib
19128
19129
19130# The linker used to build libraries.
19131LD=$lt_LD
19132
19133# Commands used to build an old-style archive.
19134old_archive_cmds=$lt_old_archive_cmds
19135
19136# A language specific compiler.
19137CC=$lt_compiler
19138
19139# Is the compiler the GNU compiler?
19140with_gcc=$GCC
19141
19142# Compiler flag to turn off builtin functions.
19143no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19144
19145# How to pass a linker flag through the compiler.
19146wl=$lt_lt_prog_compiler_wl
19147
19148# Additional compiler flags for building library objects.
19149pic_flag=$lt_lt_prog_compiler_pic
19150
19151# Compiler flag to prevent dynamic linking.
19152link_static_flag=$lt_lt_prog_compiler_static
19153
19154# Does compiler simultaneously support -c and -o options?
19155compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19156
19157# Whether or not to add -lc for building shared libraries.
19158build_libtool_need_lc=$archive_cmds_need_lc
19159
19160# Whether or not to disallow shared libs when runtime libs are static.
19161allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19162
19163# Compiler flag to allow reflexive dlopens.
19164export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19165
19166# Compiler flag to generate shared objects directly from archives.
19167whole_archive_flag_spec=$lt_whole_archive_flag_spec
19168
19169# Whether the compiler copes with passing no objects directly.
19170compiler_needs_object=$lt_compiler_needs_object
19171
19172# Create an old-style archive from a shared archive.
19173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19174
19175# Create a temporary old-style archive to link instead of a shared archive.
19176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19177
19178# Commands used to build a shared archive.
19179archive_cmds=$lt_archive_cmds
19180archive_expsym_cmds=$lt_archive_expsym_cmds
19181
19182# Commands used to build a loadable module if different from building
19183# a shared archive.
19184module_cmds=$lt_module_cmds
19185module_expsym_cmds=$lt_module_expsym_cmds
19186
19187# Whether we are building with GNU ld or not.
19188with_gnu_ld=$lt_with_gnu_ld
19189
19190# Flag that allows shared libraries with undefined symbols to be built.
19191allow_undefined_flag=$lt_allow_undefined_flag
19192
19193# Flag that enforces no undefined symbols.
19194no_undefined_flag=$lt_no_undefined_flag
19195
19196# Flag to hardcode \$libdir into a binary during linking.
19197# This must work even if \$libdir does not exist
19198hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19199
19200# If ld is used when linking, flag to hardcode \$libdir into a binary
19201# during linking.  This must work even if \$libdir does not exist.
19202hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19203
19204# Whether we need a single "-rpath" flag with a separated argument.
19205hardcode_libdir_separator=$lt_hardcode_libdir_separator
19206
19207# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19208# DIR into the resulting binary.
19209hardcode_direct=$hardcode_direct
19210
19211# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19212# DIR into the resulting binary and the resulting library dependency is
19213# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19214# library is relocated.
19215hardcode_direct_absolute=$hardcode_direct_absolute
19216
19217# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19218# into the resulting binary.
19219hardcode_minus_L=$hardcode_minus_L
19220
19221# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19222# into the resulting binary.
19223hardcode_shlibpath_var=$hardcode_shlibpath_var
19224
19225# Set to "yes" if building a shared library automatically hardcodes DIR
19226# into the library and all subsequent libraries and executables linked
19227# against it.
19228hardcode_automatic=$hardcode_automatic
19229
19230# Set to yes if linker adds runtime paths of dependent libraries
19231# to runtime path list.
19232inherit_rpath=$inherit_rpath
19233
19234# Whether libtool must link a program against all its dependency libraries.
19235link_all_deplibs=$link_all_deplibs
19236
19237# Fix the shell variable \$srcfile for the compiler.
19238fix_srcfile_path=$lt_fix_srcfile_path
19239
19240# Set to "yes" if exported symbols are required.
19241always_export_symbols=$always_export_symbols
19242
19243# The commands to list exported symbols.
19244export_symbols_cmds=$lt_export_symbols_cmds
19245
19246# Symbols that should not be listed in the preloaded symbols.
19247exclude_expsyms=$lt_exclude_expsyms
19248
19249# Symbols that must always be exported.
19250include_expsyms=$lt_include_expsyms
19251
19252# Commands necessary for linking programs (against libraries) with templates.
19253prelink_cmds=$lt_prelink_cmds
19254
19255# Specify filename containing input files.
19256file_list_spec=$lt_file_list_spec
19257
19258# How to hardcode a shared library path into an executable.
19259hardcode_action=$hardcode_action
19260
19261# ### END LIBTOOL CONFIG
19262
19263_LT_EOF
19264
19265  case $host_os in
19266  aix3*)
19267    cat <<\_LT_EOF >> "$cfgfile"
19268# AIX sometimes has problems with the GCC collect2 program.  For some
19269# reason, if we set the COLLECT_NAMES environment variable, the problems
19270# vanish in a puff of smoke.
19271if test "X${COLLECT_NAMES+set}" != Xset; then
19272  COLLECT_NAMES=
19273  export COLLECT_NAMES
19274fi
19275_LT_EOF
19276    ;;
19277  esac
19278
19279
19280ltmain="$ac_aux_dir/ltmain.sh"
19281
19282
19283  # We use sed instead of cat because bash on DJGPP gets confused if
19284  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19285  # text mode, it properly converts lines to CR/LF.  This bash problem
19286  # is reportedly fixed, but why not run on old versions too?
19287  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19288    || (rm -f "$cfgfile"; exit 1)
19289
19290  case $xsi_shell in
19291  yes)
19292    cat << \_LT_EOF >> "$cfgfile"
19293
19294# func_dirname file append nondir_replacement
19295# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19296# otherwise set result to NONDIR_REPLACEMENT.
19297func_dirname ()
19298{
19299  case ${1} in
19300    */*) func_dirname_result="${1%/*}${2}" ;;
19301    *  ) func_dirname_result="${3}" ;;
19302  esac
19303}
19304
19305# func_basename file
19306func_basename ()
19307{
19308  func_basename_result="${1##*/}"
19309}
19310
19311# func_dirname_and_basename file append nondir_replacement
19312# perform func_basename and func_dirname in a single function
19313# call:
19314#   dirname:  Compute the dirname of FILE.  If nonempty,
19315#             add APPEND to the result, otherwise set result
19316#             to NONDIR_REPLACEMENT.
19317#             value returned in "$func_dirname_result"
19318#   basename: Compute filename of FILE.
19319#             value retuned in "$func_basename_result"
19320# Implementation must be kept synchronized with func_dirname
19321# and func_basename. For efficiency, we do not delegate to
19322# those functions but instead duplicate the functionality here.
19323func_dirname_and_basename ()
19324{
19325  case ${1} in
19326    */*) func_dirname_result="${1%/*}${2}" ;;
19327    *  ) func_dirname_result="${3}" ;;
19328  esac
19329  func_basename_result="${1##*/}"
19330}
19331
19332# func_stripname prefix suffix name
19333# strip PREFIX and SUFFIX off of NAME.
19334# PREFIX and SUFFIX must not contain globbing or regex special
19335# characters, hashes, percent signs, but SUFFIX may contain a leading
19336# dot (in which case that matches only a dot).
19337func_stripname ()
19338{
19339  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19340  # positional parameters, so assign one to ordinary parameter first.
19341  func_stripname_result=${3}
19342  func_stripname_result=${func_stripname_result#"${1}"}
19343  func_stripname_result=${func_stripname_result%"${2}"}
19344}
19345
19346# func_opt_split
19347func_opt_split ()
19348{
19349  func_opt_split_opt=${1%%=*}
19350  func_opt_split_arg=${1#*=}
19351}
19352
19353# func_lo2o object
19354func_lo2o ()
19355{
19356  case ${1} in
19357    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19358    *)    func_lo2o_result=${1} ;;
19359  esac
19360}
19361
19362# func_xform libobj-or-source
19363func_xform ()
19364{
19365  func_xform_result=${1%.*}.lo
19366}
19367
19368# func_arith arithmetic-term...
19369func_arith ()
19370{
19371  func_arith_result=$(( $* ))
19372}
19373
19374# func_len string
19375# STRING may not start with a hyphen.
19376func_len ()
19377{
19378  func_len_result=${#1}
19379}
19380
19381_LT_EOF
19382    ;;
19383  *) # Bourne compatible functions.
19384    cat << \_LT_EOF >> "$cfgfile"
19385
19386# func_dirname file append nondir_replacement
19387# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19388# otherwise set result to NONDIR_REPLACEMENT.
19389func_dirname ()
19390{
19391  # Extract subdirectory from the argument.
19392  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19393  if test "X$func_dirname_result" = "X${1}"; then
19394    func_dirname_result="${3}"
19395  else
19396    func_dirname_result="$func_dirname_result${2}"
19397  fi
19398}
19399
19400# func_basename file
19401func_basename ()
19402{
19403  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19404}
19405
19406
19407# func_stripname prefix suffix name
19408# strip PREFIX and SUFFIX off of NAME.
19409# PREFIX and SUFFIX must not contain globbing or regex special
19410# characters, hashes, percent signs, but SUFFIX may contain a leading
19411# dot (in which case that matches only a dot).
19412# func_strip_suffix prefix name
19413func_stripname ()
19414{
19415  case ${2} in
19416    .*) func_stripname_result=`$ECHO "X${3}" \
19417           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19418    *)  func_stripname_result=`$ECHO "X${3}" \
19419           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19420  esac
19421}
19422
19423# sed scripts:
19424my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19425my_sed_long_arg='1s/^-[^=]*=//'
19426
19427# func_opt_split
19428func_opt_split ()
19429{
19430  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19431  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19432}
19433
19434# func_lo2o object
19435func_lo2o ()
19436{
19437  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19438}
19439
19440# func_xform libobj-or-source
19441func_xform ()
19442{
19443  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19444}
19445
19446# func_arith arithmetic-term...
19447func_arith ()
19448{
19449  func_arith_result=`expr "$@"`
19450}
19451
19452# func_len string
19453# STRING may not start with a hyphen.
19454func_len ()
19455{
19456  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19457}
19458
19459_LT_EOF
19460esac
19461
19462case $lt_shell_append in
19463  yes)
19464    cat << \_LT_EOF >> "$cfgfile"
19465
19466# func_append var value
19467# Append VALUE to the end of shell variable VAR.
19468func_append ()
19469{
19470  eval "$1+=\$2"
19471}
19472_LT_EOF
19473    ;;
19474  *)
19475    cat << \_LT_EOF >> "$cfgfile"
19476
19477# func_append var value
19478# Append VALUE to the end of shell variable VAR.
19479func_append ()
19480{
19481  eval "$1=\$$1\$2"
19482}
19483
19484_LT_EOF
19485    ;;
19486  esac
19487
19488
19489  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19490    || (rm -f "$cfgfile"; exit 1)
19491
19492  mv -f "$cfgfile" "$ofile" ||
19493    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19494  chmod +x "$ofile"
19495
19496 ;;
19497
19498  esac
19499done # for ac_tag
19500
19501
19502{ (exit 0); exit 0; }
19503_ACEOF
19504chmod +x $CONFIG_STATUS
19505ac_clean_files=$ac_clean_files_save
19506
19507test $ac_write_fail = 0 ||
19508  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19509$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19510   { (exit 1); exit 1; }; }
19511
19512
19513# configure is writing to config.log, and then calls config.status.
19514# config.status does its own redirection, appending to config.log.
19515# Unfortunately, on DOS this fails, as config.log is still kept open
19516# by configure, so config.status won't be able to write to it; its
19517# output is simply discarded.  So we exec the FD to /dev/null,
19518# effectively closing config.log, so it can be properly (re)opened and
19519# appended to by config.status.  When coming back to configure, we
19520# need to make the FD available again.
19521if test "$no_create" != yes; then
19522  ac_cs_success=:
19523  ac_config_status_args=
19524  test "$silent" = yes &&
19525    ac_config_status_args="$ac_config_status_args --quiet"
19526  exec 5>/dev/null
19527  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19528  exec 5>>config.log
19529  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19530  # would make configure fail if this is the last instruction.
19531  $ac_cs_success || { (exit 1); exit 1; }
19532fi
19533if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19534  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19535$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19536fi
19537
19538
19539man_pages_suffix=$LIBMAN_SUFFIX
19540if test -z "$man_pages_suffix"; then
19541    man_pages_suffix=none
19542fi
19543
19544echo ""
19545echo "X11 will be built with the following settings:"
19546echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
19547echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
19548echo " Use XCB:                                 "$ac_cv_use_xcb
19549echo " Threading support:                       "$xthreads
19550echo " Use Threads safe API:                    "$mtsafeapi
19551echo " Threads stubs in libX11:                 "$thrstubs
19552echo " XCMS:                                    "$XCMS
19553echo " Internationalization support:            "$XLOCALE
19554echo " XF86BigFont support:                     "$XF86BIGFONT
19555echo " XKB support:                             "$XKB
19556echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
19557echo " Manual pages suffix:                     "$man_pages_suffix
19558echo " Compose table cache enabled:             "$COMPOSECACHE
19559echo ""
19560